@zjpcy/simple-design 1.5.3 → 1.5.4
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.css +37 -0
- package/dist/cjs/index.js +1 -1
- package/dist/es/Layout/index.js +1 -1
- package/dist/es/Layout/styles.js +1 -1
- package/dist/es/index.css +37 -0
- package/dist/variables.css +14 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";var e=require("react/jsx-runtime"),n=require("react"),t=require("classnames"),r=require("styled-components"),i=require("react-color"),a=require("react-dom/client"),o=require("react-dom"),l=require("@dnd-kit/core"),s=require("@dnd-kit/sortable"),c=require("@dnd-kit/utilities"),d=require("lunar-typescript");function u(e){return e&&e.__esModule?e:{default:e}}var p=u(n),f=u(t),h=u(r),g=u(o),m=function(){return m=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},m.apply(this,arguments)};function v(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 x(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,l)}s((r=r.apply(e,n||[])).next())})}function y(e,n){var t,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(t=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=n.call(e,a)}catch(e){l=[6,e],r=0}finally{t=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function b(e,n,t){if(t||2===arguments.length)for(var r,i=0,a=n.length;i<a;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 j(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}"function"==typeof SuppressedError&&SuppressedError;var _={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"},C={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"},w={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"},N={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"},z={path:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",viewBox:"0 0 24 24"},E={path:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",viewBox:"0 0 24 24"},S={path:"M19 13H5v-2h14v2z",viewBox:"0 0 24 24"},T={path:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",viewBox:"0 0 24 24"},O={path:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",viewBox:"0 0 24 24"},k={path:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",viewBox:"0 0 24 24"},L={path:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z",viewBox:"0 0 24 24"},A={path:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",viewBox:"0 0 24 24"},M={path:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",viewBox:"0 0 24 24"},I={path:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6 1.41-1.41zM11 6H9v12h2V6z",viewBox:"0 0 24 24"},D={path:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6-1.41 1.41zM13 6h2v12h-2V6z",viewBox:"0 0 24 24"},R={search:_,loading:C,user:w,close:N,check:z,plus:E,minus:S,arrowLeft:T,arrowRight:O,arrowUp:k,arrowDown:L,left:A,right:M,"double-left":I,"double-right":D,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"}},H={search:_,loading:C,user:w,close:N,check:z,plus:E,minus:S,arrowLeft:T,arrowRight:O,arrowUp:k,arrowDown:L,left:A,right:M,"double-left":I,"double-right":D},P=function(e){return H[e]?H[e]:R[e]},V={small:12,medium:16,large:24},B=function(t){var r=t.type,i=t.path,a=t.viewBox,o=void 0===a?"0 0 24 24":a,l=t.size,s=void 0===l?"medium":l,c=t.color,d=void 0===c?"#339af0":c,u=t.hoverColor,p=t.spin,f=void 0!==p&&p,h=t.rotate,g=t.align,v=void 0===g?"center":g,x=t.className,y=void 0===x?"":x,b=t.style,j=t.onClick,_=n.useMemo(function(){return"number"==typeof s?s:V[s]||16},[s]),C=n.useMemo(function(){if(i)return i;if(r){var e=P(r);return(null==e?void 0:e.path)||""}return""},[r,i]),w=n.useMemo(function(){if("0 0 24 24"!==o)return o;if(r){var e=P(r);return(null==e?void 0:e.viewBox)||"0 0 24 24"}return"0 0 24 24"},[r,o]);if(!C)return null;var N=m({width:_,height:_,fill:d,transform:h?"rotate(".concat(h,"deg)"):void 0},b);return e.jsx("div",{className:"icon-container icon-align-".concat(v," ").concat(y),children:e.jsx("svg",{viewBox:w,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:j,children:e.jsx("path",{d:C})})})},U=p.default.forwardRef(function(n,t){var r=n.children,i=n.variant,a=void 0===i?"secondary":i,o=n.size,l=void 0===o?"medium":o,s=n.disabled,c=void 0!==s&&s,d=n.loading,u=void 0!==d&&d,p=n.onClick,h=n.className,g=n.style,x=n.icon,y=n.type,b=void 0===y?"button":y,j=n.href,_=n.title,C=v(n,["children","variant","size","disabled","loading","onClick","className","style","icon","type","href","title"]),w=f.default("zjpcy-btn","zjpcy-btn--".concat(a),"zjpcy-btn--".concat(l),{"zjpcy-btn--disabled":c||u},h),N=function(e){c||u?null==e||e.preventDefault():p&&p()},z=function(){return u?e.jsx(B,{type:"loading",style:{marginRight:r?"2px":0}}):x?"string"==typeof x?e.jsx(B,{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"===a&&j?e.jsxs("a",m({ref:t,href:c?void 0:j,className:w,onClick:N,style:g,title:_},C,{children:[z(),r]})):e.jsxs("button",m({ref:t,type:b,className:w,onClick:N,disabled:c,style:g,title:_},C,{children:[z(),r]}))});U.displayName="Button";var F,Y,G,$,W,K,Z,X,q,J,Q,ee,ne,te,re,ie,ae,oe,le,se,ce,de,ue,pe=U,fe=function(n){var t=n.size,r=n.sizeType;return e.jsxs("svg",{viewBox:"0 0 24 24",className:"zjpcy-spin-icon zjpcy-spin-icon-".concat(r),style:{width:t,height:t},children:[e.jsx("circle",{className:"zjpcy-spin-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"zjpcy-spin-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})},he={small:16,default:24,large:32},ge=function(t){var r=t.spinning,i=void 0===r||r,a=t.indicator,o=t.tip,l=t.size,s=void 0===l?"default":l,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],y=v[1],b=n.useState(0===d),j=b[0],_=b[1];n.useEffect(function(){if(i){if(y(!0),d>0){var e=setTimeout(function(){_(!0)},d);return function(){return clearTimeout(e)}}_(!0)}else y(!1),_(!1)},[i,d]);var C=he[s],w=n.useMemo(function(){return a||e.jsx(fe,{size:C,sizeType:s})},[a,C,s]),N=function(){return e.jsxs("div",{className:"zjpcy-spin-content ".concat(o?"zjpcy-spin-content-tip":""),children:[w,o&&e.jsx("div",{className:"zjpcy-spin-tip zjpcy-spin-tip-".concat(s),children:o})]})};return m?x&&j?e.jsx("div",{className:"zjpcy-spin-fullscreen ".concat(p),style:f,children:N()}):null:h?e.jsxs("div",{className:"zjpcy-spin-nested-wrapper ".concat(p),style:f,children:[h,x&&j&&e.jsx("div",{className:"zjpcy-spin-mask",children:N()})]}):x&&j?e.jsx("div",{className:"zjpcy-spin ".concat(p),style:f,children:N()}):null},me=function(t){var r=t.items,i=t.currentIndex,a=t.defaultCurrentIndex,o=void 0===a?0:a,l=t.onChange,s=t.autoplay,c=void 0===s||s,d=t.interval,u=void 0===d?3e3:d,p=t.effect,h=void 0===p?"slide":p,g=t.direction,v=void 0===g?"horizontal":g,x=t.showIndicators,y=void 0===x||x,j=t.indicatorPosition,_=void 0===j?"bottom":j,C=t.showArrows,w=void 0===C||C,N=t.loop,z=void 0===N||N,E=t.pauseOnHover,S=void 0===E||E,T=t.className,O=t.style,k=t.contentClassName,L=t.contentStyle,A=t.onItemClick,M=t.duration,I=void 0===M?500:M,D=t.prevIcon,R=t.nextIcon,H=t.upIcon,P=t.downIcon,V=t.indicatorProgress,U=void 0!==V&&V,F=void 0!==i,Y=n.useState(o),G=Y[0],$=Y[1],W=F?i:G,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],ae=re[1],oe=n.useState([]),le=oe[0],se=oe[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(z){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},[z,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),ae(we()),void(ce.current=setTimeout(function(){Q(!0),F||$(t),null==l||l(t),setTimeout(function(){Q(!1),te(!1),ae([])},I)},1500));Q(!0),F||$(t),null==l||l(t),setTimeout(function(){Q(!1)},I)}}},[W,F,J,l,ve,I,fe,h,ne]),ye=n.useCallback(function(){xe(W+1)},[W,xe]),be=n.useCallback(function(){xe(W-1)},[W,xe]);n.useEffect(function(){if(c&&!(fe<=1)&&(!S||!Z))return ue.current=setInterval(function(){ye()},u),function(){ue.current&&clearInterval(ue.current)}},[c,u,Z,S,ye,fe]);var je=n.useMemo(function(){return ge||me?0:100*-W},[W,ge,me]),_e=n.useCallback(function(e,n,t){if(!z)return e-n;var r=e-n,i=r>0?r-t:r+t;return Math.abs(r)<=Math.abs(i)?r:i},[z]),Ce=function(e){if(!me)return{};var n=e===W,t=_e(e,W,fe);switch(h){case"flip":return{transform:"rotateY(".concat(a=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,a=5*t;return{transform:"translateX(".concat(c=30*t,"%) translateZ(").concat(r,"px) scale(").concat(i,") rotateY(").concat(a,"deg)"),opacity:n?1:Math.abs(t)<=2?.6-.2*Math.abs(t):0,zIndex:n?10:5-Math.abs(t)};case"coverflow":var o=Math.abs(t);a=-45*t,r=n?0:-200,i=n?1:.8;return{transform:"translateX(".concat(c=50*t,"%) translateZ(").concat(r,"px) rotateY(").concat(a,"deg) scale(").concat(i,")"),opacity:o<=2?1-.3*o:0,zIndex:n?10:5-o};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 l=n?1:0,s=n?0:10;return{transform:"scale(".concat(i=n?1:2,")"),opacity:l,filter:"blur(".concat(s,"px)"),zIndex:n?10:1};case"book":l=n?1:-1===t?.3:0;return{transform:"rotateY(".concat(a=t<0?-90:t>0?90:0,"deg)"),opacity:l,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}}},we=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=f.default("zjpcy-carousel","zjpcy-carousel--".concat(h),"zjpcy-carousel--".concat(v),{"zjpcy-carousel--hover":Z,"zjpcy-carousel--raining":ne},T),ze=f.default("zjpcy-carousel__content",k),Ee=f.default("zjpcy-carousel__indicators","zjpcy-carousel__indicators--".concat(_));return 0===fe?null:e.jsxs("div",{ref:de,className:Ne,style:O,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?be():ye()):Math.abs(t)>50&&(t>0?be():ye()),pe.current=null}},onKeyDown:function(e){"ArrowLeft"===e.key||"ArrowUp"===e.key?be():"ArrowRight"!==e.key&&"ArrowDown"!==e.key||ye()},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,a={id:Date.now(),x:r,y:i};se(function(e){return b(b([],e,!0),[a],!1)}),te(!0),ae(we()),setTimeout(function(){ye(),te(!1),ae([])},1500),setTimeout(function(){se(function(e){return e.filter(function(e){return e.id!==a.id})})},1e3)}}},tabIndex:0,role:"region","aria-roledescription":"carousel",children:[e.jsx("div",{className:ze,style:m(m({},L),me||ge?{}:{transform:he?"translateY(".concat(je,"%)"):"translateX(".concat(je,"%)"),transitionDuration:"".concat(I,"ms")}),children:r.map(function(n,t){var r=t===W,i=t-W,a=f.default("zjpcy-carousel__item",{"zjpcy-carousel__item--active":r,"zjpcy-carousel__item--prev":-1===i,"zjpcy-carousel__item--next":1===i,"zjpcy-carousel__item--exit":"book"===h&&-1===i});return e.jsx("div",{className:a,style:m({},me?Ce(t):ge?{opacity:r?1:0,zIndex:r?1:0,transitionDuration:"".concat(I,"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:"zjpcy-carousel__item-inner",onClick:function(){return function(e,n){e.link&&window.open(e.link,"_blank"),null==A||A(e,n)}(n,t)},style:{cursor:n.link||A?"pointer":"default"},children:[e.jsx("img",{src:n.image,alt:"string"==typeof n.title?n.title:"",className:"zjpcy-carousel__image",draggable:!1}),(n.title||n.description)&&e.jsxs("div",{className:f.default("zjpcy-carousel__info","zjpcy-carousel__info--".concat(n.infoPosition||"bottom")),children:[n.title&&e.jsx("div",{className:"zjpcy-carousel__title",children:n.title}),n.description&&e.jsx("div",{className:"zjpcy-carousel__description",children:n.description})]})]})},n.key)})}),w&&fe>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:f.default("zjpcy-carousel__arrow","zjpcy-carousel__arrow--prev"),onClick:be,"aria-label":"Previous slide",type:"button",children:he?null!=H?H:e.jsx(B,{type:"arrow-up",size:20}):null!=D?D:e.jsx(B,{type:"chevron-left",size:20})}),e.jsx("button",{className:f.default("zjpcy-carousel__arrow","zjpcy-carousel__arrow--next"),onClick:ye,"aria-label":"Next slide",type:"button",children:he?null!=P?P:e.jsx(B,{type:"arrow-down",size:20}):null!=R?R:e.jsx(B,{type:"chevron-right",size:20})})]}),y&&fe>1&&e.jsx("div",{className:Ee,role:"tablist",children:r.map(function(n,t){var r=t===W,i=U&&c&&r;return e.jsx("button",{className:f.default("zjpcy-carousel__indicator",{"zjpcy-carousel__indicator--active":r,"zjpcy-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:"zjpcy-carousel__indicator-progress-bar"},"progress-".concat(W))},"".concat(n.key,"-").concat(i?"progress":"static"))})}),e.jsxs("div",{className:"zjpcy-carousel__pagination",children:[e.jsx("span",{className:"zjpcy-carousel__pagination-current",children:W+1}),e.jsx("span",{className:"zjpcy-carousel__pagination-separator",children:"/"}),e.jsx("span",{className:"zjpcy-carousel__pagination-total",children:fe})]}),"rain"===h&&e.jsx("div",{className:"zjpcy-carousel__rain-overlay"}),"rain"===h&&ie.map(function(n){return e.jsx("span",{className:f.default("zjpcy-carousel__rain-drop",{"zjpcy-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&&le.map(function(n){return e.jsx("span",{className:"zjpcy-carousel__ripple",style:{left:n.x-20,top:n.y-20,width:40,height:40}},n.id)})]})},ve=function(n){var t=n.icon,r=n.image,i=n.description,a=void 0===i?"暂无数据":i,o=n.children,l=n.size,s=void 0===l?"middle":l,c=n.style,d=n.className;return e.jsxs("div",{className:"zjpcy-empty zjpcy-empty--".concat(s," ").concat(d||""),style:c,children:[e.jsxs("div",{className:"zjpcy-empty__icon-wrapper",children:[t&&e.jsx("div",{className:"zjpcy-empty__icon",children:t}),r&&e.jsx("img",{src:r,alt:"empty",className:"zjpcy-empty__image"}),!t&&!r&&e.jsx(B,{type:"file-text",size:"large"===s?64:"small"===s?32:48,color:"#d9d9d9"})]}),e.jsx("div",{className:"zjpcy-empty__description",children:a}),o&&e.jsx("div",{className:"zjpcy-empty__actions",children:o})]})},xe=function(t){var r,i=t.value,a=t.defaultValue,o=t.onChange,l=t.options,s=void 0===l?[]:l,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,g=t.style,v=t.className,x=void 0===v?"":v,y=t.allowClear,j=void 0===y||y,_=t.expandTrigger,C=void 0===_?"click":_,w=t.changeOnSelect,N=void 0!==w&&w,z=t.fieldNames,E=void 0===z?{}:z,S=t.width,T=t.dropdownWidth,O=t.dropdownHeight,k=t.dropdownStyle,L=void 0===k?{}:k,A=t.dropdownClassName,M=void 0===A?"":A,I=t.placement,D=void 0===I?"bottomLeft":I,R=t.checkbox,H=void 0!==R&&R,P=t.autoWidth,V=void 0!==P&&P,U=n.useState(!1),F=U[0],Y=U[1],G=n.useState([]),$=G[0],W=G[1],K=n.useState([]),Z=K[0],X=K[1],q=n.useRef(null),J=n.useRef(null),Q=E.label,ee=void 0===Q?"label":Q,ne=E.value,te=void 0===ne?"value":ne,re=E.children,ie=void 0===re?"children":re,ae=n.useCallback(function(e){return e[te]||e.value},[te]),oe=n.useCallback(function(e){return e[ee]||e.label},[ee]),le=n.useCallback(function(e){return e[ie]||e.children},[ie]),se=n.useCallback(function(e){for(var n=[],t=s,r=function(e){var r=t.find(function(n){return ae(n)===e});if(!r)return{value:n};n.push(r),t=le(r)||[]},i=0,a=e;i<a.length;i++){var o=r(a[i]);if("object"==typeof o)return o.value}return n},[s,ae,le]),ce=n.useCallback(function(e){for(var n=[],t=s,r=function(e){var r=t.find(function(n){return ae(n)===e});if(!r)return{value:n};n.push(r),t=le(r)||[]},i=0,a=e;i<a.length;i++){var o=r(a[i]);if("object"==typeof o)return o.value}return n},[s,ae,le]),de=n.useCallback(function(){var e=void 0!==i?i:a;return!e||Array.isArray(e)&&0===e.length?[]:H?Array.isArray(e)&&Array.isArray(e[0])?e:[e]:Array.isArray(e)&&!Array.isArray(e[0])?[e]:[]},[i,a,H]),ue=n.useState(de()),pe=ue[0],fe=ue[1];n.useEffect(function(){var e=void 0!==i?i:a;if(!e)return fe([]),void W([]);if(H){var n=void 0;n=Array.isArray(e)?0===e.length?[]:Array.isArray(e[0])?e:[e]:[],fe(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?fe([n]):fe([])}},[i,a,H,ce]);var he=n.useCallback(function(e){var n=[],t=function(e,r){for(var i=0,a=e;i<a.length;i++){var o=a[i];if(ae(o)===ae(r))return n.push(oe(o)),!0;var l=le(o);if(l&&l.length>0&&t(l,r))return n.unshift(oe(o)),!0}return!1};return t(s,e),n},[s,ae,oe,le]),ge=n.useCallback(function(){if(H){if(!$||0===$.length)return d;var e=$.filter(function(e){var n=le(e);return!n||0===n.length}).map(function(e){return he(e).join("/")});return e.length>3?e.slice(0,3).join(", ")+" +".concat(e.length-3):e.join(", ")}return 0!==pe.length&&pe[0]&&0!==pe[0].length?se(pe[0]).map(function(e){return oe(e)}).join(" / "):d},[pe,$,H,se,oe,d,he,le]),me=n.useCallback(function(e){var n=[],t=function(e,r,i){for(var a=0,o=e;a<o.length;a++){var l=o[a],s=b(b([],i,!0),[ae(l)],!1);if(ae(l)===ae(r))return n.push.apply(n,s),!0;var c=le(l);if(c&&c.length>0&&t(c,r,s))return!0}return!1};return t(s,e,[]),n},[s,ae,le]),xe=n.useCallback(function(e,n){var t=me(n),r=me(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},[me]),ye=n.useCallback(function(e){var n=[],t=function(e,r,i){for(var a=0,o=e;a<o.length;a++){var l=o[a];if(ae(l)===ae(r))return n.unshift(l),!0;var s=le(l);if(s&&s.length>0&&t(s,r,b(b([],i,!0),[l],!1)))return n.unshift(l),!0}return!1};return t(s,e,[]),n},[s,ae,le]),be=n.useCallback(function(e,n,t){if(e.stopPropagation(),H){var r=b([],$,!0),a=r.findIndex(function(e){return ae(e)===ae(n)});if(a>-1){r.splice(a,1);var l=r.filter(function(e){return!xe(e,n)});r.splice.apply(r,b([0,r.length],l,!1))}else{ye(n).forEach(function(e){-1===r.findIndex(function(n){return ae(n)===ae(e)})&&r.push(e)})}W(r);var s=r.map(function(e){return me(e)});null==o||o(s,r),void 0===i&&fe(s);var c=le(n);if(c&&c.length>0){var d=b(b([],Z.slice(0,t),!0),[ae(n)],!1);X(d)}else{d=Z.slice(0,t+1);X(d)}}},[$,H,ae,le,me,ye,xe,o,i,Z]),je=n.useCallback(function(e,n){if(H){var t=b([],$,!0),r=t.findIndex(function(n){return ae(n)===ae(e)});if(r>-1){t.splice(r,1);var a=t.filter(function(n){return!xe(n,e)});t.splice.apply(t,b([0,t.length],a,!1))}else{ye(e).forEach(function(e){-1===t.findIndex(function(n){return ae(n)===ae(e)})&&t.push(e)})}W(t);var l=t.map(function(e){return me(e)});if(null==o||o(l,t),void 0===i&&fe(l),(c=le(e))&&c.length>0){var s=b(b([],Z.slice(0,n),!0),[ae(e)],!1);X(s)}else{s=Z.slice(0,n+1);X(s)}}else{var c;s=b(b([],Z.slice(0,n),!0),[ae(e)],!1);if(X(s),(c=le(e))&&c.length>0){if(N){var d=se(s);null==o||o(s,d),void 0===i&&fe([s])}}else{var u=se(s);null==o||o(s,u),void 0===i&&fe([s]),Y(!1),X([])}}},[Z,$,H,ae,oe,le,N,se,me,ye,xe,o,i]),_e=n.useCallback(function(e,n){if("hover"===C){var t=b(b([],Z.slice(0,n),!0),[ae(e)],!1);X(t)}},[Z,C,ae]),Ce=n.useCallback(function(e,n,t){if(e.stopPropagation(),H){var r=le(n);if(r&&r.length>0){var i=b(b([],Z.slice(0,t),!0),[ae(n)],!1);X(i)}}else je(n,t)},[H,Z,ae,le,je]),we=n.useCallback(function(e){e.stopPropagation(),H?(null==o||o([],[]),W([]),void 0===i&&fe([])):(null==o||o([],[]),void 0===i&&fe([])),X([])},[o,i,H]),Ne=n.useCallback(function(e,n){if(e.stopPropagation(),H){var t=b([],$,!0),r=ae(n),a=t.findIndex(function(e){return ae(e)===r});if(a>-1){t.splice(a,1);var l=t.filter(function(e){return!xe(e,n)});t.splice.apply(t,b([0,t.length],l,!1));for(var s=ye(n),c=function(e){var n=s[e],r=ae(n);if(!t.some(function(e){return ae(e)!==r&&xe(e,n)})){var i=t.findIndex(function(e){return ae(e)===r});i>-1&&t.splice(i,1)}},d=s.length-2;d>=0;d--)c(d);W(t);var u=t.map(function(e){return me(e)});null==o||o(u,t),void 0===i&&fe(u)}}},[$,H,ae,me,ye,xe,o,i]),ze=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 Ee=n.useCallback(function(e){if(0===e)return s;for(var n=Z.slice(0,e),t=s,r=function(e){var n=t.find(function(n){return ae(n)===e});if(!n)return{value:[]};t=le(n)||[]},i=0,a=n;i<a.length;i++){var o=r(a[i]);if("object"==typeof o)return o.value}return t},[s,Z,ae,le]);n.useEffect(function(){H||(F&&pe.length>0&&pe[0]?X(pe[0]):F||X([]))},[F,pe,H]);var Se=n.useCallback(function(e){return!!H&&$.some(function(n){return ae(n)===ae(e)})},[$,H,ae]),Te=n.useCallback(function(e,n){return!H&&(!(n>=pe.length||!pe[0])&&pe[0][n]===ae(e))},[pe,H,ae]),Oe=n.useCallback(function(e,n){return!(n>=Z.length)&&Z[n]===ae(e)},[Z,ae]),ke=n.useCallback(function(){if(0===Z.length)return 1;for(var e=Z.length,n=s,t=function(e){var t=n.find(function(n){return ae(n)===e});if(!t)return"break";n=le(t)||[]},r=0,i=Z;r<i.length;r++){if("break"===t(i[r]))break}return n&&n.length>0&&e++,e},[Z,s,ae,le]),Le=n.useCallback(function(){var e=m({},g);return S&&(e.width="number"==typeof S?"".concat(S,"px"):S),V||S?V&&!S?e.minWidth="180px":!V&&S&&(e.maxWidth="number"==typeof S?"".concat(S,"px"):S):(e.minWidth="180px",e.maxWidth="100%"),e},[S,g,V]),Ae=n.useCallback(function(){var e=m({},L);switch(D){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 T&&(e.width="number"==typeof T?"".concat(T,"px"):T),O&&(e.maxHeight="number"==typeof O?"".concat(O,"px"):O),e},[T,O,L,D]),Me=H?$.filter(function(e){var n=le(e);return!n||0===n.length}).length>0:pe.length>0&&(null===(r=pe[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(Me?"cascader-has-value":""),style:Le(),children:[e.jsxs("div",{className:"cascader-trigger",onClick:ze,children:[e.jsx("span",{className:"cascader-selection-placeholder ".concat(Me?"cascader-selection-hidden":""),children:d}),H?e.jsx("div",{className:"cascader-selection-value ".concat(Me?"":"cascader-selection-hidden"),children:$.filter(function(e){var n=le(e);return!n||0===n.length}).map(function(n){var t=he(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(B,{type:"close",size:10})})]},ae(n))})}):e.jsx("span",{className:"cascader-selection-value ".concat(Me?"":"cascader-selection-hidden"),children:ge()}),e.jsx("span",{className:"cascader-arrow",children:e.jsx(B,{type:"arrowDown",size:12})}),j&&Me&&!p&&e.jsx("span",{className:"cascader-clear",onClick:we,children:e.jsx(B,{type:"close",size:12})})]}),F&&e.jsx("div",{className:"cascader-dropdown cascader-dropdown-".concat(D," ").concat(M),ref:J,style:Ae(),children:e.jsx("div",{className:"cascader-menus",style:{width:T?void 0:"".concat(180*ke(),"px")},children:Array.from({length:ke()}).map(function(n,t){return function(n){var t=Ee(n);return t&&0!==t.length?e.jsx("ul",{className:"cascader-menu cascader-menu-".concat(n," ").concat(H?"cascader-menu-checkbox":""),children:t.map(function(t,r){var i=H?Se(t):Te(t,n),a=Oe(t,n),o=le(t)&&le(t).length>0,l=t.disabled;return e.jsxs("li",{className:"cascader-menu-item ".concat(i?"cascader-menu-item-selected":""," ").concat(a?"cascader-menu-item-active":""," ").concat(i&&a?"cascader-menu-item-selected-active":""," ").concat(l?"cascader-menu-item-disabled":""),onClick:function(){return!l&&(H?void 0:je(t,n))},onMouseEnter:function(){return!l&&_e(t,n)},children:[H&&e.jsx("span",{className:"cascader-menu-item-checkbox",onClick:function(e){return!l&&be(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!l&&Ce(e,t,n)},children:oe(t)}),o&&e.jsx("span",{className:"cascader-menu-item-expand-icon",children:e.jsx(B,{type:"arrowRight",size:12,color:"#bfbfbf"})})]},"".concat(ae(t),"-").concat(r))})}):e.jsx("div",{className:"cascader-menu cascader-menu-empty",children:e.jsx(ve,{size:"small",description:"暂无数据"})})}(t)})})})]})},ye=function(e,n){return"var(".concat(e,", ").concat(n,")")},be=h.default.div(F||(F=j(["\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%"},ye("--zjpcy-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")}),je=h.default.div(Y||(Y=j(["\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 6px 28px 6px 12px;\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: 6px 28px 6px 12px;\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"])),ye("--zjpcy-bg-color-white","#fff"),ye("--zjpcy-border-color-extra-light","#d9d9d9"),ye("--zjpcy-border-radius-sm","4px"),ye("--zjpcy-transition-duration","0.2s"),ye("--zjpcy-transition-timing-function","ease-in-out"),ye("--zjpcy-primary-hover-color","#40a9ff"),function(e){return e.$open&&"\n border-color: ".concat(ye("--zjpcy-primary-color","#1890ff"),";\n box-shadow: ").concat(ye("--zjpcy-input-box-shadow-focus","0 0 0 2px rgba(51, 154, 240, 0.2)"),";\n ")},function(e){return e.$disabled&&"\n background-color: ".concat(ye("--zjpcy-input-disabled-bg","#f5f5f5"),";\n border-color: ").concat(ye("--zjpcy-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")}),_e=h.default.div(G||(G=j(["\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(ye("--zjpcy-input-placeholder-color","#bfbfbf"),";\n ")}),Ce=h.default.span($||($=j(["\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"]))),we=h.default.span(W||(W=j(["\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"])),ye("--zjpcy-bg-color-light","#f5f5f5"),ye("--zjpcy-border-color-light","#f0f0f0"),ye("--zjpcy-border-radius-sm","4px"),ye("--zjpcy-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")}),Ne=h.default.span(K||(K=j(["\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"]))),ze=h.default.span(Z||(Z=j(["\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"])),ye("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)"),ye("--zjpcy-transition-duration","0.2s"),ye("--zjpcy-text-color","rgba(0, 0, 0, 0.85)")),Ee=h.default.div(X||(X=j(["\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"]))),Se=h.default.input(q||(q=j(["\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"])),ye("--zjpcy-text-color","rgba(0, 0, 0, 0.85)"),ye("--zjpcy-input-placeholder-color","#bfbfbf")),Te=h.default.span(J||(J=j(["\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"])),ye("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)"),ye("--zjpcy-transition-duration","0.2s"),ye("--zjpcy-text-color","rgba(0, 0, 0, 0.85)"),function(e){var n=e.$size;return"large"===n?"right: 32px;":"small"===n?"right: 24px;":""}),Oe=h.default.span(Q||(Q=j(["\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"])),ye("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)"),ye("--zjpcy-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;":""}),ke=h.default.div(ee||(ee=j(["\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"])),ye("--zjpcy-bg-color-white","#fff"),ye("--zjpcy-border-radius-sm","4px"),ye("--zjpcy-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")}),Le=h.default.div(ne||(ne=j(["\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"])),ye("--zjpcy-border-color-light","#f0f0f0")),Ae=h.default.input(te||(te=j(["\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"])),ye("--zjpcy-bg-color-light","#f5f5f5"),ye("--zjpcy-border-radius-sm","4px"),ye("--zjpcy-text-color","rgba(0, 0, 0, 0.85)"),ye("--zjpcy-input-placeholder-color","#bfbfbf")),Me=h.default.div(re||(re=j(["\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"]))),Ie=h.default.div(ie||(ie=j(["\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"]))),De=h.default.div(ae||(ae=j(["\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"]))),Re=h.default.div(oe||(oe=j(["\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")},ye("--zjpcy-transition-duration","0.2s"),ye("--zjpcy-bg-color-light","#f5f5f5"),function(e){return e.$selected&&"\n background-color: ".concat(ye("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)"),";\n color: ").concat(ye("--zjpcy-primary-color","#1890ff"),";\n\n &:hover {\n background-color: ").concat(ye("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)"),";\n }\n ")},function(e){return e.$disabled&&"\n color: ".concat(ye("--zjpcy-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")}),He=h.default.span(le||(le=j(["\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"])),ye("--zjpcy-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 "}),Pe=h.default.span(se||(se=j(["\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"]))),Ve=h.default.span(ce||(ce=j(["\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"])),ye("--zjpcy-border-color-extra-light","#d9d9d9"),ye("--zjpcy-bg-color-white","#fff"),ye("--zjpcy-transition-duration","0.2s"),ye("--zjpcy-primary-color","#1890ff"),function(e){return e.$checked&&"\n background-color: ".concat(ye("--zjpcy-primary-color","#1890ff"),";\n border-color: ").concat(ye("--zjpcy-primary-color","#1890ff"),";\n ")}),Be=h.default.span(de||(de=j(["\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"]))),Ue=h.default.div(ue||(ue=j(["\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"]))),Fe=function(t){var r=t.treeData,i=void 0===r?[]:r,a=t.value,o=t.defaultValue,l=t.onChange,s=t.placeholder,c=void 0===s?"请选择":s,d=t.disabled,u=void 0!==d&&d,p=t.multiple,h=void 0!==p&&p,g=t.maxTagCount,m=t.allowClear,v=void 0===m||m,x=t.size,y=void 0===x?"middle":x,j=t.styles,_=t.className,C=t.dropdownWidth,w=t.dropdownHeight,N=void 0===w?300:w,z=t.showSearch,E=void 0!==z&&z,S=t.filterOption,T=t.autoClearSearchValue,O=void 0===T||T,k=t.fieldNames,L=void 0===k?{}:k,A=t.width,M=n.useState(!1),I=M[0],D=M[1],R=n.useState(function(){return o?Array.isArray(o)?o:[o]:[]}),H=R[0],P=R[1],V=n.useState(""),U=V[0],F=V[1],Y=n.useRef(null),G=n.useRef(null),$=n.useState(new Set),W=$[0],K=$[1],Z=L.title,X=void 0===Z?"title":Z,q=L.value,J=void 0===q?"value":q,Q=L.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!==a?h?Array.isArray(a)?a:[a]:null!==a&&""!==a?[a]:[]:H},[a,H,h]),ae=n.useCallback(function(e,n){void 0===n&&(n=i);for(var t=0,r=n;t<r.length;t++){var a=r[t];if(ne(a)===e)return a;var o=re(a);if(o&&o.length>0){var l=ae(e,o);if(l)return l}}return null},[i,ne,re]),oe=n.useMemo(function(){return ie.map(function(e){return ae(e)}).filter(Boolean)},[ie,ae]);n.useEffect(function(){var e=function(e){Y.current&&!Y.current.contains(e.target)&&(D(!1),F(""))};return I&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[I]),n.useEffect(function(){I&&E&&G.current&&setTimeout(function(){var e;return null===(e=G.current)||void 0===e?void 0:e.focus()},0)},[I,E]);var le=n.useCallback(function(e){var n=[],t=function(e){var r=re(e);r&&0!==r.length?r.forEach(t):n.push(ne(e))};return t(e),n},[ne,re]),se=n.useCallback(function(e){var n=ne(e),t=re(e),r=t&&t.length>0;if(h){var i=r?le(e):[n],o=void 0,s=(o=i.some(function(e){return ie.includes(e)})?ie.filter(function(e){return!i.includes(e)}):Array.from(new Set(b(b([],ie,!0),i,!0)))).map(function(e){return ae(e)}).filter(Boolean);void 0===a&&P(o),null==l||l(o,s)}else{if(r)return;void 0===a&&P([n]),null==l||l(n,[e]),D(!1)}O&&F("")},[ie,h,ne,re,le,ae,a,l,O]),ce=n.useCallback(function(e){e.stopPropagation(),void 0===a&&P([]),null==l||l(h?[]:void 0,[])},[a,l,h]),de=n.useCallback(function(e,n){e.stopPropagation();var t=ie.filter(function(e){return e!==n}),r=t.map(function(e){return ae(e)}).filter(Boolean);void 0===a&&P(t),null==l||l(t,r)},[ie,ae,a,l]),ue=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]),pe=n.useCallback(function(e){if(!U)return!0;var n=String(te(e));return S?S(U,e):n.toLowerCase().includes(U.toLowerCase())},[U,te,S]),fe=n.useCallback(function(e){var n=re(e);return!(!n||0===n.length)&&n.some(function(e){return pe(e)||fe(e)})},[re,pe]),he=n.useCallback(function(e){var n=le(e);return 0!==n.length&&n.every(function(e){return ie.includes(e)})},[le,ie]),ge=n.useCallback(function(n,t){void 0===t&&(t=0);var r=ne(n),i=te(n),a=re(n),o=a&&a.length>0,l=h?o?he(n):ie.includes(r):!o&&ie.includes(r),s=W.has(r),c=!!n.disabled,d=pe(n),u=fe(n);return d||u?e.jsxs(De,{className:"treeselect-tree-node-wrapper",children:[e.jsxs(Re,{className:f.default("treeselect-tree-node",{"treeselect-tree-node-selected":l,"treeselect-tree-node-disabled":c,"treeselect-tree-node-leaf":!o}),$selected:l,$disabled:c,$level:t,$styles:null==j?void 0:j.treeNode,onClick:function(){return!c&&se(n)},children:[e.jsx(He,{className:f.default("treeselect-tree-node__expand-icon",{"treeselect-tree-node__expand-icon-expanded":s,"treeselect-tree-node__expand-icon-no-children":!o}),$expanded:s,$hasChildren:!!o,onClick:function(e){return o&&ue(e,n)},children:o&&e.jsx(B,{type:"arrowRight",size:12,color:"#bfbfbf"})}),h&&e.jsx(Pe,{className:"treeselect-tree-node__checkbox",children:e.jsx(Ve,{className:f.default("treeselect-tree-node__checkbox-inner",{"treeselect-tree-node__checkbox-inner-checked":l}),$checked:l,children:l&&e.jsx(B,{type:"check",size:10,color:"#fff"})})}),e.jsx(Be,{className:"treeselect-tree-node__title",children:i})]}),o&&s&&e.jsx(Ue,{className:"treeselect-tree-node-children",children:a.map(function(e){return ge(e,t+1)})})]},String(r)):null},[ie,W,ne,te,re,h,pe,fe,he,se,ue,null==j?void 0:j.treeNode]),me=n.useCallback(function(e){var n=[],t=function(e){var r=re(e);r&&0!==r.length?r.forEach(t):ie.includes(ne(e))&&n.push(e)};return e.forEach(t),n},[ie,ne,re]),xe=n.useCallback(function(){if(!h){var n=oe[0];return n?e.jsx(Ce,{className:"treeselect-selection__item",children:te(n)}):c}var t=me(i);if(0===t.length)return c;var r=t,a=0;return void 0!==g&&g>0&&t.length>g&&(r=t.slice(0,g),a=t.length-g),e.jsxs(e.Fragment,{children:[r.map(function(n){return e.jsxs(we,{className:f.default("treeselect-selection__tag",{"treeselect-selection__tag--more":!1}),$size:y,$styles:null==j?void 0:j.tag,children:[e.jsx(Ne,{className:"treeselect-selection__tag-content",children:te(n)}),e.jsx(ze,{className:"treeselect-selection__tag-close",onClick:function(e){return de(e,ne(n))},children:e.jsx(B,{type:"close",size:10})})]},ne(n))}),a>0&&e.jsxs(we,{className:"treeselect-selection__tag treeselect-selection__tag--more",$size:y,$styles:null==j?void 0:j.tag,children:["+",a]})]})},[h,oe,i,g,ne,te,de,me,c,y,null==j?void 0:j.tag]),ye=f.default("treeselect-wrapper",_);return e.jsxs(be,{ref:Y,className:ye,$width:A,$styles:null==j?void 0:j.wrapper,children:[e.jsxs(je,{className:f.default("treeselect-selection",{"treeselect-selection-open":I,"treeselect-selection-disabled":u}),$open:I,$disabled:u,$size:y,$styles:null==j?void 0:j.selection,onClick:function(){u||(D(!I),I||F(""))},children:[E&&I?e.jsx(Ee,{className:"treeselect-selection__search",children:e.jsx(Se,{ref:G,type:"text",className:"treeselect-selection__search-input",value:U,onChange:function(e){return F(e.target.value)},placeholder:0===oe.length?c:"",onClick:function(e){return e.stopPropagation()}})}):e.jsx(_e,{className:f.default("treeselect-selection__rendered",{"treeselect-selection__rendered--placeholder":0===oe.length}),$isPlaceholder:0===oe.length,children:xe()}),v&&!u&&oe.length>0&&e.jsx(Te,{className:"treeselect-selection__clear",$size:y,onClick:ce,children:e.jsx(B,{type:"close",size:12})}),e.jsx(Oe,{className:f.default("treeselect-selection__arrow",{"treeselect-selection__arrow-open":I}),$open:I,$size:y,children:e.jsx(B,{type:"arrowDown",size:12})})]}),I&&e.jsxs(ke,{className:"treeselect-dropdown",$width:C,$height:N,$styles:null==j?void 0:j.dropdown,children:[E&&!I&&e.jsx(Le,{className:"treeselect-dropdown__search",children:e.jsx(Ae,{ref:G,type:"text",className:"treeselect-dropdown__search-input",value:U,onChange:function(e){return F(e.target.value)},placeholder:"搜索"})}),e.jsx(Me,{className:"treeselect-dropdown__content",children:i.length>0?i.map(function(e){return ge(e)}):e.jsx(Ie,{className:"treeselect-dropdown__empty",children:e.jsx(ve,{size:"small",description:"暂无数据"})})})]})]})},Ye=function(t){var r=t.color,a=t.onChange,o=t.onColorChange,l=t.disabled,s=void 0!==l&&l,c=t.className,d=t.style,u=t.alpha,p=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),j=y[0],_=y[1],C=n.useState(r),w=C[0],N=C[1],z=n.useState([r,"#ffffff"]),E=z[0],S=z[1],T=n.useState(90),O=T[0],k=T[1],L=n.useRef(null),A=n.useRef(null),M=f.default("zjpcy-color-picker",{"zjpcy-color-picker--disabled":s,"zjpcy-color-picker--open":j},c),I=function(e,n){if(v&&void 0!==n){var t=b([],E,!0);t[n]=e.hex,S(t),D()}else N(e.hex),null==o||o(e.hex)},D=function(){var e="linear-gradient(".concat(O,"deg, ").concat(E[0],", ").concat(E[1],")");N(e),null==o||o(e)},R=function(e){e.stopPropagation(),s||_(!j)};return n.useEffect(function(){var e=function(e){var n=L.current&&L.current.contains(e.target),t=A.current&&A.current.contains(e.target);n||t||_(!1)};return j&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[j]),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])),S([e[2],e[3]]))}},[r,v]),e.jsxs("div",{className:M,style:d,children:[x?e.jsx("div",{ref:A,className:"zjpcy-color-picker-trigger-container",onClick:R,children:x}):e.jsx("div",{ref:A,className:"zjpcy-color-picker-default-trigger",style:{background:r},onClick:R}),j&&e.jsxs("div",{className:"zjpcy-color-picker-popup",children:[e.jsxs("div",{className:"zjpcy-color-picker-content",ref:L,children:[v?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"zjpcy-color-picker-gradient",children:[e.jsxs("div",{className:"zjpcy-color-picker-gradient-item",children:[e.jsx("div",{className:"zjpcy-color-picker-gradient-label",children:"起始颜色"}),e.jsx(i.SketchPicker,{color:E[0],onChange:function(e){I(e,0)},disableAlpha:!p})]}),e.jsxs("div",{className:"zjpcy-color-picker-gradient-item",children:[e.jsx("div",{className:"zjpcy-color-picker-gradient-label",children:"结束颜色"}),e.jsx(i.SketchPicker,{color:E[1],onChange:function(e){I(e,1)},disableAlpha:!p})]})]}),e.jsxs("div",{className:"zjpcy-color-picker-gradient-direction",children:[e.jsxs("div",{className:"zjpcy-color-picker-gradient-direction-label",children:["渐变方向: ",O,"°"]}),e.jsx("input",{type:"range",min:"0",max:"360",value:O,onChange:function(e){k(parseInt(e.target.value)),D()},className:"zjpcy-color-picker-gradient-range"})]})]}):e.jsx(i.SketchPicker,{color:w,onChange:function(e){I(e)},disableAlpha:!p}),g.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"zjpcy-color-picker-presets-label",children:"预设颜色"}),e.jsx("div",{className:"zjpcy-color-picker-presets",children:g.map(function(n,t){return e.jsx("div",{className:"zjpcy-color-picker-preset",style:{backgroundColor:n},onClick:function(){return I({hex:n})},title:n},t)})})]}),e.jsxs("div",{className:"zjpcy-color-picker-actions",children:[e.jsx("div",{className:"zjpcy-color-picker-preview-label",children:"参考值:"}),e.jsx("div",{className:"zjpcy-color-picker-preview ".concat(v?"zjpcy-color-picker-gradient-preview":"zjpcy-color-picker-solid-preview"),style:{background:w}}),e.jsxs("div",{className:"zjpcy-color-picker-button-group",children:[e.jsx(pe,{size:"small",onClick:function(){N(r),v&&(S([r,"#ffffff"]),k(90)),_(!1)},children:"取消"}),e.jsx(pe,{variant:"primary",size:"small",onClick:function(){a(w),_(!1)},children:"确认"})]})]})]}),e.jsx("div",{className:"zjpcy-color-picker-overlay",onClick:function(){return _(!1)}})]})]})},Ge=function(e){return x(void 0,void 0,void 0,function(){var n;return y(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 $e(){var e=this;return p.default.useCallback(function(n){return x(e,void 0,void 0,function(){return y(this,function(e){switch(e.label){case 0:return[4,Ge(n)];case 1:return[2,e.sent()]}})})},[])}var We=function(n){var t=n.url,r=n.onCopyStatusChange,i=n.children,a=$e();return e.jsx("span",{style:{margin:"0px",padding:"0px"},onClick:function(){return x(void 0,void 0,void 0,function(){return y(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a(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})},Ke=$e,Ze=function(n){var t,r=n.orientation,i=void 0===r?"horizontal":r,a=n.type,o=void 0===a?"solid":a,l=n.color,s=void 0===l?"#339af0":l,c=n.className,d=void 0===c?"":c,u=n.style,p="#339af0"!==s&&void 0!==s,h=f.default("divider","divider-".concat(i),((t={})["divider-".concat(o,"-").concat(i)]="dashed"===o,t["divider-primary"]=p,t["divider-primary-with-text"]=p,t),d);return e.jsx("div",{className:h,style:m({backgroundColor:s},u)})},Xe=function(n){var t=n.children,r=n.layout,i=void 0===r?"horizontal":r,a=n.direction,o=n.justify,l=void 0===o?"flex-start":o,s=n.align,c=void 0===s?"stretch":s,d=n.wrap,u=void 0===d?"nowrap":d,p=n.gap,f=n.style,h=void 0===f?{}:f,g=a||("column"===i?"column":"row");return e.jsx("div",{className:"flex",style:m({gap:"number"==typeof p?"".concat(p,"px"):p,justifyContent:l,alignItems:c,flexWrap:u,flexDirection:g},h),children:t})},qe=function(n){var t=n.type,r=void 0===t?"text":t,i=n.placeholder,a=void 0===i?"":i,o=n.width,l=n.className,s=void 0===l?"":l,c=n.style,d=n.value,u=n.defaultValue,f=n.onChange,h=n.onBlur,g=n.onFocus,x=n.disabled,y=void 0!==x&&x,b=n.readOnly,j=void 0!==b&&b,_=n.onKeyDown,C=n.prefix,w=n.suffix,N=n.clear,z=void 0!==N&&N,E=n.extra,S=n.label,T=n.labelGap,O=void 0===T?8:T,k=n.labelClassName,L=void 0===k?"":k,A=n.labelStyle,M=n.autoComplete,I=v(n,["type","placeholder","width","className","style","value","defaultValue","onChange","onBlur","onFocus","disabled","readOnly","onKeyDown","prefix","suffix","clear","extra","label","labelGap","labelClassName","labelStyle","error","autoComplete"]),D=p.default.useState(u||""),R=D[0],H=D[1],P=p.default.useState(!1),V=P[0],U=P[1],F=function(n){return n?"string"==typeof n?e.jsx(B,{type:n,size:"medium",color:"#909399"}):n:null},Y=void 0!==d?d:R,G=z&&!y&&!j&&V&&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:[S&&e.jsx("div",{className:"input-label ".concat(L),style:m({marginRight:"number"==typeof O?"".concat(O,"px"):O},A),children:S}),e.jsxs("div",{className:"input-wrapper ".concat(s," ").concat(y?"input-wrapper-disabled":""," ").concat(j?"input-wrapper-readonly":""),style:m({width:o},c),children:[C&&e.jsx("div",{className:"input-prefix",children:F(C)}),e.jsx("input",m({type:r,placeholder:a,className:"input-inner",value:null!=d?String(d):Y,onChange:function(e){void 0===d&&H(e.target.value),null==f||f(e)},onBlur:function(e){U(!1),null==h||h(e)},onFocus:function(e){U(!0),null==g||g(e)},disabled:y,readOnly:j,onKeyDown:_,autoComplete:null!=M?M:"password"===r?"current-password":void 0},I)),e.jsxs("div",{className:"input-suffix-group",children:[e.jsx("div",{className:"input-suffix-clear ".concat(G?"visible":""),onClick:function(){y||j||(void 0!==d||H(""),f&&f({target:{value:""}}))},children:e.jsx(B,{type:"close",size:"medium",color:"#1890ff"})}),w&&e.jsx("div",{className:"input-suffix-content",children:F(w)})]})]})]}),E&&e.jsx("div",{className:"input-extra",children:E})]})},Je=function(n){var t=n.type,r=void 0===t?"text":t,i=n.placeholder,a=void 0===i?"搜索":i,o=n.width,l=n.className,s=void 0===l?"":l,c=n.style,d=n.value,u=n.onChange,p=n.onBlur,f=n.onFocus,h=n.disabled,g=void 0!==h&&h,x=n.readOnly,y=void 0!==x&&x,b=n.onSearch,j=n.onClear,_=n.clear,C=void 0!==_&&_,w=n.suffix,N=v(n,["type","placeholder","width","className","style","value","onChange","onBlur","onFocus","disabled","readOnly","onSearch","onClear","clear","suffix"]),z=function(){null==b||b()},E=C?e.jsx(B,{type:"search",onClick:z,style:{cursor:"pointer"}}):w;return e.jsxs("div",{className:"search-input-wrapper ".concat(s),style:m({width:o},c),children:[e.jsx(qe,m({type:r,placeholder:a,width:"100%",value:d,onChange:u,onBlur:p,onFocus:f,disabled:g,readOnly:y,onKeyDown:function(e){"Enter"===e.key&&(null==b||b())},clear:C,suffix:E},N)),!C&&e.jsxs("div",{className:"search-input-suffix",children:[d&&e.jsx(B,{type:"clear",size:"small",onClick:function(){if(null==j||j(),!j&&u){u({target:{value:""}})}},style:{cursor:"pointer",marginRight:"8px"}}),e.jsx(B,{type:"search",onClick:z,style:{cursor:"pointer"}})]})]})},Qe=function(n){var t=n.nType,r=n.errorMessage,i=n.extra,a=n.value,o=n.onChange,l=n.clear,s=void 0!==l&&l,c=v(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:""}}},u=p.default.useState({isValid:!0,message:""}),f=u[0],h=u[1];p.default.useEffect(function(){if(t&&a){var e=d(a);h(e)}},[t,a]);var g=r||f.message,x=!!g,y=!x&&i;return e.jsxs("div",{className:"number-input-wrapper",children:[e.jsx(qe,m({type:"text",value:a,onChange:function(e){var n=e.target.value;if(null==o||o(e),t){var r=d(n);h(r)}},clear:s},c,{className:"".concat(c.className||""," ").concat(x?"input-error":"")})),x&&e.jsx("div",{className:"input-error-message ".concat(x?"visible":""),children:g}),y&&e.jsx("div",{className:"input-extra",children:i})]})},en=function(n){var t=n.placeholder,r=void 0===t?"":t,i=n.width,a=n.height,o=n.className,l=void 0===o?"":o,s=n.style,c=n.value,d=n.defaultValue,u=n.onChange,f=n.onBlur,h=n.onFocus,g=n.onKeyDown,v=n.disabled,x=void 0!==v&&v,y=n.readOnly,b=void 0!==y&&y,j=n.rows,_=void 0===j?4:j,C=n.cols,w=n.maxLength,N=n.showCount,z=void 0!==N&&N,E=n.clear,S=void 0!==E&&E,T=n.extra,O=n.label,k=n.labelGap,L=void 0===k?8:k,A=n.labelClassName,M=void 0===A?"":A,I=n.labelStyle,D=n.resizable,R=void 0!==D&&D,H=n.resizeHandleSize,P=void 0===H?10:H,V=n.minWidth,U=void 0===V?200:V,F=n.maxWidth,Y=void 0===F?2e3:F,G=n.minHeight,$=void 0===G?80:G,W=n.maxHeight,K=void 0===W?800:W,Z=n.onResize,X=p.default.useState(d||""),q=X[0],J=X[1],Q=p.default.useState(!1),ee=Q[0],ne=Q[1],te=p.default.useState(!1),re=te[0],ie=te[1],ae=p.default.useRef(null),oe=p.default.useRef(null),le=p.default.useRef(null),se=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=p.default.useState(se(i)||0),ue=de[0],pe=de[1],fe=p.default.useState(ce(a)||24*_||80),he=fe[0],ge=fe[1];p.default.useEffect(function(){if(oe.current){var e=se(i)||oe.current.offsetWidth||0,n=ce(a)||24*_||80;pe(e),ge(n)}},[]);var me=void 0!==c,ve=me?c:q,xe=(null==ve?void 0:ve.length)||0;p.default.useEffect(function(){var e=function(e){if(re&&le.current){var n=e.clientX-le.current.mouseX,t=e.clientY-le.current.mouseY,r=le.current.width+n,i=le.current.height+t;r=Math.max(U,Math.min(Y,r)),i=Math.max($,Math.min(K,i)),pe(r),ge(i),null==Z||Z({width:r,height:i})}},n=function(){le.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,$,K,Z]);var ye={display:"inline-flex",flexDirection:"column",width:i?"number"==typeof i?"".concat(i,"px"):i:"100%"},be={position:"relative",display:"flex",alignItems:"flex-start",flex:1,width:R?"number"==typeof ue?"".concat(ue,"px"):ue:void 0},je=m({width:"100%",height:a?"number"==typeof a?"".concat(a,"px"):a:void 0,resize:"none"},s),_e=S&&ve&&!x&&!b,Ce=R?m(m({},je),{width:"100%",height:R?"number"==typeof he?"".concat(he,"px"):he:void 0}):je;return e.jsxs("div",{className:"textarea-wrapper ".concat(l),style:ye,ref:oe,children:[(O||z||_e)&&e.jsxs("div",{className:"textarea-header",style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[O?e.jsx("label",{className:"input-label ".concat(M),style:m({marginRight:"number"==typeof L?"".concat(L,"px"):L},I),children:O}):null,e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[_e&&e.jsx("span",{className:"textarea-clear",onClick:function(){if(!x&&!b){me||J(""),null==u||u({target:{value:""}})}},style:{cursor:"pointer"},children:e.jsx(B,{type:"close-circle",size:"small",color:"#909399"})}),z&&w&&e.jsxs("span",{className:"textarea-count",style:{fontSize:"12px",color:"#909399"},children:[xe,"/",w]})]})]}),e.jsxs("div",{className:"input-wrapper textarea-input-wrapper ".concat(ee?"textarea-input-wrapper-focused":""," ").concat(x?"textarea-input-wrapper-disabled":""," ").concat(re?"textarea-input-wrapper-resizing":""),style:be,children:[e.jsx("textarea",{ref:ae,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==u||u(e)},onBlur:function(e){ne(!1),null==f||f(e)},onFocus:function(e){ne(!0),null==h||h(e)},onKeyDown:g,disabled:x,readOnly:b,rows:_,cols:C,maxLength:w,style:Ce}),R&&e.jsx("div",{className:"textarea-resize-handle",onMouseDown:function(e){R&&!x&&!b&&oe.current&&(e.preventDefault(),e.stopPropagation(),le.current={mouseX:e.clientX,mouseY:e.clientY,width:oe.current.offsetWidth,height:oe.current.offsetHeight},ie(!0))},style:{position:"absolute",bottom:"0",right:"0",width:"".concat(P,"px"),height:"".concat(P,"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"}})})]}),T&&e.jsx("div",{className:"input-extra",style:{marginTop:"4px"},children:T})]})},nn=function(n){var t=n.defaultVisible,r=void 0!==t&&t,i=n.onVisibleChange,a=n.autoComplete,o=void 0===a?"current-password":a,l=v(n,["defaultVisible","onVisibleChange","autoComplete"]),s=p.default.useState(r),c=s[0],d=s[1],u=function(){var e=!c;d(e),null==i||i(e)};return e.jsx(qe,m({type:c?"text":"password",suffix:e.jsx("div",{className:"input-suffix-content",onClick:u,style:{cursor:"pointer"},children:e.jsx(B,{type:c?"eye":"eyeOff",size:"medium",color:"#909399"})}),autoComplete:o},l))},tn=qe;tn.Search=Je,tn.Number=Qe,tn.Textarea=en,tn.Password=nn;var rn=tn,an={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},on=p.default.createContext&&p.default.createContext(an),ln=["attr","size","title"];function sn(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 a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function cn(){return cn=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},cn.apply(this,arguments)}function dn(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 un(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?dn(Object(t),!0).forEach(function(n){pn(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):dn(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function pn(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 fn(e){return e&&e.map((e,n)=>p.default.createElement(e.tag,un({key:n},e.attr),fn(e.child)))}function hn(e){return n=>p.default.createElement(gn,cn({attr:un({},e.attr)},n),fn(e.child))}function gn(e){var n=n=>{var t,{attr:r,size:i,title:a}=e,o=sn(e,ln),l=i||n.size||"1em";return n.className&&(t=n.className),e.className&&(t=(t?t+" ":"")+e.className),p.default.createElement("svg",cn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:t,style:un(un({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&p.default.createElement("title",null,a),e.children)};return void 0!==on?p.default.createElement(on.Consumer,null,e=>n(e)):n(an)}function mn(e){return hn({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 vn=function(t){var r=t.announcement,i=t.height,a=void 0===i?40:i,o=t.speed,l=void 0===o?50:o,s=t.backgroundColor,c=void 0===s?"linear-gradient(to right, #e8eaf6 0%, #f5f5f5 50%, #e8eaf6 100%)":s,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 y=n.useState(!0),b=y[0],j=y[1],_=u&&b,C=n.useRef(null),w=n.useRef(null),N=n.useRef(void 0),z=n.useRef(!1),E=n.useRef(!0);return n.useEffect(function(){if(_&&C.current&&w.current){var e=C.current,n=w.current;n.style.left="".concat(e.offsetWidth,"px");var t=function(){if(E.current&&n)if(z.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-l/100,"px"),N.current=requestAnimationFrame(t)}};N.current=requestAnimationFrame(t);var r=function(){z.current=!0},i=function(){z.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)}}},[l,r,_]),_?e.jsxs("div",{ref:C,className:"marquee-container ".concat(f?"marquee-container-fixed":""),style:{height:"".concat(a,"px"),background:c,top:f?"".concat(g,"px"):void 0},children:[e.jsx("div",{ref:w,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(a,"px"),width:"45px",background:c},onClick:function(){E.current=!1,j(!1),x&&x()},onMouseEnter:function(){z.current=!0},onMouseLeave:function(){z.current=!1},children:e.jsx(mn,{size:18,color:"#666"})})]}):null},xn=function(t){var r=t.type,i=t.content,a=t.duration,o=void 0===a?3e3:a,l=t.className,s=void 0===l?"":l,c=t.style,d=t.onClose,u=n.useState(!0),p=u[0],f=u[1];if(n.useEffect(function(){if(o>0){var e=setTimeout(function(){f(!1),null==d||d()},o);return function(){return clearTimeout(e)}}},[o,d]),!p)return null;return e.jsx("div",{className:"zjpcy-message zjpcy-message--".concat(r," ").concat(s," ").concat(p?"zjpcy-message--show":""),style:c,children:e.jsxs("div",{className:"zjpcy-message-content",children:[e.jsx(B,{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(--zjpcy-success-color)";case"warning":return"var(--zjpcy-warning-color)";case"error":return"var(--zjpcy-error-color)";default:return"var(--zjpcy-primary-color)"}}()}),e.jsx("span",{className:"zjpcy-message-text",children:i})]})})},yn=0,bn=new Map,jn=function(e){var n=bn.get(e);if(n){var t=n.container;n.root.unmount(),document.body.contains(t)&&document.body.removeChild(t),bn.delete(e)}},_n=function(n,t,r){void 0===r&&(r=3e3);var i=++yn,o=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}(),l=a.createRoot(o);l.render(e.jsx(xn,{type:n,content:t,duration:r,onClose:function(){jn(i)}})),bn.set(i,{container:o,root:l});var s=setTimeout(function(){jn(i)},r);return{close:function(){clearTimeout(s),jn(i)}}},Cn={success:function(e,n){_n("success",e,n)},warning:function(e,n){_n("warning",e,n)},error:function(e,n){_n("error",e,n)},info:function(e,n){_n("info",e,n)},close:function(){bn.forEach(function(e,n){return jn(n)})}},wn=n.createContext({message:null}),Nn=function(t){var r,i=t.visible,a=t.title,l=void 0===a?"标题":a,s=t.width,c=void 0===s?600:s,d=t.height,u=void 0===d?"auto":d,p=t.headerHeight,h=void 0===p?40:p,g=t.footerHeight,v=void 0===g?40:g,x=t.confirmLoading,y=void 0!==x&&x,b=t.direction,j=void 0===b?"normal":b,_=t.top,C=t.onCancel,w=t.onOk,N=t.children,z=t.footer,E=void 0===z?null:z,S=t.bordered,T=void 0!==S&&S,O=t.className,k=t.style,L=t.okText,A=void 0===L?"确认":L,M=t.cancelText,I=void 0===M?"取消":M,D=t.getContainer,R=void 0===D?function(){return document.body}:D,H=t.maskStyle,P=t.maskClassName,V=t.zIndex,U=void 0===V?1e3:V,F=t.contentClassName,Y=t.contentStyle,G=t.destroyOnClose,$=void 0!==G&&G,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(!1),re=te[0],ie=te[1],ae=n.useState({x:0,y:0}),oe=ae[0],le=ae[1],se=n.useRef(null),ce=j,de=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){se.current={x:e.clientX,y:e.clientY}};return document.addEventListener("mousedown",e,!0),function(){document.removeEventListener("mousedown",e,!0)}},[]),n.useEffect(function(){if(i){var e=function(){var e=se.current;if(!e||"undefined"==typeof window)return{x:0,y:0};var n=u?de(u):0;if("center"===ce&&void 0!==_){var t=window.innerWidth/2,r=_+(n>0?n/2:0);return{x:e.x-t,y:e.y-r}}if("center"===ce)return t=window.innerWidth/2,r=window.innerHeight/2,{x:e.x-t,y:e.y-r};if(void 0!==_&&n>0)return t=window.innerWidth/2,r=_+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}}();le(e),ne(!1),requestAnimationFrame(function(){J(!0)});var n=setTimeout(function(){ie(!0)},50);return function(){return clearTimeout(n)}}ne(!0),ie(!1);var t=setTimeout(function(){J(!1),ne(!1)},550);return function(){return clearTimeout(t)}},[i,550,u,_,$]);var ue=function(){ne(!0);var e=setTimeout(function(){J(!1),ne(!1),null==C||C()},550);return function(){return clearTimeout(e)}},fe=function(){null==w||w()},he=m(((r={width:"number"==typeof c?"".concat(c,"px"):c,top:void 0!==_?"".concat(_,"px"):void 0})["--zjpcy-modal-origin-x"]="".concat(oe.x,"px"),r["--zjpcy-modal-origin-y"]="".concat(oe.y,"px"),r.visibility=re?"visible":"hidden",r),k),ge={height:"number"==typeof h?"".concat(h,"px"):h},me=u?de(u):0,ve=de(h),xe=de(v),ye=me>0?Math.max(0,me-ve-xe):void 0,be=m({},Y);if(!be.maxHeight&&u){var je=de(u);be.maxHeight="".concat(je,"px")}!be.maxHeight&&ye&&(be.maxHeight="".concat(ye,"px"));var _e={height:"number"==typeof v?"".concat(v,"px"):v},Ce=function(){if(!q&&!ee)return null;var n=m({zIndex:U},H);return e.jsx("div",{className:f.default("zjpcy-modal-overlay",{"zjpcy-modal-overlay--visible":q&&!ee,"zjpcy-modal-overlay--closing":ee,"zjpcy-modal-overlay--custom-top":void 0!==_},O,P),onClick:ue,style:n,children:e.jsxs("div",{className:f.default("zjpcy-modal-container",{"zjpcy-modal-container--center-top":re&&!ee&&"center"===ce&&void 0!==_,"zjpcy-modal-container--center":re&&!ee&&"center"===ce&&void 0===_,"zjpcy-modal-container--top-right":re&&!ee&&"top-right"===ce,"zjpcy-modal-container--bottom-right":re&&!ee&&"bottom-right"===ce,"zjpcy-modal-container--bottom-left":re&&!ee&&"bottom-left"===ce,"zjpcy-modal-container--normal":re&&!ee&&"normal"===ce,"zjpcy-modal-container--closing-center-top":ee&&"center"===ce&&void 0!==_,"zjpcy-modal-container--closing-center":ee&&"center"===ce&&void 0===_,"zjpcy-modal-container--closing-top-right":ee&&"top-right"===ce,"zjpcy-modal-container--closing-bottom-right":ee&&"bottom-right"===ce,"zjpcy-modal-container--closing-bottom-left":ee&&"bottom-left"===ce,"zjpcy-modal-container--closing-normal":ee&&"normal"===ce,"zjpcy-modal-container--bordered":T,"zjpcy-modal-container--has-height":void 0!==u}),style:he,onClick:function(e){return e.stopPropagation()},children:[K?Z?e.jsx("div",{className:"zjpcy-modal-loading",children:e.jsx("div",{className:"zjpcy-modal-loading-content",children:Z})}):e.jsx("div",{className:"zjpcy-modal-loading",children:e.jsx("div",{className:"zjpcy-modal-loading-content",children:e.jsx("div",{className:"zjpcy-modal-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"zjpcy-modal-loading-icon",children:[e.jsx("circle",{className:"zjpcy-modal-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"zjpcy-modal-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})})})}):null,e.jsxs("div",{className:"zjpcy-modal-header",style:ge,children:[e.jsx("div",{className:"zjpcy-modal-header__left",children:e.jsx("span",{className:"zjpcy-modal-header__title",children:l})}),e.jsx("div",{className:"zjpcy-modal-header__right",children:e.jsx("div",{className:"zjpcy-modal-close-btn",onClick:ue,children:e.jsx(B,{type:"close",size:20,color:"currentColor"})})})]}),q&&e.jsx("div",{className:f.default("zjpcy-modal-content",F),style:be,children:$&&ee?null:N}),e.jsx(Xe,{className:"zjpcy-modal-footer",align:"center",justify:"flex-end",style:Object.assign({},_e,{padding:"0px 10px"}),gap:12,children:null===E?e.jsxs(Xe,{className:"zjpcy-modal-footer__actions",justify:"flex-end",gap:12,children:[e.jsx(pe,{variant:"secondary",onClick:ue,disabled:y,children:I||"取消"}),e.jsx(pe,{variant:"primary",onClick:fe,loading:y,children:A||"确认"})]}):E})]})})}();if(!Ce)return null;if(!1===R)return Ce;var we="function"==typeof R?R():R;return we?o.createPortal(Ce,we):Ce},zn={};Object.defineProperty(zn,"__esModule",{value:!0});var En=p.default;function Sn(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Tn=Sn(En);!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 On=En.forwardRef(function({style:e={},className:n="",autoFill:t=!1,play:r=!0,pauseOnHover:i=!1,pauseOnClick:a=!1,direction:o="left",speed:l=50,delay:s=0,loop:c=0,gradient:d=!1,gradientColor:u="white",gradientWidth:p=200,onFinish:f,onCycleComplete:h,onMount:g,children:m},v){const[x,y]=En.useState(0),[b,j]=En.useState(0),[_,C]=En.useState(1),[w,N]=En.useState(!1),z=En.useRef(null),E=v||z,S=En.useRef(null),T=En.useCallback(()=>{if(S.current&&E.current){const e=E.current.getBoundingClientRect(),n=S.current.getBoundingClientRect();let r=e.width,i=n.width;"up"!==o&&"down"!==o||(r=e.height,i=n.height),C(t&&r&&i&&i<r?Math.ceil(r/i):1),y(r),j(i)}},[t,E,o]);En.useEffect(()=>{if(w&&(T(),S.current&&E.current)){const e=new ResizeObserver(()=>T());return e.observe(E.current),e.observe(S.current),()=>{e&&e.disconnect()}}},[T,E,w]),En.useEffect(()=>{T()},[T,m]),En.useEffect(()=>{N(!0)},[]),En.useEffect(()=>{"function"==typeof g&&g()},[]);const O=En.useMemo(()=>t?b*_/l:b<x?x/l:b/l,[t,x,b,_,l]),k=En.useMemo(()=>Object.assign(Object.assign({},e),{"--pause-on-hover":!r||i?"paused":"running","--pause-on-click":!r||i&&!a||a?"paused":"running","--width":"up"===o||"down"===o?"100vh":"100%","--transform":"up"===o?"rotate(-90deg)":"down"===o?"rotate(90deg)":"none"}),[e,r,i,a,o]),L=En.useMemo(()=>({"--gradient-color":u,"--gradient-width":"number"==typeof p?`${p}px`:p}),[u,p]),A=En.useMemo(()=>({"--play":r?"running":"paused","--direction":"left"===o?"normal":"reverse","--duration":`${O}s`,"--delay":`${s}s`,"--iteration-count":c?`${c}`:"infinite","--min-width":t?"auto":"100%"}),[r,o,O,s,c,t]),M=En.useMemo(()=>({"--transform":"up"===o?"rotate(90deg)":"down"===o?"rotate(-90deg)":"none"}),[o]),I=En.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,n)=>Tn.default.createElement(En.Fragment,{key:n},En.Children.map(m,e=>Tn.default.createElement("div",{style:M,className:"rfm-child"},e)))),[M,m]);return w?Tn.default.createElement("div",{ref:E,style:k,className:"rfm-marquee-container "+n},d&&Tn.default.createElement("div",{style:L,className:"rfm-overlay"}),Tn.default.createElement("div",{className:"rfm-marquee",style:A,onAnimationIteration:h,onAnimationEnd:f},Tn.default.createElement("div",{className:"rfm-initial-child-container",ref:S},En.Children.map(m,e=>Tn.default.createElement("div",{style:M,className:"rfm-child"},e))),I(_-1)),Tn.default.createElement("div",{className:"rfm-marquee",style:A},I(_))):null});var kn=zn.default=On,Ln=function(n){var t=n.text,r=void 0===t?"":t,i=n.speed,a=void 0===i?50:i,o=n.height,l=void 0===o?60:o,s=n.icon,c=void 0===s?null:s,d=n.styles,u=void 0===d?{}:d,f=n.closeStyle,h=void 0===f?{}:f,g=n.showCloseButton,v=void 0!==g&&g,x=n.floatingTop,y=void 0!==x&&x,b=n.pauseOnHover,j=void 0===b||b,_=n.type,C=void 0===_?"primary":_,w=n.className,N=void 0===w?"":w,z=p.default.useState(!0),E=z[0],S=z[1];if(!r||!E)return null;return e.jsxs("div",{className:"zjpcy-notice zjpcy-notice--".concat(C," ").concat(y?"zjpcy-notice-floating":""," ").concat(N),style:m({height:"".concat(l,"px")},u),children:[e.jsxs(kn,{pauseOnHover:j,speed:a,gradient:!1,children:[e.jsx("span",{style:{width:"1200px"}}),Array.isArray(r)?e.jsx("div",{className:"zjpcy-notice-content",children:r.map(function(n,t){return e.jsxs("span",{style:{marginRight:"15px",display:"inline-block"},children:[c?e.jsx("span",{className:"zjpcy-notice-icon",children:c}):null,e.jsx("span",{className:"zjpcy-notice-text",children:n})]},t)})}):e.jsx("div",{className:"zjpcy-notice-content",children:e.jsxs("span",{children:[c?e.jsx("span",{className:"zjpcy-notice-icon",children:c}):null,e.jsx("span",{className:"zjpcy-notice-text",children:r})]})})]}),v&&e.jsx("div",{className:"zjpcy-notice-close",style:m({height:"".concat(l,"px")},h),onClick:function(){S(!1)},children:e.jsx("span",{className:"zjpcy-notice-close-icon",children:"×"})})]})},An=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"})}},Mn=function(t){var r=t.message,i=t.duration,a=void 0===i?3e3:i,o=t.type,l=void 0===o?"info":o,s=t.position,c=void 0===s?"center":s,d=t.color,u=t.top,p=t.open,f=t.clickOutsideToClose,h=void 0!==f&&f,g=t.onClose,v=void 0!==p,x=n.useState(!0),y=x[0],b=x[1],j=n.useState(!0),_=j[0],C=j[1],w=n.useRef(null),N=v?p:y;if(n.useEffect(function(){var e=function(e){h&&w.current&&!w.current.contains(e.target)&&(C(!1),setTimeout(function(){g&&g(),v||b(!1)},500))};return h&&N&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[h,N,v,g]),n.useEffect(function(){v&&(p?C(!0):(C(!1),setTimeout(function(){g&&g()},500)))},[p,v,g]),n.useEffect(function(){if(N){var e=setTimeout(function(){C(!1),setTimeout(function(){g&&g(),v||b(!1)},500)},a);return function(){return clearTimeout(e)}}},[a,N,v,g]),!N||!_)return null;var z="notification-".concat(l),E=d?"notification-custom":"",S=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}(),T=m({backgroundColor:d},S),O=void 0===u?"notification-".concat(c):"";return e.jsx("div",{ref:w,className:"notification ".concat(z," ").concat(O," ").concat(E," ").concat(_?"fade-in":"fade-out"),style:T,children:e.jsxs("div",{className:"notification-content",children:[An(l),e.jsx("span",{children:r})]})})},In=n.createContext(void 0),Dn=function(t){var r,i=t.value,a=t.checked,o=t.defaultChecked,l=void 0!==o&&o,s=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.size,p=t.children,h=t.className,g=t.style,v=t.label,x=t.labelGap,y=void 0===x?8:x,b=t.labelClassName,j=void 0===b?"":b,_=t.labelStyle,C=n.useContext(In),w=!!C,N=n.useRef(null),z=n.useState(l),E=z[0],S=z[1],T=w?C.value===i:void 0!==a?a:E,O=u||(w?C.size:void 0),k="button"===(w?C.type:void 0);n.useEffect(function(){if(w&&C.registerRadio)return C.registerRadio(i,N.current),function(){var e;null===(e=C.unregisterRadio)||void 0===e||e.call(C,i)}},[w,i,C]),n.useEffect(function(){T&&w&&C.updateIndicator&&requestAnimationFrame(function(){var e;null===(e=C.updateIndicator)||void 0===e||e.call(C)})},[T,w]),n.useEffect(function(){w||void 0===a||S(a)},[a,w]);var L=f.default("zjpcy-radio",((r={"zjpcy-radio--checked":T,"zjpcy-radio--unchecked":!T,"zjpcy-radio--disabled":d||w&&C.disabled,"zjpcy-radio--disabled-checked":T&&(d||w&&C.disabled)})["zjpcy-radio--".concat(O)]=O,r["zjpcy-radio--button"]=k,r),h);return e.jsx("label",{ref:N,className:L,style:g,children:e.jsxs("div",{className:"zjpcy-radio-wrapper",style:{display:"flex",alignItems:"center"},children:[v&&e.jsx("div",{className:"zjpcy-radio-label ".concat(j),style:m({marginRight:"number"==typeof y?"".concat(y,"px"):y},_),children:v}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[e.jsx("input",{type:"radio",className:"zjpcy-radio__input",checked:T,onChange:function(e){var n,t=e.target.checked;d||w&&C.disabled||(w?null===(n=C.onChange)||void 0===n||n.call(C,i):(S(t),null==s||s(t,i)))},disabled:d||w&&C.disabled,value:i}),!k&&e.jsx("span",{className:"zjpcy-radio__inner"}),p&&e.jsx("span",{className:"zjpcy-radio__label",children:p})]})]})})};Dn.Group=function(t){var r,i=t.value,a=t.defaultValue,o=t.onChange,l=t.disabled,s=void 0!==l&&l,c=t.type,d=void 0===c?"radio":c,u=t.size,p=void 0===u?"middle":u,h=t.children,g=t.className,m=t.style,v=n.useState(a),x=v[0],y=v[1],b=n.useRef(null),j=n.useRef(new Map),_=n.useState({width:0,height:0,transform:"translateX(0px)"}),C=_[0],w=_[1],N=void 0!==i?i:x,z=n.useCallback(function(e,n){n&&j.current.set(e,n)},[]),E=n.useCallback(function(e){j.current.delete(e)},[]),S=n.useCallback(function(){if("button"===d&&b.current){var e=j.current.get(N);if(e){var n=b.current.getBoundingClientRect(),t=e.getBoundingClientRect(),r=t.left-n.left;w({width:t.width,height:t.height,transform:"translateX(".concat(r,"px)")})}}},[N,d]);n.useEffect(function(){if("button"===d){var e=requestAnimationFrame(function(){S()});return function(){return cancelAnimationFrame(e)}}},[d,S]),n.useEffect(function(){if("button"===d){var e=function(){S()};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[d,S]),n.useEffect(function(){void 0!==i&&y(i)},[i]);var T=f.default("zjpcy-radio-group",((r={"zjpcy-radio-group--button":"button"===d})["zjpcy-radio-group--".concat(p)]=p,r["zjpcy-radio-group--button-large"]="button"===d&&"large"===p,r["zjpcy-radio-group--button-middle"]="button"===d&&"middle"===p,r["zjpcy-radio-group--button-small"]="button"===d&&"small"===p,r),g);return e.jsx(In.Provider,{value:{value:N,onChange:function(e){y(e),null==o||o(e)},disabled:s,type:d,size:p,registerRadio:z,unregisterRadio:E,updateIndicator:S},children:e.jsxs("div",{ref:b,className:T,style:m,children:["button"===d&&e.jsx("div",{className:"zjpcy-radio-group__indicator",style:{width:C.width,height:C.height,transform:C.transform}}),h]})})},Dn.displayName="Radio",Dn.Group.displayName="Radio.Group";var Rn,Hn,Pn,Vn,Bn,Un,Fn,Yn,Gn,$n,Wn,Kn,Zn,Xn,qn,Jn,Qn,et,nt,tt,rt=Dn,it=function(e,n){return"var(".concat(e,", ").concat(n,")")},at=h.default.div(Rn||(Rn=j(["\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")}),ot=h.default.div(Hn||(Hn=j(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),lt=h.default.div(Pn||(Pn=j(["\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"])),it("--zjpcy-text-color","rgba(0, 0, 0, 0.85)")),st=h.default.div(Vn||(Vn=j(["\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?it("--zjpcy-primary-color","#1890ff"):it("--zjpcy-input-border","#d9d9d9")},it("--zjpcy-border-radius-lg","8px"),it("--zjpcy-bg-color-white","#fff"),it("--zjpcy-bg-color","#fafafa"),it("--zjpcy-transition-duration","0.2s"),it("--zjpcy-transition-timing-function","ease-in-out"),function(e){return e.$open?it("--zjpcy-input-box-shadow-focus","0 0 0 2px rgba(51, 154, 240, 0.2)"):it("--zjpcy-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?it("--zjpcy-opacity-disabled","0.65"):1},function(e){return e.$disabled?it("--zjpcy-input-border","#d9d9d9"):it("--zjpcy-primary-color","#1890ff")},function(e){return e.$disabled?"none":it("--zjpcy-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")}),ct=h.default.div(Bn||(Bn=j(["\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"]))),dt=h.default.span(Un||(Un=j(["\n color: ",";\n user-select: none;\n"],["\n color: ",";\n user-select: none;\n"])),it("--zjpcy-text-color-light","#bfbfbf")),ut=h.default.span(Fn||(Fn=j(["\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"])),it("--zjpcy-text-color","rgba(0, 0, 0, 0.85)")),pt=h.default.div(Yn||(Yn=j(["\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"]))),ft=h.default.span(Gn||(Gn=j(["\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"])),it("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)"),it("--zjpcy-primary-color","#1890ff"),it("--zjpcy-border-radius-sm","4px"),it("--zjpcy-primary-color","#1890ff"),it("--zjpcy-transition-duration","0.2s"),it("--zjpcy-primary-color","#1890ff"),it("--zjpcy-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")}),ht=h.default.span($n||($n=j(["\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"]))),gt=h.default.input(Wn||(Wn=j(["\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"])),it("--zjpcy-text-color","rgba(0, 0, 0, 0.85)"),it("--zjpcy-text-color-light","#bfbfbf")),mt=h.default.div(Kn||(Kn=j(["\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"]))),vt=h.default.div(Zn||(Zn=j(["\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"])),it("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)"),it("--zjpcy-transition-duration","0.2s"),it("--zjpcy-text-color-secondary","rgba(0, 0, 0, 0.65)")),xt=h.default.div(Xn||(Xn=j(["\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"])),it("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)"),it("--zjpcy-transition-duration","0.2s"),function(e){return e.$open?"rotate(180deg)":"rotate(0deg)"}),yt=h.default.div(qn||(qn=j(["\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"])),it("--zjpcy-primary-color","#1890ff")),bt=h.default.div(Jn||(Jn=j(["\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"])),it("--zjpcy-z-index-modal","1000"),it("--zjpcy-bg-color-white","#fff"),it("--zjpcy-border-color-light","#f0f0f0"),it("--zjpcy-border-radius-md","6px"),it("--zjpcy-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)"},it("--zjpcy-transition-duration","0.2s"),it("--zjpcy-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")}),jt=h.default.div(Qn||(Qn=j(["\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"},it("--zjpcy-border-color","#e8e8e8"),it("--zjpcy-text-color-light","#bfbfbf")),_t=h.default.div(et||(et=j(["\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"},it("--zjpcy-transition-duration","0.2s"),function(e){return e.$selected?it("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)"):"transparent"},function(e){var n=e.$disabled,t=e.$selected;return n?it("--zjpcy-text-color-light","#bfbfbf"):t?it("--zjpcy-primary-color","#1890ff"):it("--zjpcy-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?it("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)"):it("--zjpcy-bg-color","#fafafa")},it("--zjpcy-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")}),Ct=h.default.div(nt||(nt=j(["\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"])),it("--zjpcy-primary-color","#1890ff")),wt=h.default.div(tt||(tt=j(["\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"])),it("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)")),Nt=function(t){var r=t.value,i=t.defaultValue,a=t.options,o=void 0===a?[]:a,l=t.disabled,s=void 0!==l&&l,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,g=t.searchable,v=void 0!==g&&g,x=t.clearable,y=void 0!==x&&x,j=t.size,_=void 0===j?"default":j,C=t.width,w=t.styles,N=t.onChange,z=t.onOpenChange,E=t.onSearch,S=t.optionRender,T=t.tagRender,O=t.label,k=t.labelGap,L=void 0===k?8:k,A=t.labelClassName,M=void 0===A?"":A,I=t.labelStyle,D=t.className,R=void 0===D?"":D,H=t.style,P=t.showArrow,V=void 0===P||P,B=t.maxHeight,U=void 0===B?256:B,F=t.emptyContent,Y=void 0===F?"暂无数据":F,G=t.getPopupContainer,$=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],ae=n.useState(!1),oe=ae[0],le=ae[1],se=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=$?r:K,pe="multiple"===p,fe=n.useMemo(function(){return ee?o.filter(function(e){return String(e.label).toLowerCase().includes(ee.toLowerCase())}):o},[o,ee]),he=n.useMemo(function(){if(pe){var e=Array.isArray(ue)?ue:[];return o.filter(function(n){return e.includes(n.value)})}return o.find(function(e){return e.value===ue})||null},[ue,o,pe]),ge=n.useCallback(function(e,n){$||Z(e),null==N||N(e,n)},[$,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]),ye=n.useCallback(function(e,n){if(e.stopPropagation(),!s){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,s,ge,he]),be=n.useCallback(function(e){(e.stopPropagation(),s)||(ge(pe?[]:"",pe?[]:void 0),ne(""))},[s,pe,ge]),je=n.useCallback(function(e){var n=e.target.value;ne(n),null==E||E(n)},[E]);n.useEffect(function(){var e=function(e){se.current&&!se.current.contains(e.target)&&(J(!1),ne(""))};return q&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[q]),n.useEffect(function(){null==z||z(q),q&&v&&setTimeout(function(){var e;return null===(e=de.current)||void 0===e?void 0:e.focus()},0)},[q,v,z]);var _e,Ce=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]),we=function(n){return T?T({value:n.value,label:n.label,onClose:function(e){return ye(e,n.value)},disabled:s}):e.jsxs(ft,{className:"select-tag",$disabled:s,$styles:null==w?void 0:w.tag,children:[e.jsx("span",{children:n.label}),!s&&e.jsx(ht,{className:"select-tag-close",onClick:function(e){return ye(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,a=S?S(n):e.jsxs(e.Fragment,{children:[r&&pe&&e.jsx(Ct,{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(_t,{className:"select-option ".concat(r?"select-option-selected":""," ").concat(i?"select-option-active":""),$selected:r,$active:i,$disabled:!!n.disabled,$styles:null==w?void 0:w.option,onClick:function(){return xe(n)},onMouseEnter:function(){return ie(t)},children:a},n.value)},ze=pe?Array.isArray(ue)&&ue.length>0:""!==ue&&null!=ue,Ee=y&&!s&&ze&&!d&&oe,Se=V&&!d&&!Ee;return e.jsx(at,{ref:se,className:"select-wrapper ".concat(R),$styles:null==w?void 0:w.wrapper,style:m({width:C},H),children:e.jsxs(ot,{children:[O&&e.jsx(lt,{className:"select-label ".concat(M),style:m({marginRight:"number"==typeof L?"".concat(L,"px"):L},I),children:O}),e.jsxs("div",{style:{flex:1,position:"relative"},children:[e.jsxs(st,{className:"select-selector ".concat(_?"select-selector-".concat(_):""," ").concat(q?"select-selector-open":""," ").concat(s?"select-selector-disabled":""),$disabled:s,$loading:d,$size:_,$open:q,$styles:null==w?void 0:w.selector,onClick:function(){return!s&&!d&&J(!q)},onKeyDown:Ce,onMouseEnter:function(){return le(!0)},onMouseLeave:function(){return le(!1)},tabIndex:s?-1:0,role:"combobox","aria-expanded":q,"aria-haspopup":"listbox",children:[e.jsx(ct,{children:function(){if(v&&q){var n=pe?"搜索...":String((null==he?void 0:he.label)||h);return e.jsx(gt,{ref:de,type:"text",value:ee,onChange:je,placeholder:n,onClick:function(e){return e.stopPropagation()}})}if(pe){var t=he;return t.length>0?e.jsx(pt,{children:t.map(we)}):e.jsx(dt,{children:h})}var r=he;return r?e.jsx(ut,{children:r.label}):e.jsx(dt,{children:h})}()}),e.jsxs(mt,{children:[Ee&&e.jsx(vt,{className:"select-clear",onClick:be,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(yt,{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"})})}),Se&&e.jsx(xt,{className:"select-arrow ".concat(q?"select-arrow-open":""),$open:q,children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M7 10l5 5 5-5z"})})})]})]}),(_e=e.jsx(bt,{ref:ce,className:"select-dropdown",$open:q,$styles:null==w?void 0:w.dropdown,children:e.jsx(jt,{$maxHeight:U,children:fe.length>0?fe.map(Ne):e.jsx(wt,{className:"select-empty",children:Y})})}),G?G()?_e:null:_e)]})]})})},zt=function(t){var r=t.value,i=t.options,a=t.onChange,o=n.useState(!1),l=o[0],s=o[1],c=n.useRef(null),d=n.useRef(null),u=n.useState({}),p=u[0],h=u[1],g=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,a=(null===(n=d.current)||void 0===n?void 0:n.offsetHeight)||200,o=t.left+t.width/2-i/2+window.scrollX,l=r-t.bottom,s=l>=a||l>=t.top;h(s?{top:t.bottom+window.scrollY+6,left:o,width:"auto",minWidth:Math.max(i,120)}:{top:t.top+window.scrollY-a-6,left:o,width:"auto",minWidth:Math.max(i,120)})}},[]);n.useEffect(function(){var e=function(e){c.current&&!c.current.contains(e.target)&&s(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),n.useEffect(function(){if(l){g();var e=function(){return g()};return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[l,g]);return e.jsxs("div",{className:"zjpcy-page-size-select",ref:c,children:[e.jsxs("div",{className:f.default("zjpcy-page-size-select-trigger",{"zjpcy-page-size-select-trigger-open":l}),onClick:function(){s(!l),l||setTimeout(g,0)},children:[e.jsxs("span",{className:"zjpcy-page-size-select-value",children:[r," 条/页"]}),e.jsx("svg",{className:"zjpcy-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"})})]}),l&&e.jsx("div",{className:"zjpcy-page-size-select-dropdown zjpcy-page-size-select-dropdown-open",ref:d,style:p,children:i.map(function(n){var t="number"==typeof n?n:parseInt(n,10);return e.jsxs("div",{className:f.default("zjpcy-page-size-select-option",{"zjpcy-page-size-select-option-selected":r===t}),onClick:function(){return a(t),void s(!1)},children:[n," 条/页"]},n)})})]})},Et=function(t){var r=t.total,i=void 0===r?0:r,a=t.current,o=t.pageSize,l=void 0===o?10:o,s=t.onChange,c=t.pageSizeOptions,d=void 0===c?["10","20","50","100"]:c,u=t.showSizeChanger,p=void 0!==u&&u,h=t.showQuickJumper,g=void 0!==h&&h,m=t.showTotal,v=t.size,x=void 0===v?"default":v,y=t.align,b=t.className,j=void 0===b?"":b,_=t.style,C=n.useState(1),w=C[0],N=C[1],z=n.useState(l),E=z[0],S=z[1],T=n.useRef(!0),O=void 0!==a?a:w,k=void 0!==l?l:E,L=Math.ceil(i/k),A=n.useRef(s);A.current=s,n.useEffect(function(){void 0!==l&&S(l)},[l]),n.useEffect(function(){void 0!==a&&N(a)},[a]),n.useEffect(function(){if(T.current)T.current=!1;else if(O>L&&L>0){var e=L;void 0===a&&N(e),A.current&&A.current(e,k)}},[O,L,a,k]);var M=function(e){e===O||e<1||e>L||(void 0===a&&N(e),s&&s(e,k))},I=(O-1)*k+1,D=Math.min(O*k,i),R="center"===y?"zjpcy-pagination-align-center":"flex-end"===y?"zjpcy-pagination-align-right":"";return e.jsxs("div",{className:f.default("zjpcy-pagination",{"zjpcy-pagination-mini":"small"===x},R,j),style:_,children:[m&&e.jsx("div",{className:"zjpcy-pagination-total-text",children:m(i,[I,D])}),e.jsxs("ul",{className:"zjpcy-pagination-list",children:[e.jsx("li",{className:"zjpcy-pagination-prev ".concat(O<=1?"zjpcy-pagination-prev-disabled":""),onClick:function(){O>1&&M(O-1)},children:e.jsx(B,{type:"arrowLeft"})}),function(){if(L<=7)return Array.from({length:L},function(e,n){return n+1});var e=[];if(e.push(1),O<=4){for(var n=2;n<=5;n++)e.push(n);e.push("..."),e.push(L)}else if(O>=L-3){e.push("...");for(n=L-4;n<=L-1;n++)e.push(n);e.push(L)}else{e.push("...");for(n=O-1;n<=O+1;n++)e.push(n);e.push("..."),e.push(L)}return e}().map(function(n,t){return e.jsx("li",{className:"number"==typeof n?"zjpcy-pagination-item ".concat(n===O?"zjpcy-pagination-item-active":""):"zjpcy-pagination-ellipsis",onClick:function(){return"number"==typeof n&&M(n)},children:n},t)}),e.jsx("li",{className:"zjpcy-pagination-next ".concat(O>=L?"zjpcy-pagination-next-disabled":""),onClick:function(){O<L&&M(O+1)},children:e.jsx(B,{type:"arrowRight"})})]}),(p||g)&&e.jsxs("div",{className:"zjpcy-pagination-options",children:[p&&e.jsx(zt,{value:k,options:d,onChange:function(e){return function(e){var n=parseInt(e,10);void 0===l&&S(n),void 0===a&&N(1),s&&s(1,n)}(e.toString())}}),g&&e.jsxs("div",{className:"zjpcy-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<=L&&(M(t),n.value="")}},placeholder:"页码"}),"页"]})]})]})},St=function(t){var r=t.children,i=t.title,a=t.placement,l=void 0===a?"top":a,s=t.trigger,c=void 0===s?"hover":s,d=t.delay,u=void 0===d?100:d,p=t.open,f=t.backgroundColor,h=t.style,g=void 0===h?{}:h,v=t.className,x=void 0===v?"":v,y=n.useState(!1),b=y[0],j=y[1],_=n.useState(!1),C=_[0],w=_[1],N=n.useState({top:0,left:0}),z=N[0],E=N[1],S=n.useRef(null),T=n.useRef(null),O=n.useRef(null),k=n.useRef(null),L=void 0!==p,A=(L?p:b)||C,M=n.useCallback(function(){if(S.current&&T.current){var e=S.current.getBoundingClientRect(),n=T.current.getBoundingClientRect(),t=0,r=0;switch(l){case"top":t=e.top-n.height-8,r=e.left+(e.width-n.width)/2;break;case"bottom":t=e.bottom+8,r=e.left+(e.width-n.width)/2;break;case"left":t=e.top+(e.height-n.height)/2,r=e.left-n.width-8;break;case"right":t=e.top+(e.height-n.height)/2,r=e.right+8}E({top:t,left:r})}},[l]),I=n.useCallback(function(){i&&(k.current&&(clearTimeout(k.current),k.current=null),L||(j(!0),requestAnimationFrame(function(){w(!0)})))},[i,L]),D=n.useCallback(function(){L||(w(!1),k.current=setTimeout(function(){j(!1),k.current=null},200))},[L]),R=n.useCallback(function(e){if("click"===c&&!L&&b){var n=e.target;S.current&&!S.current.contains(n)&&T.current&&!T.current.contains(n)&&D()}},[c,L,b,D]);n.useEffect(function(){L&&(p?(k.current&&(clearTimeout(k.current),k.current=null),requestAnimationFrame(function(){w(!0)})):(w(!1),k.current=setTimeout(function(){k.current=null},200)))},[p,L]),n.useEffect(function(){if(A){requestAnimationFrame(M);var e=function(){return M()},n=function(){return M()};return window.addEventListener("resize",e),window.addEventListener("scroll",n,!0),"click"!==c||L||document.addEventListener("click",R),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",n,!0),"click"!==c||L||document.removeEventListener("click",R)}}},[A,l,c,L,M,R]),n.useEffect(function(){return function(){O.current&&clearTimeout(O.current),k.current&&clearTimeout(k.current)}},[]);var H=A&&i&&e.jsxs("div",{ref:T,className:"zjpcy-tooltip zjpcy-tooltip-".concat(l," ").concat(C?"is-visible":""," ").concat(x),style:m({position:"fixed",top:z.top,left:z.left,zIndex:1e3,backgroundColor:f},g),onMouseEnter:"hover"!==c||L?void 0:function(){k.current&&(clearTimeout(k.current),k.current=null),j(!0),w(!0)},onMouseLeave:"hover"!==c||L?void 0:D,children:[e.jsx("div",{className:"zjpcy-tooltip-content",children:i}),e.jsx("div",{className:"zjpcy-tooltip-arrow",style:{backgroundColor:f}})]});return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:S,onMouseEnter:"hover"===c?function(){"hover"!==c||L||(O.current&&clearTimeout(O.current),O.current=setTimeout(function(){I(),O.current=null},u))}:void 0,onMouseLeave:"hover"===c?function(){"hover"!==c||L||(O.current&&(clearTimeout(O.current),O.current=null),D())}:void 0,onClick:"click"===c?function(){"click"!==c||L||(b?D():I())}:void 0,style:{display:"inline-block"},children:r}),H&&o.createPortal(H,document.body)]})},Tt=n.createContext(void 0),Ot=function(t){var r,i=t.value,a=t.checked,o=t.defaultChecked,l=void 0!==o&&o,s=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.indeterminate,p=void 0!==u&&u,h=t.children,g=t.className,v=t.style,x=t.label,y=t.labelGap,j=void 0===y?8:y,_=t.labelClassName,C=void 0===_?"":_,w=t.labelStyle,N=n.useContext(Tt),z=!!N,E=n.useState(l),S=E[0],T=E[1],O=z?null===(r=N.value)||void 0===r?void 0:r.includes(i):void 0!==a?a:S;n.useEffect(function(){z||void 0===a||T(a)},[a,z]);var k=d||z&&N.disabled,L=f.default("zjpcy-checkbox",{"zjpcy-checkbox--checked":O,"zjpcy-checkbox--disabled":k,"zjpcy-checkbox--indeterminate":p,"zjpcy-checkbox--disabled-checked":k&&O,"zjpcy-checkbox--disabled-indeterminate":k&&p},g);return e.jsx("label",{className:L,style:v,children:e.jsxs("div",{className:"zjpcy-checkbox-wrapper",style:{display:"flex",alignItems:"center"},children:[x&&e.jsx("div",{className:"zjpcy-checkbox-label ".concat(C),style:m({marginRight:"number"==typeof j?"".concat(j,"px"):j},w),children:x}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[e.jsx("input",{type:"checkbox",className:"zjpcy-checkbox__input",checked:O,onChange:function(e){var n,t=e.target.checked;if(!(d||z&&N.disabled))if(z){var r=N.value||[],a=void 0;a=t?b(b([],r,!0),[i],!1):r.filter(function(e){return e!==i}),null===(n=N.onChange)||void 0===n||n.call(N,a)}else T(t),null==s||s(t,i)},disabled:d||z&&N.disabled,value:i,ref:function(e){e&&(e.indeterminate=p)}}),e.jsx("span",{className:"zjpcy-checkbox__inner"}),h&&e.jsx("span",{className:"zjpcy-checkbox__label",children:h})]})]})})};Ot.Group=function(t){var r=t.value,i=t.defaultValue,a=void 0===i?[]:i,o=t.onChange,l=t.disabled,s=void 0!==l&&l,c=t.options,d=t.children,u=t.className,p=t.style,h=t.layout,g=void 0===h?"vertical":h,v=t.gap,x=void 0===v?8:v,y=n.useState(a||[]),b=y[0],j=y[1];n.useEffect(function(){void 0!==r&&j(r)},[r]);var _=f.default("zjpcy-checkbox-group",{"zjpcy-checkbox-group--horizontal":"horizontal"===g},u),C=m(m({},p),{gap:"number"==typeof x?"".concat(x,"px"):x});return e.jsx(Tt.Provider,{value:{value:void 0!==r?r:b,onChange:function(e){j(e),null==o||o(e)},disabled:s},children:e.jsx("div",{className:_,style:C,children:c?c.map(function(n,t){var r;return e.jsx(Ot,{value:n.value,disabled:n.disabled||s,children:n.label},null!==(r=n.value)&&void 0!==r?r:t)}):d})})},Ot.displayName="Checkbox",Ot.Group.displayName="Checkbox.Group";var kt=Ot,Lt=function(n){var t=n.id,r=n.record,i=n.rowIndex,a=n.allColumns,o=n.renderTableCell,l=n.isRowSelectionEnabled,d=n.rowSelection,u=n.selectedRowKeys,p=void 0===u?[]:u,h=n.handleRowSelect,g=s.useSortable({id:t}),v=g.attributes,x=g.listeners,y=g.setNodeRef,b=g.transform,j=g.transition,_=g.isDragging,C={transform:c.CSS.Transform.toString(b),transition:j,opacity:_?.5:1,cursor:"grab"};return e.jsxs("tr",m({ref:y,style:C},v,x,{className:f.default("zjpcy-table-sortable-row",{"zjpcy-table-sortable-row-dragging":_}),"data-dragging":_,children:[l&&function(){var n,a=p.includes(t),o=null===(n=null==d?void 0:d.getCheckboxProps)||void 0===n?void 0:n.call(d,r,i),l=(null==o?void 0:o.disabled)||!1,s={width:(null==d?void 0:d.columnWidth)||"50px",textAlign:"center",backgroundColor:"white"};return e.jsx("td",{style:s,children:"checkbox"===(null==d?void 0:d.type)?e.jsx(kt,{checked:a,disabled:l,onChange:function(e){return null==h?void 0:h(r,i,e)}}):e.jsx(rt,{checked:a,disabled:l,onChange:function(){return null==h?void 0:h(r,i,!a)}})},"zjpcy-table-sortable-selection-".concat(t))}(),a.map(function(e,n){return o(e,r,i,n,a)})]}))},At=function(t){var r=t.dataSource,i=void 0===r?[]:r,a=t.columns,o=void 0===a?[]:a,c=t.bordered,d=void 0!==c&&c,u=t.scroll,h=void 0===u?{}:u,g=t.rowKey,x=void 0===g?"key":g,y=t.className,j=void 0===y?"":y,_=t.pagination,C=t.empty,w=t.loading,N=void 0!==w&&w,z=t.loadingText,E=void 0===z?"加载中...":z,S=t.loadingDelay,T=t.draggable,O=void 0!==T&&T,k=t.onDragEnd,L=t.rowSelection,A=n.useState([]),M=A[0],I=A[1],D=n.useState([]),R=D[0],H=D[1],P=n.useState([]),V=P[0],U=P[1],F=n.useState([]),Y=F[0],G=F[1],$=n.useState(1),W=$[0],K=$[1],Z=n.useState(10),X=Z[0],q=Z[1],J=n.useState(N),Q=J[0],ee=J[1],ne=n.useState(i),te=ne[0],re=ne[1],ie=n.useRef(null),ae=n.useRef(null),oe=n.useRef(null),le=n.useRef(null),se=n.useRef(null),ce=n.useRef(0),de=n.useRef(!1),ue=n.useRef(null),pe=n.useRef(0),fe=n.useState(null),he=fe[0],ge=fe[1],me=n.useState(""),xe=me[0],ye=me[1],be=null==L?void 0:L.type,je="checkbox"===be||"radio"===be,_e=n.useState((null==L?void 0:L.defaultSelectedRowKeys)||[]),Ce=_e[0],we=_e[1],Ne=void 0!==(null==L?void 0:L.selectedRowKeys)?L.selectedRowKeys:Ce;n.useEffect(function(){re(i)},[i]),n.useEffect(function(){return ie.current&&(clearTimeout(ie.current),ie.current=null),N&&S&&S>0?(ee(!0),ie.current=setTimeout(function(){ee(!1)},S)):ee(N),function(){ie.current&&clearTimeout(ie.current)}},[N,S]),n.useEffect(function(){_&&"object"==typeof _&&(void 0!==_.current&&K(_.current),void 0!==_.pageSize&&q(_.pageSize))},[_&&"object"==typeof _?_.current:void 0,_&&"object"==typeof _?_.pageSize:void 0]),n.useEffect(function(){return function(){se.current&&cancelAnimationFrame(se.current),ue.current&&clearTimeout(ue.current)}},[]);var ze=function(e){return e?"number"==typeof e?e:parseInt(e,10)||0:0};n.useEffect(function(){var e=[],n=[],t=[],r=[];o.forEach(function(i,a){var o=ze(i.width);r[a]=o;var l=m(m({},i),{_index:a});"start"===i.fixed||!0===i.fixed?e.push(l):"end"===i.fixed?n.push(l):t.push(l)}),I(e),H(n),U(t),G(r),requestAnimationFrame(function(){Ee.current(0)})},[o]);var Ee=n.useRef(function(e){ae.current&&ae.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,a=r.right;"auto"!==i&&"0px"!==i?t.style.transform="translateX(".concat(e,"px)"):"auto"!==a&&"0px"!==a&&(t.style.transform="translateX(".concat(-e,"px)"))})}),Se=function(e,n,t){se.current&&cancelAnimationFrame(se.current),se.current=requestAnimationFrame(function(){n&&n.scrollLeft!==t&&(n.scrollLeft=t),Ee.current(t),se.current=null})},Te=function(e,n){var t=n||X,r=t!==X?1:e;K(r),q(t),_&&"function"==typeof _.onChange&&_.onChange(r,n)},Oe=function(e,n){if(void 0===e&&(e=W),void 0===n&&(n=X),!1===_)return null;var t,r=void 0!==(null==_?void 0:_.total)?_.total:te.length,i=Math.ceil(r/n)||1,a=Math.min(e,i);if(void 0!==(null==_?void 0:_.total))t=te;else{var o=(a-1)*n,l=o+n;t=te.slice(o,l)}return{data:t,total:r,pageSize:n,current:a,totalPages:i}},ke=function(e,n){return"function"==typeof x?x(e,n):e[x]||n},Le=function(){var e=Oe();return(e?e.data:te).map(function(e,n){var t,r=ke(e,n),i=null===(t=null==L?void 0:L.getCheckboxProps)||void 0===t?void 0:t.call(L,e,n);return{key:r,disabled:null==i?void 0:i.disabled}}).filter(function(e){return!e.disabled}).map(function(e){return e.key})},Ae=function(){var e=Le();if(0===e.length)return!1;var n=e.filter(function(e){return Ne.includes(e)}).length;return n>0&&n<e.length},Me=function(e,n,t){var r,i,a,o=ke(e,n);i="radio"===be?t?[o]:[]:t?b(b([],Ne,!0),[o],!1):Ne.filter(function(e){return e!==o}),a=te.filter(function(e){var n="function"==typeof x?x(e,te.indexOf(e)):e[x];return i.includes(n)}),we(i),null===(r=null==L?void 0:L.onChange)||void 0===r||r.call(L,i,a)},Ie=function(){var n,t={width:(null==L?void 0:L.columnWidth)||"50px",textAlign:"center",backgroundColor:"#fafafa !important",top:0};return e.jsx("th",{style:t,children:"checkbox"===be?e.jsx(kt,{checked:(n=Le(),0!==n.length&&n.every(function(e){return Ne.includes(e)})),indeterminate:Ae(),onChange:function(e){return function(e){var n,t,r=Oe(),i=r?r.data:te;if(e){var a=i.map(function(e,n){var t,r=ke(e,n),i=null===(t=null==L?void 0:L.getCheckboxProps)||void 0===t?void 0:t.call(L,e,n);return{key:r,disabled:null==i?void 0:i.disabled}}).filter(function(e){return!e.disabled}).map(function(e){return e.key}),o=b(b([],Ne.filter(function(e){return!i.some(function(n,t){return ke(n,t)===e})}),!0),a,!0),l=te.filter(function(e){var n="function"==typeof x?x(e,te.indexOf(e)):e[x];return o.includes(n)});we(o),null===(n=null==L?void 0:L.onChange)||void 0===n||n.call(L,o,l)}else{var s=i.map(function(e,n){return ke(e,n)}),c=Ne.filter(function(e){return!s.includes(e)});l=te.filter(function(e){var n="function"==typeof x?x(e,te.indexOf(e)):e[x];return c.includes(n)}),we(c),null===(t=null==L?void 0:L.onChange)||void 0===t||t.call(L,c,l)}}(e)}}):(null==L?void 0:L.columnTitle)||""},"zjpcy-table-selection-header")},De=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(De).join("");if("object"==typeof e&&!p.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);if(void 0!==e.value)return String(e.value);if(void 0!==e.text)return String(e.text);try{return JSON.stringify(e)}catch(e){return""}}if(p.default.isValidElement(e)){var n=e.props;if(n.children)return De(n.children);if(void 0!==n.title)return String(n.title);if(void 0!==n.label)return String(n.label);if(void 0!==n.value)return String(n.value);if(void 0!==n.alt)return String(n.alt)}return""},Re=function(e,n,t){ge({rowIndex:e,colKey:n}),ye(String(t||""))},He=function(e,n){n.onSave&&n.onSave(e,xe),ge(null),ye("")},Pe=function(){ge(null),ye("")},Ve=function(n,t){var r,i=ke(n,t),a=Ne.includes(i),o=null===(r=null==L?void 0:L.getCheckboxProps)||void 0===r?void 0:r.call(L,n,t),l=(null==o?void 0:o.disabled)||!1,s={width:(null==L?void 0:L.columnWidth)||"50px",textAlign:"center",backgroundColor:"white"};return e.jsx("td",{style:s,children:"checkbox"===be?e.jsx(kt,{checked:a,disabled:l,onChange:function(e){return Me(n,t,e)}}):e.jsx(rt,{checked:a,disabled:l,onChange:function(){return Me(n,t,!a)}})},"zjpcy-table-selection-".concat(i))},Be=function(n,t,r,i,a,o){if(void 0===o&&(o=!1),o)return Ve(t,r);var l={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"white"};if("start"===n.fixed||!0===n.fixed){l.position="sticky";var s=0;je&&(s+=ze((null==L?void 0:L.columnWidth)||"50px"));for(var c=0;c<i;c++)s+=Y[c]||0;l.left="".concat(s,"px"),l.zIndex=5}else if("end"===n.fixed){l.position="sticky";var d=0;for(c=a.length-1;c>i;c--)d+=Y[c]||0;l.right="".concat(d,"px"),l.zIndex=5}var u=M.length?M.length-1:-1,f=R.length?M.length+V.length:-1,h=("start"===n.fixed||!0===n.fixed)&&i===u,g="end"===n.fixed&&i===f,m=n.key||n.dataIndex||n._index,v=(null==he?void 0:he.rowIndex)===r&&(null==he?void 0:he.colKey)===String(m),x=n.dataIndex?t[n.dataIndex]:null;n.render&&(x=n.render(x,t,r));var y=x;if(null!==x&&"object"==typeof x&&!p.default.isValidElement(x))if(void 0!==x.name)y=String(x.name);else if(void 0!==x.label)y=String(x.label);else if(void 0!==x.title)y=String(x.title);else try{y=JSON.stringify(x)}catch(e){y=""}var b=n.maxLines&&n.maxLines>0,j="";if(n.tooltip&&!v&&!(j=De(y))&&n.dataIndex){var _=t[n.dataIndex];j="object"==typeof _?De(_):String(_||"")}if(n.editable&&v)return e.jsx("td",{style:l,className:"".concat(h?"zjpcy-table-fixed-left-shadow":"").concat(g?" zjpcy-table-fixed-right-shadow":""),children:e.jsxs("div",{className:"zjpcy-table-edit-cell",onClick:function(e){return e.stopPropagation()},children:[e.jsx("input",{type:"text",className:"zjpcy-table-edit-input",value:xe,onChange:function(e){return ye(e.target.value)},autoFocus:!0,onClick:function(e){return e.stopPropagation()}}),e.jsxs("div",{className:"zjpcy-table-edit-actions",children:[e.jsx("span",{className:"zjpcy-table-edit-icon zjpcy-edit-submit",onClick:function(){return He(t,n)},title:"保存",children:e.jsx(B,{type:"check",size:24,color:"#339af0"})}),e.jsx("span",{className:"zjpcy-table-edit-icon zjpcy-edit-cancel",onClick:Pe,title:"取消",children:e.jsx(B,{type:"close",size:24,color:"#339af0"})})]})]})},n.key||n.dataIndex||n._index);var C=b?e.jsx("div",{className:"zjpcy-table-cell-ellipsis",style:{WebkitLineClamp:n.maxLines},children:y}):y,w=j?e.jsx(St,{title:j,placement:"top",delay:0,children:e.jsx("span",{className:"zjpcy-table-cell-tooltip-wrapper",children:C})}):C;return e.jsxs("td",{style:l,onClick:n.editable?function(){return Re(r,String(m),x)}:void 0,className:"".concat(h?"zjpcy-table-fixed-left-shadow":"").concat(g?" zjpcy-table-fixed-right-shadow":"").concat(b?" zjpcy-table-cell-has-ellipsis":"").concat(n.editable?" zjpcy-table-editable-cell":""),children:[w,n.editable&&e.jsx("span",{className:"zjpcy-table-edit-icon-wrapper",children:e.jsx(B,{type:"edit",size:16,color:"#339af0"})})]},n.key||n.dataIndex||n._index)},Ue=l.useSensors(l.useSensor(l.PointerSensor,{activationConstraint:{distance:8}}),l.useSensor(l.KeyboardSensor,{coordinateGetter:s.sortableKeyboardCoordinates})),Fe=function(e){var n=e.active,t=e.over;if(t&&n.id!==t.id){var r=Oe(),i=r?r.data:te,a=i.findIndex(function(e,t){return String(ke(e,t))===String(n.id)}),o=i.findIndex(function(e,n){return String(ke(e,n))===String(t.id)});if(-1!==a&&-1!==o){var l=s.arrayMove(i,a,o);if(r&&_&&"object"==typeof _&&void 0===_.total){var c=(r.current-1)*r.pageSize,d=b([],te,!0);l.forEach(function(e,n){d[c+n]=e}),re(d),k&&k(d)}else re(l),k&&k(l)}}},Ye={width:h.x?"number"==typeof h.x?"".concat(h.x,"px"):h.x:"100%"},Ge={maxHeight:h.y?"number"==typeof h.y?"".concat(h.y,"px"):h.y:"auto",overflowY:h.y?"auto":"visible",overflowX:h.x?"auto":"visible"},$e=b(b(b([],M,!0),V,!0),R,!0),We=n.useMemo(function(){return Oe()},[te,_,X,W]),Ke=We?We.data:te;return e.jsxs("div",{ref:ae,className:f.default("custom-table-container",{"custom-table-bordered":d,"custom-table-draggable":O},j),style:Ye,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"})]})}),E&&e.jsx("div",{className:"custom-table-loading-text",children:E})]})}),e.jsx("div",{className:"custom-table-header",ref:oe,onScroll:function(e){if(oe.current&&le.current){var n=e.target;if(n===oe.current){var t=n.scrollLeft;de.current=!0,ue.current&&clearTimeout(ue.current),ue.current=setTimeout(function(){de.current=!1},150),Math.abs(t-ce.current)>.5&&(ce.current=t,pe.current=t,Se(oe.current,le.current,t))}}},children:e.jsxs("table",{className:f.default("custom-table",{"custom-table-bordered-body":d,"custom-table-header-separator":!d}),children:[e.jsxs("colgroup",{children:[je&&e.jsx("col",{style:{width:(null==L?void 0:L.columnWidth)||"50px"}},"header-selection-col"),$e.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.jsxs("tr",{children:[je&&Ie(),$e.map(function(n,t){return function(n,t,r,i){if(void 0===i&&(i=!1),i)return Ie();var a={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"#fafafa !important",top:0};if("start"===n.fixed||!0===n.fixed){a.position="sticky";var o=0;je&&(o+=ze((null==L?void 0:L.columnWidth)||"50px"));for(var l=0;l<t;l++)o+=Y[l]||0;a.left="".concat(o,"px"),a.zIndex=10}else if("end"===n.fixed){a.position="sticky";var s=0;for(l=r.length-1;l>t;l--)s+=Y[l]||0;a.right="".concat(s,"px"),a.zIndex=10}return e.jsx("th",{style:a,children:n.title||""},n.key||n.dataIndex||n._index)}(n,t,$e)})]})})]})}),e.jsx("div",{className:"custom-table-body",ref:le,style:Ge,onScroll:function(e){if(oe.current&&le.current){var n=e.target;if(n===le.current){var t=n.scrollLeft;de.current=!0,ue.current&&clearTimeout(ue.current),ue.current=setTimeout(function(){de.current=!1},150),Math.abs(t-ce.current)>.5&&(ce.current=t,pe.current=t,Se(le.current,oe.current,t))}}},children:function(){var n=e.jsxs("table",{className:f.default("custom-table",{"custom-table-bordered-body":d,"custom-table-header-separator":!d}),children:[e.jsxs("colgroup",{children:[je&&e.jsx("col",{style:{width:(null==L?void 0:L.columnWidth)||"50px"}},"body-selection-col"),$e.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:O?Ke.map(function(n,t){return e.jsx(Lt,{id:String(ke(n,t)),record:n,rowIndex:t,columns:o,columnWidths:Y,fixedLeftColumns:M,fixedRightColumns:R,normalColumns:V,allColumns:$e,editingCell:he,editingValue:xe,handleEdit:Re,handleSave:He,handleCancel:Pe,setEditingValue:ye,renderTableCell:Be,isRowSelectionEnabled:je,rowSelection:L,selectedRowKeys:Ne,handleRowSelect:Me},ke(n,t))}):Ke.map(function(n,t){return e.jsxs("tr",{children:[je&&Ve(n,t),$e.map(function(e,r){return Be(e,n,t,r,$e)})]},ke(n,t))})})]});if(O){var t=Ke.map(function(e,n){return String(ke(e,n))});return e.jsx(l.DndContext,{sensors:Ue,collisionDetection:l.closestCenter,onDragEnd:Fe,children:e.jsx(s.SortableContext,{items:t,strategy:s.verticalListSortingStrategy,children:n})})}return n}()}),0===Ke.length&&e.jsx("div",{className:"custom-table-empty",children:C||e.jsx(ve,{size:"small",description:"暂无数据"})}),function(){if(!1===_||!We)return null;var n=We.total,t=We.current,r=We.pageSize,i=v(_||{},["onChange","pageSize","current"]);return e.jsx("div",{className:"custom-table-pagination-wrapper",children:e.jsx(Et,m({total:n,current:t,pageSize:r,onChange:Te,showTotal:function(e,n){return"第 ".concat(n[0],"-").concat(n[1]," 条,共 ").concat(e," 条")},showSizeChanger:!0,showQuickJumper:!0,align:"flex-end"},i))})}()]})};function Mt(e){return hn({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 It=function(t){var r=t.showAfter,i=void 0===r?100:r,a=t.bottom,o=void 0===a?30:a,l=t.right,s=void 0===l?30:l,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,y=t.icon,b=n.useState(!1),j=b[0],_=b[1],C=n.useRef(null),w=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,_(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]),!j)return null;var N=e.jsx(Mt,{size:Math.floor(.5*d)}),z=.5*d;return(null==x?void 0:x.current)?e.jsx("div",{ref:C,className:"top-button-wrapper-container",style:{position:"sticky",bottom:"".concat(o,"px"),marginLeft:"auto",width:"".concat(d,"px"),height:"".concat(d,"px"),right:"".concat(s,"px"),zIndex:10},children:e.jsx("button",{className:"top-button",onClick:w,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:h,color:p,boxShadow:m,padding:0,border:"none"},children:y?e.jsx("span",{style:{width:z,height:z,display:"flex",alignItems:"center",justifyContent:"center"},children:y}):N})}):e.jsx("div",{ref:C,className:"top-button-wrapper",style:{position:"fixed",bottom:"".concat(o,"px"),right:"".concat(s,"px"),zIndex:1e3},children:e.jsx("button",{className:"top-button",onClick:w,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:h,color:p,boxShadow:m,padding:0,border:"none"},children:y?e.jsx("span",{style:{width:z,height:z,display:"flex",alignItems:"center",justifyContent:"center"},children:y}):N})})},Dt=function(n){var t=n.children,r=n.width,i=n.rows,a=n.style,o=n.className,l=m(m({},a),{width:r}),s=["zjpcy-typography",function(e){return e?"zjpcy-typography--line-clamp-".concat(e):""}(i),o].filter(Boolean);return e.jsx("div",{className:s.join(" "),style:l,children:t})},Rt=function(t){var r=t.items,i=t.columns,a=void 0===i?3:i,o=t.gutter,l=void 0===o?20:o,s=t.className,c=t.style,d=t.classNames,u=void 0===d?{}:d,p=t.styles,f=void 0===p?{}:p,h=t.onLayoutChange,g=n.useRef(null),v=n.useState(3),x=v[0],y=v[1],b=n.useState(20),j=b[0],_=b[1],C=function(e,n,t){if(null!==e&&"object"==typeof e&&!Array.isArray(e)){for(var r=e,i=0,a=Object.keys(r).map(Number).sort(function(e,n){return n-e});i<a.length;i++){var o=a[i];if(t>=o&&r.hasOwnProperty(o))return r[o]}return n}return e};n.useEffect(function(){var e,n=function(){clearTimeout(e),e=window.setTimeout(function(){if(g.current){var e=g.current.offsetWidth,n=C(a,3,e),t=C(l,20,e);y(n),_(t),h&&h(n,r)}},100)};return n(),window.addEventListener("resize",n),function(){clearTimeout(e),window.removeEventListener("resize",n)}},[a,l,r,h]);var w=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||""},z=function(e,n){var t=f[e];return"function"==typeof t?t(n):t||{}};return e.jsx("div",{ref:g,className:"zjpcy-masonry ".concat(s||""," ").concat(N("container",0)),style:m(m({display:"flex",gap:"".concat(j,"px")},c),z("container",0)),children:w.map(function(n,t){return e.jsx("div",{className:"zjpcy-masonry-column ".concat(N("column",t)),style:m({flex:1,display:"flex",flexDirection:"column",gap:"".concat(j,"px")},z("column",t)),children:n.map(function(n,t){return e.jsx("div",{className:"zjpcy-masonry-item ".concat(N("item",t)),style:m({},z("item",t)),children:n.content},n.key)})},"column-".concat(t))})})},Ht=function(n){var t=n.children,r=n.gap,i=void 0===r?12:r,a=n.align,o=void 0===a?"center":a,l=n.wrap,s=void 0===l?"nowrap":l,c=n.className,d=n.style,u=void 0===d?{}:d,f=n.inline,h=void 0!==f&&f,g=n.as,v=void 0===g?"div":g,x=p.default.Children.toArray(t).filter(function(e){return null!=e});return 0===x.length?null:e.jsx(v,{className:"space ".concat(h?"space-inline":""," ").concat(c||""),style:m({display:h?"inline-flex":"flex",gap:"number"==typeof i?"".concat(i,"px"):i,alignItems:function(){switch(o){case"start":return"flex-start";case"end":return"flex-end";case"center":default:return"center";case"baseline":return"baseline";case"stretch":return"stretch"}}(),flexWrap:s},u),children:x.map(function(n,t){return e.jsx("span",{className:"space-item",children:n},t)})})},Pt=function(){return null},Vt=function(t){var r=t.className,i=t.style,a=t.children,o=t.offsetTop,l=void 0===o?0:o,s=t.affix,c=void 0===s||s,d=t.bounds,u=void 0===d?5:d,f=t.getContainer,h=void 0===f?function(){return window.document.documentElement}:f,g=t.onChange,v=n.useState(""),x=v[0],y=v[1],j=n.useState([]),_=j[0],C=j[1],w=n.useRef(null),N=n.useRef(null),z=n.useRef(""),E=n.useRef(!1),S=n.useRef("");n.useEffect(function(){z.current=x},[x]);var T=function(){var e=h(),n=e===window.document.documentElement||e===document.body,t=!1,r=_.map(function(r){var i=document.querySelector(r.href);if(i){var a=i.getBoundingClientRect(),o=0;if(n)o=a.top+window.scrollY-l;else{var s=e.getBoundingClientRect();o=a.top-s.top+e.scrollTop-l}if(Math.abs(o-r.top)>1)return t=!0,m(m({},r),{top:o})}return r});t&&C(r)},O=function(){if(!E.current&&0!==_.length){for(var e=h(),n=(e===window.document.documentElement||e===document.body?window.scrollY:e.scrollTop)+l+u,t="",r=b([],_,!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(S.current){var a=r.find(function(e){return e.href===S.current});if(a)return void(Math.abs(n-a.top)<50&&(S.current!==z.current&&(y(S.current),z.current=S.current,null==g||g(S.current)),S.current=""))}t!==z.current&&(y(t),z.current=t,null==g||g(t))}};n.useEffect(function(){var e=function(e){var n=[],t=function(e){if(p.default.isValidElement(e)){var r=e;if(r.type===Pt&&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}(a);C(e)},[a]),n.useEffect(function(){T(),O();var e=h();N.current=function(){O()},e.addEventListener("scroll",N.current);var n=function(){T(),O()};return window.addEventListener("resize",n),function(){N.current&&e.removeEventListener("scroll",N.current),window.removeEventListener("resize",n)}},[_,l,u,h,g]);var k="zjpcy-anchor ".concat(r||""," ").concat(c?"zjpcy-anchor-affix":"");return e.jsx("div",{ref:w,className:k,style:i,children:e.jsx("ul",{className:"zjpcy-anchor-list",children:_.map(function(n){return e.jsx("li",{className:"zjpcy-anchor-link ".concat(x===n.href?"zjpcy-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();E.current=!0,S.current=n,y(n),z.current=n,g&&g(n),setTimeout(function(){if(r!==window.document.documentElement&&r!==document.body){var e=r.getBoundingClientRect(),n=(i=t.getBoundingClientRect()).top-e.top+r.scrollTop-l;r&&"function"==typeof r.scrollTo&&r.scrollTo({top:n,behavior:"smooth"})}else{var i=t.getBoundingClientRect(),a=window.pageYOffset||document.documentElement.scrollTop;n=i.top+a-l,window.scrollTo({top:n,behavior:"smooth"})}setTimeout(function(){E.current=!1},1500)},0)}}(e,n.href)},className:"zjpcy-anchor-link-a",children:n.title})},n.href)})})})};Vt.Link=Pt;var Bt=Vt,Ut=function(n){var t=n.items,r=n.separator,i=void 0===r?"/":r,a=n.className,o=void 0===a?"":a;return t&&0!==t.length?e.jsx("nav",{className:"breadcrumb ".concat(o),"aria-label":"breadcrumb",children:e.jsx("ol",{className:"breadcrumb-list",children:t.map(function(n,r){var a=r===t.length-1;return e.jsx("li",{className:"breadcrumb-item",children:a?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 Ft=e=>"string"==typeof e,Yt=()=>{let e,n;const t=new Promise((t,r)=>{e=t,n=r});return t.resolve=e,t.reject=n,t},Gt=e=>null==e?"":""+e,$t=/###/g,Wt=e=>e&&e.indexOf("###")>-1?e.replace($t,"."):e,Kt=e=>!e||Ft(e),Zt=(e,n,t)=>{const r=Ft(n)?n.split("."):n;let i=0;for(;i<r.length-1;){if(Kt(e))return{};const n=Wt(r[i]);!e[n]&&t&&(e[n]=new t),e=Object.prototype.hasOwnProperty.call(e,n)?e[n]:{},++i}return Kt(e)?{}:{obj:e,k:Wt(r[i])}},Xt=(e,n,t)=>{const{obj:r,k:i}=Zt(e,n,Object);if(void 0!==r||1===n.length)return void(r[i]=t);let a=n[n.length-1],o=n.slice(0,n.length-1),l=Zt(e,o,Object);for(;void 0===l.obj&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),l=Zt(e,o,Object),l?.obj&&void 0!==l.obj[`${l.k}.${a}`]&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=t},qt=(e,n)=>{const{obj:t,k:r}=Zt(e,n);if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r]},Jt=(e,n,t)=>{for(const r in n)"__proto__"!==r&&"constructor"!==r&&(r in e?Ft(e[r])||e[r]instanceof String||Ft(n[r])||n[r]instanceof String?t&&(e[r]=n[r]):Jt(e[r],n[r],t):e[r]=n[r]);return e},Qt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var er={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const nr=e=>Ft(e)?e.replace(/[&<>"'\/]/g,e=>er[e]):e;const tr=[" ",",","?","!",";"],rr=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),ir=(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,a="";for(let o=e;o<r.length;++o)if(o!==e&&(a+=t),a+=r[o],n=i[a],void 0!==n){if(["string","number","boolean"].indexOf(typeof n)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=n}return i},ar=e=>e?.replace("_","-"),or={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 lr{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||or,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:(Ft(e[0])&&(e[0]=`${t}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new lr(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new lr(this.logger,e)}}var sr=new lr;class cr{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 dr extends cr{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,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,n],t&&(Array.isArray(t)?o.push(...t):Ft(t)&&i?o.push(...t.split(i)):o.push(t)));const l=qt(this.data,o);return!l&&!n&&!t&&e.indexOf(".")>-1&&(e=o[0],n=o[1],t=o.slice(2).join(".")),!l&&a&&Ft(t)?ir(this.data?.[e]?.[n],t,i):l}addResource(e,n,t,r,i={silent:!1}){const a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let o=[e,n];t&&(o=o.concat(a?t.split(a):t)),e.indexOf(".")>-1&&(o=e.split("."),r=n,n=o[1]),this.addNamespaces(n),Xt(this.data,o,r),i.silent||this.emit("added",e,n,t,r)}addResources(e,n,t,r={silent:!1}){for(const r in t)(Ft(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,a={silent:!1,skipCopy:!1}){let o=[e,n];e.indexOf(".")>-1&&(o=e.split("."),r=t,t=n,n=o[1]),this.addNamespaces(n);let l=qt(this.data,o)||{};a.skipCopy||(t=JSON.parse(JSON.stringify(t))),r?Jt(l,t,i):l={...l,...t},Xt(this.data,o,l),a.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 ur={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 pr=Symbol("i18next/PATH_KEY");function fr(e,n){const{[pr]:t}=e(function(){const e=[],n=Object.create(null);let t;return n.get=(r,i)=>(t?.revoke?.(),i===pr?e:(e.push(i),t=Proxy.revocable(r,n),t.proxy)),Proxy.revocable(Object.create(null),n).proxy}());return t.join(n?.keySeparator??".")}const hr={},gr=e=>!Ft(e)&&"boolean"!=typeof e&&"number"!=typeof e;class mr extends cr{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=sr.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=gr(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 a=t&&e.indexOf(t)>-1,o=!(this.options.userDefinedKeySeparator||n.keySeparator||this.options.userDefinedNsSeparator||n.nsSeparator||((e,n,t)=>{n=n||"",t=t||"";const r=tr.filter(e=>n.indexOf(e)<0&&t.indexOf(e)<0);if(0===r.length)return!0;const i=rr.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let a=!i.test(e);if(!a){const n=e.indexOf(t);n>0&&!i.test(e.substring(0,n))&&(a=!0)}return a})(e,t,r));if(a&&!o){const n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:Ft(i)?[i]:i};const a=e.split(t);(t!==r||t===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:Ft(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=fr(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],r),s=l[l.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:`${s}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${c}${o}`:i?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:o;const p=this.resolve(e,r);let f=p?.res;const h=p?.usedKey||o,g=p?.exactUsedKey||o,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,x=void 0!==r.count&&!Ft(r.count),y=mr.hasDefaultValue(r),b=x?this.pluralResolver.getSuffix(d,r.count,r):"",j=r.ordinal&&x?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",_=x&&!r.ordinal&&0===r.count,C=_&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${b}`]||r[`defaultValue${j}`]||r.defaultValue;let w=f;v&&!f&&y&&(w=C);const N=gr(w),z=Object.prototype.toString.apply(w);if(!(v&&w&&N&&["[object Number]","[object Function]","[object RegExp]"].indexOf(z)<0)||Ft(m)&&Array.isArray(w))if(v&&Ft(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)&&y&&(n=!0,f=C),this.isValidLookup(f)||(i=!0,f=o);const l=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,u=y&&C!==f&&this.options.updateMissing;if(i||n||u){if(this.logger.log(u?"updateKey":"missingKey",d,s,o,u?C:f),a){const e=this.resolve(o,{...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=y&&t!==f?t:l;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,u,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,u,r),this.emit("missingKey",e,s,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,r);_&&r[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{t([e],o+n,r[`defaultValue${n}`]||C)})}):t(e,o,C))}f=this.extendTranslation(f,e,r,p,t),i&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${s}${c}${o}`),(i||n)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${o}`:o,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,w,{...r,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(p.res=e,p.usedParams=this.getUsedParamsDetails(r),p):e}if(a){const e=Array.isArray(w),n=e?[]:{},t=e?g:h;for(const e in w)if(Object.prototype.hasOwnProperty.call(w,e)){const i=`${t}${a}${e}`;n[e]=y&&!f?this.translate(i,{...r,defaultValue:gr(C)?C[e]:void 0,joinArrays:!1,ns:l}):this.translate(i,{...r,joinArrays:!1,ns:l}),n[e]===i&&(n[e]=w[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 a=Ft(e)&&(void 0!==t?.interpolation?.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let o;if(a){const n=e.match(this.interpolator.nestingRegexp);o=n&&n.length}let l=t.replace&&!Ft(t.replace)?t.replace:t;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,t.lng||this.language||r.usedLng,t),a){const n=e.match(this.interpolator.nestingRegexp);o<(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 a=t.postProcess||this.options.postProcess,o=Ft(a)?[a]:a;return null!=e&&o?.length&&!1!==t.applyPostProcessor&&(e=ur.handle(o,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(t)},...t}:t,this)),e}resolve(e,n={}){let t,r,i,a,o;return Ft(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const l=this.extractFromKey(e,n),s=l.key;r=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==n.count&&!Ft(n.count),u=d&&!n.ordinal&&0===n.count,p=void 0!==n.context&&(Ft(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)||(o=e,hr[`${f[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(o)||(hr[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" 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;a=r;const o=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,s,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)&&o.push(s+e.replace(i,this.options.pluralSeparator)),o.push(s+e),u&&o.push(s+t)),p){const r=`${s}${this.options.contextSeparator||"_"}${n.context}`;o.push(r),d&&(n.ordinal&&0===e.indexOf(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),u&&o.push(r+t))}}let l;for(;l=o.pop();)this.isValidLookup(t)||(i=l,t=this.getResource(r,e,l,n))}))})}),{res:t,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}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&&!Ft(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 vr{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=sr.create("languageUtils")}getScriptPartFromCode(e){if(!(e=ar(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=ar(e))||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ft(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)),Ft(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 Ft(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))):Ft(e)&&i(this.formatLanguageCode(e)),t.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}const xr={zero:0,one:1,two:2,few:3,many:4,other:5},yr={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class br{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=sr.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const t=ar("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 a;try{a=new Intl.PluralRules(t,{type:r})}catch(t){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),yr;if(!e.match(/-|_/))return yr;const r=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(r,n)}return this.pluralRulesCache[i]=a,a}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)=>xr[e]-xr[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 jr=(e,n,t,r=".",i=!0)=>{let a=((e,n,t)=>{const r=qt(e,t);return void 0!==r?r:qt(n,t)})(e,n,t);return!a&&i&&Ft(t)&&(a=ir(e,t,r),void 0===a&&(a=ir(n,t,r))),a},_r=e=>e.replace(/\$/g,"$$$$");class Cr{constructor(e={}){this.logger=sr.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:a,suffix:o,suffixEscaped:l,formatSeparator:s,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:nr,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Qt(i):a||"{{",this.suffix=o?Qt(o):l||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=u?Qt(u):p||Qt("$t("),this.nestingSuffix=f?Qt(f):h||Qt(")"),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,a,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=e=>{if(e.indexOf(this.formatSeparator)<0){const i=jr(n,l,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),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(jr(n,l,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,t,{...r,...n,interpolationkey:a})};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=>_r(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?_r(this.escape(e)):_r(e)}].forEach(n=>{for(o=0;i=n.regex.exec(e);){const t=i[1].trim();if(a=s(t),void 0===a)if("function"==typeof c){const n=c(e,i,r);a=Ft(n)?n:""}else if(r&&Object.prototype.hasOwnProperty.call(r,t))a="";else{if(d){a=i[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating ${e}`),a=""}else Ft(a)||this.useRawValueToEscape||(a=Gt(a));const l=n.safeValue(a);if(e=e.replace(i[0],l),d?(n.regex.lastIndex+=a.length,n.regex.lastIndex-=i[0].length):n.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n,t={}){let r,i,a;const o=(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,a);const o=i.match(/'/g),l=i.match(/"/g);((o?.length??0)%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),n&&(a={...n,...a})}catch(n){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,n),`${e}${t}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let l=[];a={...t},a=a.replace&&!Ft(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const s=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==s&&(l=r[1].slice(s).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,s)),i=n(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!Ft(i))return i;Ft(i)||(i=Gt(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),l.length&&(i=l.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 wr=e=>{const n={};return(t,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const o=r+JSON.stringify(a);let l=n[o];return l||(l=e(ar(r),i),n[o]=l),l(t)}},Nr=e=>(n,t,r)=>e(ar(t),r)(n);class zr{constructor(e={}){this.logger=sr.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const t=n.cacheInBuiltFormats?wr:Nr;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()]=wr(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:a}=(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,""),a=n.trim();t[a]||(t[a]=i),"false"===i&&(t[a]=!1),"true"===i&&(t[a]=!0),isNaN(i)||(t[a]=parseInt(i,10))}})}return{formatName:n,formatOptions:t}})(n);if(this.formats[i]){let n=e;try{const o=r?.formatParams?.[r.interpolationkey]||{},l=o.locale||o.lng||r.locale||r.lng||t;n=this.formats[i](e,l,{...a,...r,...o})}catch(e){this.logger.warn(e)}return n}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class Er extends cr{constructor(e,n,t,r={}){super(),this.backend=e,this.store=n,this.services=t,this.languageUtils=t.languageUtils,this.options=r,this.logger=sr.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={},a={},o={},l={};return e.forEach(e=>{let r=!0;n.forEach(n=>{const o=`${e}|${n}`;!t.reload&&this.store.hasResourceBundle(e,n)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===a[o]&&(a[o]=!0):(this.state[o]=1,r=!1,void 0===a[o]&&(a[o]=!0),void 0===i[o]&&(i[o]=!0),void 0===l[n]&&(l[n]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,t){const r=e.split("|"),i=r[0],a=r[1];n&&this.emit("failedLoading",i,a,n),!n&&t&&this.store.addResourceBundle(i,a,t,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&t&&(this.state[e]=0);const o={};this.queue.forEach(t=>{((e,n,t)=>{const{obj:r,k:i}=Zt(e,n,Object);r[i]=r[i]||[],r[i].push(t)})(t.loaded,[i],a),((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=>{o[e]||(o[e]={});const n=t.loaded[e];n.length&&n.forEach(n=>{void 0===o[e][n]&&(o[e][n]=!0)})}),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,n,t,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:n,fcName:t,tried:r,wait:i,callback:a});this.readingCalls++;const o=(o,l)=>{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)}o&&l&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,n,t,r+1,2*i,a)},i):a(o,l)},l=this.backend[t].bind(this.backend);if(2!==l.length)return l(e,n,o);try{const t=l(e,n);t&&"function"==typeof t.then?t.then(e=>o(null,e)).catch(o):o(null,t)}catch(e){o(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();Ft(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ft(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,a)=>{t&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,t),!t&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,a),this.loaded(e,t,a)})}saveMissing(e,n,t,r,i,a={},o=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(n)){if(null!=t&&""!==t){if(this.backend?.create){const l={...a,isUpdate:i},s=this.backend.create.bind(this.backend);if(s.length<6)try{let i;i=5===s.length?s(e,n,t,r,l):s(e,n,t,r),i&&"function"==typeof i.then?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else s(e,n,t,r,o,l)}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 Sr=()=>({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]),Ft(e[1])&&(n.defaultValue=e[1]),Ft(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}),Tr=e=>(Ft(e.ns)&&(e.ns=[e.ns]),Ft(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ft(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),Or=()=>{};class kr extends cr{constructor(e={},n){var t;if(super(),this.options=Tr(e),this.services={},this.logger=sr,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&&(Ft(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const t=Sr();this.options={...t,...this.options,...Tr(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?sr.init(r(this.modules.logger),this.options):sr.init(null,this.options),e=this.modules.formatter?this.modules.formatter:zr;const n=new vr(this.options);this.store=new dr(this.options.resources,this.options);const i=this.services;i.logger=sr,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new br(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 Cr(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Er(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 mr(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=Or),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=Yt(),a=()=>{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?a():setTimeout(a,0),i}loadResources(e,n=Or){let t=n;const r=Ft(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=Yt();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=Or),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&&ur.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=Yt();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,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,t.resolve((...e)=>this.t(...e)),n&&n(i,(...e)=>this.t(...e))},a=n=>{e||n||!this.services.languageDetector||(n=[]);const t=Ft(n)?n:n&&n[0],a=this.store.hasLanguageSomeTranslations(t)?t:this.services.languageUtils.getBestMatchFromCodes(Ft(n)?[n]:n);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};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(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),t}getFixedT(e,n,t){const r=(e,n,...i)=>{let a;a="object"!=typeof n?this.options.overloadTranslationOptionHandler([e,n].concat(i)):{...n},a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||t||r.keyPrefix);const o=this.options.keySeparator||".";let l;return a.keyPrefix&&Array.isArray(e)?l=e.map(e=>("function"==typeof e&&(e=fr(e,{...this.options,...n})),`${a.keyPrefix}${o}${e}`)):("function"==typeof e&&(e=fr(e,{...this.options,...n})),l=a.keyPrefix?`${a.keyPrefix}${o}${e}`:e),this.t(l,a)};return Ft(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 a=(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,a);if(void 0!==e)return e}return!!this.hasResourceBundle(t,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(t,e)||r&&!a(i,e)))}loadNamespaces(e,n){const t=Yt();return this.options.ns?(Ft(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=Yt();Ft(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 vr(Sr());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 kr(e,n);return t.createInstance=kr.createInstance,t}cloneInstance(e={},n=Or){const t=e.forkResourceStore;t&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new kr(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 dr(e,r),i.services.resourceStore=i.store}if(e.interpolation){const n={...Sr().interpolation,...this.options.interpolation,...e.interpolation},t={...r,interpolation:n};i.services.interpolator=new Cr(t)}return i.translator=new mr(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 Lr=kr.createInstance(),Ar={},Mr=(e,n,t,r)=>{Hr(t)&&Ar[t]||(Hr(t)&&(Ar[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);Hr(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))},Ir=(e,n)=>()=>{if(e.isInitialized)n();else{const t=()=>{setTimeout(()=>{e.off("initialized",t)},0),n()};e.on("initialized",t)}},Dr=(e,n,t)=>{e.loadNamespaces(n,Ir(e,t))},Rr=(e,n,t,r)=>{if(Hr(t)&&(t=[t]),e.options.preload&&e.options.preload.indexOf(n)>-1)return Dr(e,t,r);t.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(n,Ir(e,r))},Hr=e=>"string"==typeof e,Pr=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Vr={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Br=e=>Vr[e];let Ur={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Pr,Br),transDefaultProps:void 0};let Fr;const Yr={type:"3rdParty",init(e){((e={})=>{Ur={...Ur,...e}})(e.options.react),(e=>{Fr=e})(e)}},Gr=n.createContext();class $r{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Wr,Kr={exports:{}},Zr={};var Xr,qr={};"production"===process.env.NODE_ENV?Kr.exports=function(){if(Wr)return Zr;Wr=1;var e=p.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,a=e.useDebugValue;function o(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var l=n(),s=t({inst:{value:l,getSnapshot:n}}),c=s[0].inst,d=s[1];return i(function(){c.value=l,c.getSnapshot=n,o(c)&&d({inst:c})},[e,l,n]),r(function(){return o(c)&&d({inst:c}),e(function(){o(c)&&d({inst:c})})},[e]),a(l),l};return Zr.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,Zr}():Kr.exports=(Xr||(Xr=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=p.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,a=n.useLayoutEffect,o=n.useDebugValue,l=!1,s=!1,c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(c,d){l||void 0===n.startTransition||(l=!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(!s){var p=d();t(u,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s=!0)}var f=(p=r({inst:{value:u,getSnapshot:d}}))[0].inst,h=p[1];return a(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]),o(u),u};qr.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())}()),qr);var Jr=Kr.exports;const Qr={t:(e,n)=>{return Hr(n)?n:"object"==typeof(t=n)&&null!==t&&Hr(n.defaultValue)?n.defaultValue:Array.isArray(e)?e[e.length-1]:e;var t},ready:!1},ei=()=>()=>{},ni=(e,t={})=>{const{i18n:r}=t,{i18n:i,defaultNS:a}=n.useContext(Gr)||{},o=r||i||Fr;o&&!o.reportNamespaces&&(o.reportNamespaces=new $r),o||Mr(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=n.useMemo(()=>({...Ur,...o?.options?.react,...t}),[o,t]),{useSuspense:s,keyPrefix:c}=l,d=e||a||o?.options?.defaultNS,u=Hr(d)?[d]:d||["translation"],p=n.useMemo(()=>u,u);o?.reportNamespaces?.addUsedNamespaces?.(p);const f=n.useRef(0),h=n.useCallback(e=>{if(!o)return ei;const{bindI18n:n,bindI18nStore:t}=l,r=()=>{f.current+=1,e()};return n&&o.on(n,r),t&&o.store.on(t,r),()=>{n&&n.split(" ").forEach(e=>o.off(e,r)),t&&t.split(" ").forEach(e=>o.store.off(e,r))}},[o,l]),g=n.useRef(),m=n.useCallback(()=>{if(!o)return Qr;const e=!(!o.isInitialized&&!o.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}}):(Mr(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0))(e,o,l)),n=t.lng||o.language,r=f.current,i=g.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;const a={t:o.getFixedT(n,"fallback"===l.nsMode?p:p[0],c),ready:e,lng:n,keyPrefix:c,revision:r};return g.current=a,a},[o,p,c,l,t.lng]),[v,x]=n.useState(0),{t:y,ready:b}=Jr.useSyncExternalStore(h,m,m);n.useEffect(()=>{if(o&&!b&&!s){const e=()=>x(e=>e+1);t.lng?Rr(o,t.lng,p,e):Dr(o,p,e)}},[o,t.lng,p,b,s,v]);const j=o||{},_=n.useRef(null),C=n.useRef(),w=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=j,n=e?.language;let t=e;e&&(_.current&&_.current.__original===e?C.current!==n?(t=w(e),_.current=t,C.current=n):t=_.current:(t=w(e),_.current=t,C.current=n));const r=[y,t,b];return r.t=y,r.i18n=t,r.ready=b,r},[y,j,b,j.resolvedLanguage,j.language,j.languages]);if(o&&s&&!b)throw new Promise(e=>{const n=()=>e();t.lng?Rr(o,t.lng,p,n):Dr(o,p,n)});return N};function ti({i18n:e,defaultNS:t,children:r}){const i=n.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return n.createElement(Gr.Provider,{value:i},r)}var ri={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行"},ii={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"};Lr.use(Yr).init({resources:{"zh-CN":{translation:ri},"en-US":{translation:ii}},lng:"zh-CN",fallbackLng:"zh-CN",interpolation:{escapeValue:!1}});var ai=function(n){var t=n.children,r=n.locale,i=n.resources;return p.default.useEffect(function(){i&&Object.keys(i).forEach(function(e){var n=i[e];Object.keys(n).forEach(function(t){var r=n[t];Lr.addResourceBundle(e,t,r,!0)})})},[i]),p.default.useEffect(function(){r&&r!==Lr.language&&Lr.changeLanguage(r)},[r]),e.jsx(ti,{i18n:Lr,children:t})},oi=function(t){var r=t.items,i=t.type,a=void 0===i?"text":i,o=t.children,l=t.trigger,s=void 0===l?"click":l,c=t.placement,d=void 0===c?"bottom":c,u=t.disabled,p=void 0!==u&&u,h=t.open,m=t.ellipsis,v=void 0===m||m,x=t.className,y=t.style,b=t.contentStyles,j=t.getContainer,_=t.onVisibleChange,C=t.onChange,w=void 0!==h,N=n.useState(!1),z=N[0],E=N[1],S=n.useState(!1),T=S[0],O=S[1],k=w?h:z,L=n.useRef(null),A=n.useRef(null),M=n.useRef(null);n.useEffect(function(){return function(){M.current&&clearTimeout(M.current)}},[]),n.useEffect(function(){var e=function(e){L.current&&!L.current.contains(e.target)&&I()};return k&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[k,_,w]);var I=function(){O(!0),M.current&&clearTimeout(M.current),M.current=setTimeout(function(){O(!1),w||E(!1),null==_||_(!1)},200)},D=function(){M.current&&(clearTimeout(M.current),M.current=null),O(!1),w||E(!0),null==_||_(!0)},R=function(){p||"click"===s&&(k||T?I():D())},H=function(){p||"hover"!==s||D()},P=function(){p||"hover"!==s||I()};return e.jsx("div",{ref:L,className:f.default("dropdown",x,{"dropdown--disabled":p}),style:y,children:e.jsxs("div",{className:"dropdown-content-wrapper",children:["button"===a?e.jsx(pe,{variant:"secondary",size:"medium",disabled:p,onClick:R,icon:"caret-down",children:o||"Dropdown"}):e.jsxs("div",{ref:A,className:f.default("dropdown-trigger",{"dropdown-trigger--text":"text"===a,"dropdown-trigger--disabled":p}),onClick:R,onMouseEnter:H,onMouseLeave:P,children:[o||"Dropdown",e.jsx(B,{type:"caret-down",className:"dropdown-arrow"})]}),function(){if(!r||0===r.length||!k&&!T)return null;var n=e.jsx("div",{className:f.default("dropdown-menu-wrapper",{"dropdown-menu-visible":k&&!T,"dropdown-menu-closing":T}),children:e.jsx("div",{className:f.default("dropdown-menu dropdown-menu--".concat(d," dropdown-menu--p-").concat(d)),children:e.jsx("ul",{className:"dropdown-list",style:b,children:r.map(function(n){return e.jsxs("li",{className:f.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==C||C(e),I())}(n)},children:[n.icon&&e.jsx("span",{className:"dropdown-item-icon",children:"string"==typeof n.icon?e.jsx(B,{type:n.icon}):n.icon}),e.jsx("span",{className:f.default("dropdown-item-label",{"dropdown-item-label--with-width":(null==b?void 0:b.width)&&!v,"dropdown-item-label--ellipsis":(null==b?void 0:b.width)&&v}),children:n.label})]},n.key)})})})});if(j){var t=j();if(t)return g.default.createPortal(n,t)}return n}()]})})},li=function(e){var n,t=e.trim();return t&&(null===(n=Array.from(t)[0])||void 0===n?void 0:n.toUpperCase())||""},si=p.default.memo(function(t){var r,i,a,o=t.item,l=t.level,s=t.mode,c=t.collapsed,d=t.theme,u=t.openKeySet,p=t.selectedKey,h=t.onItemClick,g=t.onToggleOpen,m=!!o.children&&o.children.length>0,v=u.has(o.key),x=p===o.key,y="horizontal"===s,b="inline"===s,j="vertical-flat"===s,_=0===l,C=n.useCallback(function(e){e.stopPropagation(),o.disabled||(m&&!j&&g(o.key),j&&m||h(o,o.key))},[o,h,g,m,j]),w=y&&_?16:b?12+24*l:c?0:12+16*l,N=v&&(!c||y),z=function(e){var t=n.useState(e),r=t[0],i=t[1],a=n.useState(e),o=a[0],l=a[1];return n.useEffect(function(){var n;return e?(l(!0),n=requestAnimationFrame(function(){i(!0)})):(i(!1),n=setTimeout(function(){l(!1)},150)),function(){"number"==typeof n?cancelAnimationFrame(n):clearTimeout(n)}},[e]),{isVisible:r,shouldRender:o}}(N&&y&&_),E=z.isVisible,S=z.shouldRender,T=m&&(!c||!_)&&!j,O=d||"light",k=f.default("zjpcy-menu-item-wrapper",{"zjpcy-menu-item-wrapper-root":_,"zjpcy-menu-item-wrapper-collapsed":c&&_}),L=f.default("zjpcy-menu-item",((r={})["zjpcy-menu-item-".concat(O)]=!0,r["zjpcy-menu-item-".concat(O,"-selected")]=x,r["zjpcy-menu-item-".concat(O,"-selected-vertical")]=x&&("vertical"===s||"inline"===s||"vertical-flat"===s),r["zjpcy-menu-item-disabled"]=o.disabled,r["zjpcy-menu-item-has-children"]=m,r["zjpcy-menu-item-has-children-selected"]=m&&x,r["zjpcy-menu-item-".concat(O,"-has-children")]=m,r["zjpcy-menu-item-root"]=_,r["zjpcy-menu-item-collapsed"]=c&&_,r)),A=f.default("zjpcy-menu-item-icon",{"zjpcy-menu-item-icon-collapsed":c}),M=f.default("zjpcy-menu-item-arrow",{"zjpcy-menu-item-arrow-open":N,"zjpcy-menu-item-arrow-horizontal":y,"zjpcy-menu-item-arrow-horizontal-open":N&&y}),I=f.default("zjpcy-menu-submenu-wrapper",((i={})["zjpcy-menu-submenu-wrapper-".concat(s)]=!0,i["zjpcy-menu-submenu-wrapper-horizontal-popup"]=y&&_,i["zjpcy-menu-submenu-wrapper-vertical-flat"]=j,i["zjpcy-menu-submenu-wrapper-vertical-flat-container"]=j,i));return e.jsxs("div",{className:k,children:[e.jsx("div",{className:L,style:{padding:"0px ".concat(w,"px")},title:c&&_?o.label:void 0,onClick:C,children:e.jsxs("div",{className:"zjpcy-menu-item-content",children:[c?e.jsx(e.Fragment,{children:o.icon?e.jsx("span",{className:A,children:o.icon}):e.jsx("span",{className:"zjpcy-menu-item-collapsed-label",children:li(o.label)})}):e.jsxs(e.Fragment,{children:[o.icon&&e.jsx("span",{className:"zjpcy-menu-item-icon",children:o.icon}),e.jsxs("div",{className:"zjpcy-menu-item-text",children:[e.jsx("span",{className:"zjpcy-menu-item-label",children:o.label}),o.description&&!m&&e.jsx("span",{className:"zjpcy-menu-item-description",children:o.description})]})]}),T&&e.jsx("span",{className:M,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&&(!y||!_||S)&&e.jsx("div",{className:I,children:e.jsx("div",{className:j?"zjpcy-menu-submenu-vertical-flat zjpcy-menu-submenu-vertical-flat-open":y&&_?f.default("zjpcy-menu-submenu-horizontal-popup",{"zjpcy-menu-submenu-horizontal-popup-open":E}):b?f.default("zjpcy-menu-submenu-inline",{"zjpcy-menu-submenu-inline-open":N}):f.default("zjpcy-menu-submenu-vertical",{"zjpcy-menu-submenu-vertical-open":N}),children:e.jsx("div",{className:"zjpcy-menu-submenu-content",children:null===(a=o.children)||void 0===a?void 0:a.map(function(n){return e.jsx(si,{item:n,level:l+1,mode:s,collapsed:c,theme:d,openKeySet:u,selectedKey:p,onItemClick:h,onToggleOpen:g},n.key)})})})})]})});si.displayName="MenuItemComponent";var ci,di,ui,pi,fi,hi,gi,mi,vi,xi,yi,bi,ji,_i,Ci,wi,Ni,zi,Ei,Si,Ti,Oi,ki,Li,Ai,Mi,Ii=function(t){var r,i=t.mode,a=void 0===i?"vertical":i,o=t.items,l=t.className,s=void 0===l?"":l,c=t.style,d=t.selectedKey,u=t.defaultOpenKeys,p=void 0===u?[]:u,h=t.openKeys,g=t.collapsed,m=void 0!==g&&g,v=t.open,x=t.theme,y=void 0===x?"light":x,j=t.onChange,_=t.onOpenChange,C=n.useRef(null),w=n.useState(!0)[0],N=n.useState(p),z=N[0],E=N[1],S=n.useState(""),T=S[0],O=S[1],k=void 0!==h,L=void 0!==d,A=k?h:z,M=L?d:T,I=void 0!==v?v:w,D=n.useMemo(function(){return new Set(A)},[A]);n.useEffect(function(){void 0!==d&&O(d)},[d]),n.useEffect(function(){if(M&&!k&&"horizontal"!==a&&"vertical-flat"!==a){var e=function(n,t,r){void 0===r&&(r=[]);for(var i=0,a=n;i<a.length;i++){var o=a[i];if(o.key===t)return r;if(o.children&&o.children.length>0){var l=e(o.children,t,b(b([],r,!0),[o.key],!1));if(l.length>0)return l}}return[]},n=e(o,M);n.length>0&&E(function(e){var t=new Set(b(b([],e,!0),n,!0));return Array.from(t)})}},[M,o,k,a]);var R,H,P=n.useCallback(function(e,n){L||O(n),null==j||j(e,n),"horizontal"===a&&(!e.children||0===e.children.length)&&A.length>0&&(k||E([]),null==_||_([]))},[j,L,a,A.length,k,_]),V=n.useCallback(function(e){if(k){var n=D.has(e)?A.filter(function(n){return n!==e}):b(b([],A,!0),[e],!1);null==_||_(n)}else E(function(n){var t=n.includes(e)?n.filter(function(n){return n!==e}):b(b([],n,!0),[e],!1);return null==_||_(t),t})},[D,A,k,_]),B="horizontal"!==a&&m;if(R=C,H=n.useCallback(function(){"horizontal"===a&&A.length>0&&(k||E([]),null==_||_([]))},[a,A.length,k,_]),n.useEffect(function(){var e=function(e){R.current&&!R.current.contains(e.target)&&H(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[R,H]),!I)return null;var U=f.default("zjpcy-menu","zjpcy-menu-".concat(y),((r={})["zjpcy-menu-".concat(a)]=!0,r["zjpcy-menu-".concat(a,"-collapsed")]=B,r["zjpcy-menu-dark-vertical-flat"]="dark"===y&&"vertical-flat"===a,r),s);return e.jsx("div",{ref:C,className:U,style:c,role:"menu",children:o.map(function(n){return e.jsx(si,{item:n,level:0,mode:a,collapsed:B,theme:y,openKeySet:D,selectedKey:M,onItemClick:P,onToggleOpen:V},n.key)})})},Di=function(t){var r=t.value,i=void 0===r?0:r,a=t.count,o=void 0===a?5:a,l=t.allowHalf,s=void 0===l||l,c=t.disabled,d=void 0!==c&&c,u=t.color,p=void 0===u?"#1677ff":u,h=t.onChange,g=t.className,m=void 0===g?"":g,v=t.size,x=void 0===v?24:v,y=t.chats,b=n.useState(0),j=b[0],_=b[1],C=n.useRef([]),w=n.useRef(0),N=Array.isArray(y)&&y.length>=o&&y.every(function(e){return null!=e&&""!==e}),z=n.useState([]),E=z[0],S=z[1],T=n.useState(!1),O=T[0],k=T[1];C.current.length!==o&&(C.current=Array(o).fill(null)),n.useEffect(function(){if(N)if("string"==typeof i&&i.length>0){var e=Math.min(i.length,o);S(y.slice(0,e))}else S([]);else S([])},[i,N,y,o]),n.useLayoutEffect(function(){0===j&&O&&k(!1)},[j,O]);var L=j||(N?E.length:parseFloat(Number(i).toFixed(1)||"0")),A=n.useCallback(function(e){return function(n){C.current[e]=n}},[]),M=n.useMemo(function(){return Array.from({length:o}).map(function(e,n){var t=n+1,r=!1,i=!1;N?r=n<(O&&j>0?j:E.length):L>=t?r=!0:s&&L>n&&L<t&&(i=!0);return{index:n,isHalf:i,isFull:r,iconType:i?"half":r?"full":"empty",iconColor:r||i?p:"#d9d9d9"}})},[o,L,s,p,N,E.length,O,j]),I=function(n){if(N){var t=y[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!==w.current&&(w.current=t,_(t))}},onClick:function(e){if(!d){e.stopPropagation();var t=n.index+1;if(y&&Array.isArray(y)&&y.length>=0){var r=y.slice(0,t);S(r),null==h||h(r.join(""))}else null==h||h(t.toString());_(0),w.current=0,k(!1)}},children:t})}return e.jsxs(e.Fragment,{children:[e.jsx(B,{type:"starOutline",size:x,color:"#d9d9d9",className:"rate-star-bg"}),e.jsx("span",{className:"rate-star-left",onMouseEnter:function(e){if(!d&&s){e.stopPropagation();var t=n.index+.5;t!==w.current&&(w.current=t,_(t))}},onClick:function(e){!d&&s&&(e.stopPropagation(),null==h||h((n.index+.5).toString()),_(0),w.current=0,k(!1))}}),e.jsx("span",{className:"rate-star-right",onMouseEnter:function(e){if(!d){e.stopPropagation();var t=n.index+1;t!==w.current&&(w.current=t,_(t))}},onClick:function(e){if(!d){if(e.stopPropagation(),N){var t=y.slice(0,n.index+1);null==h||h(t.join(""))}else null==h||h((n.index+1).toString());_(0),w.current=0,k(!1)}}}),e.jsx("span",{className:f.default("rate-star-fill",{"rate-star-fill-half":n.isHalf,"rate-star-fill-full":n.isFull,"rate-star-fill-empty":!n.isHalf&&!n.isFull}),style:{color:n.iconColor},children:e.jsx(B,{type:"star",size:x,color:n.iconColor,className:"rate-star-icon"})})]})};return e.jsx("div",{className:f.default("rate",{"rate-disabled":d,"rate-chats-mode":N,"rate-chats-mode-disabled":N&&d,"rate-star-mode":!N},m),style:{"--rate-color":p},onMouseEnter:function(){d||k(!0)},onMouseLeave:function(){d||(k(!1),_(0),w.current=0)},children:M.map(function(n){return e.jsx("span",{ref:A(n.index),className:"rate-star",style:{fontSize:"".concat(x,"px")},children:I(n)},n.index)})})},Ri=function(t){var r,i=t.min,a=void 0===i?0:i,o=t.max,l=void 0===o?100:o,s=t.step,c=void 0===s?1:s,d=t.value,u=t.defaultValue,p=void 0===u?0:u,f=t.disabled,h=void 0!==f&&f,g=t.marks,v=void 0===g?{}:g,x=t.showValue,y=void 0!==x&&x,b=t.trackColor,j=void 0===b?"#1890ff":b,_=t.handleColor,C=void 0===_?"#1890ff":_,w=t.gradient,N=t.onChange,z=t.onAfterChange,E=t.className,S=void 0===E?"":E,T=t.style,O=n.useState(p),k=O[0],L=O[1],A=n.useState(!1),M=A[0],I=A[1],D=n.useRef(null),R=n.useRef(null),H=n.useRef(void 0!==d?d:p),P=void 0!==d,V=P?d:k;n.useEffect(function(){H.current=V},[V]);var B=n.useCallback(function(e){var n=(e-a)/(l-a);return Math.max(0,Math.min(1,n))},[a,l]),U=n.useCallback(function(e){var n=Math.max(0,Math.min(1,e)),t=a+n*(l-a);if(c>0){var r=Math.round(t/c)*c;return Math.min(l,Math.max(a,r))}return Math.min(l,Math.max(a,t))},[a,l,c]),F=function(e){return"touches"in e?e.touches[0].clientX:e.clientX},Y=n.useCallback(function(e){D.current&&!h&&(R.current&&cancelAnimationFrame(R.current),R.current=requestAnimationFrame(function(){var n=D.current.getBoundingClientRect(),t=(e-n.left)/n.width,r=U(t);r!==H.current&&(H.current=r,P||L(r),null==N||N(r))}))},[h,P,U,N]),G=function(e){if(!h){e.preventDefault(),I(!0);var n=F(e);Y(n)}};n.useEffect(function(){if(M){var e=function(e){e.preventDefault();var n=F(e);Y(n)},n=function(){I(!1),R.current&&(cancelAnimationFrame(R.current),R.current=null),null==z||z(H.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),R.current&&(cancelAnimationFrame(R.current),R.current=null)}}},[M,Y,z]);var $=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=T&&T["--zjpcy-slider-track-filled-bg"],X=T&&T["--zjpcy-slider-handle-border"],q=w&&!K.trackColor&&!Z&&"#1890ff"===j,J=K.trackColor||Z||j,Q=K.handleColor||X||C;return e.jsxs("div",{className:"slider-container ".concat(h?"slider-container-disabled":""," ").concat(M?"slider-container-dragging":""," ").concat(S),style:m((r={},r["--zjpcy-slider-track-filled-bg"]=J,r["--zjpcy-slider-handle-border"]="2px solid ".concat(Q),r),T),children:[e.jsxs("div",{ref:D,className:"slider-track",onClick:function(e){h||(e.target.classList.contains("slider-handle")||(Y(e.clientX),null==z||z(V)))},role:"presentation",children:[e.jsx("div",{className:"slider-track-filled",style:m({width:"".concat(100*$,"%")},q&&w?{background:"linear-gradient(to right, ".concat(w.startColor,", ").concat(w.endColor,")")}:{})}),e.jsx("div",{className:"slider-handle",style:{left:"".concat(100*$,"%")},onMouseDown:G,onTouchStart:G,onKeyDown:function(e){if(!h){var n=V;switch(e.key){case"ArrowLeft":case"ArrowDown":n=Math.max(a,V-c);break;case"ArrowRight":case"ArrowUp":n=Math.min(l,V+c);break;case"Home":n=a;break;case"End":n=l;break;case"PageDown":n=Math.max(a,V-10*c);break;case"PageUp":n=Math.min(l,V+10*c);break;default:return}e.preventDefault(),void 0===d&&L(n),null==N||N(n),null==z||z(n)}},role:"slider","aria-valuemin":a,"aria-valuemax":l,"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)})}),y&&e.jsxs("div",{className:"slider-value-display",children:["当前值:",V]})]})},Hi=n.createContext(null),Pi=function(n){var t=n.index,r=n.status,i=n.item;return i.node?e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-".concat(r),children:i.node}):i.title?e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-".concat(r),children:i.title}):i.description?e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-".concat(r),children:i.description}):"finish"===r?e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-finish",children:"✓"}):"error"===r?e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-error",children:"✕"}):e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-".concat(r),children:t+1})},Vi=function(t){var r=t.item,i=t.index,a=t.isLast,o=p.default.useRef(null),l=n.useContext(Hi),s=n.useState(0),c=s[0],d=s[1];if(!l)return null;var u=l.current,h=l.status,g=l.direction,m=l.onChange,v=r.status||(i<u?"finish":i===u?h:"wait");p.default.useEffect(function(){var e;if(o.current&&"panel"===l.type){var n=null===(e=o.current.getBoundingClientRect())||void 0===e?void 0:e.height;d(n||0)}},[o,l]);var x=n.useMemo(function(){if("panel"!==l.type||0===c)return null;var n=c/4-8;return e.jsx("div",{style:{transform:"translateY(".concat(n,"px)")},className:"zjpcy-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,l]),y={};r.tailColor&&(y.backgroundColor=r.tailColor);var b=r.tailType||"solid";return e.jsxs("div",{className:f.default("zjpcy-step","zjpcy-step-direction-".concat(g),"zjpcy-step-".concat(v),{"zjpcy-step-disabled":r.disabled}),onClick:function(){!r.disabled&&m&&i!==u&&m(i)},ref:o,children:[e.jsxs("div",{className:"zjpcy-step-head",children:[e.jsx(Pi,{index:i,status:v,item:r}),!a&&e.jsxs(e.Fragment,{children:["default"===l.type&&e.jsx("div",{className:"zjpcy-step-tail zjpcy-step-tail-".concat(b),style:y,children:r.tailTitle&&e.jsx("div",{className:"zjpcy-step-tail-title",children:r.tailTitle})}),x]})]}),e.jsxs("div",{className:"zjpcy-step-content",children:[r.title&&e.jsx("div",{className:"zjpcy-step-title",children:r.title}),r.description&&e.jsx("div",{className:"zjpcy-step-description",children:r.description})]})]})},Bi=function(n){var t=n.current,r=void 0===t?0:t,i=n.status,a=void 0===i?"process":i,o=n.direction,l=void 0===o?"horizontal":o,s=n.size,c=void 0===s?"default":s,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:a,direction:l,size:c,type:u,onChange:f};return e.jsx(Hi.Provider,{value:v,children:e.jsx("div",{className:"zjpcy-steps ".concat(l," ").concat(c," ").concat(u," ").concat(g),style:m,children:p.map(function(n,t){return e.jsx(Vi,{item:n,index:t,isLast:t===p.length-1},t)})})})},Ui=function(e,n){return"var(".concat(e,", ").concat(n,")")},Fi=h.default.div(ci||(ci=j(["\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")}),Yi=h.default.div(di||(di=j(["\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(--zjpcy-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(--zjpcy-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"])),Ui("--zjpcy-switch-track-bg-gradient","linear-gradient(135deg, #e8e8e8 0%, #d9d9d9 100%)"),Ui("--zjpcy-switch-track-radius","12px"),Ui("--zjpcy-switch-transition","all 0.2s ease-in-out"),function(e){return e.$disabled?"not-allowed":"pointer"},function(e){return e.$disabled?"var(--zjpcy-switch-disabled-opacity, 0.65)":1},Ui("--zjpcy-switch-track-active-gradient","linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)"),Ui("--zjpcy-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?Ui("--zjpcy-switch-small-height","16px"):Ui("--zjpcy-switch-default-height","22px"),";\n "):"small"===n?"\n width: ".concat(t?"auto":Ui("--zjpcy-switch-small-width","28px"),";\n min-width: ").concat(Ui("--zjpcy-switch-small-width","28px"),";\n height: ").concat(Ui("--zjpcy-switch-small-height","16px"),";\n "):"\n width: ".concat(t?"auto":Ui("--zjpcy-switch-default-width","44px"),";\n min-width: ").concat(Ui("--zjpcy-switch-default-width","44px"),";\n height: ").concat(Ui("--zjpcy-switch-default-height","22px"),";\n ")},function(e){return e.$checked&&"\n background: ".concat(Ui("--zjpcy-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")}),Gi=h.default.div(ui||(ui=j(["\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"])),Ui("--zjpcy-switch-thumb-bg","#fff"),Ui("--zjpcy-bg-color-light","#f5f5f5"),Ui("--zjpcy-switch-thumb-radius","50%"),Ui("--zjpcy-switch-thumb-shadow","0 2px 8px rgba(0, 0, 0, 0.15)"),Ui("--zjpcy-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 a="".concat(t?r-i-2:2,"px");return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(a,";\n ")}if("small"===n){var o=t?"14px":"2px";return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(o,";\n ")}var l=t?"24px":"2px";return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(l,";\n ")},function(e){return e.$loading&&"\n animation: zjpcy-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")}),$i=h.default.div(pi||(pi=j(["\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: zjpcy-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: zjpcy-switch-spin 1s linear infinite;\n transform-origin: center center;\n display: block;\n fill: ",";\n }\n\n ","\n\n ","\n"])),Ui("--zjpcy-switch-loading-size","12px"),Ui("--zjpcy-switch-loading-size","12px"),Ui("--zjpcy-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")}),Wi=h.default.span(fi||(fi=j(["\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")}),Ki=h.default.span(hi||(hi=j(["\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"},Ui("--zjpcy-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")}),Zi=function(t){var r=t.checked,i=t.defaultChecked,a=void 0!==i&&i,o=t.disabled,l=void 0!==o&&o,s=t.loading,c=void 0!==s&&s,d=t.size,u=void 0===d?"default":d,p=t.width,f=t.checkedChildren,h=t.unCheckedChildren,g=t.styles,v=t.onChange,x=t.label,y=t.labelGap,b=void 0===y?8:y,j=t.labelClassName,_=void 0===j?"":j,C=t.labelStyle,w=void 0!==r,N=n.useState(a),z=N[0],E=N[1],S=w?r:z,T=void 0!==f||void 0!==h;n.useEffect(function(){!function(){if("undefined"!=typeof document&&!document.getElementById("zjpcy-switch-styles")){var e=document.createElement("style");e.id="zjpcy-switch-styles",e.textContent="\n @keyframes zjpcy-switch-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n @keyframes zjpcy-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(Fi,{className:"switch-wrapper",$styles:null==g?void 0:g.wrapper,children:e.jsxs("div",{className:"switch-label-wrapper",style:{display:"flex",alignItems:"center"},children:[x&&e.jsx("div",{className:"switch-label ".concat(_),style:m({marginRight:"number"==typeof b?"".concat(b,"px"):b},C),children:x}),e.jsxs(Yi,{className:"switch-track".concat(S?" switch-track-checked":"").concat(l?" switch-track-disabled":"").concat(c?" switch-track-loading":""),$checked:S,$disabled:l,$size:u,$loading:c,$hasChildren:T,$width:p,$styles:null==g?void 0:g.track,onClick:function(){if(!l&&!c){var e=!S;w||E(e),null==v||v(e)}},children:[c&&e.jsx($i,{className:"switch-loading-icon",$checked:S,$size:u,$width:p,$styles:null==g?void 0:g.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&&S&&f&&e.jsx(Wi,{className:"switch-checked-inner",$size:u,$styles:null==g?void 0:g.inner,children:f}),!c&&!S&&h&&e.jsx(Ki,{className:"switch-unchecked-inner",$size:u,$styles:null==g?void 0:g.inner,children:h}),e.jsx(Gi,{className:"switch-thumb".concat(S?" switch-thumb-checked":""),$checked:S,$size:u,$loading:c,$hasChildren:T,$width:p,$styles:null==g?void 0:g.thumb})]})]})})},Xi=function(n){var t=n.item,r=n.isActive,i=n.isClosable,a=n.onClick,o=n.onClose,l=n.tabRefs,d=s.useSortable({id:t.key,disabled:t.disabled}),u=d.attributes,p=d.listeners,h=d.setNodeRef,g=d.transform,v=d.transition,x=d.isDragging,y={transform:c.CSS.Transform.toString(g),transition:v,opacity:x?.5:1,zIndex:x?1e3:"auto",position:"relative"};return e.jsxs("div",{ref:function(e){h(e),e?l.current.set(t.key,e):l.current.delete(t.key)},className:f.default("zjpcy-tabs-tab",{"zjpcy-tabs-tab--active":r,"zjpcy-tabs-tab--disabled":t.disabled,"zjpcy-tabs-tab--dragging":x}),role:"tab","aria-selected":r,style:y,children:[e.jsxs("div",m({className:"zjpcy-tabs-tab__drag-handle"},u,p,{onClick:a,style:{cursor:t.disabled?"not-allowed":"grab",display:"flex",alignItems:"center",gap:"6px"},children:[t.icon&&e.jsx("span",{className:"zjpcy-tabs-tab__icon",children:t.icon}),e.jsx("span",{className:"zjpcy-tabs-tab__label",children:t.label})]})),i&&!t.disabled&&e.jsx("span",{className:"zjpcy-tabs-tab__close",onClick:function(e){return o(e)},children:e.jsx(B,{type:"close",size:12})})]})},qi=function(t){var r=t.items,i=void 0===r?[]:r,a=t.activeKey,o=t.defaultActiveKey,c=t.onChange,d=t.onClose,u=t.tabsClosable,h=void 0!==u&&u,g=t.tabPlacement,v=void 0===g?"top":g,x=t.type,y=void 0===x?"line":x,b=t.onAdd,j=t.className,_=t.style,C=t.contentClassName,w=t.contentStyle,N=t.draggable,z=void 0!==N&&N,E=t.onDragEnd,S=n.useState(function(){return o}),T=S[0],O=S[1],k=n.useRef(null),L=n.useRef(new Map),A=n.useRef(null),M=n.useState({}),I=M[0],D=M[1],R=n.useState(!1),H=R[0],P=R[1],V=n.useState(!1),U=V[0],F=V[1],Y=n.useState(!1),G=Y[0],$=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!==a&&O(a)},[a]),n.useEffect(function(){re(i)},[i]),n.useEffect(function(){var e;if(void 0===a){var n=null===(e=i[0])||void 0===e?void 0:e.key;if(!(!!o&&i.some(function(e){return e.key===o}))||T)if(n)i.some(function(e){return e.key===T})||O(n);else O(void 0);else O(o)}},[i,T,a,o]);var ie=void 0!==a?a:T,ae=n.useMemo(function(){return i.find(function(e){return e.key===ie})||i[0]},[i,ie]),oe=function(e,n){if(void 0===n&&(n=!0),e&&k.current){var t=L.current.get(e),r=k.current;if(t&&r){var i=r.querySelector(".zjpcy-tabs-indicator"),a=q.current;if(i&&a&&(i.style.transition="none"),"top"===v||"bottom"===v){if(D({left:t.offsetLeft,width:t.offsetWidth,top:void 0,height:void 0}),!n){var o=t.offsetLeft,l=o+t.offsetWidth,s=r.scrollLeft,c=r.clientWidth;(o<s||l>s+c)&&t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}else D({top:t.offsetTop,height:t.offsetHeight,left:void 0,width:void 0});i&&a&&n?requestAnimationFrame(function(){i.style.transition="",q.current=!1}):a&&(q.current=!1)}}},le=p.default.useCallback(function(){if(k.current){var e=k.current,n="top"===v||"bottom"===v;if("card"===y)return P(!1),F(!1),void $(!1);if(n){var t=Math.ceil(e.scrollWidth)>Math.floor(e.clientWidth);if(P(t),t){var r=e.scrollLeft>1;F(r);var i=e.scrollWidth-e.clientWidth,a=e.scrollLeft<i-1;$(a)}else F(!1),$(!1)}else P(!1),F(!1),$(!1)}},[v,y]),se=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,le()},400)}};n.useEffect(function(){ie&&(oe(ie,!1),le())},[ie,i,v,le]),n.useEffect(function(){le();var e=requestAnimationFrame(function(){ie&&oe(ie,!1),le()});return function(){return cancelAnimationFrame(e)}},[le,ie]),n.useEffect(function(){var e,n=function(){ie&&oe(ie,!1),le()},t=function(){clearTimeout(e),e=setTimeout(function(){le()},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)}},[le,ie]),n.useEffect(function(){var e=function(){if(A.current&&k.current&&"card"===y&&b){var e=k.current,n=A.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)}},[y,b,i]);var ce=function(e){e.disabled||(void 0===a&&O(e.key),oe(e.key,!0),le(),null==c||c(e.key))},de=function(e,n){e.stopPropagation(),n.disabled||null==d||d(n.key)},ue=function(){null==b||b(),setTimeout(function(){k.current&&requestAnimationFrame(function(){if(k.current&&L.current.size>0){var e=Array.from(L.current.keys());if(e.length>0){var n=e[e.length-1],t=L.current.get(n),r=k.current;if(t&&r&&A.current)if("card"===y){var i=A.current.offsetWidth+4,a=t.offsetLeft+t.offsetWidth,o=r.clientWidth;if(a-r.scrollLeft>o-i){var l=a-o+i;r.scrollTo({left:l,behavior:"smooth"})}}else t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}})},100)},pe=l.useSensors(l.useSensor(l.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 a=s.arrayMove(te,r,i);re(a),null==E||E(a)}}},ge=function(){var n="top"===v||"bottom"===v,t="card"===y,r=z?te:i,a=e.jsxs("div",{className:"zjpcy-tabs-nav-wrapper",onMouseEnter:function(){return Z(!0)},onMouseLeave:function(){return Z(!1)},children:[n&&H&&!t&&e.jsx("button",{className:f.default("zjpcy-tabs-nav__button","zjpcy-tabs-nav__button--left",{"zjpcy-tabs-nav__button--disabled":!U,"zjpcy-tabs-nav__button--visible":K}),onClick:function(){return se("left")},disabled:!U,type:"button",children:e.jsx(B,{type:"arrowLeft",size:12})}),e.jsxs("div",{className:"zjpcy-tabs-nav",ref:k,children:[r.map(function(n){return function(n,t,r){return!z||n.disabled||"top"!==v&&"bottom"!==v?e.jsxs("div",{ref:function(e){e?L.current.set(n.key,e):L.current.delete(n.key)},className:f.default("zjpcy-tabs-tab",{"zjpcy-tabs-tab--active":t,"zjpcy-tabs-tab--disabled":n.disabled}),role:"tab","aria-selected":t,onClick:function(){return ce(n)},children:[n.icon&&e.jsx("span",{className:"zjpcy-tabs-tab__icon",children:n.icon}),e.jsx("span",{className:"zjpcy-tabs-tab__label",children:n.label}),r&&!n.disabled&&e.jsx("span",{className:"zjpcy-tabs-tab__close",onClick:function(e){return de(e,n)},children:e.jsx(B,{type:"close",size:12})})]},n.key):e.jsx(Xi,{item:n,isActive:t,isClosable:r,onClick:function(){return ce(n)},onClose:function(e){return de(e,n)},tabRefs:L},n.key)}(n,n.key===ie,h||n.closable||!1)}),"card"===y&&b&&e.jsx("div",{ref:A,className:f.default("zjpcy-tabs-tab zjpcy-tabs-tab--add",{sticky:!0===Q}),role:"tab",onClick:ue,children:e.jsx(B,{type:"plus",size:16})}),e.jsx("div",{className:"zjpcy-tabs-indicator",style:I})]}),n&&H&&!t&&e.jsx("button",{className:f.default("zjpcy-tabs-nav__button","zjpcy-tabs-nav__button--right",{"zjpcy-tabs-nav__button--disabled":!G,"zjpcy-tabs-nav__button--visible":K}),onClick:function(){return se("right")},disabled:!G,type:"button",children:e.jsx(B,{type:"arrowRight",size:12})})]});return!z||t||"top"!==v&&"bottom"!==v?a:e.jsx(l.DndContext,{sensors:pe,collisionDetection:l.closestCenter,onDragStart:fe,onDragEnd:he,children:e.jsx(s.SortableContext,{items:r.map(function(e){return e.key}),strategy:s.horizontalListSortingStrategy,children:a})})},me=function(){var n=(null==ae?void 0:ae.renderContent)?ae.renderContent():null==ae?void 0:ae.content,t=f.default("zjpcy-tabs-content","zjpcy-tabs-content--".concat(v),C),r=m({},w);return e.jsx("div",{className:t,style:r,children:n})};return e.jsx("div",{className:f.default("zjpcy-tabs","zjpcy-tabs--".concat(v),"zjpcy-tabs--".concat(y),j),style:_,children:"bottom"===v?e.jsxs(e.Fragment,{children:[me(),ge()]}):e.jsxs(e.Fragment,{children:[ge(),me()]})})},Ji=function(e,n){return"var(".concat(e,", ").concat(n,")")},Qi=h.default.div(gi||(gi=j(["\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")}),ea=h.default.div(mi||(mi=j(["\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||Ji("--transfer-list-width","200px")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||Ji("--transfer-height","300px")},Ji("--transfer-border-color","#d9d9d9"),Ji("--transfer-border-radius","6px"),Ji("--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")}),na=h.default.div(vi||(vi=j(["\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"])),Ji("--transfer-header-height","40px"),Ji("--transfer-padding","12px"),Ji("--transfer-header-bg","#fafafa"),Ji("--transfer-border-color","#d9d9d9"),Ji("--transfer-header-font-size","14px"),Ji("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")),ta=h.default.div(xi||(xi=j(["\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"]))),ra=h.default.span(yi||(yi=j(["\n font-size: 12px;\n color: ",";\n"],["\n font-size: 12px;\n color: ",";\n"])),Ji("--transfer-description-color","rgba(0, 0, 0, 0.45)")),ia=h.default.div(bi||(bi=j(["\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"])),Ji("--transfer-padding","12px"),Ji("--transfer-border-color","#d9d9d9")),aa=h.default.input(ji||(ji=j(["\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"])),Ji("--transfer-search-height","32px"),Ji("--transfer-search-padding","0 8px"),Ji("--transfer-search-border","#d9d9d9"),Ji("--transfer-font-size","14px"),Ji("--transfer-transition","all 0.3s"),Ji("--transfer-search-placeholder-color","rgba(0, 0, 0, 0.45)"),Ji("--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")}),oa=h.default.button(_i||(_i=j(["\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"])),Ji("--transfer-search-height","32px"),Ji("--transfer-search-border","#d9d9d9"),Ji("--transfer-bg","#fff"),function(e){return e.$disabled?"not-allowed":"pointer"},Ji("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},Ji("--transfer-search-focus-border","#1890ff"),Ji("--transfer-search-focus-border","#1890ff")),la=h.default.div(Ci||(Ci=j(["\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"]))),sa=h.default.div(wi||(wi=j(["\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"])),Ji("--transfer-item-height","32px"),Ji("--transfer-item-padding","0 12px"),function(e){return e.$disabled?"not-allowed":"pointer"},Ji("--transfer-transition","all 0.3s"),Ji("--transfer-item-font-size","14px"),function(e){return e.$disabled?Ji("--transfer-item-disabled-color","rgba(0, 0, 0, 0.25)"):Ji("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")},function(e){return e.$selected?Ji("--transfer-item-selected-bg","#e6f7ff"):"transparent"},function(e){var n=e.$disabled,t=e.$selected;return n?"transparent":t?Ji("--transfer-item-selected-bg","#e6f7ff"):Ji("--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")}),ca=h.default.span(Ni||(Ni=j(["\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"}),da=h.default.span(zi||(zi=j(["\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}),ua=h.default.span(Ei||(Ei=j(["\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"]))),pa=h.default.div(Si||(Si=j(["\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"])),Ji("--transfer-padding","12px"),Ji("--transfer-border-color","#d9d9d9"),Ji("--transfer-description-font-size","12px"),Ji("--transfer-description-color","rgba(0, 0, 0, 0.45)")),fa=h.default.div(Ti||(Ti=j(["\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"])),Ji("--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")}),ha=h.default.button(Oi||(Oi=j(["\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"])),Ji("--transfer-operation-border","#d9d9d9"),Ji("--transfer-operation-bg","#f5f5f5"),function(e){return e.$disabled?"not-allowed":"pointer"},Ji("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},Ji("--transfer-operation-hover-bg","#e6f7ff"),Ji("--transfer-operation-hover-border","#1890ff"),Ji("--transfer-operation-disabled-bg","#f5f5f5"),Ji("--transfer-operation-disabled-color","rgba(0, 0, 0, 0.25)"),function(e){return"right"===e.$direction?"'>'":"'<'"}),ga=h.default.div(ki||(ki=j(["\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"])),Ji("--transfer-description-color","rgba(0, 0, 0, 0.45)"),Ji("--transfer-font-size","14px")),ma=h.default.div(Li||(Li=j(["\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"]))),va=h.default.div(Ai||(Ai=j(["\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"])),Ji("--transfer-loading-track-color","#f0f0f0"),Ji("--transfer-loading-spinner-color","#1890ff")),xa=function(e,n,t){return n?e[n]:e[t]},ya=function(e,n){return xa(e,null==n?void 0:n.key,"key")},ba=function(e,n){return xa(e,null==n?void 0:n.title,"title")},ja=function(t){var r=t.dataSource,i=t.fieldNames,a=t.selectedKeys,o=t.showSearch,l=t.disabled,s=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,j=t.onSearch,_=t.render,C=t.footer,w=t.direction,N=t.rowClassName,z=t.loading,E=t.loadingRender,S=t.loadingDelay,T=t.sourceSelectedKeys,O=t.targetSelectedKeys,k=n.useState(""),L=k[0],A=k[1],M=n.useState(z),I=M[0],D=M[1],R=n.useRef(null);n.useEffect(function(){return R.current&&(clearTimeout(R.current),R.current=null),z&&S&&S>0?(D(!0),R.current=setTimeout(function(){D(!1)},S)):D(z),function(){R.current&&clearTimeout(R.current)}},[z,S]);var H=n.useMemo(function(){return L?p?r.filter(function(e){return p(L,e)}):r.filter(function(e){var n=ba(e,i),t=null!=n?String(n):"";if(t)return t.toLowerCase().includes(L.toLowerCase());var r=L.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,L,p,i]),P=n.useMemo(function(){var e=H.filter(function(e){return!e.disabled});return 0!==e.length&&e.every(function(e){return a.includes(ya(e,i))})},[H,a,i]),V=n.useMemo(function(){var e=H.filter(function(e){return!e.disabled});if(0===e.length)return!1;var n=e.filter(function(e){return a.includes(ya(e,i))}).length;return n>0&&n<e.length},[H,a,i]),U=n.useCallback(function(){if(!l){var e=H.filter(function(e){return!e.disabled}).map(function(e){return ya(e,i)});if(P){var n=a.filter(function(n){return!e.includes(n)});"left"===w?y(n,O):y(T,n)}else{var t=b(b([],a,!0),e,!0);n=t.filter(function(e,n){return t.indexOf(e)===n});"left"===w?y(n,O):y(T,n)}}},[l,H,a,P,y,i,w,T,O]),F=n.useCallback(function(e){if(!l&&!e.disabled){var n,t=ya(e,i),r=a.indexOf(t);n=r>-1?b(b([],a.slice(0,r),!0),a.slice(r+1),!0):b(b([],a,!0),[t],!1),"left"===w?y(n,O):y(T,n)}},[l,a,y,i,w,T,O]),Y=n.useCallback(function(e){var n=e.target.value;A(n)},[]),G=n.useCallback(function(){null==j||j(L)},[j,L]),$=n.useCallback(function(e){"Enter"===e.key&&G()},[G]),W=n.useCallback(function(){G()},[G]),K=n.useMemo(function(){var e=a.length,n=r.length;return"".concat(e,"/").concat(n)},[a,r]);return e.jsxs(ea,{className:"transfer-list",$disabled:l,$styles:null==f?void 0:f.list,$height:h,$width:g,children:[function(){if(m){var n=m({direction:w,dataSource:r,selectedKeys:a,sourceSelectedKeys:T,targetSelectedKeys:O});return null===n?null:n}return e.jsxs(na,{className:"transfer-list-header",children:[e.jsxs(ta,{children:[e.jsx(ca,{className:"transfer-checkbox",$checked:P,$indeterminate:V,$disabled:l||0===H.length,onClick:U,style:{opacity:l||0===H.length?.6:1}}),e.jsx("span",{children:s})]}),e.jsx(ra,{children:K})]})}(),o&&null!==m&&e.jsx(ia,{className:"transfer-search-wrapper",children:v?v({direction:w,value:L,onChange:function(e){A(e),null==j||j(e)},disabled:l}):e.jsxs(e.Fragment,{children:[e.jsx(aa,{type:"text",placeholder:u,value:L,onChange:Y,onKeyDown:$,disabled:l,$styles:null==f?void 0:f.search}),e.jsx(oa,{onClick:W,disabled:l,$disabled:l,"aria-label":"搜索",children:e.jsx(B,{type:"search",size:"small",color:l?"#bfbfbf":"#1890ff"})})]})}),x?x({direction:w,dataSource:H,selectedKeys:a,sourceSelectedKeys:T,targetSelectedKeys:O,onSelectChange:y}):I?e.jsx(ma,{className:"transfer-loading",children:E?E():e.jsx(va,{className:"transfer-loading-spinner"})}):e.jsx(la,{className:"transfer-list-body",children:H.length>0?H.map(function(n){var t=ya(n,i),r=a.includes(t),o=(null==N?void 0:N(n))||"";return e.jsxs(sa,{className:"transfer-list-item ".concat(o),$selected:r,$disabled:l||n.disabled,$styles:null==f?void 0:f.item,onClick:function(){return F(n)},children:[e.jsx(da,{$checked:r}),e.jsx(ua,{children:_?_(n):ba(n,i)})]},t)}):e.jsx(ga,{className:"transfer-empty",children:"暂无数据"})}),(c||C)&&e.jsx(pa,{className:"transfer-list-footer",children:C?C({direction:w}):c})]})},_a=function(n){var t=n.moveToRightDisabled,r=n.moveToLeftDisabled,i=n.onMoveToRight,a=n.onMoveToLeft,o=n.style;return e.jsxs(fa,{className:"transfer-operation",$styles:o,children:[e.jsx(ha,{type:"button",$direction:"right",$disabled:t,onClick:i,disabled:t,"aria-label":"移动到右侧"}),e.jsx(ha,{type:"button",$direction:"left",$disabled:r,onClick:a,disabled:r,"aria-label":"移动到左侧"})]})},Ca=function(t){var r=t.dataSource,i=t.fieldNames,a=t.targetKeys,o=t.defaultTargetKeys,l=void 0===o?[]:o,s=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,j=t.rightDescription,_=t.filterOption,C=t.styles,w=t.listHeight,N=t.listWidth,z=t.header,E=t.search,S=t.body,T=t.onSelectChange,O=t.onChange,k=t.onSearch,L=t.render,A=t.footer,M=t.rowClassName,I=t.mode,D=void 0===I?"transfer":I,R=t.loading,H=void 0!==R&&R,P=t.loadingRender,V=t.loadingDelay,B=void 0!==a,U=void 0!==s,F=n.useState(l),Y=F[0],G=F[1],$=n.useState(d),W=$[0],K=$[1],Z=n.useState([]),X=Z[0],q=Z[1],J=B?a:Y,Q=U?s.filter(function(e){return!J.includes(e)}):W,ee=U?s.filter(function(e){return J.includes(e)}):X,ne=n.useMemo(function(){return r.filter(function(e){return!J.includes(ya(e,i))})},[r,J,i]),te=n.useMemo(function(){return r.filter(function(e){return J.includes(ya(e,i))})},[r,J,i]),re=n.useCallback(function(e,n){U||K(e),null==T||T(e,n)},[U,T]),ie=n.useCallback(function(e,n){U||q(n),null==T||T(e,n)},[U,T]),ae=n.useCallback(function(){if(0!==Q.length){var e=b(b([],J,!0),Q,!0),n=b([],Q,!0);B||(G(e),K([])),null==O||O(e,"right",n)}},[Q,J,B,O]),oe=n.useCallback(function(){if(0!==ee.length){var e=J.filter(function(e){return!ee.includes(e)}),n=b([],ee,!0);B||(G(e),q([])),null==O||O(e,"left",n)}},[ee,J,B,O]),le=n.useCallback(function(e){null==k||k("left",e)},[k]),se=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||G(t),null==O||O(t,"right",t),null==T||T([],t)},[B,O,T]),pe=n.useMemo(function(){return r},[r]),fe=n.useMemo(function(){return U?s.filter(function(e){return J.includes(e)}):J},[U,s,J]);return e.jsx(Qi,{className:"transfer-wrapper",$styles:null==C?void 0:C.wrapper,children:"single"===D?e.jsx(ja,{direction:"left",dataSource:pe,fieldNames:i,selectedKeys:fe,showSearch:p,disabled:h,title:m,description:y,filterOption:_,styles:C,listHeight:w,listWidth:N,header:z,search:E,body:S,onSelectChange:ue,onSearch:le,render:L,footer:A,rowClassName:M,loading:H,loadingRender:P,loadingDelay:V,sourceSelectedKeys:[],targetSelectedKeys:fe}):e.jsxs(e.Fragment,{children:[e.jsx(ja,{direction:"left",dataSource:ne,fieldNames:i,selectedKeys:Q,showSearch:p,disabled:h,title:m,description:y,filterOption:_,styles:C,listHeight:w,listWidth:N,header:z,search:E,body:S,onSelectChange:re,onSearch:le,render:L,footer:A,rowClassName:M,loading:H,loadingRender:P,loadingDelay:V,sourceSelectedKeys:Q,targetSelectedKeys:ee}),e.jsx(_a,{moveToRightDisabled:ce,moveToLeftDisabled:de,onMoveToRight:ae,onMoveToLeft:oe,style:null==C?void 0:C.operation}),e.jsx(ja,{direction:"right",dataSource:te,fieldNames:i,selectedKeys:ee,showSearch:p,disabled:h,title:x,description:j,filterOption:_,styles:C,listHeight:w,listWidth:N,header:z,search:E,body:S,onSelectChange:ie,onSearch:se,render:L,footer:A,rowClassName:M,loading:H,loadingRender:P,loadingDelay:V,sourceSelectedKeys:Q,targetSelectedKeys:ee})]})})},wa=h.default.label(Mi||(Mi=j(["\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"]))),Na=function(n){var t=n.title,r=n.indicatorColor,i=void 0===r?"blue":r,a=n.indicatorWidth,o=void 0===a?"3px":a,l=n.indicatorHeight,s=void 0===l?"100%":l,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(o),"--label-indicator-height":p(s),"--label-padding-right":p(d)},h=m(m({},f),u);return e.jsx(wa,{className:"label-wrapper",style:h,children:t||null})},za=function(e,n){return"var(".concat(e,", ").concat(n,")")},Ea=h.default.div(Aa||(Aa=j(["\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"])),za("--layout-min-height","100vh"),function(e){return"dark"===e.$theme?"linear-gradient(180deg, ".concat(za("--layout-bg-dark","#000")," 0%, ").concat(za("--zjpcy-text-color","rgba(0, 0, 0, 0.85)")," 100%)"):"linear-gradient(180deg, ".concat(za("--layout-bg-light","#f5f5f5")," 0%, ").concat(za("--zjpcy-bg-color","#fafafa")," 100%)")},function(e){return e.$hasSider&&"\n flex-direction: row;\n align-items: stretch;\n "}),Sa=h.default.header(Ma||(Ma=j(["\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"])),za("--layout-header-padding","0 24px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(za("--layout-header-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(za("--layout-header-bg-light","#fff")," 0%, ").concat(za("--zjpcy-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?za("--layout-header-color-dark","#fff"):za("--layout-header-color-light","rgba(0, 0, 0, 0.85)")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||za("--layout-header-height","60px")},za("--layout-header-z-index","10"),za("--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(za("--layout-header-box-shadow","0 2px 8px rgba(0, 0, 0, 0.15)"),";\n ")}),Ta=h.default.aside(Ia||(Ia=j(["\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 .zjpcy-menu {\n background: transparent;\n }\n\n /* Menu 菜单项在 Sider 中的样式 - 覆盖默认样式 */\n .zjpcy-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 .zjpcy-menu-submenu {\n .zjpcy-menu-item {\n margin: 0px;\n }\n }\n\n /* Dark 主题下的子菜单样式 */\n .zjpcy-menu-submenu.horizontal-popup,\n .zjpcy-menu-submenu.horizontal-popup .zjpcy-menu-submenu {\n background: linear-gradient(135deg, #001529 0%, #002140 100%);\n border: 1px solid #303030;\n }\n\n /* Dark 主题下子菜单中的菜单项 */\n .zjpcy-menu-submenu .zjpcy-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 .zjpcy-menu {\n background: transparent;\n }\n\n /* Menu 菜单项在 Sider 中的样式 - 覆盖默认样式 */\n .zjpcy-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 .zjpcy-menu-submenu {\n .zjpcy-menu-item {\n margin: 0px;\n }\n }\n\n /* Dark 主题下的子菜单样式 */\n .zjpcy-menu-submenu.horizontal-popup,\n .zjpcy-menu-submenu.horizontal-popup .zjpcy-menu-submenu {\n background: linear-gradient(135deg, #001529 0%, #002140 100%);\n border: 1px solid #303030;\n }\n\n /* Dark 主题下子菜单中的菜单项 */\n .zjpcy-menu-submenu .zjpcy-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(za("--layout-sider-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(180deg, ".concat(za("--layout-sider-bg-light","#fff")," 0%, ").concat(za("--zjpcy-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?za("--layout-sider-color-dark","#fff"):za("--layout-sider-color-light","rgba(0, 0, 0, 0.85)")},za("--layout-sider-z-index","10"),za("--layout-sider-transition","all 0.2s ease-in-out"),za("--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(za("--zjpcy-border-color-light","#f0f0f0"),")")},function(e){return"dark"===e.$theme?"2px 0 8px rgba(0, 0, 0, 0.3)":za("--zjpcy-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||za("--layout-sider-width","200px"),a=void 0!==t?"".concat(t,"px"):za("--layout-sider-collapsed-width","60px");return"\n width: ".concat(r?a:i,";\n min-width: ").concat(r?a:i,";\n max-width: ").concat(r?a:i,";\n ")},function(e){return e.$fixed&&"\n position: fixed;\n top: ".concat(za("--layout-header-height","64px"),";\n left: 0;\n bottom: 0;\n overflow-y: auto;\n box-shadow: ").concat(za("--layout-sider-box-shadow","0 4px 12px rgba(0, 0, 0, 0.15)"),";\n ")},za("--zjpcy-border-radius-sm","4px"),za("--zjpcy-text-color","rgba(0, 0, 0, 0.85)"),za("--zjpcy-primary-light-color","rgba(24, 144, 255, 0.06)"),za("--zjpcy-primary-color","#1890ff"),za("--zjpcy-primary-light-color","rgba(24, 144, 255, 0.12)"),za("--zjpcy-primary-color","#1890ff"),za("--zjpcy-primary-color","#1890ff"),za("--zjpcy-primary-light-color","rgba(24, 144, 255, 0.18)"),za("--zjpcy-primary-color","#1890ff")),Oa=h.default.div(Da||(Da=j(["\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"},za("--zjpcy-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 "}),ka=h.default.div(Ra||(Ra=j(["\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"])),za("--layout-trigger-height","48px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(za("--layout-sider-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(za("--layout-sider-bg-light","#fff")," 0%, ").concat(za("--zjpcy-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?za("--layout-sider-color-dark","#fff"):za("--layout-sider-color-light","rgba(0, 0, 0, 0.85)")},za("--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(za("--zjpcy-primary-color","#1890ff")," 100%)"):"linear-gradient(135deg, ".concat(za("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)")," 0%, ").concat(za("--zjpcy-bg-color-light","#f5f5f5")," 100%)")},function(e){return"dark"===e.$theme?"#fff":za("--zjpcy-primary-color","#1890ff")},function(e){var n=e.$placement,t=e.$theme;return"top"===n&&"\n border-bottom: 1px solid ".concat("dark"===t?"#303030":za("--zjpcy-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":za("--zjpcy-border-color-light","#f0f0f0"),";\n ")},function(e){var n=e.$zeroWidthMode,t=e.$collapsed;return n&&t&&"\n display: none;\n "}),La=h.default.div(Ha||(Ha=j(["\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"])),za("--zjpcy-primary-color","#1890ff"),za("--zjpcy-primary-hover-color","#40a9ff"),za("--zjpcy-shadow-sm","0 2px 8px rgba(0, 0, 0, 0.15)"),za("--zjpcy-transition-duration","0.2s"),za("--zjpcy-transition-timing-function","ease-in-out"),za("--zjpcy-primary-hover-color","#40a9ff"),za("--zjpcy-shadow-md","0 4px 12px rgba(0, 0, 0, 0.25)"),za("--zjpcy-shadow-extra-light","0 2px 8px rgba(0, 0, 0, 0.08)"));h.default.div(Pa||(Pa=j(["\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 Aa,Ma,Ia,Da,Ra,Ha,Pa,Va,Ba,Ua=h.default.main(Va||(Va=j(["\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"])),za("--layout-content-padding","24px"),za("--layout-content-bg","transparent"),za("--layout-content-min-height","280px"),za("--layout-content-transition","all 0.2s ease-in-out"),function(e){return e.$fixed&&"\n overflow-y: auto;\n "},za("--zjpcy-border-color-extra-light","#d9d9d9"),za("--zjpcy-border-radius-sm","4px"),za("--zjpcy-transition-duration","0.2s"),za("--zjpcy-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(za("--zjpcy-primary-color","#1890ff")," 50%, transparent);\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: color-mix(in srgb, ").concat(za("--zjpcy-primary-color","#1890ff")," 70%, transparent);\n }\n\n scrollbar-width: thin;\n scrollbar-color: color-mix(in srgb, ").concat(za("--zjpcy-primary-color","#1890ff")," 50%, transparent) transparent;\n ")}),Fa=h.default.footer(Ba||(Ba=j(["\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"])),za("--layout-footer-padding","24px 50px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(za("--layout-footer-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(za("--layout-footer-bg-light","#fff")," 0%, ").concat(za("--zjpcy-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?za("--layout-footer-color-dark","#fff"):za("--layout-footer-color-light","rgba(0, 0, 0, 0.85)")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||za("--layout-footer-height","48px")},function(e){return"dark"===e.$theme?"var(--layout-footer-border, 1px solid #303030)":"var(--layout-footer-border, 1px solid ".concat(za("--zjpcy-border-color-light","#f0f0f0"),")")},za("--layout-footer-z-index","10"),za("--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 "}),Ya=n.createContext(void 0),Ga=function(t){var r=t.children,i=n.useState(!1),a=i[0],o=i[1],l=n.useState(!1),s=l[0],c=l[1],d=n.useState(function(){return function(){}}),u=d[0],p=d[1];return e.jsx(Ya.Provider,{value:{siderCollapsed:a,setSiderCollapsed:o,zeroWidthMode:s,setZeroWidthMode:c,onExpand:u,setOnExpand:p},children:r})},$a=function(){var e=n.useContext(Ya);if(!e)throw new Error("useLayoutContext must be used within a LayoutProvider");return e},Wa=p.default.createContext({isNested:!1}),Ka=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,a=void 0===i?{}:i,o=n.children,l=n.width,s=void 0===l?200:l,c=n.collapsedWidth,d=void 0===c?60:c,u=n.collapsible,f=void 0!==u&&u,h=n.collapsed,g=void 0!==h&&h,m=n.onCollapse,v=n.trigger,x=n.triggerPlacement,y=void 0===x?"bottom":x,b=n.zeroWidthMode,j=void 0!==b&&b,_=n.fixed,C=void 0!==_&&_,w=n.theme,N=void 0===w?"light":w,z=p.default.useContext(Wa).isNested,E=$a(),S=E.setSiderCollapsed,T=E.setZeroWidthMode,O=E.setOnExpand;p.default.useEffect(function(){S(g),T(j)},[g,j,S,T]);var k=function(){null==m||m(!g)};p.default.useEffect(function(){O(function(){return k})},[g,m,O]);var L=j&&g?0:d;return e.jsxs(Ta,{className:"layout-sider ".concat(g?"collapsed":""," ").concat(r),style:a,$width:s,$collapsedWidth:L,$collapsed:g,$fixed:C,$theme:N,$inNestedLayout:z,children:[e.jsx(Oa,{children:o}),f&&e.jsx(ka,{className:"layout-sider-trigger",$collapsed:g,$placement:j?"top":y,onClick:k,$zeroWidthMode:j,$theme:N,children:v||e.jsx(B,{type:g?"arrowRight":"arrowLeft",size:20,color:"dark"===N?"#fff":"rgba(0, 0, 0, 0.65)"})})]})},Za=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,a=void 0===i?{}:i,o=n.children,l=n.hasSider,s=n.theme,c=void 0!==l?l:function(e){return!!e&&p.default.Children.toArray(e).some(function(e){return p.default.isValidElement(e)&&e.type===Ka})}(o);return e.jsx(Ga,{children:e.jsx(Wa.Provider,{value:{isNested:!0},children:e.jsx(Ea,{className:"layout-wrapper ".concat(r),style:a,$hasSider:c,$theme:s,children:o})})})};Za.Header=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,a=void 0===i?{}:i,o=n.children,l=n.height,s=n.fixed,c=void 0!==s&&s,d=n.theme,u=void 0===d?"light":d,p=(null==a?void 0:a.background)||"#3030302b";return e.jsx(Sa,{className:"layout-header layout-header-".concat(u," ").concat(r),style:a,$height:l,$fixed:c,$theme:u,$bgColor:p,children:o})},Za.Sider=Ka,Za.Content=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,a=void 0===i?{}:i,o=n.children,l=n.theme,s=void 0===l?"light":l,c=$a(),d=c.siderCollapsed,u=c.zeroWidthMode,p=c.onExpand;return e.jsxs(Ua,{className:"layout-content ".concat(r),style:a,$theme:s,children:[u&&d&&e.jsx(La,{onClick:p,children:e.jsx(B,{type:"menu",size:24,color:"#fff"})}),o]})},Za.Footer=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,a=void 0===i?{}:i,o=n.children,l=n.height,s=n.fixed,c=void 0!==s&&s,d=n.theme;return e.jsx(Fa,{className:"layout-footer ".concat(r),style:a,$height:l,$fixed:c,$theme:d,children:o})};var Xa,qa,Ja,Qa,eo,no,to,ro=Za,io=function(e,n){return"var(".concat(e,", ").concat(n,")")},ao=r.keyframes(Xa||(Xa=j(["\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"]))),oo=h.default.form(qa||(qa=j(["\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")}),lo=h.default.div(Ja||(Ja=j(["\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"])),io("--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(io("--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")}),so=h.default.label(Qa||(Qa=j(["\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"])),io("--form-label-font-size","14px"),io("--form-label-color","#333"),io("--form-label-margin-bottom","8px"),function(e){return e.$labelAlign||"end"},function(e){return e.$colon?'":"':""},function(e){return e.$required?'"*"':'""'},io("--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")}),co=h.default.div(eo||(eo=j(["\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")}),uo=h.default.div(no||(no=j(["\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"])),io("--form-error-font-size","12px"),io("--form-error-color","#f5222d"),ao,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")}),po=h.default.div(to||(to=j(["\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"])),io("--form-help-font-size","12px"),io("--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")}),fo=n.createContext(null),ho=function(t){var r=t.children,i=t.className,a=void 0===i?"":i,o=t.style,l=t.layout,s=void 0===l?"horizontal":l,c=t.labelSpan,d=t.wrapperSpan,u=t.initialValues,f=void 0===u?{}:u,h=t.onFinish,g=t.onFinishFailed,v=t.colon,b=void 0===v||v,j=t.requiredMark,_=void 0===j||j,C=t.styles,w=t.formRef,N=t.form,z=n.useState(f),E=z[0],S=z[1],T=n.useState({}),O=T[0],k=T[1],L=n.useRef(null),A=n.useRef(new Map),M=n.useRef(null),I=n.useCallback(function(e,n){S(function(t){var r;return m(m({},t),((r={})[e]=n,r))}),O[e]&&k(function(n){var t=m({},n);return delete t[e],t})},[O]),D=n.useCallback(function(e){return E[e]},[E]),R=n.useCallback(function(e){S(function(n){return m(m({},n),e)}),Object.keys(e).forEach(function(e){O[e]&&k(function(n){var t=m({},n);return delete t[e],t})})},[O]),H=n.useCallback(function(e){return x(void 0,void 0,void 0,function(){var n,t,r,i,a,o,l,s;return y(this,function(c){switch(c.label){case 0:if(!(n=A.current.get(e)))return[2];if(t=n.rules,r=E[e],!t||0===t.length)return[2];i=function(n){var t,i,a,o,l,s,c,d,u;return y(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 m(m({},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 m(m({},n),((t={})[e]=i,t))}),[2,{value:i}];if(n.type){switch(a=!0,n.type){case"email":a=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r);break;case"url":a=/^https?:\/\/.+$/.test(r);break;case"number":a=!isNaN(Number(r));break;case"integer":a=Number.isInteger(Number(r));break;case"float":a=!isNaN(parseFloat(r))&&isFinite(r);break;case"string":a="string"==typeof r;break;case"boolean":a="boolean"==typeof r;break;case"array":a=Array.isArray(r);break;case"object":a="object"==typeof r&&null!==r&&!Array.isArray(r)}if(!a)return o=n.message||"".concat(e," must be a ").concat(n.type),k(function(n){var t;return m(m({},n),((t={})[e]=o,t))}),[2,{value:o}]}if(void 0!==n.min&&r.length<n.min)return l=n.message||"".concat(e," must be at least ").concat(n.min," characters"),k(function(n){var t;return m(m({},n),((t={})[e]=l,t))}),[2,{value:l}];if(void 0!==n.max&&r.length>n.max)return s=n.message||"".concat(e," must be at most ").concat(n.max," characters"),k(function(n){var t;return m(m({},n),((t={})[e]=s,t))}),[2,{value:s}];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 m(m({},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 m(m({},n),((t={})[e]=u,t))}),[2,{value:u}];case 4:return[2]}})},a=0,o=t,c.label=1;case 1:return a<o.length?(l=o[a],[5,i(l)]):[3,4];case 2:if("object"==typeof(s=c.sent()))return[2,s.value];c.label=3;case 3:return a++,[3,1];case 4:return k(function(n){var t=m({},n);return delete t[e],t}),[2,null]}})})},[E]),P=n.useCallback(function(e){return x(void 0,void 0,void 0,function(){var n,t;return y(this,function(r){switch(r.label){case 0:return n=e||Array.from(A.current.keys()),[4,Promise.all(n.map(function(e){return H(e)}))];case 1:if(t=r.sent(),t.some(function(e){return null!==e}))throw new Error("Validation failed");return[2,E]}})})},[H,E]),V=n.useCallback(function(e){if(e){var n=m({},E);e.forEach(function(e){n[e]=f[e]||void 0}),S(n)}else S(f);k({})},[E,f]),B={getFieldValue:D,getFieldsValue:function(e){if(!e)return E;var n={};return e.forEach(function(e){n[e]=E[e]}),n},setFieldValue:I,setFieldsValue:R,setFields:function(e){var n=m({},E),t=m({},O);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]}),S(n),k(t)},resetFields:V,validateFields:P,submit:function(){P().then(function(){var e=document.querySelector("form");e&&e.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))})},destroy:function(){S({}),k({}),A.current.clear(),M.current=null}};n.useEffect(function(){M.current=B,w&&(w.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,w,N]);var U=n.useCallback(function(e,n){return A.current.set(e,n),function(){A.current.delete(e)}},[]),F={layout:s,labelSpan:c,wrapperSpan:d,colon:b,requiredMark:_,values:E,errors:O,setFieldValue:I,getFieldValue:D,setFieldValueList:R,validateField:H,validateFields:P,resetFields:V};return e.jsx(fo.Provider,{value:F,children:e.jsx(oo,{ref:L,className:"form-wrapper ".concat(a),style:o,$styles:null==C?void 0:C.wrapper,onSubmit:function(e){return x(void 0,void 0,void 0,function(){var n;return y(this,function(t){switch(t.label){case 0:e.preventDefault(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,P()];case 2:return t.sent(),null==h||h(E),[3,4];case 3:return n=t.sent(),null==g||g({error:n,values:E}),[3,4];case 4:return[2]}})})},children:p.default.Children.map(r,function(e){return p.default.isValidElement(e)&&e.type===go?p.default.cloneElement(e,{registerItem:U}):e})})})},go=function(t){var r=t.name,i=t.label,a=t.required,o=t.rules,l=void 0===o?[]:o,s=t.className,c=void 0===s?"":s,d=t.style,u=t.help,f=t.validateStatus,h=t.colon,g=t.labelSpan,v=t.wrapperSpan,x=t.hidden,y=void 0!==x&&x,b=t.extra,j=t.styles,_=t.registerItem,C=t.children,w=n.useContext(fo),N=n.useState(r&&(null==w?void 0:w.values[r])?w.values[r]:""),z=N[0],E=N[1];n.useEffect(function(){if(_&&r)return _(r,{rules:l})},[_,r,l]),n.useEffect(function(){w&&r&&E(w.values[r])},[w,r,null==w?void 0:w.values]);var S=a||l.some(function(e){return e.required}),T=w&&r?w.errors[r]:"",O=!!T||"error"===f,k=void 0!==g?g:null==w?void 0:w.labelSpan,L=void 0!==v?v:null==w?void 0:w.wrapperSpan,A=k?k/24*100:void 0,M=void 0;if(void 0!==k){var I=24-k,D=void 0!==L?L:I;D>I&&(D=I),D<1&&(D=1),M=D/24*100}return y?null:e.jsxs(lo,{className:"form-item ".concat(c),style:d,$layout:(null==w?void 0:w.layout)||"horizontal",$styles:null==j?void 0:j.wrapper,children:[i&&e.jsx(so,{className:"form-label",$required:S,$colon:void 0!==h?h:null==w?void 0:w.colon,$styles:m(m({},null==j?void 0:j.label),void 0!==A?{width:"".concat(A,"%")}:{}),children:i}),e.jsxs(co,{className:"form-control",$styles:m(m({},null==j?void 0:j.input),void 0!==M?{width:"".concat(M,"%")}:{}),children:[p.default.Children.map(p.default.Children.toArray(C).filter(function(e){return p.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 p.default.cloneElement(e,{value:z,onChange:function(e){var t,i;!function(e){E(e),r&&(null==w||w.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:O||void 0,autoComplete:t})}),O&&e.jsx(uo,{className:"form-error ".concat(O?"form-error-visible":""),$styles:null==j?void 0:j.error,children:T}),u&&!O&&e.jsx(po,{className:"form-help",$styles:null==j?void 0:j.help,children:u}),b&&!O&&e.jsx(po,{className:"form-help",$styles:null==j?void 0:j.help,children:b})]})]})};ho.Item=go;var mo,vo,xo,yo=ho,bo=h.default.div.withConfig({shouldForwardProp:function(e){return!["width","height","gap","padding","backgroundColor"].includes(e)}})(mo||(mo=j(["\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"}),jo=h.default.div.withConfig({shouldForwardProp:function(e){return!["span","rowGap","align","justify","wrap"].includes(e)}})(vo||(vo=j(["\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"}),_o=h.default.div.withConfig({shouldForwardProp:function(e){return!["span","offset","push","pull","order","gap"].includes(e)}})(xo||(xo=j(["\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"}),Co=n.createContext({}),wo=n.createContext({}),No=p.default.forwardRef(function(t,r){var i=t.children,a=t.className,o=t.style,l=t.span,s=t.offset,c=t.push,d=t.pull,u=t.order,p=t.gap,h=n.useContext(wo),g=null==h?void 0:h.gap,m=void 0!==p?p:g;return e.jsx(_o,{ref:r,className:f.default("zjpcy-grid-col",a),style:o,span:l,offset:s,push:c,pull:d,order:u,gap:m,children:i})});No.displayName="Grid.Col";var zo=p.default.forwardRef(function(t,r){var i=t.children,a=t.className,o=t.style,l=t.span,s=t.gap,c=t.rowGap,d=t.align,u=t.justify,p=t.wrap,h=void 0===p||p,g=n.useContext(Co),m=null==g?void 0:g.gap,v=void 0!==s?s:m;return e.jsx(wo.Provider,{value:{gap:v},children:e.jsx(jo,{ref:r,className:f.default("zjpcy-grid-row",a),style:o,span:l,rowGap:c,align:d,justify:u,wrap:h,children:i})})});zo.displayName="Grid.Row";var Eo=Object.assign(zo,{Col:No}),So=p.default.forwardRef(function(n,t){var r=n.children,i=n.className,a=n.style,o=n.width,l=n.height,s=n.gap,c=n.padding,d=n.backgroundColor;return e.jsx(Co.Provider,{value:{gap:s},children:e.jsx(bo,{ref:t,className:f.default("zjpcy-grid",i),style:a,width:o,height:l,gap:s,padding:c,backgroundColor:d,children:r})})});So.displayName="Grid";var To=Object.assign(So,{Row:Eo,Col:No}),Oo=function(t){var r=t.open,i=t.title,a=t.width,l=void 0===a?460:a,s=t.height,c=void 0===s?300:s,d=t.placement,u=void 0===d?"right":d,p=t.maskClosable,h=void 0===p||p,g=t.mask,v=void 0===g||g,x=t.onClose,y=t.children,b=t.className,j=t.style,_=t.maskStyle,C=t.maskClassName,w=t.contentClassName,N=t.contentStyle,z=t.header,E=t.headerClassName,S=t.headerStyle,T=t.footer,O=t.footerClassName,k=t.footerStyle,L=t.getContainer,A=void 0!==L&&L,M=t.destroyOnClose,I=void 0!==M&&M,D=t.closable,R=void 0===D||D,H=t.zIndex,P=void 0===H?1e3:H,V=t.loading,U=void 0!==V&&V,F=t.loadingIcon,Y=t.resizable,G=void 0!==Y&&Y,$=t.resizeHandleSize,W=void 0===$?8:$,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],ae=n.useState(!1),oe=ae[0],le=ae[1],se=window.innerWidth,ce=window.innerHeight,de=n.useState("number"==typeof l?l:460),ue=de[0],fe=de[1],he=n.useState("number"==typeof c?c:300),ge=he[0],me=he[1],ve=n.useState(!1),xe=ve[0],ye=ve[1],be=n.useRef(null),je=n.useRef({x:0,y:0}),_e=n.useRef({width:0,height:0}),Ce=n.useRef({width:ue,height:ge}),we=n.useRef({placement:u,minWidth:Z,maxWidth:se,minHeight:q,maxHeight:ce,onChange:J});n.useEffect(function(){Ce.current={width:ue,height:ge}},[ue,ge]),n.useEffect(function(){we.current={placement:u,minWidth:Z,maxWidth:se,minHeight:q,maxHeight:ce,onChange:J}},[u,Z,se,q,ce,J]),n.useEffect(function(){"number"==typeof l&&fe(l)},[l]),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()},ze=function(){x()},Ee=function(e){return"number"==typeof e?"".concat(e,"px"):e},Se=function(){var e=m(m({},j),{zIndex:P}),n=G?{width:ue,height:ge}:{width:l,height:c};switch(u){case"left":case"right":e.width=Ee(n.width),e.height="100%";break;case"top":case"bottom":e.height=Ee(n.height),e.width="100%"}return xe&&(e.transition="none"),e},Te=G&&ee,Oe=function(){switch(u){case"left":return"zjpcy-drawer-resize-handle--right";case"right":return"zjpcy-drawer-resize-handle--left";case"top":return"zjpcy-drawer-resize-handle--bottom";case"bottom":return"zjpcy-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"}},Le=n.useCallback(function(e){e.preventDefault(),e.stopPropagation();var n=Ce.current.width,t=Ce.current.height;if(be.current){var r=we.current;"left"===r.placement||"right"===r.placement?be.current.style.width="".concat(n,"px"):be.current.style.height="".concat(t,"px")}ye(!0),je.current={x:e.clientX,y:e.clientY},_e.current={width:n,height:t}},[]),Ae=n.useCallback(function(e){var n,t=we.current,r=e.clientX-je.current.x,i=e.clientY-je.current.y,a=_e.current.width,o=_e.current.height;if("left"===t.placement){var l=_e.current.width+r;(a=Math.max(t.minWidth,Math.min(t.maxWidth,l)))!==l&&(je.current.x=e.clientX,_e.current.width=a)}else if("right"===t.placement){l=_e.current.width-r;(a=Math.max(t.minWidth,Math.min(t.maxWidth,l)))!==l&&(je.current.x=e.clientX,_e.current.width=a)}else if("top"===t.placement){var s=_e.current.height+i;(o=Math.max(t.minHeight,Math.min(t.maxHeight,s)))!==s&&(je.current.y=e.clientY,_e.current.height=o)}else if("bottom"===t.placement){s=_e.current.height-i;(o=Math.max(t.minHeight,Math.min(t.maxHeight,s)))!==s&&(je.current.y=e.clientY,_e.current.height=o)}Ce.current={width:a,height:o},fe(a),me(o),null===(n=t.onChange)||void 0===n||n.call(t,{width:a,height:o})},[]),Me=n.useCallback(function(){ye(!1)},[]);n.useEffect(function(){return xe?(document.addEventListener("mousemove",Ae),document.addEventListener("mouseup",Me)):(document.removeEventListener("mousemove",Ae),document.removeEventListener("mouseup",Me)),function(){document.removeEventListener("mousemove",Ae),document.removeEventListener("mouseup",Me)}},[xe,Ae,Me]);var Ie=function(){return U?F?e.jsx("div",{className:"zjpcy-drawer-loading",children:e.jsx("div",{className:"zjpcy-drawer-loading-content",children:F})}):e.jsx("div",{className:"zjpcy-drawer-loading",children:e.jsx("div",{className:"zjpcy-drawer-loading-content",children:e.jsx("div",{className:"zjpcy-drawer-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"zjpcy-drawer-loading-icon",children:[e.jsx("circle",{className:"zjpcy-drawer-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"zjpcy-drawer-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})})})}):null},De=function(){return!1===z?null:z?e.jsx("div",{className:f.default("zjpcy-drawer-header",E),style:S,children:z}):i||R?e.jsxs("div",{className:f.default("zjpcy-drawer-header",E),style:S,children:[e.jsx("div",{className:"zjpcy-drawer-header__title",children:i}),R&&e.jsx("button",{className:"zjpcy-drawer-header__close",onClick:ze,type:"button","aria-label":"Close",children:e.jsx(B,{type:"close",size:20})})]}):null},Re=function(){var n;return Te?e.jsx("div",{className:f.default("zjpcy-drawer-resize-handle",Oe()),style:(n={cursor:ke()},n["left"===u||"right"===u?"width":"height"]=W,n),onMouseDown:Le}):null},He=function(){if(!ee&&!oe)return null;var n=e.jsx("div",{className:f.default("zjpcy-drawer-overlay",{"zjpcy-drawer-overlay--visible":re&&!oe,"zjpcy-drawer-overlay--closing":oe,"zjpcy-drawer-overlay--resizing":xe},C),style:m({zIndex:P},_),onClick:Ne,children:e.jsxs("div",{ref:be,className:f.default("zjpcy-drawer","zjpcy-drawer--".concat(u),{"zjpcy-drawer--visible":re&&!oe,"zjpcy-drawer--closing":oe,"zjpcy-drawer--no-mask":!v,"zjpcy-drawer--resizing":xe},b),style:Se(),onClick:function(e){return e.stopPropagation()},children:[Ie(),De(),e.jsx("div",{className:f.default("zjpcy-drawer-content",w),style:N,children:I&&oe?null:y}),!1!==T&&e.jsx("div",{className:f.default("zjpcy-drawer-footer",O),style:k,children:T||e.jsxs(e.Fragment,{children:[e.jsx(pe,{onClick:ze,type:"button",children:"取消"}),e.jsx(pe,{variant:"primary",onClick:ze,type:"button",children:"确认"})]})}),Re()]})});return v?n:e.jsx("div",{className:f.default("zjpcy-drawer-wrapper",{"zjpcy-drawer-wrapper--visible":re&&!oe,"zjpcy-drawer-wrapper--closing":oe,"zjpcy-drawer-wrapper--no-mask":!v}),style:{zIndex:P},children:e.jsxs("div",{ref:be,className:f.default("zjpcy-drawer","zjpcy-drawer--".concat(u),{"zjpcy-drawer--visible":re&&!oe,"zjpcy-drawer--closing":oe,"zjpcy-drawer--no-mask":!v,"zjpcy-drawer--resizing":xe},b),style:Se(),children:[Ie(),De(),e.jsx("div",{className:f.default("zjpcy-drawer-content",w),style:N,children:I&&oe?null:y}),!1!==T&&e.jsx("div",{className:f.default("zjpcy-drawer-footer",O),style:k,children:T||e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:ze,type:"button",children:"取消"}),e.jsx("button",{onClick:ze,type:"button",children:"确认"})]})}),Re()]})})}();if(!He)return null;if(!1===A)return He;var Pe="function"==typeof A?A():A;return Pe?o.createPortal(He,Pe):He},ko=p.default.forwardRef(function(t,r){var i=t.children,a=t.className,o=t.style,l=t.size,s=void 0===l?"medium":l,c=t.backgroundColor,d=t.color,u=t.icon,p=t.closable,h=void 0!==p&&p,g=t.onClose,x=t.onClick,y=v(t,["children","className","style","size","backgroundColor","color","icon","closable","onClose","onClick"]),b=n.useState(!0),j=b[0],_=b[1];if(!j)return null;var C=f.default("zjpcy-tag","zjpcy-tag--".concat(s),{"zjpcy-tag--clickable":x,"zjpcy-tag--closable":h},a),w=m({backgroundColor:c,color:d},o);return e.jsxs("span",m({ref:r,className:C,style:w,onClick:x},y,{children:[u?"string"==typeof u?e.jsx("span",{className:"zjpcy-tag__icon",children:e.jsx(B,{type:u})}):e.jsx("span",{className:"zjpcy-tag__icon",children:u}):null,e.jsx("span",{className:"zjpcy-tag__content",children:i}),h&&e.jsx("span",{className:"zjpcy-tag__close",onClick:function(e){e.stopPropagation(),null==g||g(e),_(!1)},role:"button",tabIndex:0,"aria-label":"close",children:e.jsx(B,{type:"close"})})]}))});ko.displayName="Tag";var Lo=ko,Ao=function(t){var r=t.title,i=void 0===r?"确认删除吗?":r,a=t.description,l=t.okText,s=void 0===l?"确定":l,c=t.cancelText,d=void 0===c?"取消":c,u=t.okButtonProps,p=void 0===u?{}:u,h=t.cancelButtonProps,g=void 0===h?{}:h,v=t.onConfirm,b=t.onCancel,j=t.disabled,_=void 0!==j&&j,C=t.icon,w=t.type,N=void 0===w?"warning":w,z=t.placement,E=void 0===z?"top":z,S=t.showCancel,T=void 0===S||S,O=t.getContainer,k=void 0===O?function(){return document.body}:O,L=t.className,A=t.style,M=t.children,I=n.useState(!1),D=I[0],R=I[1],H=n.useState(!1),P=H[0],V=H[1],U=n.useState({top:0,left:0}),F=U[0],Y=U[1],G=n.useRef(null),$=n.useRef(null),W={top:"zjpcy-popconfirm-top",bottom:"zjpcy-popconfirm-bottom",left:"zjpcy-popconfirm-left",right:"zjpcy-popconfirm-right",topLeft:"zjpcy-popconfirm-topLeft",topRight:"zjpcy-popconfirm-topRight",bottomLeft:"zjpcy-popconfirm-bottomLeft",bottomRight:"zjpcy-popconfirm-bottomRight",leftTop:"zjpcy-popconfirm-leftTop",leftBottom:"zjpcy-popconfirm-leftBottom",rightTop:"zjpcy-popconfirm-rightTop",rightBottom:"zjpcy-popconfirm-rightBottom"},K=function(){if(G.current&&$.current){var e=G.current.getBoundingClientRect(),n=$.current.getBoundingClientRect(),t=0,r=0;switch(E){case"top":case"topLeft":case"topRight":t=e.top-n.height-8,r=e.left+(e.width-n.width)/2,"topLeft"===E?r=e.left:"topRight"===E&&(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"===E?r=e.left:"bottomRight"===E&&(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"===E?t=e.top:"leftBottom"===E&&(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"===E?t=e.top:"rightBottom"===E&&(t=e.bottom-n.height)}var i=window.innerWidth,a=window.innerHeight;r<10&&(r=10),r+n.width>i-10&&(r=i-n.width-10),t<10&&(t=10),t+n.height>a-10&&(t=a-n.height-10),Y({top:t,left:r})}},Z=function(e){_||(e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),R(!0))},X=function(){return x(void 0,void 0,void 0,function(){return y(this,function(e){switch(e.label){case 0:if(!v)return[3,5];V(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,v()];case 2:return e.sent(),R(!1),[3,4];case 3:return V(!1),[7];case 4:return[3,6];case 5:R(!1),e.label=6;case 6:return[2]}})})},q=function(){b&&b(),R(!1)},J=function(e){$.current&&!$.current.contains(e.target)&&G.current&&!G.current.contains(e.target)&&R(!1)};n.useEffect(function(){if(D){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)}}},[D,E]);var Q,ee;return e.jsxs(e.Fragment,{children:[(Q=M,ee=Q.props||{},e.jsx("span",{ref:G,style:{display:"inline-block"},children:n.cloneElement(Q,m(m({},ee),{onClick:Z}))})),function(){if(!D)return null;var n,t=e.jsxs("div",{ref:$,className:f.default("zjpcy-popconfirm","zjpcy-popconfirm-visible",W[E],"zjpcy-popconfirm--".concat(N),L),style:m({position:"fixed",top:"".concat(F.top,"px"),left:"".concat(F.left,"px")},A),children:[e.jsx("div",{className:"zjpcy-popconfirm-arrow"}),e.jsxs("div",{className:"zjpcy-popconfirm-inner",children:[e.jsxs("div",{className:"zjpcy-popconfirm-header",children:[e.jsx("span",{style:{display:C?"inline-block":"none"},className:"zjpcy-popconfirm-icon",children:C||(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(B,{type:n.type,size:18,color:n.color}))}),e.jsx("span",{className:"zjpcy-popconfirm-title",children:i})]}),a&&e.jsx("div",{className:"zjpcy-popconfirm-description",children:a}),e.jsxs("div",{className:"zjpcy-popconfirm-actions",children:[T&&e.jsx(pe,{variant:g.variant||"secondary",onClick:q,disabled:g.disabled||P,size:"small",children:d}),e.jsx(pe,{variant:p.variant||"primary",onClick:X,loading:p.loading||P,disabled:p.disabled,size:"small",children:s})]})]})]});if(!1===k)return t;var r="function"==typeof k?k():k;return r?o.createPortal(t,r):t}()]})},Mo=function(n){var t,r,i,a=n.percent,o=void 0===a?0:a,l=n.type,s=void 0===l?"line":l,c=n.status,d=n.showInfo,u=void 0===d||d,p=n.format,h=n.strokeColor,g=void 0===h?"#1890ff":h,v=n.trailColor,x=void 0===v?"gainsboro":v,y=n.strokeWidth,b=n.size,j=void 0===b?"default":b,_=n.transition,C=void 0===_||_,w=n.steps,N=n.segments,z=n.icon,E=n.prefix,S=n.suffix,T=n.children,O=n.className,k=n.style,L=c||(o>=100?"success":o<0?"exception":"normal"),A=function(){return p?p(o):"".concat(Math.floor(o),"%")},M=function(e){return"object"==typeof e&&"from"in e&&"to"in e},I=function(){return"success"===L?"#52c41a":"exception"===L?"#ff4d4f":M(g)?g.from:g},D=function(){return z||("success"===L?e.jsx(B,{type:"check-circle",style:{color:"#52c41a"}}):"exception"===L?e.jsx(B,{type:"close-circle",style:{color:"#ff4d4f"}}):null)};if("circle"===s||"dashboard"===s){var R=50-(y||6),H=2*Math.PI*R,P=H-o/100*H,V="success"===L?"#52c41a":"exception"===L?"#ff4d4f":g,U=M(V)?(r=(t=V).from,i=t.to,"from-".concat(r.replace("#",""),"-to-").concat(i.replace("#",""))):null;return e.jsxs("div",{className:f.default("zjpcy-progress","zjpcy-progress-circle",O),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:V.from}),e.jsx("stop",{offset:"100%",stopColor:V.to})]})}),e.jsx("circle",{cx:60,cy:60,r:R,stroke:x,strokeWidth:y||6,fill:"none"}),e.jsx("circle",{cx:60,cy:60,r:R,stroke:U?"url(#".concat(U,")"):I(),strokeWidth:y||6,fill:"none",strokeDasharray:H,strokeDashoffset:P,strokeLinecap:"round",style:{transition:C?"stroke-dashoffset 0.3s cubic-bezier(0.34, 0.69, 0.1, 1)":"none"}})]}),u&&e.jsx("div",{className:"zjpcy-progress-info",children:T||e.jsxs(e.Fragment,{children:[D(),E,A(),S]})})]})}var F=function(e){var n=e.color;if(M(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:f.default("zjpcy-progress","zjpcy-progress-".concat(j),"zjpcy-progress-line",{"zjpcy-progress-success":"success"===L},{"zjpcy-progress-exception":"exception"===L},{"zjpcy-progress-steps":w&&w>0},{"zjpcy-progress-has-segments":N&&N.length>0},O),style:k,children:[e.jsx("div",{className:"zjpcy-progress-wrapper",children:e.jsx("div",{className:"zjpcy-progress-outer",children:w&&w>0?function(){if(!w||w<=0)return null;var n=o/100,t=Math.min(1,Math.max(0,n)),r=Array.from({length:w},function(n,r){var i=r/w,a=(r+1)/w,o=t>=a,l=t>i&&t<a,s=t<=i,c=t>=1;return e.jsx("div",{className:f.default("zjpcy-progress-step",{"zjpcy-progress-step--completed":o,"zjpcy-progress-step--current":l,"zjpcy-progress-step--pending":s,"zjpcy-progress-step--success":c}),style:{transition:C?"all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function)":"none"}},r)});return e.jsx("div",{className:"zjpcy-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===o||0===o?n:o,r=n>0?t/n:t/100,i=Math.min(1,Math.max(0,r)),a=0,l=N.map(function(t,r){var o=t.percent,l=a/n,s=(a+o)/n;a+=o;var c=i>=s,d=i>l&&i<s,u=i<=l;return e.jsx("div",{className:f.default("zjpcy-progress-segment",{"zjpcy-progress-segment--completed":c,"zjpcy-progress-segment--current":d,"zjpcy-progress-segment--pending":u}),style:m(m({width:"".concat(o,"%")},u?{}:F(t)),{transition:C?"all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function)":"none"})},r)}),s=100-n;return s>0&&l.push(e.jsx("div",{className:"zjpcy-progress-segment zjpcy-progress-segment--remaining",style:{width:"".concat(s,"%"),backgroundColor:"gainsboro",transition:C?"all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function)":"none"}},"remaining")),e.jsx("div",{className:"zjpcy-progress-segments",children:l})}():e.jsx("div",{className:"zjpcy-progress-inner",style:{background:x},children:e.jsx("div",{className:f.default("zjpcy-progress-bg",{"zjpcy-progress-bg--success":"success"===L,"zjpcy-progress-bg--exception":"exception"===L,"zjpcy-progress-bg--animated":function(){var e="success"===L?"#52c41a":"exception"===L?"#ff4d4f":g;return M(e)&&!0===e.animated}()}),style:m(m({width:"".concat(Math.min(100,Math.max(0,o)),"%"),backgroundColor:M(g)?void 0:I()},function(){var e="success"===L?"#52c41a":"exception"===L?"#ff4d4f":g;if(M(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:C?"width 0.3s cubic-bezier(0.34, 0.69, 0.1, 1)":"none"})})})})}),u&&e.jsxs("div",{className:"zjpcy-progress-info",children:[D()&&e.jsx("span",{className:"zjpcy-progress-icon",children:D()}),E&&e.jsx("span",{className:"zjpcy-progress-prefix",children:E}),e.jsx("span",{children:A()}),S&&e.jsx("span",{className:"zjpcy-progress-suffix",children:S})]})]})},Io=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))},Do=function(n){var t=n.options,r=n.value,i=n.onChange,a=n.unit,o=p.default.useRef(null),l=p.default.useRef(null);return p.default.useEffect(function(){if(l.current&&o.current){var e=o.current,n=l.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:a}),e.jsx("div",{className:"time-picker-column-list",ref:o,children:t.map(function(n){return e.jsx("div",{ref:r===n?l:null,className:f.default("time-picker-option",{"is-selected":r===n}),onClick:function(){return null==i?void 0:i(n)},children:n.toString().padStart(2,"0")},n)})})]})},Ro=function(t){var r,i,a,o=t.value,l=t.onChange,s=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,y=t.showOk,b=void 0===y||y,j=t.onNow,_=t.onOk,C=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}}(o),w=n.useState(null!==(r=null==C?void 0:C.hour)&&void 0!==r?r:0),N=w[0],z=w[1],E=n.useState(null!==(i=null==C?void 0:C.minute)&&void 0!==i?i:0),S=E[0],T=E[1],O=n.useState(null!==(a=null==C?void 0:C.second)&&void 0!==a?a:0),k=O[0],L=O[1];n.useEffect(function(){if(C)z(C.hour),T(C.minute),L(C.second);else{var e=new Date;z(e.getHours()),T(e.getMinutes()),L(e.getSeconds())}},[o,C]);var A=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},M=n.useMemo(function(){return(null==p?void 0:p())||[]},[p]),I=n.useMemo(function(){return(null==f?void 0:f(N))||[]},[f,N]),D=n.useMemo(function(){return(null==h?void 0:h(N,S))||[]},[h,N,S]),R=n.useMemo(function(){return A(24,c,M)},[c,M,m]),H=n.useMemo(function(){return A(60,d,I)},[d,I,m]),P=n.useMemo(function(){return A(60,u,D)},[u,D,m]),V=s.includes("ss");return e.jsxs("div",{className:"time-picker-panel-container",children:[e.jsxs("div",{className:"time-picker-panel",children:[e.jsx(Do,{unit:"时",options:R,value:N,onChange:function(e){z(e),null==l||l(Io(e,S,k,s))}}),e.jsx(Do,{unit:"分",options:H,value:S,onChange:function(e){T(e),null==l||l(Io(N,e,k,s))}}),V&&e.jsx(Do,{unit:"秒",options:P,value:k,onChange:function(e){L(e),null==l||l(Io(N,S,e,s))}})]}),(x||b)&&e.jsxs("div",{className:"time-picker-footer",children:[x&&e.jsx("button",{className:"time-picker-now-btn",onClick:j,children:"此刻"}),b&&e.jsx("button",{className:"time-picker-ok-btn",onClick:function(){return null==_?void 0:_(Io(N,S,k,s))},children:"确定"})]})]})},Ho=function(t){var r,i=t.size,a=void 0===i?"middle":i,o=t.value,l=t.defaultValue,s=t.onChange,c=t.placeholder,d=void 0===c?"请选择时间":c,u=t.disabled,p=void 0!==u&&u,h=t.readOnly,v=void 0!==h&&h,x=t.className,y=void 0===x?"":x,b=t.style,j=t.width,_=void 0===j?120:j,C=t.format,w=void 0===C?"HH:mm:ss":C,N=t.allowClear,z=void 0===N||N,E=t.hourStep,S=void 0===E?1:E,T=t.minuteStep,O=void 0===T?1:T,k=t.secondStep,L=void 0===k?1:k,A=t.disabledHours,M=t.disabledMinutes,I=t.disabledSeconds,D=t.hideDisabledOptions,R=void 0!==D&&D,H=t.label,P=t.labelGap,V=void 0===P?8:P,U=t.labelClassName,F=void 0===U?"":U,Y=t.labelStyle,G=t.onOpenChange,$=t.open,W=t.showNow,K=void 0===W||W,Z=t.showOk,X=void 0===Z||Z,q=n.useState(l),J=q[0],Q=q[1],ee=n.useState(!1),ne=ee[0],te=ee[1],re=n.useState(!1),ie=re[0],ae=re[1],oe=n.useState({top:0,left:0,width:0}),le=oe[0],se=oe[1],ce=n.useState(!1),de=ce[0],ue=ce[1],pe=n.useRef(null),fe=n.useRef(null),he=void 0!==o,ge=he?o:J,me=void 0!==$?$: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 a=window.innerWidth;i+n>a&&(i=a-n-16),se({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;se(function(e){return m(m({},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===$&&te(!1),null==G||G(!1),ae(!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==s||s(e)},[he,s]),ye=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(),w);xe(n)},be=m({width:"number"==typeof _?"".concat(_,"px"):_},b),je=m({marginRight:"number"==typeof V?"".concat(V,"px"):V},Y),_e=e.jsxs("div",{ref:pe,className:f.default("time-picker-trigger",(r={"is-focused":ie,"is-disabled":p},r["size-".concat(a)]=a,r)),onClick:function(){if(!p&&!v){var e=!me;void 0===$&&te(e),null==G||G(e),ae(e)}},children:[e.jsx("span",{className:f.default("time-picker-value",{"is-placeholder":!ge}),children:ge||d}),e.jsxs("span",{className:"time-picker-suffix",children:[z&&ge&&!p&&!v&&e.jsx("span",{className:"time-picker-clear",onClick:function(e){e.stopPropagation(),he||Q(void 0),null==s||s("")},children:e.jsx(B,{type:"close",size:"small"})}),e.jsx(B,{type:"clock",size:"small",className:f.default("time-picker-icon",{"is-open":me,"has-clear":z&&ge&&!p&&!v})})]})]});return e.jsxs("div",{className:f.default("time-picker",y,{"time-picker-with-label":H}),style:be,children:[H&&e.jsx("span",{className:f.default("time-picker-label",F),style:je,children:H}),_e,function(){if(!me)return null;var n=e.jsx("div",{ref:fe,className:"time-picker-dropdown",style:{position:"fixed",top:le.top,left:le.left,minWidth:le.width||("number"==typeof _?_:parseInt(_,10)),zIndex:999,opacity:de?1:0,transition:"opacity 0.15s ease"},children:e.jsx(Ro,{value:ge,onChange:xe,format:w,hourStep:S,minuteStep:O,secondStep:L,disabledHours:A,disabledMinutes:M,disabledSeconds:I,hideDisabledOptions:R,showNow:K,showOk:X,onNow:ye,onOk:function(e){return function(e){e&&!ge&&xe(e),void 0===$&&te(!1),null==G||G(!1),ae(!1)}(e)}})});return g.default.createPortal(n,document.body)}()]})};Ho.RangePicker=function(t){var r,i=t.size,a=void 0===i?"middle":i,o=t.value,l=t.defaultValue,s=t.onChange,c=t.placeholder,d=void 0===c?["开始时间","结束时间"]:c,u=t.disabled,p=void 0!==u&&u,h=t.readOnly,v=void 0!==h&&h,x=t.className,y=void 0===x?"":x,b=t.style,j=t.width,_=void 0===j?"auto":j,C=t.format,w=void 0===C?"HH:mm:ss":C,N=t.allowClear,z=void 0===N||N,E=t.hourStep,S=void 0===E?1:E,T=t.minuteStep,O=void 0===T?1:T,k=t.secondStep,L=void 0===k?1:k,A=t.disabledHours,M=t.disabledMinutes,I=t.disabledSeconds,D=t.hideDisabledOptions,R=void 0!==D&&D,H=t.label,P=t.labelGap,V=void 0===P?8:P,U=t.labelClassName,F=void 0===U?"":U,Y=t.labelStyle,G=t.onOpenChange,$=t.open,W=t.separator,K=n.useState(l),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],ae=re[1],oe=n.useState({top:0,left:0,width:0}),le=oe[0],se=oe[1],ce=n.useState(!1),de=ce[0],ue=ce[1],pe=n.useRef(null),fe=n.useRef(null),he=void 0!==o,ge=he?o:Z,me=void 0!==$?$:J,ve=(null==ge?void 0:ge[0])||"",xe=(null==ge?void 0:ge[1])||"",ye=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 a=window.innerWidth;i+n>a&&(i=a-n-16),se({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;se(function(e){return m(m({},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===$&&Q(!1),null==G||G(!1),ae(!1))};return me&&(document.addEventListener("mousedown",e),ye(),window.addEventListener("scroll",ye,!0),window.addEventListener("resize",ye)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",ye,!0),window.removeEventListener("resize",ye)}},[me,$,G,ye]);var be=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==s||s(t)},[he,s,ge]),je=function(e){p||v||(te(e),void 0===$&&Q(!0),null==G||G(!0),ae(!0))},_e=function(){void 0===$&&Q(!1),null==G||G(!1),ae(!1)},Ce=m({width:"number"==typeof _?"".concat(_,"px"):_},b),we=m({marginRight:"number"==typeof V?"".concat(V,"px"):V},Y),Ne=ve||xe;return e.jsxs("div",{className:f.default("time-picker time-range-picker",y,{"time-picker-with-label":H}),style:Ce,children:[H&&e.jsx("span",{className:f.default("time-picker-label",F),style:we,children:H}),e.jsxs("div",{ref:pe,className:f.default("time-range-picker-trigger",(r={"is-focused":ie,"is-disabled":p},r["size-".concat(a)]=a,r)),children:[e.jsx("div",{className:f.default("time-range-picker-input",{"is-active":"start"===ne&&me}),onClick:function(){return je("start")},children:e.jsx("span",{className:f.default("time-range-picker-value",{"is-placeholder":!ve}),children:ve||d[0]})}),e.jsx("span",{className:"time-range-picker-separator",children:W||e.jsx(B,{type:"arrow-right",size:"small"})}),e.jsx("div",{className:f.default("time-range-picker-input",{"is-active":"end"===ne&&me}),onClick:function(){return je("end")},children:e.jsx("span",{className:f.default("time-range-picker-value",{"is-placeholder":!xe}),children:xe||d[1]})}),e.jsxs("span",{className:"time-picker-suffix time-range-picker-suffix",children:[z&&Ne&&!p&&!v&&e.jsx("span",{className:"time-picker-clear",onClick:function(e){e.stopPropagation(),he||X(void 0),null==s||s(["",""])},children:e.jsx(B,{type:"close",size:"small"})}),e.jsx(B,{type:"clock",size:"small",className:f.default("time-picker-icon",{"has-clear":z&&Ne&&!p&&!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:le.top,left:le.left,minWidth:le.width||("number"==typeof _?_:parseInt(_,10)),zIndex:999,opacity:de?1:0,transition:"opacity 0.15s ease"},children:e.jsx(Ro,{value:n,onChange:function(e){return be("start"===ne?0:1,e)},format:w,hourStep:S,minuteStep:O,secondStep:L,disabledHours:A,disabledMinutes:M,disabledSeconds:I,hideDisabledOptions:R,showNow:!1,showOk:!0,onOk:_e})});return g.default.createPortal(t,document.body)}()]})};var Po=Ho,Vo=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)}},Bo=function(e,n){var t,r,i,a,o,l,s;if(!e)return null;try{switch(n){case"YYYY/MM/DD":o=(t=e.split("/").map(Number))[0],l=t[1],s=t[2];break;case"DD-MM-YYYY":s=(r=e.split("-").map(Number))[0],l=r[1],o=r[2];break;case"MM/DD/YYYY":l=(i=e.split("/").map(Number))[0],s=i[1],o=i[2];break;default:o=(a=e.split("-").map(Number))[0],l=a[1],s=a[2]}if(isNaN(o)||isNaN(l)||isNaN(s))return null;var c=new Date(o,l-1,s);return c.getFullYear()!==o||c.getMonth()!==l-1||c.getDate()!==s?null:c}catch(e){return null}},Uo=function(e,n){return new Date(e,n+1,0).getDate()},Fo=function(e,n){return!(!e||!n)&&(e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate())},Yo=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()},Go=function(t){var r=t.size,i=void 0===r?"middle":r,a=t.value,o=t.defaultValue,l=t.onChange,s=t.placeholder,c=void 0===s?["开始日期","结束日期"]:s,d=t.disabled,u=void 0!==d&&d,p=t.readOnly,h=void 0!==p&&p,v=t.className,x=void 0===v?"":v,y=t.style,b=t.width,j=void 0===b?"auto":b,_=t.format,C=void 0===_?"YYYY-MM-DD":_,w=t.allowClear,N=void 0===w||w,z=t.disabledDate,E=t.disabledDates,S=t.label,T=t.labelGap,O=void 0===T?8:T,k=t.labelClassName,L=void 0===k?"":k,A=t.labelStyle,M=t.onOpenChange,I=t.open,D=t.showOk,R=void 0===D||D,H=t.separator,P=n.useState(o),V=P[0],U=P[1],F=n.useState(!1),Y=F[0],G=F[1],$=n.useState("start"),W=$[0],K=$[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),ae=n.useRef(null),oe=void 0!==a,le=oe?a:V,se=void 0!==I?I:Y,ce=(null==le?void 0:le[0])||"",de=(null==le?void 0:le[1])||"",ue=n.useMemo(function(){return Bo(ce,C)},[ce,C]),pe=n.useMemo(function(){return Bo(de,C)},[de,C]),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 ye=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 a=window.innerWidth;i+n>a&&(i=a-n-16),ee({top:r,left:i,width:n})}},[]);n.useEffect(function(){if(se&&ae.current&&ie.current){return re(!1),requestAnimationFrame(function(){var e=ie.current.getBoundingClientRect(),n=ae.current.offsetHeight;if(window.innerHeight-e.bottom<360&&e.top>360){var t=e.top+window.scrollY-n-4;ee(function(e){return m(m({},e),{top:t})})}re(!0)}),function(){re(!1)}}},[se]),n.useEffect(function(){var e=function(e){ie.current&&!ie.current.contains(e.target)&&ae.current&&!ae.current.contains(e.target)&&(void 0===I&&G(!1),null==M||M(!1),q(!1))};return se&&(document.addEventListener("mousedown",e),ye(),window.addEventListener("scroll",ye,!0),window.addEventListener("resize",ye)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",ye,!0),window.removeEventListener("resize",ye)}},[se,I,M,ye]);var be=n.useCallback(function(e,n){var t=[0===e?n:(null==le?void 0:le[0])||"",1===e?n:(null==le?void 0:le[1])||""];oe||U(t),null==l||l(t)},[oe,l,le]),je=function(e){u||h||(K(e),void 0===I&&G(!0),null==M||M(!0),q(!0))},_e=function(){void 0===I&&G(!1),null==M||M(!1),q(!1)},Ce=n.useCallback(function(e){if(z&&z(e))return!0;if(E&&E.length>0){var n=Vo(e,C);return E.includes(n)}return!1},[z,E,C]),we=function(e){for(var n=e.getFullYear(),t=e.getMonth(),r=Uo(n,t),i=function(e,n){return new Date(e,n,1).getDay()}(n,t),a=Uo(n,t-1),o=[],l=i-1;l>=0;l--)o.push({date:new Date(n,t-1,a-l),isCurrentMonth:!1});for(l=1;l<=r;l++)o.push({date:new Date(n,t,l),isCurrentMonth:!0});var s=42-o.length;for(l=1;l<=s;l++)o.push({date:new Date(n,t+1,l),isCurrentMonth:!1});return o},Ne=function(n){var t=n.viewDate,r=n.onPrevMonth,i=n.onNextMonth,a=n.label,o=t.getFullYear(),l=t.getMonth();return e.jsxs("div",{className:"zjpcy-datepicker-range-calendar-header",children:[e.jsx("div",{className:"zjpcy-datepicker-range-header-left",children:e.jsx("button",{className:"zjpcy-datepicker-range-header-btn",onClick:r,title:"上个月",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsxs("div",{className:"zjpcy-datepicker-range-header-center",children:[e.jsxs("span",{children:[o,"年 ",["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"][l]]}),e.jsx("span",{className:"zjpcy-datepicker-range-header-label",children:a})]}),e.jsx("div",{className:"zjpcy-datepicker-range-header-right",children:e.jsx("button",{className:"zjpcy-datepicker-range-header-btn",onClick:i,title:"下个月",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]})},ze=function(t){var r=t.viewDate,i=t.onPrevMonth,a=t.onNextMonth,o=t.label,l=n.useMemo(function(){return we(r)},[r]);return e.jsxs("div",{className:"zjpcy-datepicker-range-calendar",children:[e.jsx(Ne,{viewDate:r,onPrevMonth:i,onNextMonth:a,label:o}),e.jsxs("div",{className:"zjpcy-datepicker-range-calendar-body",children:[e.jsx("div",{className:"zjpcy-datepicker-range-week-header",children:["日","一","二","三","四","五","六"].map(function(n){return e.jsx("div",{className:"zjpcy-datepicker-range-week-day",children:n},n)})}),e.jsx("div",{className:"zjpcy-datepicker-range-date-grid",children:l.map(function(n,t){var r=n.date,i=n.isCurrentMonth,a=Fo(r,"start"===W?ue:pe),o=function(e){var n=new Date;return Fo(e,n)}(r),l=Ce(r),s=function(e){return!(!ue||!pe)&&Yo(ue,e)&&Yo(e,pe)}(r),c=function(e){return Fo(e,ue)}(r),d=function(e){return Fo(e,pe)}(r);return e.jsx("div",{className:f.default("zjpcy-datepicker-range-date-cell",{"zjpcy-datepicker-range-date-cell--selected":a,"zjpcy-datepicker-range-date-cell--today":o&&!a,"zjpcy-datepicker-range-date-cell--disabled":l,"zjpcy-datepicker-range-date-cell--other-month":!i,"zjpcy-datepicker-range-date-cell--in-range":s&&!c&&!d,"zjpcy-datepicker-range-date-cell--range-start":c,"zjpcy-datepicker-range-date-cell--range-end":d}),onClick:function(){return function(e){if(!Ce(e)){var n=Vo(e,C);"start"===W?(be(0,n),pe&&Yo(pe,e)&&be(1,""),K("end")):(ue&&Yo(e,ue)?(be(0,n),be(1,ce)):be(1,n),R||_e())}}(r)},children:r.getDate()},t)})})]})]})},Ee=m({width:"number"==typeof j?"".concat(j,"px"):j},y),Se=m({marginRight:"number"==typeof O?"".concat(O,"px"):O},A),Te=ce||de,Oe={"zjpcy-datepicker-range-picker-trigger--small":"small"===i,"zjpcy-datepicker-range-picker-trigger--middle":"middle"===i,"zjpcy-datepicker-range-picker-trigger--large":"large"===i};return e.jsxs("div",{className:f.default("zjpcy-datepicker-range-picker",x,{"zjpcy-datepicker-range-picker-with-label":S}),style:Ee,children:[S&&e.jsx("span",{className:f.default("zjpcy-datepicker-range-picker-label",L),style:Se,children:S}),e.jsxs("div",{ref:ie,className:f.default("zjpcy-datepicker-range-picker-trigger",Oe,{"zjpcy-datepicker-range-picker-trigger--focused":X,"zjpcy-datepicker-range-picker-trigger--disabled":u}),children:[e.jsx("div",{className:f.default("zjpcy-datepicker-range-picker-input",{"zjpcy-datepicker-range-picker-input--active":"start"===W&&se}),onClick:function(){return je("start")},children:e.jsx("span",{className:f.default("zjpcy-datepicker-range-picker-value",{"zjpcy-datepicker-range-picker-value--placeholder":!ce}),children:ce||c[0]})}),e.jsx("span",{className:"zjpcy-datepicker-range-picker-separator",children:H||e.jsx(B,{type:"arrow-right",size:"small"})}),e.jsx("div",{className:f.default("zjpcy-datepicker-range-picker-input",{"zjpcy-datepicker-range-picker-input--active":"end"===W&&se}),onClick:function(){return je("end")},children:e.jsx("span",{className:f.default("zjpcy-datepicker-range-picker-value",{"zjpcy-datepicker-range-picker-value--placeholder":!de}),children:de||c[1]})}),e.jsxs("span",{className:"zjpcy-datepicker-range-picker-suffix",children:[N&&Te&&!u&&!h&&e.jsx("span",{className:"zjpcy-datepicker-range-picker-clear",onClick:function(e){e.stopPropagation(),oe||U(void 0),null==l||l(["",""])},children:e.jsx(B,{type:"close",size:"small"})}),e.jsx(B,{type:"calendar",size:"small",className:f.default("zjpcy-datepicker-range-picker-icon",{"zjpcy-datepicker-range-picker-icon--has-clear":N&&Te&&!u&&!h})})]})]}),function(){if(!se)return null;var n=e.jsxs("div",{ref:ae,className:"zjpcy-datepicker-range-dropdown",style:{position:"fixed",top:Q.top,left:Q.left,minWidth:Q.width||("number"==typeof j?j:parseInt(j,10)||280),zIndex:999,opacity:te?1:0,transition:"opacity 0.15s ease"},children:[e.jsxs("div",{className:"zjpcy-datepicker-range-panels",children:[e.jsx(ze,{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(ze,{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:"结束日期"})]}),R&&e.jsxs("div",{className:"zjpcy-datepicker-range-footer",children:[e.jsx("div",{className:"zjpcy-datepicker-range-footer-spacer"}),e.jsx("div",{className:"zjpcy-datepicker-range-footer-actions",children:e.jsx("button",{className:"zjpcy-datepicker-range-btn zjpcy-datepicker-range-btn--primary",onClick:_e,children:"确定"})})]})]});return g.default.createPortal(n,document.body)}()]})},$o=h.default.div.withConfig({shouldForwardProp:function(e){return!["width","minWidth"].includes(e)}})(al||(al=j(["\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"}),Wo=h.default.div.withConfig({shouldForwardProp:function(e){return!["focused"].includes(e)}})(ol||(ol=j(["\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(--zjpcy-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--zjpcy-primary-color);\n box-shadow: var(--zjpcy-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(--zjpcy-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--zjpcy-primary-color);\n box-shadow: var(--zjpcy-input-box-shadow-focus);\n }\n"])),function(e){switch(e.size){case"small":return"24px";case"large":return"40px";default:return"34px"}},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(--zjpcy-border-color-extra-light)":e.focused?"var(--zjpcy-primary-color)":"var(--zjpcy-border-color-extra-light)"},function(e){return e.disabled?"var(--zjpcy-bg-color-light)":"var(--zjpcy-bg-color-white)"},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"var(--zjpcy-border-color-extra-light)":"var(--zjpcy-primary-color)"}),Ko=h.default.span.withConfig({shouldForwardProp:function(e){return!["isPlaceholder"].includes(e)}})(ll||(ll=j(["\n flex: 1;\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 14px;\n\n /* 多选模式下的 tags 布局 */\n &.zjpcy-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 &.zjpcy-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(--zjpcy-text-color-tertiary)":e.isPlaceholder?"var(--zjpcy-text-color-light)":"var(--zjpcy-text-color)"}),Zo=h.default.span(sl||(sl=j(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--zjpcy-text-color-light);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-text-color-light);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"]))),Xo=h.default.span(cl||(cl=j(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--zjpcy-text-color);\n background-color: var(--zjpcy-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(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--zjpcy-text-color);\n background-color: var(--zjpcy-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]))),qo=h.default.span(dl||(dl=j(["\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(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"]))),Jo=h.default.div.withConfig({shouldForwardProp:function(e){return!["top","left","minWidth"].includes(e)}})(ul||(ul=j(["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n box-shadow: var(--zjpcy-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(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n box-shadow: var(--zjpcy-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"}),Qo=h.default.div(pl||(pl=j(["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n"],["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n"]))),el=h.default.div(fl||(fl=j(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n border-bottom: 1px solid var(--zjpcy-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(--zjpcy-border-color-light);\n"]))),nl=h.default.div(hl||(hl=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),tl=h.default.div(gl||(gl=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n"]))),rl=h.default.div(ml||(ml=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),il=h.default.button(vl||(vl=j(["\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(--zjpcy-border-radius-sm);\n color: var(--zjpcy-text-color-secondary);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--zjpcy-bg-color-light);\n color: var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: var(--zjpcy-text-color-secondary);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--zjpcy-bg-color-light);\n color: var(--zjpcy-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])));h.default.select(xl||(xl=j(["\n border: none;\n background-color: transparent;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n cursor: pointer;\n padding: 2px 4px;\n border-radius: var(--zjpcy-border-radius-sm);\n\n &:hover {\n background-color: var(--zjpcy-bg-color-light);\n }\n\n &:focus {\n outline: none;\n background-color: var(--zjpcy-bg-color-light);\n }\n"],["\n border: none;\n background-color: transparent;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n cursor: pointer;\n padding: 2px 4px;\n border-radius: var(--zjpcy-border-radius-sm);\n\n &:hover {\n background-color: var(--zjpcy-bg-color-light);\n }\n\n &:focus {\n outline: none;\n background-color: var(--zjpcy-bg-color-light);\n }\n"])));var al,ol,ll,sl,cl,dl,ul,pl,fl,hl,gl,ml,vl,xl,yl,bl,jl,_l,Cl,wl,Nl,zl,El,Sl,Tl,Ol,kl,Ll,Al,Ml,Il,Dl,Rl,Hl,Pl,Vl,Bl,Ul,Fl,Yl,Gl,$l,Wl,Kl,Zl,Xl,ql,Jl,Ql,es,ns,ts,rs,is,as,os,ls,ss,cs,ds,us,ps,fs=h.default.div(yl||(yl=j(["\n padding: 12px 16px;\n"],["\n padding: 12px 16px;\n"]))),hs=h.default.div(bl||(bl=j(["\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"]))),gs=h.default.div(jl||(jl=j(["\n text-align: center;\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n padding: 8px 0;\n font-weight: 500;\n"],["\n text-align: center;\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n padding: 8px 0;\n font-weight: 500;\n"]))),ms=h.default.div(_l||(_l=j(["\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"]))),vs=h.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isToday","isCurrentMonth"].includes(e)}})(Cl||(Cl=j(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n font-size: 13px;\n cursor: ",";\n border-radius: var(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-text-color-light)":e.isSelected?"#fff":e.isInSelectedSet||e.isToday?"var(--zjpcy-primary-color)":e.isCurrentMonth?"var(--zjpcy-text-color)":"var(--zjpcy-text-color-light)"},function(e){return e.isSelected?"var(--zjpcy-primary-color)":e.isInSelectedSet?"var(--zjpcy-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(--zjpcy-primary-hover-color)":e.isInSelectedSet?"var(--zjpcy-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--zjpcy-bg-color-light)"},function(e){return e.isToday&&!e.isSelected&&"\n border: 1px solid var(--zjpcy-primary-color);\n "}),xs=h.default.div(wl||(wl=j(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px;\n border-top: 1px solid var(--zjpcy-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(--zjpcy-border-color-light);\n gap: 8px;\n"]))),ys=h.default.div(Nl||(Nl=j(["\n flex: 1;\n"],["\n flex: 1;\n"]))),bs=h.default.div(zl||(zl=j(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),js=h.default.button.withConfig({shouldForwardProp:function(e){return!["variant"].includes(e)}})(El||(El=j(["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--zjpcy-border-radius-sm);\n cursor: pointer;\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--zjpcy-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(--zjpcy-border-radius-sm);\n cursor: pointer;\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--zjpcy-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])),function(e){return"primary"===e.variant?"var(--zjpcy-primary-color)":"var(--zjpcy-border-color-extra-light)"},function(e){return"primary"===e.variant?"var(--zjpcy-primary-color)":"var(--zjpcy-bg-color-white)"},function(e){return"primary"===e.variant?"#fff":"var(--zjpcy-text-color)"},function(e){return"primary"===e.variant?"background-color: var(--zjpcy-primary-hover-color);":"color: var(--zjpcy-primary-color);"}),_s=h.default.div.withConfig({shouldForwardProp:function(e){return!["gap"].includes(e)}})(Sl||(Sl=j(["\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"}),Cs=h.default.label(Tl||(Tl=j(["\n font-size: 14px;\n color: var(--zjpcy-text-color);\n white-space: nowrap;\n user-select: none;\n"],["\n font-size: 14px;\n color: var(--zjpcy-text-color);\n white-space: nowrap;\n user-select: none;\n"]))),ws=h.default.div(Ol||(Ol=j(["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"]))),Ns=h.default.div(kl||(kl=j(["\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"]))),zs=h.default.div(Ll||(Ll=j(["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"]))),Es=h.default.div(Al||(Al=j(["\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"]))),Ss=h.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentMonth"].includes(e)}})(Ml||(Ml=j(["\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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-primary-color)":"var(--zjpcy-text-color)"},function(e){return e.isSelected?"var(--zjpcy-primary-color)":e.isInSelectedSet?"var(--zjpcy-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(--zjpcy-primary-hover-color)":e.isInSelectedSet?"var(--zjpcy-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--zjpcy-bg-color-light)"},function(e){return e.isCurrentMonth&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--zjpcy-primary-color);\n "}),Ts=h.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentYear"].includes(e)}})(Il||(Il=j(["\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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-primary-color)":"var(--zjpcy-text-color)"},function(e){return e.isSelected?"var(--zjpcy-primary-color)":e.isInSelectedSet?"var(--zjpcy-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(--zjpcy-primary-hover-color)":e.isInSelectedSet?"var(--zjpcy-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--zjpcy-bg-color-light)"},function(e){return e.isCurrentYear&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--zjpcy-primary-color);\n "}),Os=h.default.div(Dl||(Dl=j(["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"]))),ks=h.default.div(Rl||(Rl=j(["\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"]))),Ls=h.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentQuarter"].includes(e)}})(Hl||(Hl=j(["\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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-primary-color)":"var(--zjpcy-text-color)"},function(e){return e.isSelected?"var(--zjpcy-primary-color)":e.isInSelectedSet?"var(--zjpcy-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(--zjpcy-primary-hover-color)":e.isInSelectedSet?"var(--zjpcy-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--zjpcy-bg-color-light)"},function(e){return e.isCurrentQuarter&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--zjpcy-primary-color);\n "});h.default.div(Pl||(Pl=j(["\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"}),h.default.div.withConfig({shouldForwardProp:function(e){return!["focused","size","disabled"].includes(e)}})(Vl||(Vl=j(["\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(--zjpcy-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--zjpcy-primary-color);\n box-shadow: var(--zjpcy-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(--zjpcy-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--zjpcy-primary-color);\n box-shadow: var(--zjpcy-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(--zjpcy-border-color-extra-light)":e.focused?"var(--zjpcy-primary-color)":"var(--zjpcy-border-color-extra-light)"},function(e){return e.disabled?"var(--zjpcy-bg-color-light)":"var(--zjpcy-bg-color-white)"},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"var(--zjpcy-border-color-extra-light)":"var(--zjpcy-primary-color)"}),h.default.div.withConfig({shouldForwardProp:function(e){return!["active"].includes(e)}})(Bl||(Bl=j(["\n flex: 1;\n padding: 4px 8px;\n text-align: center;\n cursor: pointer;\n border-radius: var(--zjpcy-border-radius-sm);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n ","\n\n &:hover {\n background-color: var(--zjpcy-bg-color-light);\n }\n"],["\n flex: 1;\n padding: 4px 8px;\n text-align: center;\n cursor: pointer;\n border-radius: var(--zjpcy-border-radius-sm);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n ","\n\n &:hover {\n background-color: var(--zjpcy-bg-color-light);\n }\n"])),function(e){return e.active&&"\n background-color: var(--zjpcy-primary-light-color, rgba(24, 100, 240, 0.1));\n "}),h.default.span.withConfig({shouldForwardProp:function(e){return!["isPlaceholder"].includes(e)}})(Ul||(Ul=j(["\n color: ",";\n font-size: 14px;\n"],["\n color: ",";\n font-size: 14px;\n"])),function(e){return e.isPlaceholder?"var(--zjpcy-text-color-light)":"var(--zjpcy-text-color)"}),h.default.span(Fl||(Fl=j(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 8px;\n color: var(--zjpcy-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(--zjpcy-text-color-light);\n font-size: 14px;\n"]))),h.default.span(Yl||(Yl=j(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--zjpcy-text-color-light);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-text-color-light);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"]))),h.default.span(Gl||(Gl=j(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--zjpcy-text-color);\n background-color: var(--zjpcy-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(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--zjpcy-text-color);\n background-color: var(--zjpcy-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]))),h.default.span($l||($l=j(["\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(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"]))),h.default.div.withConfig({shouldForwardProp:function(e){return!["top","left"].includes(e)}})(Wl||(Wl=j(["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n box-shadow: var(--zjpcy-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(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n box-shadow: var(--zjpcy-shadow-lg);\n overflow: hidden;\n min-width: 560px;\n"])),function(e){return e.top},function(e){return e.left}),h.default.div(Kl||(Kl=j(["\n display: flex;\n gap: 16px;\n padding: 16px;\n"],["\n display: flex;\n gap: 16px;\n padding: 16px;\n"]))),h.default.div(Zl||(Zl=j(["\n flex: 1;\n min-width: 252px;\n"],["\n flex: 1;\n min-width: 252px;\n"]))),h.default.div(Xl||(Xl=j(["\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"]))),h.default.div(ql||(ql=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),h.default.div(Jl||(Jl=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n"]))),h.default.div(Ql||(Ql=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),h.default.button(es||(es=j(["\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(--zjpcy-border-radius-sm);\n color: var(--zjpcy-text-color-secondary);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--zjpcy-bg-color-light);\n color: var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: var(--zjpcy-text-color-secondary);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--zjpcy-bg-color-light);\n color: var(--zjpcy-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"]))),h.default.span(ns||(ns=j(["\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n margin-left: 8px;\n"],["\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n margin-left: 8px;\n"]))),h.default.div(ts||(ts=j(["\n padding: 8px 0;\n"],["\n padding: 8px 0;\n"]))),h.default.div(rs||(rs=j(["\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"]))),h.default.div(is||(is=j(["\n text-align: center;\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n padding: 4px 0;\n font-weight: 500;\n"],["\n text-align: center;\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n padding: 4px 0;\n font-weight: 500;\n"]))),h.default.div(as||(as=j(["\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"]))),h.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isToday","isCurrentMonth","isInRange","isRangeStart","isRangeEnd","disabled"].includes(e)}})(os||(os=j(["\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(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-border-radius-sm)"},function(e){return e.disabled?"var(--zjpcy-text-color-light)":e.isSelected?"#fff":e.isCurrentMonth?"var(--zjpcy-text-color)":"var(--zjpcy-text-color-light)"},function(e){return e.isSelected?"var(--zjpcy-primary-color)":e.isInRange?"var(--zjpcy-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(--zjpcy-primary-hover-color)":"var(--zjpcy-bg-color-light)"},function(e){return e.isToday&&!e.isSelected&&!e.isInRange&&"\n border: 1px solid var(--zjpcy-primary-color);\n "}),h.default.div(ls||(ls=j(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n border-top: 1px solid var(--zjpcy-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(--zjpcy-border-color-light);\n gap: 8px;\n"]))),h.default.div(ss||(ss=j(["\n flex: 1;\n"],["\n flex: 1;\n"]))),h.default.div(cs||(cs=j(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),h.default.button.withConfig({shouldForwardProp:function(e){return!["variant"].includes(e)}})(ds||(ds=j(["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--zjpcy-border-radius-sm);\n cursor: pointer;\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--zjpcy-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(--zjpcy-border-radius-sm);\n cursor: pointer;\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--zjpcy-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])),function(e){return"primary"===e.variant?"var(--zjpcy-primary-color)":"var(--zjpcy-border-color-extra-light)"},function(e){return"primary"===e.variant?"var(--zjpcy-primary-color)":"var(--zjpcy-bg-color-white)"},function(e){return"primary"===e.variant?"#fff":"var(--zjpcy-text-color)"},function(e){return"primary"===e.variant?"background-color: var(--zjpcy-primary-hover-color);":"color: var(--zjpcy-primary-color);"}),h.default.div.withConfig({shouldForwardProp:function(e){return!["gap"].includes(e)}})(us||(us=j(["\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"}),h.default.label(ps||(ps=j(["\n font-size: 14px;\n color: var(--zjpcy-text-color);\n white-space: nowrap;\n user-select: none;\n"],["\n font-size: 14px;\n color: var(--zjpcy-text-color);\n white-space: nowrap;\n user-select: none;\n"])));var As=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)}},Ms=function(e,n){return new Date(e,n+1,0).getDate()},Is=function(e,n){return!(!e||!n)&&(e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate())},Ds=function(t){var r=t.currentYear,i=t.startYear,a=t.onYearSelect,o=t.onBack,l=t.onPrevPage,s=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(ws,{children:[e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:l,title:"上一页",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsx(tl,{children:e.jsxs("span",{style:{cursor:"pointer"},onClick:o,children:[i," - ",u]})}),e.jsx(rl,{children:e.jsx(il,{onClick:s,title:"下一页",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]}),e.jsx(Ns,{children:c.map(function(n){return e.jsx(Ts,{isSelected:n===r,isCurrentYear:n===d,onClick:function(){return a(n)},children:n},n)})})]})},Rs=function(t){var r=t.currentMonth,i=t.onMonthSelect,a=t.onBack,o=n.useMemo(function(){return["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},[]),l=(new Date).getMonth();return e.jsxs(zs,{children:[e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:a,title:"返回",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsx(tl,{children:e.jsx("span",{style:{cursor:"pointer"},onClick:a,children:"选择月份"})}),e.jsx(rl,{})]}),e.jsx(Es,{children:o.map(function(n,t){return e.jsx(Ss,{isSelected:t===r,isCurrentMonth:t===l,onClick:function(){return i(t)},children:n},t)})})]})},Hs=function(n){var t=n.currentMonth,r=n.onPrevMonth,i=n.onNextMonth,a=n.onYearClick,o=n.onMonthClick,l=t.getFullYear(),s=t.getMonth();return e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:r,title:"上个月",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsxs(tl,{children:[e.jsxs("span",{style:{cursor:"pointer",fontWeight:500},onClick:a,children:[l,"年"]}),e.jsx("span",{style:{cursor:"pointer",fontWeight:500},onClick:o,children:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"][s]})]}),e.jsx(rl,{children:e.jsx(il,{onClick:i,title:"下个月",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]})},Ps=function(t){var r=t.value,i=t.selectedValues,a=void 0===i?[]:i,o=t.onChange,l=t.format,s=t.disabledDate,c=t.disabledDates,d=t.showToday,u=void 0===d||d,p=t.showOk,h=void 0===p||p,g=t.onToday,m=t.onOk,v=t.showTime,x=t.onHasSelectedDateChange,y=n.useMemo(function(){return function(e,n){var t,r,i,a;if(!e)return null;var o,l,s,c=e.split(" ")[0];try{switch(n){case"YYYY/MM/DD":o=(t=c.split("/").map(Number))[0],l=t[1],s=t[2];break;case"DD-MM-YYYY":s=(r=c.split("-").map(Number))[0],l=r[1],o=r[2];break;case"MM/DD/YYYY":l=(i=c.split("/").map(Number))[0],s=i[1],o=i[2];break;default:o=(a=c.split("-").map(Number))[0],l=a[1],s=a[2]}if(isNaN(o)||isNaN(l)||isNaN(s))return null;var d=new Date(o,l-1,s);return d.getFullYear()!==o||d.getMonth()!==l-1||d.getDate()!==s?null:d}catch(e){return null}}(r,l)},[r,l]),b=n.useMemo(function(){return new Set(a)},[a]),j=n.useState(y||new Date),_=j[0],C=j[1],w=n.useState("calendar"),N=w[0],z=w[1],E=function(e){return 12*Math.floor(e/12)},S=n.useState(E((y||new Date).getFullYear())),T=S[0],O=S[1];n.useEffect(function(){y&&C(y)},[y]);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}},L=k(r),A=n.useState(L),M=A[0],I=A[1];n.useEffect(function(){I(k(r))},[r]);var D=n.useMemo(function(){for(var e=_.getFullYear(),n=_.getMonth(),t=Ms(e,n),r=function(e,n){return new Date(e,n,1).getDay()}(e,n),i=Ms(e,n-1),a=[],o=r-1;o>=0;o--)a.push({date:new Date(e,n-1,i-o),isCurrentMonth:!1});for(o=1;o<=t;o++)a.push({date:new Date(e,n,o),isCurrentMonth:!0});var l=42-a.length;for(o=1;o<=l;o++)a.push({date:new Date(e,n+1,o),isCurrentMonth:!1});return a},[_]),R=n.useCallback(function(e){if(s&&s(e))return!0;if(c&&c.length>0){var n=As(e,l);return c.includes(n)}return!1},[s,c,l]),H=!!y;n.useEffect(function(){null==x||x(H)},[H,x]);return"year"===N?e.jsx(Ds,{currentYear:_.getFullYear(),startYear:T,onYearSelect:function(e){var n=new Date(_);n.setFullYear(e),C(n),z("month")},onBack:function(){return z("calendar")},onPrevPage:function(){return O(function(e){return e-12})},onNextPage:function(){return O(function(e){return e+12})}}):"month"===N?e.jsx(Rs,{currentMonth:_.getMonth(),onMonthSelect:function(e){var n=new Date(_);n.setMonth(e),C(n),z("calendar")},onBack:function(){return z("calendar")}}):e.jsxs(Qo,{children:[e.jsxs("div",{className:f.default("zjpcy-datepicker-content",{"zjpcy-datepicker-content-with-time":v&&H}),children:[e.jsxs("div",{className:"zjpcy-datepicker-calendar-section",children:[e.jsx(Hs,{currentMonth:_,onPrevMonth:function(){var e=new Date(_);e.setMonth(e.getMonth()-1),C(e)},onNextMonth:function(){var e=new Date(_);e.setMonth(e.getMonth()+1),C(e)},onYearClick:function(){O(E(_.getFullYear())),z("year")},onMonthClick:function(){z("month")}}),e.jsxs(fs,{children:[e.jsx(hs,{children:["日","一","二","三","四","五","六"].map(function(n){return e.jsx(gs,{children:n},n)})}),e.jsx(ms,{children:D.map(function(n,t){var r=n.date,i=n.isCurrentMonth,a=As(r,l),s=Is(r,y),c=b.has(a),d=function(e){var n=new Date;return Is(e,n)}(r),u=R(r);return e.jsx(vs,{isSelected:s,isInSelectedSet:c,isToday:d,disabled:u,isCurrentMonth:i,onClick:function(){return function(e){if(!R(e)){var n=As(e,l);if(v){var t=H?"".concat(String(M.hour).padStart(2,"0"),":").concat(String(M.minute).padStart(2,"0"),":").concat(String(M.second).padStart(2,"0")):"00:00:00";null==o||o("".concat(n," ").concat(t))}else null==o||o(n)}}(r)},children:r.getDate()},t)})})]})]}),v&&H&&e.jsxs("div",{className:"zjpcy-datepicker-time-section",children:[e.jsxs("div",{className:"zjpcy-datepicker-time-header",children:[String(M.hour).padStart(2,"0"),":",String(M.minute).padStart(2,"0"),":",String(M.second).padStart(2,"0")]}),e.jsx(Ro,{value:"".concat(String(M.hour).padStart(2,"0"),":").concat(String(M.minute).padStart(2,"0"),":").concat(String(M.second).padStart(2,"0")),onChange:function(e){if(y){var n=e.split(":").map(Number),t=n[0],r=n[1],i=n[2];I({hour:t,minute:r,second:i});var a=As(y,l);null==o||o("".concat(a," ").concat(e))}},format:"HH:mm:ss",hourStep:1,minuteStep:1,secondStep:1,showNow:!1,showOk:!1})]})]}),(u||h)&&e.jsxs(xs,{children:[u?e.jsx(js,{onClick:function(){var e=new Date;if(C(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==o||o("".concat(As(e,l)," ").concat(n))}else null==o||o(As(e,l));null==g||g()},children:"今天"}):e.jsx(ys,{}),h&&e.jsx(bs,{children:e.jsx(js,{variant:"primary",onClick:m,children:"确定"})})]})]})},Vs=function(t){var r=t.size,i=void 0===r?"middle":r,a=t.value,o=t.defaultValue,l=t.onChange,s=t.placeholder,c=void 0===s?"请选择日期":s,d=t.disabled,u=void 0!==d&&d,p=t.readOnly,h=void 0!==p&&p,v=t.className,x=void 0===v?"":v,y=t.style,j=t.width,_=void 0===j?160:j,C=t.format,w=void 0===C?"YYYY-MM-DD":C,N=t.allowClear,z=void 0===N||N,E=t.disabledDate,S=t.disabledDates,T=t.label,O=t.labelGap,k=void 0===O?8:O,L=t.labelClassName,A=void 0===L?"":L,M=t.labelStyle,I=t.onOpenChange,D=t.open,R=t.showToday,H=void 0===R||R,P=t.showOk,V=void 0===P||P,U=t.picker,F=void 0===U?"date":U,Y=t.multiple,G=void 0!==Y&&Y,$=t.maxTagCount,W=t.maxTagDisplayCount,K=t.separator,Z=void 0===K?",":K,X=t.showTime,q=void 0!==X&&X,J=n.useState(o),Q=J[0],ee=J[1],ne=n.useState(!1),te=ne[0],re=ne[1],ie=n.useState(!1),ae=ie[0],oe=ie[1],le=n.useState({top:0,left:0,width:0}),se=le[0],ce=le[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!==a,ye=xe?a:Q,be=n.useMemo(function(){return ye?ye.split(Z).filter(function(e){return e.trim()}):[]},[ye,Z]),je=n.useCallback(function(e){return be.includes(e)},[be]),_e=n.useCallback(function(e){return je(e)?be.filter(function(n){return n!==e}).join(Z):void 0!==$&&be.length>=$?be.join(Z):b(b([],be,!0),[e],!1).join(Z)},[be,je,Z,$]),Ce=void 0!==D?D:te,we=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,a=e.left+window.scrollX;r<360&&e.top>360&&(i=e.top+window.scrollY-360-4);var o=window.innerWidth;a+t>o&&(a=o-t-16),ce({top:i,left:a,width:t})}},[q,he]);n.useEffect(function(){if(Ce&&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 m(m({},e),{top:t})})}pe(!0)}),function(){pe(!1)}}},[Ce]),n.useEffect(function(){var e=function(e){me.current&&!me.current.contains(e.target)&&ve.current&&!ve.current.contains(e.target)&&(void 0===D&&re(!1),null==I||I(!1),oe(!1))};return Ce&&(document.addEventListener("mousedown",e),we(),window.addEventListener("scroll",we,!0),window.addEventListener("resize",we)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",we,!0),window.removeEventListener("resize",we)}},[Ce,D,I,we]);var Ne=function(){if(!u&&!h){var e=!Ce;void 0===D&&re(e),null==I||I(e),oe(e)}},ze=function(e){var n;n=G?_e(e):e,xe||ee(n),null==l||l(n),G||V||(void 0===D&&re(!1),null==I||I(!1),oe(!1))},Ee=function(e){e.stopPropagation(),xe||ee(void 0),null==l||l("")},Se=function(){void 0===D&&re(!1),null==I||I(!1),oe(!1)},Te=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}(ye),a=new Date,o=n.useState(null!==(t=null==i?void 0:i.year)&&void 0!==t?t:a.getFullYear()),s=o[0],c=o[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=a.getMonth(),f=a.getFullYear(),h=n.useMemo(function(){return G?new Set(be.filter(function(e){return e.match(/^\d{4}-\d{2}$/)})):new Set},[be,G]),g=function(e){var n="".concat(s,"-").concat(String(e+1).padStart(2,"0"));return h.has(n)};return e.jsxs(zs,{children:[e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:function(){return c(function(e){return e-1})},title:"上一年",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsx(tl,{children:e.jsxs("span",{children:[s,"年"]})}),e.jsx(rl,{children:e.jsx(il,{onClick:function(){return c(function(e){return e+1})},title:"下一年",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]}),e.jsx(Es,{children:u.map(function(n,t){var r=G?g(t):t===d&&s===(null==i?void 0:i.year),a=G&&g(t)&&!(t===d&&s===(null==i?void 0:i.year));return e.jsx(Ss,{isSelected:r,isInSelectedSet:a,isCurrentMonth:t===p&&s===f,onClick:function(){return function(e){var n="".concat(s,"-").concat(String(e+1).padStart(2,"0"));if(G){var t=_e(n);xe||ee(t),null==l||l(t)}else xe||ee(n),null==l||l(n),V||Se()}(t)},children:n},t)})}),V&&e.jsxs(xs,{children:[e.jsx(ys,{}),e.jsx(bs,{children:e.jsx(js,{variant:"primary",onClick:Se,children:"确定"})})]})]})},Oe=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}(ye),a=new Date,o=n.useState(null!==(t=null==i?void 0:i.year)&&void 0!==t?t:a.getFullYear()),s=o[0],c=o[1],d=null!==(r=null==i?void 0:i.quarter)&&void 0!==r?r:null,u=a.getMonth(),p=Math.floor(u/3)+1,f=a.getFullYear(),h=n.useMemo(function(){return G?new Set(be.filter(function(e){return e.match(/^\d{4}-Q\d$/)})):new Set},[be,G]),g=function(e){var n="".concat(s,"-Q").concat(e);return h.has(n)};return e.jsxs(Os,{children:[e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:function(){return c(function(e){return e-1})},title:"上一年",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsx(tl,{children:e.jsxs("span",{children:[s,"年"]})}),e.jsx(rl,{children:e.jsx(il,{onClick:function(){return c(function(e){return e+1})},title:"下一年",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]}),e.jsx(ks,{children:["Q1","Q2","Q3","Q4"].map(function(n,t){var r=t+1,a=s===f&&r===p,o=G?g(r):r===d&&s===(null==i?void 0:i.year),c=G&&g(r)&&!(r===d&&s===(null==i?void 0:i.year));return e.jsx(Ls,{isSelected:o,isInSelectedSet:c,isCurrentQuarter:a,onClick:function(){return function(e,n){var t="".concat(e,"-Q").concat(n);if(G){var r=_e(t);xe||ee(r),null==l||l(r)}else xe||ee(t),null==l||l(t),V||Se()}(s,r)},children:n},n)})}),V&&e.jsxs(xs,{children:[e.jsx(ys,{}),e.jsx(bs,{children:e.jsx(js,{variant:"primary",onClick:Se,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}(ye),i=(new Date).getFullYear(),a=n.useState((t=null!=r?r:i,12*Math.floor(t/12))),o=a[0],s=a[1],c=n.useMemo(function(){for(var e=[],n=0;n<12;n++)e.push(o+n);return e},[o]),d=n.useMemo(function(){return G?new Set(be.filter(function(e){return e.match(/^\d{4}$/)})):new Set},[be,G]);return e.jsxs(ws,{children:[e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:function(){return s(function(e){return e-12})},title:"上一页",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsx(tl,{children:e.jsxs("span",{children:[o," - ",o+11]})}),e.jsx(rl,{children:e.jsx(il,{onClick:function(){return s(function(e){return e+12})},title:"下一页",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]}),e.jsx(Ns,{children:c.map(function(n){var t=G?d.has(String(n)):n===r,a=G&&d.has(String(n))&&n!==r;return e.jsx(Ts,{isSelected:t,isInSelectedSet:a,isCurrentYear:n===i,onClick:function(){return function(e){var n=String(e);if(G){var t=_e(n);xe||ee(t),null==l||l(t)}else xe||ee(n),null==l||l(n),V||Se()}(n)},children:n},n)})}),V&&e.jsxs(xs,{children:[e.jsx(ys,{}),e.jsx(bs,{children:e.jsx(js,{variant:"primary",onClick:Se,children:"确定"})})]})]})},Le=n.useCallback(function(e){return function(n){n.stopPropagation();var t=be.filter(function(n){return n!==e}).join(Z);xe||ee(t||void 0),null==l||l(t)}},[be,Z,xe,l]),Ae=function(){var t,r,a,o=n.useMemo(function(){return ye||""},[ye]);return e.jsxs(Wo,{ref:me,focused:ae,disabled:u,size:i,className:f.default("zjpcy-datepicker-trigger","zjpcy-datepicker-trigger--".concat(i),{"zjpcy-datepicker-trigger--disabled":u,"zjpcy-datepicker-trigger--focused":ae,"zjpcy-datepicker-trigger--multiple":G},x),style:y,onClick:Ne,children:[G&&be.length>0?e.jsx(Ko,{isPlaceholder:!1,disabled:u,className:f.default("zjpcy-datepicker-value","zjpcy-datepicker-value--tags",{"zjpcy-datepicker-value--disabled":u}),children:(t=void 0!==W&&W>0,r=t?be.slice(0,W):be,a=t?be.length-W:0,e.jsxs(e.Fragment,{children:[r.map(function(n,t){return e.jsx(Lo,{size:"small",closable:!u,onClose:Le(n),className:"zjpcy-datepicker-tag",children:n},"".concat(n,"-").concat(t))}),a>0&&e.jsxs(Lo,{size:"small",className:"zjpcy-datepicker-tag zjpcy-datepicker-tag--more",children:["...+",a]},"more")]}))}):e.jsx(Ko,{isPlaceholder:!ye,disabled:u,className:f.default("zjpcy-datepicker-value",{"zjpcy-datepicker-value--placeholder":!ye,"zjpcy-datepicker-value--disabled":u}),children:o||c}),e.jsxs(Zo,{className:"zjpcy-datepicker-suffix",children:[z&&ye&&!u&&e.jsx(Xo,{className:"zjpcy-datepicker-clear",onClick:Ee,children:e.jsx(B,{type:"close",style:{fontSize:10}})}),e.jsx(qo,{className:f.default("zjpcy-datepicker-icon",{"has-clear":z&&ye&&!u}),children:e.jsx(B,{type:"calendar",style:{fontSize:14}})})]})]})},Me=function(){switch(F){case"month":return e.jsx(Te,{});case"quarter":return e.jsx(Oe,{});case"year":return e.jsx(ke,{});default:return e.jsx(Ps,{value:ye,selectedValues:be,onChange:ze,format:w,disabledDate:E,disabledDates:S,showToday:H,showOk:V,showTime:q,onToday:function(){V||Se()},onOk:Se,onHasSelectedDateChange:ge})}},Ie=function(){if(!Ce)return null;var n=e.jsx(Jo,{ref:ve,top:se.top,left:se.left,minWidth:se.width||(q&&he?480:280),className:"zjpcy-datepicker-dropdown",style:{opacity:ue?1:0,transition:"opacity 0.15s ease"},children:Me()});return g.default.createPortal(n,document.body)},De=G?"auto":_;return T?e.jsxs(_s,{gap:k,className:"zjpcy-datepicker-with-label",children:["string"==typeof T?e.jsx(Cs,{className:f.default("zjpcy-datepicker-label",A),style:M,children:T}):T,e.jsxs($o,{width:De,minWidth:G?_:void 0,className:"zjpcy-datepicker",children:[Ae(),Ie()]})]}):e.jsxs($o,{width:De,minWidth:G?_:void 0,className:"zjpcy-datepicker",children:[Ae(),Ie()]})};Vs.RangePicker=Go;var Bs=Vs,Us=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"})})})},Fs=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"})})},Ys=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"})})},Gs=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"})]})},$s=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"})})},Ws=function(e,n){return e.children&&0!==e.children.length?e.children.every(function(e){return Ws(e,n)}):n.includes(e.key)},Ks=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:Ws(e,n),someChecked:Ks(e,n)}}),r=t.some(function(e){return e.allChecked||e.someChecked}),i=t.every(function(e){return e.allChecked});return r&&!i},Zs=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 a=Zs(i.children,n);if(a)return a}}return null},Xs=function(e){return e.reduce(function(e,n){return e.push(n.key),n.children&&e.push.apply(e,Xs(n.children)),e},[])},qs=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 a=qs(i.children,n);if(a)return a}}return null},Js=function(e,n,t){var r;if(null===n)return e.push.apply(e,t),!0;for(var i=0,a=e;i<a.length;i++){var o=a[i];if(o.key===n)return o.children||(o.children=[]),(r=o.children).push.apply(r,t),!0;if(o.children)if(Js(o.children,n,t))return!0}return!1},Qs=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 a=i[r];if(a.children)if(Qs(a.children,n))return!0}return!1},ec=function(e,n,t){for(var r=0,i=e;r<i.length;r++){var a=i[r];if(a.key===n)return Object.assign(a,t),!0;if(a.children)if(ec(a.children,n,t))return!0}return!1},nc=function(e,n,t){return e.reduce(function(e,r){var i=t(n,r),a=r.children?nc(r.children,n,t):[];return(i||a.length>0)&&e.push(m(m({},r),{children:a.length>0?a:void 0})),e},[])},tc=n.memo(function(t){var r=t.node,i=t.level,a=t.expanded,o=t.selected,l=t.checked,s=t.halfChecked,c=t.loading,d=t.isLeaf,u=t.showIcon,p=t.showLine,h=t.checkable,g=t.draggable,v=t.checkStrictly,x=t.expandedKeys,y=t.selectedKeys,b=t.checkedKeys,j=t.motionDuration,_=t.prefixCls,C=t.renderNode,w=t.addable,N=t.removable,z=t.editable,E=t.actionDisplayMode,S=t.onAddNode,T=t.onRemoveNode,O=t.onEditNode,k=t.editingNodeKey,L=t.editValue,A=t.onEditChange,M=t.onEditConfirm,I=t.onEditCancel,D=t.onExpand,R=t.onSelect,H=t.onCheck,P=t.onNodeMount,V=t.onDrop,B=t.dragEndCounter,U=t.tooltip,F=n.useState(!1),Y=F[0],G=F[1],$=n.useState(null),W=$[0],K=$[1],Z=n.useState(!1),X=Z[0],q=Z[1],J=n.useRef(null),Q=n.useRef(null);n.useEffect(function(){void 0!==B&&B>0&&(G(!1),K(null))},[B]);var ee=n.useCallback(function(e){J.current=e,P&&P(r.key,e)},[P,r.key]),ne=Boolean(r.children&&r.children.length>0),te=void 0!==r.children,re=x.includes(r.key),ie=r.disabled,ae=g&&!ie,oe=void 0!==r.isLeaf?r.isLeaf:!te,le=n.useCallback(function(e){e.stopPropagation(),oe||c||D(r.key,e)},[oe,c,r.key,D]),se=n.useCallback(function(e){e.stopPropagation(),ie||r.disableCheckbox||H(r.key,e)},[ie,r.disableCheckbox,r.key,H]),ce=n.useCallback(function(e){ie||(h?se(e):R(r.key,e))},[ie,h,r.key,R,se]),de=n.useCallback(function(e){if(ae){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)}},[ae,r.key,r.title]),ue=n.useCallback(function(){G(!1),K(null)},[]),pe=n.useCallback(function(e){var n;if(ae){e.preventDefault(),e.dataTransfer.dropEffect="move";var t=e.target,r=J.current;if(r&&t&&r.contains(t)){var i=r.querySelector(".".concat(_,"-child-tree"));if(i&&i.contains(t))return}var a=null===(n=J.current)||void 0===n?void 0:n.getBoundingClientRect();if(a){var o=e.clientY-a.top,l=a.height;K(oe?o<l/2?"before":"after":o<l/3?"before":o>2*l/3?"after":"inside"),G(!0)}}},[ae,oe,_]),fe=n.useCallback(function(){G(!1),K(null)},[]),he=n.useCallback(function(e){e.preventDefault(),e.stopPropagation(),G(!1),K(null);var n=e.dataTransfer.getData("text/plain");n&&n!==String(r.key)&&V&&W&&V(n,r.key,W)},[r.key,W,V]),ge=k===r.key,me=["".concat(_,"-treenode"),"".concat(_,"-treenode-ellipsis"),o&&"".concat(_,"-node-selected"),ie&&"".concat(_,"-treenode-disabled"),ae&&"".concat(_,"-treenode-draggable"),Y&&"".concat(_,"-treenode-drag-over"),Y&&W&&"".concat(_,"-treenode-drop-target"),oe&&"".concat(_,"-treenode-leaf"),p&&"".concat(_,"-line")].filter(Boolean).join(" "),ve=["".concat(_,"-node-content-wrapper"),o&&"".concat(_,"-node-selected")].filter(Boolean).join(" ");return e.jsxs("div",{ref:ee,className:me,draggable:ae,onDragStart:de,onDragEnd:ue,onDragOver:pe,onDragLeave:fe,onDrop:he,"data-drop-position":W,children:[function(){if(0===i)return null;for(var n=[],t=0;t<i;t++)n.push(e.jsx("span",{className:"".concat(_,"-indent")},t));return n}(),p&&i>0&&e.jsx("span",{className:"".concat(_,"-line-point")}),function(){if(c)return e.jsx("span",{className:"".concat(_,"-switcher"),children:e.jsx(Us,{className:"".concat(_,"-loading-icon")})});if(oe)return e.jsx("span",{className:"".concat(_,"-switcher ").concat(_,"-switcher-spaced"),style:{visibility:"hidden"}});var n=["".concat(_,"-switcher"),"".concat(_,re?"-switcher-open":"-switcher-close")].join(" ");return e.jsx("span",{className:n,onClick:le,children:e.jsx(Fs,{})})}(),function(){var n;if(!h)return null;var t=f.default("".concat(_,"-checkbox"),((n={})["".concat(_,"-checkbox-checked")]=l&&!s,n["".concat(_,"-checkbox-indeterminate")]=s,n["".concat(_,"-checkbox-disabled")]=ie||r.disableCheckbox,n["".concat(_,"-checkbox-disabled-checked")]=(ie||r.disableCheckbox)&&l&&!s,n["".concat(_,"-checkbox-disabled-indeterminate")]=(ie||r.disableCheckbox)&&s,n));return e.jsx("span",{className:t,onClick:se})}(),!u||C?null:r.icon?e.jsx("span",{className:"".concat(_,"-icon"),children:r.icon}):e.jsx("span",{className:"".concat(_,"-icon"),children:d?e.jsx(Gs,{}):e.jsx(Ys,{expanded:re})}),e.jsx("span",{className:ve,onClick:ce,children:function(){var n,t="".concat(_,"-title"),i=void 0!==r.tooltip?"boolean"==typeof r.tooltip?r.tooltip?{title:r.title}:null:m(m({},r.tooltip),{title:r.tooltip.title||r.title}):void 0!==U?"boolean"==typeof U?U?{title:r.title}:null:m(m({},U),{title:U.title||r.title}):null,a=C?e.jsx("span",{className:t,children:C(r)}):ge?e.jsx("span",{className:t,children:e.jsx("input",{type:"text",value:L||"",onChange:function(e){return null==A?void 0:A(e.target.value)},onKeyDown:function(e){"Enter"===e.key?null==M||M():"Escape"===e.key&&(null==I||I())},onBlur:function(){return null==M?void 0:M()},autoFocus:!0,className:"".concat(_,"-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&&!ge?e.jsx(St,{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:a}):a}()}),function(){if(!w&&!N&&!z)return null;if(ge)return null;var n="dropdown"===E,t=function(e){null==e||e.stopPropagation(),null==S||S(r),n&&q(!1)},i=function(e){null==e||e.stopPropagation(),null==T||T(r),n&&q(!1)},a=function(e){null==e||e.stopPropagation(),null==O||O(r),n&&q(!1)};if(n)return e.jsxs("span",{className:"".concat(_,"-actions ").concat(_,"-actions-dropdown"),ref:Q,onMouseEnter:function(){return q(!0)},onMouseLeave:function(){return q(!1)},children:[e.jsx("button",{className:"".concat(_,"-action-trigger"),title:"操作",onClick:function(e){return e.stopPropagation()},children:"⋮"}),X&&e.jsxs("div",{className:"".concat(_,"-action-menu"),children:[w&&e.jsxs("div",{className:f.default("".concat(_,"-action-menu-item"),"".concat(_,"-action-menu-add")),onClick:t,children:[e.jsx("span",{className:"".concat(_,"-action-menu-icon"),children:"+"}),e.jsx("span",{children:"添加子节点"})]}),z&&e.jsxs("div",{className:f.default("".concat(_,"-action-menu-item"),"".concat(_,"-action-menu-edit")),onClick:a,children:[e.jsx("span",{className:"".concat(_,"-action-menu-icon"),children:"✎"}),e.jsx("span",{children:"编辑"})]}),N&&e.jsxs("div",{className:f.default("".concat(_,"-action-menu-item"),"".concat(_,"-action-menu-remove")),onClick:i,children:[e.jsx("span",{className:"".concat(_,"-action-menu-icon"),children:"×"}),e.jsx("span",{children:"删除"})]})]})]});var o={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(_,"-actions"),style:{marginLeft:"auto",display:"flex",alignItems:"center"},children:[w&&e.jsx("button",{onClick:t,style:o,title:"添加子节点",className:"".concat(_,"-action-btn ").concat(_,"-action-add"),children:"+"}),z&&e.jsx("button",{onClick:a,style:o,title:"编辑",className:"".concat(_,"-action-btn ").concat(_,"-action-edit"),children:"✎"}),N&&e.jsx("button",{onClick:i,style:m(m({},o),{color:"#ff4d4f"}),title:"删除",className:"".concat(_,"-action-btn ").concat(_,"-action-remove"),children:"×"})]})}(),!oe&&e.jsx("div",{className:["".concat(_,"-child-tree"),re&&"".concat(_,"-child-tree-expand")].filter(Boolean).join(" "),children:e.jsx("div",{children:ne?r.children.map(function(n,t){return e.jsx(tc,{node:n,level:i+1,expanded:a,selected:y.includes(n.key),checked:b.includes(n.key),halfChecked:Ks(n,b),loading:n.loading||!1,isLeaf:!n.children||0===n.children.length,showIcon:u,showLine:p,checkable:h,draggable:g,checkStrictly:v,expandedKeys:x,selectedKeys:y,checkedKeys:b,motionDuration:j,prefixCls:_,renderNode:C,addable:w,removable:N,editable:z,actionDisplayMode:E,onAddNode:S,onRemoveNode:T,onEditNode:O,editingNodeKey:k,editValue:L,onEditChange:A,onEditConfirm:M,onEditCancel:I,onExpand:D,onSelect:R,onCheck:H,onNodeMount:P,onDrop:V,dragEndCounter:B,tooltip:U},"".concat(n.key,"-").concat(t))}):e.jsx("div",{className:"".concat(_,"-empty-drop-zone"),style:{minHeight:"4px",width:"100%"}})})})]})});tc.displayName="TreeNodeComponent";var rc=n.forwardRef(function(t,r){var i=t.treeData,a=void 0===i?[]:i,o=t.defaultExpandedKeys,l=void 0===o?[]:o,s=t.expandedKeys,c=t.onExpand,d=t.defaultSelectedKeys,u=void 0===d?[]:d,p=t.selectedKeys,f=t.onSelect,h=t.defaultCheckedKeys,g=void 0===h?[]:h,v=t.checkedKeys,x=t.onCheck,y=t.checkable,j=void 0!==y&&y,_=t.checkStrictly,C=void 0!==_&&_,w=t.multiple,N=void 0!==w&&w,z=t.showSearch,E=void 0!==z&&z,S=t.filterOption,T=t.showLine,O=void 0!==T&&T,k=t.showIndent,L=void 0!==k&&k,A=t.showIcon,M=void 0===A||A,I=t.loadData,D=t.motionDuration,R=void 0===D?200:D,H=t.draggable,P=void 0!==H&&H,V=t.renderNode,B=t.addable,U=void 0!==B&&B,F=t.removable,Y=void 0!==F&&F,G=t.editable,$=void 0!==G&&G,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?"zjpcy-tree":J,ee=t.className,ne=void 0===ee?"":ee,te=t.style,re=void 0===te?{}:te,ie=t.disabled,ae=void 0!==ie&&ie,oe=t.defaultExpandAll,le=void 0!==oe&&oe,se=t.tooltip,ce=t.onDrop,de=n.useState(a),ue=de[0],pe=de[1],fe=n.useRef(a);n.useEffect(function(){fe.current!==a&&(fe.current=a,pe(a))},[a]);var he=n.useState(function(){if(le){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(a)}return l}),ge=he[0],me=he[1],ve=n.useState(u),xe=ve[0],ye=ve[1],be=n.useState(g),je=be[0],_e=be[1],Ce=n.useState([]),we=Ce[0],Ne=Ce[1],ze=n.useState(""),Ee=ze[0],Se=ze[1],Te=n.useState(null),Oe=Te[0],ke=Te[1],Le=n.useState(""),Ae=Le[0],Me=Le[1],Ie=n.useState(0),De=Ie[0],Re=Ie[1],He=n.useRef(new Map),Pe=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 Js(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 Qs(t,e.key),me(function(n){return n.filter(function(n){return n!==e.key})}),ye(function(n){return n.filter(function(n){return n!==e.key})}),_e(function(n){return n.filter(function(n){return n!==e.key})}),He.current.delete(e.key),t}):pe(function(n){var t=b([],n,!0);return Qs(t,e.key),me(function(n){return n.filter(function(n){return n!==e.key})}),ye(function(n){return n.filter(function(n){return n!==e.key})}),_e(function(n){return n.filter(function(n){return n!==e.key})}),He.current.delete(e.key),t})},[X]),Ue=n.useCallback(function(e){ke(e.key),Me(String(e.title||""))},[]),Fe=n.useCallback(function(e){Me(e)},[]),Ye=n.useCallback(function(){if(null!==Oe){if(q){var e=Zs(ue,Oe);if(e){var n=q(e,Ae),t=void 0!==n?n:Ae;pe(function(e){var n=b([],e,!0);return ec(n,Oe,{title:t}),n})}}else pe(function(e){var n=b([],e,!0);return ec(n,Oe,{title:Ae}),n});ke(null),Me("")}},[Oe,Ae,q,ue]),Ge=n.useCallback(function(){ke(null),Me("")},[]);n.useImperativeHandle(r,function(){return{scrollTo:function(e){var n=He.current.get(e);n&&Pe.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 Js(r,e,i),r})},removeNode:function(e){var n=!1;return pe(function(t){var r=b([],t,!0);return(n=Qs(r,e))&&(me(function(n){return n.filter(function(n){return n!==e})}),ye(function(n){return n.filter(function(n){return n!==e})}),_e(function(n){return n.filter(function(n){return n!==e})}),He.current.delete(e)),r}),n},updateNode:function(e,n){var t=!1;return pe(function(r){var i=b([],r,!0);return t=ec(i,e,n),i}),t}}});var $e=n.useCallback(function(e,n){n?He.current.set(e,n):He.current.delete(e)},[]),We=void 0!==s,Ke=void 0!==p,Ze=void 0!==v,Xe=We?s:ge,qe=Ke?p:xe,Je=Ze?v:je,Qe=n.useCallback(function(e,n){if(!ae){var t=Xe.includes(e),r=t?Xe.filter(function(n){return n!==e}):b(b([],Xe,!0),[e],!1);if(!t&&I){var i=Zs(ue,e);!i||i.children&&0!==i.children.length||(Ne(function(n){return b(b([],n,!0),[e],!1)}),I(i).finally(function(){Ne(function(n){return n.filter(function(n){return n!==e})})}))}We||me(r),null==c||c(r,{expanded:!t,node:Zs(ue,e),nativeEvent:n})}},[ae,Xe,We,c,ue,I]),en=n.useCallback(function(e,n){if(!ae){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||ye(t),null==f||f(t,{selected:!r,node:Zs(ue,e),nativeEvent:n})}},[ae,qe,Ke,N,f,ue]),nn=n.useCallback(function(e,n){if(!ae){var t,r,i=Je.includes(e);if(i){if(t=Je.filter(function(n){return n!==e}),!C)if(null==(r=Zs(ue,e))?void 0:r.children){var a=Xs(r.children);t=t.filter(function(e){return!a.includes(e)})}}else if(t=b(b([],Je,!0),[e],!1),!C)if(null==(r=Zs(ue,e))?void 0:r.children){var o=Xs(r.children);t=t.concat(o.filter(function(e){return-1===t.indexOf(e)}))}Ze||_e(t),null==x||x(t,{checked:!i,node:Zs(ue,e),nativeEvent:n})}},[ae,Je,Ze,C,x,ue]),tn=n.useCallback(function(e,n,t){if(e!==n){var r=Zs(ue,e),i=Zs(ue,n);if(r&&i){var a=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(a(i,n))return!0}return!1};if(!a(r,n)){var o=void 0!==i.isLeaf?i.isLeaf:void 0===i.children,l=function(e){return m(m({},e),{children:e.children?e.children.map(l):void 0})};pe(function(i){var a=i.map(l);Qs(a,e);var s=l(r),c="inside"===t&&o?"after":t;if("inside"===c)Js(a,n,[s]),ge.includes(n)||me(function(e){return b(b([],e,!0),[n],!1)});else{var d=qs(a,n),u=d?d.children||[]:a,p=u.findIndex(function(e){return e.key===n});if(-1!==p){var f="before"===c?p:p+1;u.splice(f,0,s)}}return a}),null==ce||ce({event:{},node:i,dragNode:r,dragPosition:t}),Re(function(e){return e+1})}}}},[ue,ge,ce]),rn=n.useMemo(function(){return E&&Ee&&S?nc(ue,Ee,S):ue},[ue,E,Ee,S]),an=[Q,O&&"".concat(Q,"-show-line"),ne].filter(Boolean).join(" ");return e.jsxs("div",{ref:Pe,className:an,style:re,children:[E?e.jsx("div",{className:"".concat(Q,"-search-wrapper"),children:e.jsx("input",{type:"text",className:"".concat(Q,"-search-input"),placeholder:"Search...",value:Ee,onChange:function(e){return Se(e.target.value)}})}):null,e.jsxs("div",{className:"".concat(Q,"-node-list"),children:[rn.map(function(n){return e.jsx(tc,{node:n,level:0,expanded:Xe.includes(n.key),selected:qe.includes(n.key),checked:Je.includes(n.key),halfChecked:Ks(n,Je),loading:we.includes(n.key),isLeaf:void 0!==n.isLeaf?n.isLeaf:void 0===n.children,showIcon:M,showLine:O,showIndent:L,checkable:j,draggable:P,checkStrictly:C,expandedKeys:Xe,selectedKeys:qe,checkedKeys:Je,motionDuration:R,prefixCls:Q,renderNode:V,addable:U,removable:Y,editable:$,actionDisplayMode:K,onAddNode:Ve,onRemoveNode:Be,onEditNode:Ue,editingNodeKey:Oe,editValue:Ae,onEditChange:Fe,onEditConfirm:Ye,onEditCancel:Ge,onExpand:Qe,onSelect:en,onCheck:nn,onNodeMount:$e,onDrop:tn,dragEndCounter:De,tooltip:se},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($s,{})}),e.jsx("div",{children:"No Data"})]})]})]})});rc.displayName="Tree";var ic=rc,ac=function(n){var t=n.fileList,r=n.onRemove,i=n.showUploadList;if(!i||0===t.length)return null;var a="boolean"==typeof i?i:!1!==i.showRemoveIcon,o=function(n){switch(n){case"uploading":return e.jsx(B,{type:"loading",spin:!0});case"success":return e.jsx(B,{type:"check-circle",style:{color:"var(--success-color, #52c41a)"}});case"error":return e.jsx(B,{type:"close-circle",style:{color:"var(--error-color, #ff4d4f)"}});default:return e.jsx(B,{type:"file"})}},l=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:"zjpcy-upload__list",children:t.map(function(n){return e.jsxs("div",{className:f.default("zjpcy-upload__list-item",{"zjpcy-upload__list-item-error":"error"===n.status,"zjpcy-upload__list-item-success":"success"===n.status}),children:[e.jsxs("div",{className:"zjpcy-upload__list-item-info",children:[e.jsx("span",{className:"zjpcy-upload__list-item-icon",children:o(n.status)}),e.jsxs("span",{className:"zjpcy-upload__list-item-name",title:n.name,children:[n.name,e.jsxs("span",{style:{color:"var(--text-secondary, #999)",marginLeft:8,fontSize:12},children:["(",l(n.size),")"]})]})]}),a&&e.jsx("span",{className:"zjpcy-upload__list-item-actions",children:e.jsx("button",{className:"zjpcy-upload__list-item-action",onClick:function(){return r(n)},title:"删除",children:e.jsx(B,{type:"trash"})})}),e.jsx("div",{className:f.default("zjpcy-upload__progress-wrapper",{"zjpcy-upload__progress-wrapper-visible":"uploading"===n.status}),children:e.jsx(Mo,{percent:n.percent||0,size:"small",showInfo:!1})})]},n.uid)})})},oc=function(t){var r=t.disabled,i=t.onFileDrop,a=t.children,o=t.accept,l=t.multiple,s=n.useState(!1),c=s[0],d=s[1],u=n.useRef(null),p=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",o&&(e.accept=o),l&&(e.multiple=!0),e.onchange=function(e){var n=e.target.files;n&&i(n)},e.click()}},[o,l,r,i]);return e.jsx("div",{ref:u,className:f.default("zjpcy-upload__drag",{"zjpcy-upload__drag-over":c,"zjpcy-upload__drag-disabled":r}),onDragOver:p,onDragLeave:h,onDrop:g,onClick:m,children:a||e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"zjpcy-upload__drag-icon",children:e.jsx(B,{type:"upload",style:{fontSize:48}})}),e.jsx("div",{className:"zjpcy-upload__drag-text",children:"点击或拖拽文件到此区域上传"}),e.jsx("div",{className:"zjpcy-upload__drag-hint",children:"支持单次或批量上传"})]})})},lc=function(t){var r=t.action,i=t.defaultFileList,a=void 0===i?[]:i,o=t.fileList,l=t.onChange,s=t.beforeUpload,c=t.onProgress,d=t.onSuccess,u=t.onError,p=t.onRemove,h=t.headers,g=t.name,v=void 0===g?"file":g,j=t.data,_=t.withCredentials,C=void 0!==_&&_,w=t.accept,N=t.multiple,z=void 0!==N&&N,E=t.disabled,S=void 0!==E&&E,T=t.drag,O=void 0!==T&&T,k=t.style,L=t.className,A=t.customRequest,M=t.showUploadList,I=void 0===M||M,D=t.method,R=void 0===D?"POST":D,H=t.children,P=t.maxCount,V=n.useState(a),U=V[0],F=V[1],Y=n.useRef(null),G=void 0!==o,$=G?o:U,W=n.useCallback(function(e){G||F(e),l&&l(e)},[G,l]),K=n.useCallback(function(e,n){var t=$.map(function(t){return t.uid===e?m(m({},t),n):t});W(t)},[$,W]),Z=n.useCallback(function(e){return x(void 0,void 0,void 0,function(){var n,t,i;return y(this,function(a){return r||A?(n=e.raw)?(K(e.uid,{status:"uploading",percent:0}),t="function"==typeof j?j(n):j,i={action:r||"",filename:v,file:n,data:t,headers:h,withCredentials:C,method:R.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)}},A?A(i):function(e){var n=e.action,t=e.filename,r=e.file,i=e.data,a=e.headers,o=e.withCredentials,l=e.onProgress,s=e.onSuccess,c=e.onError,d=e.method,u=new XMLHttpRequest;l&&u.upload&&(u.upload.onprogress=function(e){if(e.total>0){var n=Math.round(e.loaded/e.total*100);l(n)}}),u.onerror=function(){c(new Error("Upload failed"))},u.onload=function(){u.status>=200&&u.status<300?s(u.response):c(new Error("Upload failed with status ".concat(u.status)))},u.open(d,n,!0),o&&(u.withCredentials=!0),a&&Object.keys(a).forEach(function(e){u.setRequestHeader(e,a[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,A,v,j,h,C,R,c,d,u,K]),X=n.useCallback(function(e){return x(void 0,void 0,void 0,function(){var n,t,i,a,o;return y(this,function(l){switch(l.label){case 0:if(!e||0===e.length)return[2];if(n=Array.from(e),void 0!==P&&$.length+n.length>P)return console.warn("Upload: Maximum file count is ".concat(P)),[2];t=function(e){var t,i,a;return y(this,function(o){switch(o.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},!s)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,s(e,n)];case 2:return!1===(i=o.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 o.sent(),[2,"continue"];case 4:return(r||A)&&(t.status="uploading"),a=b(b([],$,!0),[t],!1),W(a),(r||A)&&setTimeout(function(){return Z(t)},0),[2]}})},i=0,a=n,l.label=1;case 1:return i<a.length?(o=a[i],[5,t(o)]):[3,4];case 2:l.sent(),l.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},[$,P,s,r,A,Z,W]),q=n.useCallback(function(e){X(e.target.files),Y.current&&(Y.current.value="")},[X]),J=n.useCallback(function(){!S&&Y.current&&Y.current.click()},[S]),Q=n.useCallback(function(e){return x(void 0,void 0,void 0,function(){var n;return y(this,function(t){switch(t.label){case 0:return p?[4,p(e)]:[3,2];case 1:if(!1===t.sent())return[2];t.label=2;case 2:return n=$.filter(function(n){return n.uid!==e.uid}),W(n),[2]}})})},[$,p,W]),ee=n.useCallback(function(e){X(e)},[X]);return e.jsxs("div",{className:f.default("zjpcy-upload",L,{"zjpcy-upload--disabled":S}),style:k,children:[e.jsx("input",{ref:Y,type:"file",className:"zjpcy-upload__input",accept:w,multiple:z,onChange:q}),O?e.jsx(oc,{disabled:S,onFileDrop:ee,accept:w,multiple:z,children:H}):e.jsx("div",{className:"zjpcy-upload__trigger",onClick:J,children:H||e.jsxs("button",{className:"zjpcy-btn zjpcy-btn--primary",disabled:S,children:[e.jsx(B,{type:"upload",style:{marginRight:4}}),"点击上传"]})}),I&&e.jsx(ac,{fileList:$,onRemove:Q,showUploadList:I})]})},sc=function(e,n){return m({display:"flex",flexDirection:"horizontal"===e?"row":"column",alignItems:"stretch",width:"100%",height:"100%",overflow:"hidden",background:"var(--zjpcy-splitter-panel-bg)",borderRadius:"var(--zjpcy-splitter-panel-radius)"},n)},cc=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(--zjpcy-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(--zjpcy-splitter-panel-shadow)":"var(--zjpcy-splitter-panel-shadow-vertical)",i.zIndex=r-t),i},dc=function(e,n,t,r){void 0===r&&(r=0);var i={position:"relative",flexShrink:0,background:t?"var(--zjpcy-bg-color-light)":"var(--zjpcy-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(--zjpcy-splitter-shadow-sm)",transition:"all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-opacity-disabled)"),i},uc=function(e,n,t,r,i){void 0===i&&(i=!1);var a={borderRadius:"var(--zjpcy-border-radius-sm)",transition:"all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function)"};return"horizontal"===e?(a.width=n?"2px":"var(--zjpcy-splitter-line-width)",a.height=n?"32px":"var(--zjpcy-splitter-line-length)",a.minHeight="var(--zjpcy-splitter-line-min-length)"):(a.width=n?"32px":"var(--zjpcy-splitter-line-length)",a.minWidth="var(--zjpcy-splitter-line-min-length)",a.height=n?"2px":"var(--zjpcy-splitter-line-width)"),i&&r&&t?(a.backgroundColor=t,a.boxShadow="var(--zjpcy-splitter-shadow-active)"):r&&t?(a.backgroundColor=t,a.boxShadow="var(--zjpcy-splitter-shadow-md)"):n?a.backgroundColor=n:a.background="var(--zjpcy-splitter-line-bg)",a},pc=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)},fc=function(t){var r=t.layout,i=void 0===r?"horizontal":r,a=t.panels,o=t.defaultSize,l=void 0===o?"50%":o,s=t.minSize,c=void 0===s?50:s,d=t.maxSize,u=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,j=t.className,_=void 0===j?"":j,C=t.style,w=t.left,N=t.right,z=t.top,E=t.bottom,S=t.children,T=n.useRef(null),O=n.useState([]),k=O[0],L=O[1],A=n.useState(!1),M=A[0],I=A[1],D=n.useState(-1),R=D[0],H=D[1],P=n.useRef({isDragging:!1,startPosition:0,startSizes:[],containerSize:0,splitterIndex:-1}),V=n.useMemo(function(){if(a&&a.length>0)return a.map(function(e){return e.content});if("vertical"===i){if(z&&E)return[z,E]}else if(w&&N)return[w,N];return S&&Array.isArray(S)?S:[]},[a,i,w,N,z,E,S]),B=V.length,U=n.useCallback(function(e){return a&&a[e]?a[e]:{}},[a]),F=n.useCallback(function(){if(!T.current)return 0;var e=T.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("--zjpcy-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 a=b([],e,!0);a.length<n;)a.push(null!==(r=a[a.length-1])&&void 0!==r?r:t);return a.slice(0,n)}return new Array(n).fill(e)}(l,B,"".concat(100/B,"%")),i=pc(c,B,50),o=pc(u,B,1/0),s=a?a.map(function(e){var n;return null!==(n=e.defaultSize)&&void 0!==n?n:r[a.indexOf(e)]}):r,d=a?a.map(function(e){var n;return null!==(n=e.minSize)&&void 0!==n?n:i[a.indexOf(e)]}):i,p=a?a.map(function(e){var n;return null!==(n=e.maxSize)&&void 0!==n?n:o[a.indexOf(e)]}):o,f=s.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(p[n],e))}),L(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;L(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 G=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 a="touches"in n?n.touches[0].clientX:n.clientX,o="touches"in n?n.touches[0].clientY:n.clientY,l="horizontal"===i?a:o,s=F();P.current={isDragging:!0,startPosition:l,startSizes:b([],k,!0),containerSize:s,splitterIndex:e},I(!0),H(e)}}}},[v,i,k,F,U]),$=n.useCallback(function(e){if(P.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)-P.current.startPosition,o=P.current.splitterIndex,l=P.current.startSizes,s=pc(c,B,50),d=pc(u,B,1/0),p=a?a.map(function(e,n){var t;return null!==(t=e.minSize)&&void 0!==t?t:s[n]}):s,f=a?a.map(function(e,n){var t;return null!==(t=e.maxSize)&&void 0!==t?t:d[n]}):d,h=p[o],g=f[o],m=p[o+1],y=f[o+1],j=l[o],_=l[o+1],C=j+r,w=_-r;C<h?(C=h,w=j+_-h):C>g&&(C=g,w=j+_-g),w<m?(w=m,C=j+_-m):w>y&&(w=y,C=j+_-y);var N=b([],k,!0);N[o]=C,N[o+1]=w,L(N),null==x||x(N,o)}},[v,i,k,B,c,u,a,x]),W=n.useCallback(function(){P.current.isDragging&&(P.current.isDragging=!1,I(!1),H(-1),null==y||y(k))},[k,y]);if(n.useEffect(function(){if(M)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",W),document.addEventListener("touchmove",$,{passive:!1}),document.addEventListener("touchend",W),function(){document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",W),document.removeEventListener("touchmove",$),document.removeEventListener("touchend",W)}},[M,$,W]),B<2)return console.warn("Splitter requires at least 2 panels"),null;var K=["zjpcy-splitter","zjpcy-splitter-".concat(i),M?"zjpcy-splitter-dragging":"",_].filter(Boolean).join(" ");return e.jsx("div",{ref:T,className:K,style:sc(i,C),children:V.map(function(n,t){var r=k[t]||0,a=t===B-1;return e.jsxs(p.default.Fragment,{children:[e.jsx("div",{className:"zjpcy-splitter__panel",style:cc(r,i,t,B),children:n}),!a&&e.jsx("div",{className:["zjpcy-splitter__bar",R===t?"zjpcy-splitter__bar-dragging":"",v||U(t).disabled||U(t+1).disabled?"zjpcy-splitter__bar-disabled":""].filter(Boolean).join(" "),style:dc(i,f,v,t),onMouseDown:G(t),onTouchStart:G(t),children:e.jsx("div",{className:"zjpcy-splitter__line",style:uc(i,h,g,M,R===t)})})]},t)})})},hc=function(e){var n=d.Solar.fromYmd(e.getFullYear(),e.getMonth()+1,e.getDate()),t=n.getLunar(),r=t.getJieQi(),i=[],a=t.getFestivals();a&&i.push.apply(i,a);var o=t.getOtherFestivals();o&&i.push.apply(i,o);var l=t.getDay(),s={0:"建",1:"除",2:"满",3:"平",4:"定",5:"执",6:"破",7:"危",8:"成",9:"收",10:"开",11:"闭"}[l%12],c={0:{name:"青龙",luck:"吉"},1:{name:"明堂",luck:"吉"},2:{name:"天刑",luck:"凶"},3:{name:"朱雀",luck:"凶"},4:{name:"金匮",luck:"吉"},5:{name:"天德",luck:"吉"},6:{name:"白虎",luck:"凶"},7:{name:"玉堂",luck:"吉"},8:{name:"天牢",luck:"凶"},9:{name:"玄武",luck:"凶"},10:{name:"司命",luck:"吉"},11:{name:"勾陈",luck:"凶"}}[l%12],u=t.getBaZi(),p=[],f=[];"开"!==s&&"成"!==s&&"满"!==s&&"定"!==s||p.push("天德","月德","三合","六合"),"除"!==s&&"执"!==s&&"收"!==s||p.push("天恩","母仓","不将"),r&&p.push("节气","天赦"),"破"!==s&&"危"!==s&&"闭"!==s||f.push("月破","大耗","四击"),"凶"===c.luck&&f.push(c.name);var h=t.getXiu(),g=t.getXiuLuck(),m=t.getXiuSong(),v=t.getDayInGanZhi().charAt(0);return{year:t.getYear(),month:t.getMonth(),day:t.getDay(),monthName:t.getMonthInChinese(),dayName:t.getDayInChinese(),yearName:t.getYearInChinese(),isLeap:!1,julianDay:n.getJulianDay(),week:t.getWeekInChinese(),zodiac:t.getYearShengXiao(),ganZhiYear:t.getYearInGanZhi(),ganZhiMonth:t.getMonthInGanZhi(),ganZhiDay:t.getDayInGanZhi(),term:r||void 0,festivals:i,isTermDay:!!r,pengZuDay:t.getPengZuGan()+" "+t.getPengZuZhi(),pengZuHour:"",yi:"破"===s||"危"===s?["祭祀","沐浴","扫舍"]:["祭祀","祈福","嫁娶","出行","开市"],ji:"破"===s||"危"===s?["嫁娶","安葬","开市"]:["动土","开仓","纳采"],jiShen:p,xiongSha:f,xiGod:{name:{"甲":"东北","乙":"东北","丙":"西南","丁":"西南","戊":"东南","己":"东南","庚":"西北","辛":"西北","壬":"正南","癸":"正南"}[v]||"正南",description:"喜神方位"},fuGod:{name:"正东",description:"福神方位"},caiGod:{name:t.getDayPositionCai(),description:"财神方位"},yangGuiGod:{name:t.getDayPositionYangGui(),description:"阳贵神方位"},yinGuiGod:{name:t.getDayPositionYinGui(),description:"阴贵神方位"},taiShen:t.getDayPositionTai(),chongSha:t.getDayChongDesc(),sha:t.getDaySha(),naYin:"",yearNaYin:t.getYearNaYin(),monthNaYin:t.getMonthNaYin(),dayNaYin:t.getDayNaYin(),xiu:h||"",xiuAnimal:t.getAnimal()||"",xiuLuck:g||"",xiuSong:m||"",baZiYear:u[0]||"",baZiMonth:u[1]||"",baZiDay:u[2]||"",baZiHour:u[3]||"",baZi:u.join(" ")||"",yearWuXing:"",monthWuXing:"",dayWuXing:"",hourWuXing:"",yearShiShen:"",monthShiShen:"",hourShiShen:"",zhiXing:s,zhiXingDesc:{"建":"宜:出行、上任、会友、上书、见工。忌:动土、开仓、婚嫁、纳采。","除":"宜:除服、疗病、出行、拆卸、入宅。忌:求官、上任、开张、搬家。","满":"宜:修造、嫁娶、移徙、开市、交易。忌:栽种、下葬、求医、赴任。","平":"宜:修饰垣墙、平治道涂。忌:诸事不宜。","定":"宜:嫁娶、纳采、祭祀、祈福、出行。忌:求医、诉讼、赴任、出行。","执":"宜:祭祀、祈福、纳表、进章、捕捉。忌:开市、交易、纳财、出行。","破":"宜:破屋、求医、治病、坏垣。忌:嫁娶、安葬、纳采、出行。","危":"宜:祭祀、祈福、斋醮、酬神。忌:嫁娶、开市、安葬。","成":"宜:嫁娶、纳采、祭祀、祈福、开市。忌:安葬、出行、赴任。","收":"宜:祭祀、祈福、纳采、嫁娶、出行。忌:开市、动土、安葬。","开":"宜:嫁娶、纳采、开市、出行、动土。忌:安葬、祭祀、入殓。","闭":"宜:安葬、祭祀、祈福、纳采、嫁娶。忌:出行、动土、开市。"}[s]||"",shiErShen:c.name,shiErShenLuck:c.luck,isHuangDao:"吉"===c.luck,huangDaoName:c.name}},gc=function(e){if(e.term)return e.term;var n=e.dayName;return"初一"===n?e.isLeap?"闰".concat(e.monthName):e.monthName:n},mc=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],vc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],xc=["日","一","二","三","四","五","六"],yc={fields:[{name:"title",label:"标题",type:"text",placeholder:"请输入标题",required:!0},{name:"content",label:"内容",type:"textarea",placeholder:"请输入内容"}],submitText:"保存",cancelText:"取消"},bc=function(e,n){return new Date(e,n+1,0).getDate()},jc=function(e,n){return e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate()},_c=function(e,n){return n.some(function(n){return jc(n,e)})},Cc=function(e){var n=e.getFullYear(),t=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(n,"-").concat(t,"-").concat(r)},wc=function(e,n,t){for(var r=[],i=bc(e,n),a=function(e,n){return new Date(e,n,1).getDay()}(e,n),o=a>=t?a-t:7-(t-a),l=0===n?11:n-1,s=0===n?e-1:e,c=bc(s,l),d=o-1;d>=0;d--)r.push(new Date(s,l,c-d));for(d=1;d<=i;d++)r.push(new Date(e,n,d));var u=42-r.length,p=11===n?0:n+1,f=11===n?e+1:e;for(d=1;d<=u;d++)r.push(new Date(f,p,d));return r},Nc=function(t){var r=t.selectionMode,i=void 0===r?"single":r,a=t.value,o=t.defaultValue,l=t.onChange,s=t.dateCellRender,c=t.monthCellRender,d=t.disabledDate,u=t.headerRender,h=t.mode,g=t.onPanelChange,v=t.fullscreen,x=void 0===v||v,y=t.size,j=void 0===y?"default":y,_=t.layout,C=void 0===_?"horizontal":_,w=t.className,N=t.style,z=t.firstDayOfWeek,E=void 0===z?0:z,S=t.showWeekend,T=void 0===S||S,O=t.editable,k=void 0!==O&&O,L=t.dateInfo,A=void 0===L?{}:L,M=t.onDateInfoChange,I=t.panelFormConfig,D=void 0===I?yc:I,R=t.showLunar,H=void 0!==R&&R,P=t.lunarRender,V=t.enableLunarDetail,U=void 0!==V&&V,F=n.useState(function(){return"multiple"===i?o?Array.isArray(o)?o:[o]:[]:o||new Date}),Y=F[0],G=F[1],$=n.useState("month"),W=$[0],K=$[1],Z=n.useState(!1),X=Z[0],q=Z[1],J=n.useState(null),Q=J[0],ee=J[1],ne=n.useState({}),te=ne[0],re=ne[1],ie=n.useState(null),ae=ie[0],oe=ie[1],le=n.useState(!1),se=le[0],ce=le[1],de=n.useState(null),ue=de[0],fe=de[1],he=void 0!==a?a:Y,ge=void 0!==h?h:W,me=n.useMemo(function(){return"multiple"===i?Array.isArray(he)&&he.length>0?he[0]:new Date:he},[i,he]),ve=n.useState(function(){return me}),xe=ve[0],ye=ve[1];p.default.useEffect(function(){ye(function(e){return jc(e,me)?e:me})},[me]);var be=xe.getFullYear(),je=xe.getMonth(),_e=n.useMemo(function(){return function(e){var n=xc.map(function(e,n){return{label:e,index:n,isWeekend:0===n||6===n}});return 0===e?n:b(b([],n.slice(e),!0),n.slice(0,e),!0)}(E)},[E]),Ce=n.useMemo(function(){return wc(be,je,E)},[be,je,E]),we=n.useCallback(function(e){var n=Cc(e);return A[n]||[]},[A]),Ne=n.useCallback(function(e){if("multiple"===i){var n=Array.isArray(he)?he:[];return _c(e,n)}return jc(e,he)},[i,he]),ze=n.useCallback(function(e){if(!(null==d?void 0:d(e)))if("multiple"===i){var n=Array.isArray(he)?he:[],t=void 0;t=_c(e,n)?function(e,n){return n.filter(function(n){return!jc(n,e)})}(e,n):function(e,n){return _c(e,n)?n:b(b([],n,!0),[e],!1)}(e,n),void 0===a&&G(t),null==l||l(t)}else void 0===a&&G(e),null==l||l(e),k&&(ee(e),oe(null),re({}),q(!0))},[d,l,a,k,i,he]),Ee=n.useCallback(function(e){var n=new Date(xe);n.setMonth(e),void 0===a&&G(n),null==l||l(n),ye(n),K("month")},[xe,a,l]),Se=n.useCallback(function(e){K(e),null==g||g(xe,e)},[xe,g]),Te=n.useCallback(function(e){var n=new Date(xe);n.setFullYear(n.getFullYear()+e),ye(n),null==g||g(n,ge)},[xe,ge,g]),Oe=n.useCallback(function(e){var n=new Date(xe);n.setMonth(n.getMonth()+e),ye(n),null==g||g(n,ge)},[xe,ge,g]),ke=n.useCallback(function(){q(!1),ee(null),re({}),oe(null)},[]),Le=n.useCallback(function(e){fe(e),ce(!0)},[]),Ae=n.useCallback(function(){ce(!1),fe(null)},[]),Me=n.useCallback(function(e,n){re(function(t){var r;return m(m({},t),((r={})[e]=n,r))})},[]),Ie=n.useCallback(function(){var e;if(Q){for(var n=0,t=D.fields.filter(function(e){return e.required});n<t.length;n++){var r=t[n];if(!(null===(e=te[r.name])||void 0===e?void 0:e.trim()))return}var i,a=Cc(Q),o=A[a]||[];null!==ae?(i=b([],o,!0))[ae]={title:te.title||"",content:te.content||"",color:te.color||"#1890ff"}:i=b(b([],o,!0),[{title:te.title||"",content:te.content||"",color:te.color||"#1890ff"}],!1),null==M||M(Q,i),ke()}},[Q,te,ae,A,M,D.fields,ke]),De=n.useCallback(function(e,n){oe(e),re({title:n.title,content:n.content||"",color:n.color||"#1890ff"})},[]),Re=n.useCallback(function(e){if(Q){var n=Cc(Q),t=(A[n]||[]).filter(function(n,t){return t!==e});null==M||M(Q,t),ae===e&&(oe(null),re({}))}},[Q,A,M,ae]),He=function(n,t){var r=t.slice(0,2),i=t.length-2;return e.jsxs("div",{className:"zjpcy-calendar__date-info-list",children:[r.map(function(n,t){return e.jsxs("div",{className:"zjpcy-calendar__date-info-item",style:{color:n.color||"#1890ff"},children:[e.jsx("span",{className:"zjpcy-calendar__date-info-dot",style:{backgroundColor:n.color||"#1890ff"}}),e.jsx("span",{className:"zjpcy-calendar__date-info-text",children:n.title})]},t)}),i>0&&e.jsxs("div",{className:"zjpcy-calendar__date-info-more",children:["+",i," 更多"]})]})},Pe=function(n){return e.jsx("div",{className:"zjpcy-calendar__info-tooltip",children:n.map(function(n,t){return e.jsxs("div",{className:"zjpcy-calendar__info-tooltip-item",children:[e.jsxs("div",{className:"zjpcy-calendar__info-tooltip-title",style:{color:n.color||"#1890ff"},children:[e.jsx("span",{className:"zjpcy-calendar__info-tooltip-dot",style:{backgroundColor:n.color||"#1890ff"}}),n.title]}),n.content&&e.jsx("div",{className:"zjpcy-calendar__info-tooltip-content",children:n.content})]},t)})})},Ve=f.default("zjpcy-calendar",{"zjpcy-calendar--fullscreen":x,"zjpcy-calendar--small":"small"===j,"zjpcy-calendar--layout-vertical":"vertical"===C,"zjpcy-calendar--small-vertical":"small"===j&&"vertical"===C},w);return e.jsxs("div",{className:Ve,style:N,children:[u?u({value:xe,onChange:ye,type:ge,onTypeChange:Se}):e.jsxs("div",{className:"zjpcy-calendar__header",children:[e.jsxs("div",{className:"zjpcy-calendar__header-left",children:[e.jsx(pe,{className:"zjpcy-calendar__header-btn",onClick:function(){return Te(-1)},title:"上一年",children:e.jsx(B,{type:"double-left",style:{fontSize:12}})}),"month"===ge&&e.jsx(pe,{className:"zjpcy-calendar__header-btn",onClick:function(){return Oe(-1)},title:"上个月",children:e.jsx(B,{type:"left",style:{fontSize:12}})})]}),e.jsxs("div",{className:"zjpcy-calendar__header-title",children:[e.jsxs(pe,{className:"zjpcy-calendar__header-title-btn",onClick:function(){return Se("year")},children:[be,"年"]}),"month"===ge&&e.jsx(pe,{className:"zjpcy-calendar__header-title-btn",onClick:function(){return Se("year")},children:mc[je]})]}),e.jsxs("div",{className:"zjpcy-calendar__header-right",children:["month"===ge&&e.jsx(pe,{className:"zjpcy-calendar__header-btn",onClick:function(){return Oe(1)},title:"下个月",children:e.jsx(B,{type:"right",style:{fontSize:12}})}),e.jsx(pe,{className:"zjpcy-calendar__header-btn",onClick:function(){return Te(1)},title:"下一年",children:e.jsx(B,{type:"double-right",style:{fontSize:12}})})]})]}),e.jsx("div",{className:"zjpcy-calendar__body",children:"month"===ge?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"zjpcy-calendar__weekday-header",children:_e.map(function(n){var t=n.label,r=n.index,i=n.isWeekend;return e.jsx("div",{className:f.default("zjpcy-calendar__weekday-cell",{"zjpcy-calendar__weekday-cell--weekend":i}),children:t},r)})}),e.jsx("div",{className:"zjpcy-calendar__date-grid",children:Ce.map(function(n,t){var r=n.getMonth()===je,i=function(e){return jc(e,new Date)}(n),a=Ne(n),o=(null==d?void 0:d(n))||!1,l=0===n.getDay()||6===n.getDay(),c=!T&&l,u=we(n),p=u.length>0,h=H?hc(n):null,g=void 0!==(null==h?void 0:h.term)&&""!==h.term,m=e.jsxs("div",{className:f.default("zjpcy-calendar__date-cell",{"zjpcy-calendar__date-cell--other-month":!r,"zjpcy-calendar__date-cell--today":i,"zjpcy-calendar__date-cell--selected":a,"zjpcy-calendar__date-cell--disabled":o,"zjpcy-calendar__date-cell--hidden":c,"zjpcy-calendar__date-cell--has-info":p,"zjpcy-calendar__date-cell--show-lunar":H&&h}),onClick:function(){return ze(n)},onDoubleClick:function(){return U&&H&&h&&Le(n)},children:[e.jsxs("div",{className:"zjpcy-calendar__date-cell-header",children:[e.jsx("span",{className:f.default("zjpcy-calendar__date-number",{"zjpcy-calendar__date-number--today":i}),children:n.getDate()}),H&&h&&e.jsx("span",{className:f.default("zjpcy-calendar__lunar-text",{"zjpcy-calendar__lunar-text--term":g}),title:"".concat(h.ganZhiYear," ").concat(h.zodiac,"年 ").concat(h.monthName).concat(h.dayName),children:P?P(h):gc(h)})]}),s&&e.jsx("div",{className:"zjpcy-calendar__date-content",children:s(n,h||void 0)}),p&&He(0,u)]},t);return p&&u.length>2?e.jsx(St,{title:Pe(u),placement:"top",delay:200,children:m},t):m})})]}):e.jsx("div",{className:"zjpcy-calendar__month-grid",children:mc.map(function(n,t){var r=new Date(be,t,1),a=function(){if("multiple"===i)return(Array.isArray(he)?he:[]).some(function(e){return e.getMonth()===t&&e.getFullYear()===be});var e=he;return e.getMonth()===t&&e.getFullYear()===be}();return e.jsx("div",{className:f.default("zjpcy-calendar__month-cell",{"zjpcy-calendar__month-cell--selected":a}),onClick:function(){return Ee(t)},children:c?c(r):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"zjpcy-calendar__month-name",children:n}),e.jsx("span",{className:"zjpcy-calendar__month-subtitle",children:vc[t]})]})},t)})})}),function(){if(!X||!Q)return null;var n=Cc(Q),t=A[n]||[],r=D,i=e.jsxs(e.Fragment,{children:[null!==ae&&e.jsx(pe,{className:"zjpcy-calendar__panel-btn is-secondary",onClick:function(){oe(null),re({})},children:"取消编辑"}),e.jsx(pe,{className:"zjpcy-calendar__panel-btn is-secondary",onClick:ke,children:r.cancelText||"取消"}),e.jsx(pe,{className:"zjpcy-calendar__panel-btn is-primary",onClick:Ie,children:null!==ae?"保存修改":r.submitText||"保存"})]});return e.jsx(Nn,{visible:X,title:"".concat(Q.toLocaleDateString("zh-CN")," 信息编辑"),width:480,onCancel:ke,onOk:Ie,footer:i,children:e.jsxs("div",{className:"zjpcy-calendar__panel-body",children:[t.length>0&&e.jsxs("div",{className:"zjpcy-calendar__panel-list",children:[e.jsx("h4",{className:"zjpcy-calendar__panel-section-title",children:"已有信息"}),t.map(function(n,t){return e.jsxs("div",{className:f.default("zjpcy-calendar__panel-list-item",{"is-editing":ae===t}),children:[e.jsxs("div",{className:"zjpcy-calendar__panel-list-content",children:[e.jsx("span",{className:"zjpcy-calendar__panel-list-dot",style:{backgroundColor:n.color||"#1890ff"}}),e.jsxs("div",{className:"zjpcy-calendar__panel-list-text",children:[e.jsx("div",{className:"zjpcy-calendar__panel-list-title",children:n.title}),n.content&&e.jsx("div",{className:"zjpcy-calendar__panel-list-desc",children:n.content})]})]}),e.jsxs("div",{className:"zjpcy-calendar__panel-list-actions",children:[e.jsx(pe,{className:"zjpcy-calendar__panel-list-btn",onClick:function(){return De(t,n)},children:"编辑"}),e.jsx(pe,{className:"zjpcy-calendar__panel-list-btn is-danger",onClick:function(){return Re(t)},children:"删除"})]})]},t)})]}),e.jsxs("div",{className:"zjpcy-calendar__panel-form",children:[e.jsx("h4",{className:"zjpcy-calendar__panel-section-title",children:null!==ae?"编辑信息":"添加新信息"}),r.fields.map(function(n){return e.jsxs("div",{className:"zjpcy-calendar__panel-field",children:[e.jsxs("label",{className:"zjpcy-calendar__panel-label",children:[n.label,n.required&&e.jsx("span",{className:"zjpcy-calendar__panel-required",children:"*"})]}),"textarea"===n.type?e.jsx(en,{className:"zjpcy-calendar__panel-textarea",value:te[n.name]||"",onChange:function(e){return Me(n.name,e.target.value)},placeholder:n.placeholder,rows:3}):e.jsx(rn,{className:"zjpcy-calendar__panel-input",value:te[n.name]||"",onChange:function(e){return Me(n.name,e.target.value)},placeholder:n.placeholder})]},n.name)}),e.jsxs("div",{className:"zjpcy-calendar__panel-color",children:[e.jsx("label",{className:"zjpcy-calendar__panel-label",children:"颜色标记"}),e.jsx("div",{className:"zjpcy-calendar__panel-color-picker",children:["#1890ff","#52c41a","#faad14","#f5222d","#722ed1","#13c2c2"].map(function(n){return e.jsx("button",{className:f.default("zjpcy-calendar__panel-color-option",{"is-active":te.color===n||!te.color&&"#1890ff"===n}),style:{backgroundColor:n},onClick:function(){return Me("color",n)}},n)})})]})]})]})})}(),function(){if(!se||!ue)return null;var n=hc(ue),t=ue.toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric",weekday:"long"});return e.jsx("div",{className:"zjpcy-calendar__lunar-overlay",onClick:Ae,children:e.jsxs("div",{className:"zjpcy-calendar__lunar-panel",onClick:function(e){return e.stopPropagation()},children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-header",children:[e.jsxs("h3",{className:"zjpcy-calendar__lunar-title",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-date",children:t}),e.jsxs("span",{className:"zjpcy-calendar__lunar-tag",children:[n.ganZhiYear," ",n.zodiac,"年"]})]}),e.jsx(pe,{className:"zjpcy-calendar__lunar-close",onClick:Ae,children:e.jsx(B,{type:"close",size:16})})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-body",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"农历信息"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-grid",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"农历日期"}),e.jsxs("span",{className:"zjpcy-calendar__lunar-value",children:[n.yearName," ",n.monthName,n.dayName]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"星期"}),e.jsxs("span",{className:"zjpcy-calendar__lunar-value",children:["星期",n.week]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"儒略日"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.julianDay})]}),n.term&&e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"节气"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value zjpcy-calendar__lunar-value--highlight",children:n.term})]}),n.festivals.length>0&&e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"节日"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value zjpcy-calendar__lunar-value--highlight",children:n.festivals.join("、")})]})]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"八字信息"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-bazi",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-bazi-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-label",children:"年柱"}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-value",children:n.baZiYear}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazy-na",children:n.yearNaYin})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-bazi-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-label",children:"月柱"}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-value",children:n.baZiMonth}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazy-na",children:n.monthNaYin})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-bazi-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-label",children:"日柱"}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-value",children:n.baZiDay}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazy-na",children:n.dayNaYin})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-bazi-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-label",children:"时柱"}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-value",children:n.baZiHour||"待定"}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazy-na",children:"-"})]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",style:{marginTop:12},children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"完整八字"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.baZi||"待定"})]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"二十八宿"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-grid",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"星宿"}),e.jsxs("span",{className:"zjpcy-calendar__lunar-value",children:[n.xiu," ",n.xiuAnimal]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"星宿吉凶"}),e.jsx("span",{className:f.default("zjpcy-calendar__lunar-value",{"zjpcy-calendar__lunar-value--good":"吉"===n.xiuLuck,"zjpcy-calendar__lunar-value--bad":"凶"===n.xiuLuck}),children:n.xiuLuck})]})]}),n.xiuSong&&e.jsx("div",{className:"zjpcy-calendar__lunar-song",children:n.xiuSong})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"黄道日"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-grid",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"十二值星"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.zhiXing})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"十二神"}),e.jsxs("span",{className:f.default("zjpcy-calendar__lunar-value",{"zjpcy-calendar__lunar-value--good":"吉"===n.shiErShenLuck,"zjpcy-calendar__lunar-value--bad":"凶"===n.shiErShenLuck}),children:[n.shiErShen,"(",n.shiErShenLuck,")"]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"黄道吉日"}),e.jsx("span",{className:f.default("zjpcy-calendar__lunar-value",{"zjpcy-calendar__lunar-value--good":n.isHuangDao,"zjpcy-calendar__lunar-value--bad":!n.isHuangDao}),children:n.isHuangDao?"是":"否"})]})]}),n.zhiXingDesc&&e.jsx("div",{className:"zjpcy-calendar__lunar-desc",children:n.zhiXingDesc})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"彭祖百忌"}),e.jsx("div",{className:"zjpcy-calendar__lunar-text-content",children:e.jsx("p",{children:n.pengZuDay})})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section zjpcy-calendar__lunar-section--yiji",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-yi",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"宜"}),e.jsx("div",{className:"zjpcy-calendar__lunar-yiji-content",children:n.yi.length>0?n.yi.map(function(n,t){return e.jsx("span",{className:"zjpcy-calendar__lunar-yiji-item",children:n},t)}):e.jsx("span",{className:"zjpcy-calendar__lunar-yiji-empty",children:"诸事不宜"})})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-ji",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"忌"}),e.jsx("div",{className:"zjpcy-calendar__lunar-yiji-content",children:n.ji.length>0?n.ji.map(function(n,t){return e.jsx("span",{className:"zjpcy-calendar__lunar-yiji-item",children:n},t)}):e.jsx("span",{className:"zjpcy-calendar__lunar-yiji-empty",children:"无"})})]})]}),(n.jiShen.length>0||n.xiongSha.length>0)&&e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"神煞"}),n.jiShen.length>0&&e.jsxs("div",{className:"zjpcy-calendar__lunar-shensha",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-shensha-label",children:"吉神:"}),e.jsx("span",{className:"zjpcy-calendar__lunar-shensha-value zjpcy-calendar__lunar-shensha-value--good",children:n.jiShen.join("、")})]}),n.xiongSha.length>0&&e.jsxs("div",{className:"zjpcy-calendar__lunar-shensha",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-shensha-label",children:"凶煞:"}),e.jsx("span",{className:"zjpcy-calendar__lunar-shensha-value zjpcy-calendar__lunar-shensha-value--bad",children:n.xiongSha.join("、")})]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"方位"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-grid zjpcy-calendar__lunar-grid--4",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"喜神"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.xiGod.name})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"福神"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.fuGod.name})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"财神"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.caiGod.name})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"阳贵"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.yangGuiGod.name})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"阴贵"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.yinGuiGod.name})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"胎神"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.taiShen})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"冲煞"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.chongSha})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"煞方"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.sha})]})]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"五行"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-grid",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"年五行"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.yearWuXing})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"月五行"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.monthWuXing})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"日五行"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.dayWuXing})]})]})]})]}),e.jsx("div",{className:"zjpcy-calendar__lunar-footer",children:e.jsx(pe,{className:"zjpcy-calendar__lunar-btn",onClick:Ae,children:"关闭"})})]})})}()]})};Nc.displayName="Calendar";var zc=Nc;exports.Anchor=Bt,exports.Breadcrumb=Ut,exports.Button=pe,exports.Calendar=zc,exports.Carousel=me,exports.Cascader=xe,exports.Checkbox=kt,exports.Col=No,exports.ColorPicker=Ye,exports.CopyToClipboard=We,exports.DatePicker=Bs,exports.Divider=Ze,exports.Drawer=Oo,exports.Dropdown=oi,exports.Empty=ve,exports.Flex=Xe,exports.Form=yo,exports.Grid=To,exports.I18nProvider=ai,exports.Icon=B,exports.Input=rn,exports.Label=Na,exports.Layout=ro,exports.Marquee=vn,exports.Masonry=Rt,exports.Menu=Ii,exports.Message=xn,exports.MessageProvider=function(t){var r=t.children,i=n.useState([]),a=i[0],o=i[1],l=n.useState(0),s=l[0],c=l[1],d=n.useCallback(function(e,n,t){void 0===t&&(t=3e3);var r=s;c(function(e){return e+1}),o(function(i){return b(b([],i,!0),[{id:r,type:e,content:n,duration:t}],!1)});var i=setTimeout(function(){a(r)},t),a=function(e){o(function(n){return n.filter(function(n){return n.id!==e})})};return{close:function(){clearTimeout(i),a(r)}}},[s]),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 o([])}};return e.jsxs(wn.Provider,{value:{message:u},children:[r,a.map(function(n){return e.jsx(xn,{type:n.type,content:n.content,duration:n.duration,onClose:function(){return o(function(e){return e.filter(function(e){return e.id!==n.id})})}},n.id)})]})},exports.Modal=Nn,exports.Notice=Ln,exports.Notification=Mn,exports.Pagination=Et,exports.Popconfirm=Ao,exports.Progress=Mo,exports.Radio=rt,exports.Rate=Di,exports.Row=Eo,exports.Select=Nt,exports.Slider=Ri,exports.Space=Ht,exports.Spin=ge,exports.Splitter=fc,exports.Steps=Bi,exports.Switch=Zi,exports.Table=At,exports.Tabs=qi,exports.Tag=Lo,exports.Textarea=en,exports.TimePicker=Po,exports.Tooltip=St,exports.Top=It,exports.Transfer=Ca,exports.Tree=ic,exports.TreeSelect=Fe,exports.Typography=Dt,exports.Upload=lc,exports.i18n=Lr,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,a=r;if(r.language)i=r.language,r.translation&&"object"==typeof r.translation&&(a=r.translation);else if(r.locale)i=r.locale,r.translation&&"object"==typeof r.translation&&(a=r.translation);else if(1===Object.keys(r).length){var o=Object.keys(r)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(o)&&(i=o,a=r[o])}else if(r.translation&&"object"==typeof r.translation&&1===Object.keys(r.translation).length){o=Object.keys(r.translation)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(o)&&(i=o,a=r.translation[o])}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]={}),a.translation&&"object"==typeof a.translation?n[i].translation=m(m({},n[i].translation),a.translation):n[i].translation=m(m({},n[i].translation),a)}}),n},exports.message=Cn,exports.useCopy=Ke,exports.useI18n=function(){return ni()},exports.useMessage=function(){var e=n.useContext(wn);return(null==e?void 0:e.message)?e.message:Cn};
|
|
1
|
+
"use client";"use strict";var e=require("react/jsx-runtime"),n=require("react"),t=require("classnames"),r=require("styled-components"),i=require("react-color"),a=require("react-dom/client"),o=require("react-dom"),l=require("@dnd-kit/core"),s=require("@dnd-kit/sortable"),c=require("@dnd-kit/utilities"),d=require("lunar-typescript");function u(e){return e&&e.__esModule?e:{default:e}}var p=u(n),f=u(t),h=u(r),g=u(o),m=function(){return m=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},m.apply(this,arguments)};function v(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 y(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,l)}s((r=r.apply(e,n||[])).next())})}function x(e,n){var t,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(t=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=n.call(e,a)}catch(e){l=[6,e],r=0}finally{t=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function b(e,n,t){if(t||2===arguments.length)for(var r,i=0,a=n.length;i<a;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 j(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}"function"==typeof SuppressedError&&SuppressedError;var _={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"},C={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"},w={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"},N={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"},z={path:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",viewBox:"0 0 24 24"},E={path:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",viewBox:"0 0 24 24"},S={path:"M19 13H5v-2h14v2z",viewBox:"0 0 24 24"},T={path:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",viewBox:"0 0 24 24"},O={path:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",viewBox:"0 0 24 24"},k={path:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",viewBox:"0 0 24 24"},L={path:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z",viewBox:"0 0 24 24"},A={path:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",viewBox:"0 0 24 24"},M={path:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",viewBox:"0 0 24 24"},I={path:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6 1.41-1.41zM11 6H9v12h2V6z",viewBox:"0 0 24 24"},D={path:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6-1.41 1.41zM13 6h2v12h-2V6z",viewBox:"0 0 24 24"},R={search:_,loading:C,user:w,close:N,check:z,plus:E,minus:S,arrowLeft:T,arrowRight:O,arrowUp:k,arrowDown:L,left:A,right:M,"double-left":I,"double-right":D,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"}},H={search:_,loading:C,user:w,close:N,check:z,plus:E,minus:S,arrowLeft:T,arrowRight:O,arrowUp:k,arrowDown:L,left:A,right:M,"double-left":I,"double-right":D},P=function(e){return H[e]?H[e]:R[e]},V={small:12,medium:16,large:24},B=function(t){var r=t.type,i=t.path,a=t.viewBox,o=void 0===a?"0 0 24 24":a,l=t.size,s=void 0===l?"medium":l,c=t.color,d=void 0===c?"#339af0":c,u=t.hoverColor,p=t.spin,f=void 0!==p&&p,h=t.rotate,g=t.align,v=void 0===g?"center":g,y=t.className,x=void 0===y?"":y,b=t.style,j=t.onClick,_=n.useMemo(function(){return"number"==typeof s?s:V[s]||16},[s]),C=n.useMemo(function(){if(i)return i;if(r){var e=P(r);return(null==e?void 0:e.path)||""}return""},[r,i]),w=n.useMemo(function(){if("0 0 24 24"!==o)return o;if(r){var e=P(r);return(null==e?void 0:e.viewBox)||"0 0 24 24"}return"0 0 24 24"},[r,o]);if(!C)return null;var N=m({width:_,height:_,fill:d,transform:h?"rotate(".concat(h,"deg)"):void 0},b);return e.jsx("div",{className:"icon-container icon-align-".concat(v," ").concat(x),children:e.jsx("svg",{viewBox:w,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:j,children:e.jsx("path",{d:C})})})},U=p.default.forwardRef(function(n,t){var r=n.children,i=n.variant,a=void 0===i?"secondary":i,o=n.size,l=void 0===o?"medium":o,s=n.disabled,c=void 0!==s&&s,d=n.loading,u=void 0!==d&&d,p=n.onClick,h=n.className,g=n.style,y=n.icon,x=n.type,b=void 0===x?"button":x,j=n.href,_=n.title,C=v(n,["children","variant","size","disabled","loading","onClick","className","style","icon","type","href","title"]),w=f.default("zjpcy-btn","zjpcy-btn--".concat(a),"zjpcy-btn--".concat(l),{"zjpcy-btn--disabled":c||u},h),N=function(e){c||u?null==e||e.preventDefault():p&&p()},z=function(){return u?e.jsx(B,{type:"loading",style:{marginRight:r?"2px":0}}):y?"string"==typeof y?e.jsx(B,{type:y,style:{marginRight:r?"2px":0}}):e.jsx("span",{style:{marginRight:r?"8px":0,display:"inline-flex",alignItems:"center"},children:y}):null};return"link"===a&&j?e.jsxs("a",m({ref:t,href:c?void 0:j,className:w,onClick:N,style:g,title:_},C,{children:[z(),r]})):e.jsxs("button",m({ref:t,type:b,className:w,onClick:N,disabled:c,style:g,title:_},C,{children:[z(),r]}))});U.displayName="Button";var F,Y,G,$,W,K,Z,X,q,J,Q,ee,ne,te,re,ie,ae,oe,le,se,ce,de,ue,pe=U,fe=function(n){var t=n.size,r=n.sizeType;return e.jsxs("svg",{viewBox:"0 0 24 24",className:"zjpcy-spin-icon zjpcy-spin-icon-".concat(r),style:{width:t,height:t},children:[e.jsx("circle",{className:"zjpcy-spin-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"zjpcy-spin-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})},he={small:16,default:24,large:32},ge=function(t){var r=t.spinning,i=void 0===r||r,a=t.indicator,o=t.tip,l=t.size,s=void 0===l?"default":l,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),y=v[0],x=v[1],b=n.useState(0===d),j=b[0],_=b[1];n.useEffect(function(){if(i){if(x(!0),d>0){var e=setTimeout(function(){_(!0)},d);return function(){return clearTimeout(e)}}_(!0)}else x(!1),_(!1)},[i,d]);var C=he[s],w=n.useMemo(function(){return a||e.jsx(fe,{size:C,sizeType:s})},[a,C,s]),N=function(){return e.jsxs("div",{className:"zjpcy-spin-content ".concat(o?"zjpcy-spin-content-tip":""),children:[w,o&&e.jsx("div",{className:"zjpcy-spin-tip zjpcy-spin-tip-".concat(s),children:o})]})};return m?y&&j?e.jsx("div",{className:"zjpcy-spin-fullscreen ".concat(p),style:f,children:N()}):null:h?e.jsxs("div",{className:"zjpcy-spin-nested-wrapper ".concat(p),style:f,children:[h,y&&j&&e.jsx("div",{className:"zjpcy-spin-mask",children:N()})]}):y&&j?e.jsx("div",{className:"zjpcy-spin ".concat(p),style:f,children:N()}):null},me=function(t){var r=t.items,i=t.currentIndex,a=t.defaultCurrentIndex,o=void 0===a?0:a,l=t.onChange,s=t.autoplay,c=void 0===s||s,d=t.interval,u=void 0===d?3e3:d,p=t.effect,h=void 0===p?"slide":p,g=t.direction,v=void 0===g?"horizontal":g,y=t.showIndicators,x=void 0===y||y,j=t.indicatorPosition,_=void 0===j?"bottom":j,C=t.showArrows,w=void 0===C||C,N=t.loop,z=void 0===N||N,E=t.pauseOnHover,S=void 0===E||E,T=t.className,O=t.style,k=t.contentClassName,L=t.contentStyle,A=t.onItemClick,M=t.duration,I=void 0===M?500:M,D=t.prevIcon,R=t.nextIcon,H=t.upIcon,P=t.downIcon,V=t.indicatorProgress,U=void 0!==V&&V,F=void 0!==i,Y=n.useState(o),G=Y[0],$=Y[1],W=F?i:G,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],ae=re[1],oe=n.useState([]),le=oe[0],se=oe[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(z){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},[z,fe]),ye=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),ae(we()),void(ce.current=setTimeout(function(){Q(!0),F||$(t),null==l||l(t),setTimeout(function(){Q(!1),te(!1),ae([])},I)},1500));Q(!0),F||$(t),null==l||l(t),setTimeout(function(){Q(!1)},I)}}},[W,F,J,l,ve,I,fe,h,ne]),xe=n.useCallback(function(){ye(W+1)},[W,ye]),be=n.useCallback(function(){ye(W-1)},[W,ye]);n.useEffect(function(){if(c&&!(fe<=1)&&(!S||!Z))return ue.current=setInterval(function(){xe()},u),function(){ue.current&&clearInterval(ue.current)}},[c,u,Z,S,xe,fe]);var je=n.useMemo(function(){return ge||me?0:100*-W},[W,ge,me]),_e=n.useCallback(function(e,n,t){if(!z)return e-n;var r=e-n,i=r>0?r-t:r+t;return Math.abs(r)<=Math.abs(i)?r:i},[z]),Ce=function(e){if(!me)return{};var n=e===W,t=_e(e,W,fe);switch(h){case"flip":return{transform:"rotateY(".concat(a=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,a=5*t;return{transform:"translateX(".concat(c=30*t,"%) translateZ(").concat(r,"px) scale(").concat(i,") rotateY(").concat(a,"deg)"),opacity:n?1:Math.abs(t)<=2?.6-.2*Math.abs(t):0,zIndex:n?10:5-Math.abs(t)};case"coverflow":var o=Math.abs(t);a=-45*t,r=n?0:-200,i=n?1:.8;return{transform:"translateX(".concat(c=50*t,"%) translateZ(").concat(r,"px) rotateY(").concat(a,"deg) scale(").concat(i,")"),opacity:o<=2?1-.3*o:0,zIndex:n?10:5-o};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 l=n?1:0,s=n?0:10;return{transform:"scale(".concat(i=n?1:2,")"),opacity:l,filter:"blur(".concat(s,"px)"),zIndex:n?10:1};case"book":l=n?1:-1===t?.3:0;return{transform:"rotateY(".concat(a=t<0?-90:t>0?90:0,"deg)"),opacity:l,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}}},we=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=f.default("zjpcy-carousel","zjpcy-carousel--".concat(h),"zjpcy-carousel--".concat(v),{"zjpcy-carousel--hover":Z,"zjpcy-carousel--raining":ne},T),ze=f.default("zjpcy-carousel__content",k),Ee=f.default("zjpcy-carousel__indicators","zjpcy-carousel__indicators--".concat(_));return 0===fe?null:e.jsxs("div",{ref:de,className:Ne,style:O,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?be():xe()):Math.abs(t)>50&&(t>0?be():xe()),pe.current=null}},onKeyDown:function(e){"ArrowLeft"===e.key||"ArrowUp"===e.key?be():"ArrowRight"!==e.key&&"ArrowDown"!==e.key||xe()},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,a={id:Date.now(),x:r,y:i};se(function(e){return b(b([],e,!0),[a],!1)}),te(!0),ae(we()),setTimeout(function(){xe(),te(!1),ae([])},1500),setTimeout(function(){se(function(e){return e.filter(function(e){return e.id!==a.id})})},1e3)}}},tabIndex:0,role:"region","aria-roledescription":"carousel",children:[e.jsx("div",{className:ze,style:m(m({},L),me||ge?{}:{transform:he?"translateY(".concat(je,"%)"):"translateX(".concat(je,"%)"),transitionDuration:"".concat(I,"ms")}),children:r.map(function(n,t){var r=t===W,i=t-W,a=f.default("zjpcy-carousel__item",{"zjpcy-carousel__item--active":r,"zjpcy-carousel__item--prev":-1===i,"zjpcy-carousel__item--next":1===i,"zjpcy-carousel__item--exit":"book"===h&&-1===i});return e.jsx("div",{className:a,style:m({},me?Ce(t):ge?{opacity:r?1:0,zIndex:r?1:0,transitionDuration:"".concat(I,"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:"zjpcy-carousel__item-inner",onClick:function(){return function(e,n){e.link&&window.open(e.link,"_blank"),null==A||A(e,n)}(n,t)},style:{cursor:n.link||A?"pointer":"default"},children:[e.jsx("img",{src:n.image,alt:"string"==typeof n.title?n.title:"",className:"zjpcy-carousel__image",draggable:!1}),(n.title||n.description)&&e.jsxs("div",{className:f.default("zjpcy-carousel__info","zjpcy-carousel__info--".concat(n.infoPosition||"bottom")),children:[n.title&&e.jsx("div",{className:"zjpcy-carousel__title",children:n.title}),n.description&&e.jsx("div",{className:"zjpcy-carousel__description",children:n.description})]})]})},n.key)})}),w&&fe>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:f.default("zjpcy-carousel__arrow","zjpcy-carousel__arrow--prev"),onClick:be,"aria-label":"Previous slide",type:"button",children:he?null!=H?H:e.jsx(B,{type:"arrow-up",size:20}):null!=D?D:e.jsx(B,{type:"chevron-left",size:20})}),e.jsx("button",{className:f.default("zjpcy-carousel__arrow","zjpcy-carousel__arrow--next"),onClick:xe,"aria-label":"Next slide",type:"button",children:he?null!=P?P:e.jsx(B,{type:"arrow-down",size:20}):null!=R?R:e.jsx(B,{type:"chevron-right",size:20})})]}),x&&fe>1&&e.jsx("div",{className:Ee,role:"tablist",children:r.map(function(n,t){var r=t===W,i=U&&c&&r;return e.jsx("button",{className:f.default("zjpcy-carousel__indicator",{"zjpcy-carousel__indicator--active":r,"zjpcy-carousel__indicator--progress":i}),onClick:function(){return ye(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:"zjpcy-carousel__indicator-progress-bar"},"progress-".concat(W))},"".concat(n.key,"-").concat(i?"progress":"static"))})}),e.jsxs("div",{className:"zjpcy-carousel__pagination",children:[e.jsx("span",{className:"zjpcy-carousel__pagination-current",children:W+1}),e.jsx("span",{className:"zjpcy-carousel__pagination-separator",children:"/"}),e.jsx("span",{className:"zjpcy-carousel__pagination-total",children:fe})]}),"rain"===h&&e.jsx("div",{className:"zjpcy-carousel__rain-overlay"}),"rain"===h&&ie.map(function(n){return e.jsx("span",{className:f.default("zjpcy-carousel__rain-drop",{"zjpcy-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&&le.map(function(n){return e.jsx("span",{className:"zjpcy-carousel__ripple",style:{left:n.x-20,top:n.y-20,width:40,height:40}},n.id)})]})},ve=function(n){var t=n.icon,r=n.image,i=n.description,a=void 0===i?"暂无数据":i,o=n.children,l=n.size,s=void 0===l?"middle":l,c=n.style,d=n.className;return e.jsxs("div",{className:"zjpcy-empty zjpcy-empty--".concat(s," ").concat(d||""),style:c,children:[e.jsxs("div",{className:"zjpcy-empty__icon-wrapper",children:[t&&e.jsx("div",{className:"zjpcy-empty__icon",children:t}),r&&e.jsx("img",{src:r,alt:"empty",className:"zjpcy-empty__image"}),!t&&!r&&e.jsx(B,{type:"file-text",size:"large"===s?64:"small"===s?32:48,color:"#d9d9d9"})]}),e.jsx("div",{className:"zjpcy-empty__description",children:a}),o&&e.jsx("div",{className:"zjpcy-empty__actions",children:o})]})},ye=function(t){var r,i=t.value,a=t.defaultValue,o=t.onChange,l=t.options,s=void 0===l?[]:l,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,g=t.style,v=t.className,y=void 0===v?"":v,x=t.allowClear,j=void 0===x||x,_=t.expandTrigger,C=void 0===_?"click":_,w=t.changeOnSelect,N=void 0!==w&&w,z=t.fieldNames,E=void 0===z?{}:z,S=t.width,T=t.dropdownWidth,O=t.dropdownHeight,k=t.dropdownStyle,L=void 0===k?{}:k,A=t.dropdownClassName,M=void 0===A?"":A,I=t.placement,D=void 0===I?"bottomLeft":I,R=t.checkbox,H=void 0!==R&&R,P=t.autoWidth,V=void 0!==P&&P,U=n.useState(!1),F=U[0],Y=U[1],G=n.useState([]),$=G[0],W=G[1],K=n.useState([]),Z=K[0],X=K[1],q=n.useRef(null),J=n.useRef(null),Q=E.label,ee=void 0===Q?"label":Q,ne=E.value,te=void 0===ne?"value":ne,re=E.children,ie=void 0===re?"children":re,ae=n.useCallback(function(e){return e[te]||e.value},[te]),oe=n.useCallback(function(e){return e[ee]||e.label},[ee]),le=n.useCallback(function(e){return e[ie]||e.children},[ie]),se=n.useCallback(function(e){for(var n=[],t=s,r=function(e){var r=t.find(function(n){return ae(n)===e});if(!r)return{value:n};n.push(r),t=le(r)||[]},i=0,a=e;i<a.length;i++){var o=r(a[i]);if("object"==typeof o)return o.value}return n},[s,ae,le]),ce=n.useCallback(function(e){for(var n=[],t=s,r=function(e){var r=t.find(function(n){return ae(n)===e});if(!r)return{value:n};n.push(r),t=le(r)||[]},i=0,a=e;i<a.length;i++){var o=r(a[i]);if("object"==typeof o)return o.value}return n},[s,ae,le]),de=n.useCallback(function(){var e=void 0!==i?i:a;return!e||Array.isArray(e)&&0===e.length?[]:H?Array.isArray(e)&&Array.isArray(e[0])?e:[e]:Array.isArray(e)&&!Array.isArray(e[0])?[e]:[]},[i,a,H]),ue=n.useState(de()),pe=ue[0],fe=ue[1];n.useEffect(function(){var e=void 0!==i?i:a;if(!e)return fe([]),void W([]);if(H){var n=void 0;n=Array.isArray(e)?0===e.length?[]:Array.isArray(e[0])?e:[e]:[],fe(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?fe([n]):fe([])}},[i,a,H,ce]);var he=n.useCallback(function(e){var n=[],t=function(e,r){for(var i=0,a=e;i<a.length;i++){var o=a[i];if(ae(o)===ae(r))return n.push(oe(o)),!0;var l=le(o);if(l&&l.length>0&&t(l,r))return n.unshift(oe(o)),!0}return!1};return t(s,e),n},[s,ae,oe,le]),ge=n.useCallback(function(){if(H){if(!$||0===$.length)return d;var e=$.filter(function(e){var n=le(e);return!n||0===n.length}).map(function(e){return he(e).join("/")});return e.length>3?e.slice(0,3).join(", ")+" +".concat(e.length-3):e.join(", ")}return 0!==pe.length&&pe[0]&&0!==pe[0].length?se(pe[0]).map(function(e){return oe(e)}).join(" / "):d},[pe,$,H,se,oe,d,he,le]),me=n.useCallback(function(e){var n=[],t=function(e,r,i){for(var a=0,o=e;a<o.length;a++){var l=o[a],s=b(b([],i,!0),[ae(l)],!1);if(ae(l)===ae(r))return n.push.apply(n,s),!0;var c=le(l);if(c&&c.length>0&&t(c,r,s))return!0}return!1};return t(s,e,[]),n},[s,ae,le]),ye=n.useCallback(function(e,n){var t=me(n),r=me(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},[me]),xe=n.useCallback(function(e){var n=[],t=function(e,r,i){for(var a=0,o=e;a<o.length;a++){var l=o[a];if(ae(l)===ae(r))return n.unshift(l),!0;var s=le(l);if(s&&s.length>0&&t(s,r,b(b([],i,!0),[l],!1)))return n.unshift(l),!0}return!1};return t(s,e,[]),n},[s,ae,le]),be=n.useCallback(function(e,n,t){if(e.stopPropagation(),H){var r=b([],$,!0),a=r.findIndex(function(e){return ae(e)===ae(n)});if(a>-1){r.splice(a,1);var l=r.filter(function(e){return!ye(e,n)});r.splice.apply(r,b([0,r.length],l,!1))}else{xe(n).forEach(function(e){-1===r.findIndex(function(n){return ae(n)===ae(e)})&&r.push(e)})}W(r);var s=r.map(function(e){return me(e)});null==o||o(s,r),void 0===i&&fe(s);var c=le(n);if(c&&c.length>0){var d=b(b([],Z.slice(0,t),!0),[ae(n)],!1);X(d)}else{d=Z.slice(0,t+1);X(d)}}},[$,H,ae,le,me,xe,ye,o,i,Z]),je=n.useCallback(function(e,n){if(H){var t=b([],$,!0),r=t.findIndex(function(n){return ae(n)===ae(e)});if(r>-1){t.splice(r,1);var a=t.filter(function(n){return!ye(n,e)});t.splice.apply(t,b([0,t.length],a,!1))}else{xe(e).forEach(function(e){-1===t.findIndex(function(n){return ae(n)===ae(e)})&&t.push(e)})}W(t);var l=t.map(function(e){return me(e)});if(null==o||o(l,t),void 0===i&&fe(l),(c=le(e))&&c.length>0){var s=b(b([],Z.slice(0,n),!0),[ae(e)],!1);X(s)}else{s=Z.slice(0,n+1);X(s)}}else{var c;s=b(b([],Z.slice(0,n),!0),[ae(e)],!1);if(X(s),(c=le(e))&&c.length>0){if(N){var d=se(s);null==o||o(s,d),void 0===i&&fe([s])}}else{var u=se(s);null==o||o(s,u),void 0===i&&fe([s]),Y(!1),X([])}}},[Z,$,H,ae,oe,le,N,se,me,xe,ye,o,i]),_e=n.useCallback(function(e,n){if("hover"===C){var t=b(b([],Z.slice(0,n),!0),[ae(e)],!1);X(t)}},[Z,C,ae]),Ce=n.useCallback(function(e,n,t){if(e.stopPropagation(),H){var r=le(n);if(r&&r.length>0){var i=b(b([],Z.slice(0,t),!0),[ae(n)],!1);X(i)}}else je(n,t)},[H,Z,ae,le,je]),we=n.useCallback(function(e){e.stopPropagation(),H?(null==o||o([],[]),W([]),void 0===i&&fe([])):(null==o||o([],[]),void 0===i&&fe([])),X([])},[o,i,H]),Ne=n.useCallback(function(e,n){if(e.stopPropagation(),H){var t=b([],$,!0),r=ae(n),a=t.findIndex(function(e){return ae(e)===r});if(a>-1){t.splice(a,1);var l=t.filter(function(e){return!ye(e,n)});t.splice.apply(t,b([0,t.length],l,!1));for(var s=xe(n),c=function(e){var n=s[e],r=ae(n);if(!t.some(function(e){return ae(e)!==r&&ye(e,n)})){var i=t.findIndex(function(e){return ae(e)===r});i>-1&&t.splice(i,1)}},d=s.length-2;d>=0;d--)c(d);W(t);var u=t.map(function(e){return me(e)});null==o||o(u,t),void 0===i&&fe(u)}}},[$,H,ae,me,xe,ye,o,i]),ze=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 Ee=n.useCallback(function(e){if(0===e)return s;for(var n=Z.slice(0,e),t=s,r=function(e){var n=t.find(function(n){return ae(n)===e});if(!n)return{value:[]};t=le(n)||[]},i=0,a=n;i<a.length;i++){var o=r(a[i]);if("object"==typeof o)return o.value}return t},[s,Z,ae,le]);n.useEffect(function(){H||(F&&pe.length>0&&pe[0]?X(pe[0]):F||X([]))},[F,pe,H]);var Se=n.useCallback(function(e){return!!H&&$.some(function(n){return ae(n)===ae(e)})},[$,H,ae]),Te=n.useCallback(function(e,n){return!H&&(!(n>=pe.length||!pe[0])&&pe[0][n]===ae(e))},[pe,H,ae]),Oe=n.useCallback(function(e,n){return!(n>=Z.length)&&Z[n]===ae(e)},[Z,ae]),ke=n.useCallback(function(){if(0===Z.length)return 1;for(var e=Z.length,n=s,t=function(e){var t=n.find(function(n){return ae(n)===e});if(!t)return"break";n=le(t)||[]},r=0,i=Z;r<i.length;r++){if("break"===t(i[r]))break}return n&&n.length>0&&e++,e},[Z,s,ae,le]),Le=n.useCallback(function(){var e=m({},g);return S&&(e.width="number"==typeof S?"".concat(S,"px"):S),V||S?V&&!S?e.minWidth="180px":!V&&S&&(e.maxWidth="number"==typeof S?"".concat(S,"px"):S):(e.minWidth="180px",e.maxWidth="100%"),e},[S,g,V]),Ae=n.useCallback(function(){var e=m({},L);switch(D){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 T&&(e.width="number"==typeof T?"".concat(T,"px"):T),O&&(e.maxHeight="number"==typeof O?"".concat(O,"px"):O),e},[T,O,L,D]),Me=H?$.filter(function(e){var n=le(e);return!n||0===n.length}).length>0:pe.length>0&&(null===(r=pe[0])||void 0===r?void 0:r.length)>0;return e.jsxs("div",{ref:q,className:"cascader cascader-".concat(h," ").concat(y," ").concat(p?"cascader-disabled":""," ").concat(F?"cascader-open":""," ").concat(Me?"cascader-has-value":""),style:Le(),children:[e.jsxs("div",{className:"cascader-trigger",onClick:ze,children:[e.jsx("span",{className:"cascader-selection-placeholder ".concat(Me?"cascader-selection-hidden":""),children:d}),H?e.jsx("div",{className:"cascader-selection-value ".concat(Me?"":"cascader-selection-hidden"),children:$.filter(function(e){var n=le(e);return!n||0===n.length}).map(function(n){var t=he(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(B,{type:"close",size:10})})]},ae(n))})}):e.jsx("span",{className:"cascader-selection-value ".concat(Me?"":"cascader-selection-hidden"),children:ge()}),e.jsx("span",{className:"cascader-arrow",children:e.jsx(B,{type:"arrowDown",size:12})}),j&&Me&&!p&&e.jsx("span",{className:"cascader-clear",onClick:we,children:e.jsx(B,{type:"close",size:12})})]}),F&&e.jsx("div",{className:"cascader-dropdown cascader-dropdown-".concat(D," ").concat(M),ref:J,style:Ae(),children:e.jsx("div",{className:"cascader-menus",style:{width:T?void 0:"".concat(180*ke(),"px")},children:Array.from({length:ke()}).map(function(n,t){return function(n){var t=Ee(n);return t&&0!==t.length?e.jsx("ul",{className:"cascader-menu cascader-menu-".concat(n," ").concat(H?"cascader-menu-checkbox":""),children:t.map(function(t,r){var i=H?Se(t):Te(t,n),a=Oe(t,n),o=le(t)&&le(t).length>0,l=t.disabled;return e.jsxs("li",{className:"cascader-menu-item ".concat(i?"cascader-menu-item-selected":""," ").concat(a?"cascader-menu-item-active":""," ").concat(i&&a?"cascader-menu-item-selected-active":""," ").concat(l?"cascader-menu-item-disabled":""),onClick:function(){return!l&&(H?void 0:je(t,n))},onMouseEnter:function(){return!l&&_e(t,n)},children:[H&&e.jsx("span",{className:"cascader-menu-item-checkbox",onClick:function(e){return!l&&be(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!l&&Ce(e,t,n)},children:oe(t)}),o&&e.jsx("span",{className:"cascader-menu-item-expand-icon",children:e.jsx(B,{type:"arrowRight",size:12,color:"#bfbfbf"})})]},"".concat(ae(t),"-").concat(r))})}):e.jsx("div",{className:"cascader-menu cascader-menu-empty",children:e.jsx(ve,{size:"small",description:"暂无数据"})})}(t)})})})]})},xe=function(e,n){return"var(".concat(e,", ").concat(n,")")},be=h.default.div(F||(F=j(["\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%"},xe("--zjpcy-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")}),je=h.default.div(Y||(Y=j(["\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 6px 28px 6px 12px;\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: 6px 28px 6px 12px;\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"])),xe("--zjpcy-bg-color-white","#fff"),xe("--zjpcy-border-color-extra-light","#d9d9d9"),xe("--zjpcy-border-radius-sm","4px"),xe("--zjpcy-transition-duration","0.2s"),xe("--zjpcy-transition-timing-function","ease-in-out"),xe("--zjpcy-primary-hover-color","#40a9ff"),function(e){return e.$open&&"\n border-color: ".concat(xe("--zjpcy-primary-color","#1890ff"),";\n box-shadow: ").concat(xe("--zjpcy-input-box-shadow-focus","0 0 0 2px rgba(51, 154, 240, 0.2)"),";\n ")},function(e){return e.$disabled&&"\n background-color: ".concat(xe("--zjpcy-input-disabled-bg","#f5f5f5"),";\n border-color: ").concat(xe("--zjpcy-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")}),_e=h.default.div(G||(G=j(["\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(xe("--zjpcy-input-placeholder-color","#bfbfbf"),";\n ")}),Ce=h.default.span($||($=j(["\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"]))),we=h.default.span(W||(W=j(["\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"])),xe("--zjpcy-bg-color-light","#f5f5f5"),xe("--zjpcy-border-color-light","#f0f0f0"),xe("--zjpcy-border-radius-sm","4px"),xe("--zjpcy-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")}),Ne=h.default.span(K||(K=j(["\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"]))),ze=h.default.span(Z||(Z=j(["\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"])),xe("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)"),xe("--zjpcy-transition-duration","0.2s"),xe("--zjpcy-text-color","rgba(0, 0, 0, 0.85)")),Ee=h.default.div(X||(X=j(["\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"]))),Se=h.default.input(q||(q=j(["\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"])),xe("--zjpcy-text-color","rgba(0, 0, 0, 0.85)"),xe("--zjpcy-input-placeholder-color","#bfbfbf")),Te=h.default.span(J||(J=j(["\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"])),xe("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)"),xe("--zjpcy-transition-duration","0.2s"),xe("--zjpcy-text-color","rgba(0, 0, 0, 0.85)"),function(e){var n=e.$size;return"large"===n?"right: 32px;":"small"===n?"right: 24px;":""}),Oe=h.default.span(Q||(Q=j(["\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"])),xe("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)"),xe("--zjpcy-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;":""}),ke=h.default.div(ee||(ee=j(["\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"])),xe("--zjpcy-bg-color-white","#fff"),xe("--zjpcy-border-radius-sm","4px"),xe("--zjpcy-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")}),Le=h.default.div(ne||(ne=j(["\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"])),xe("--zjpcy-border-color-light","#f0f0f0")),Ae=h.default.input(te||(te=j(["\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"])),xe("--zjpcy-bg-color-light","#f5f5f5"),xe("--zjpcy-border-radius-sm","4px"),xe("--zjpcy-text-color","rgba(0, 0, 0, 0.85)"),xe("--zjpcy-input-placeholder-color","#bfbfbf")),Me=h.default.div(re||(re=j(["\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"]))),Ie=h.default.div(ie||(ie=j(["\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"]))),De=h.default.div(ae||(ae=j(["\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"]))),Re=h.default.div(oe||(oe=j(["\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")},xe("--zjpcy-transition-duration","0.2s"),xe("--zjpcy-bg-color-light","#f5f5f5"),function(e){return e.$selected&&"\n background-color: ".concat(xe("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)"),";\n color: ").concat(xe("--zjpcy-primary-color","#1890ff"),";\n\n &:hover {\n background-color: ").concat(xe("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)"),";\n }\n ")},function(e){return e.$disabled&&"\n color: ".concat(xe("--zjpcy-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")}),He=h.default.span(le||(le=j(["\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"])),xe("--zjpcy-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 "}),Pe=h.default.span(se||(se=j(["\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"]))),Ve=h.default.span(ce||(ce=j(["\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"])),xe("--zjpcy-border-color-extra-light","#d9d9d9"),xe("--zjpcy-bg-color-white","#fff"),xe("--zjpcy-transition-duration","0.2s"),xe("--zjpcy-primary-color","#1890ff"),function(e){return e.$checked&&"\n background-color: ".concat(xe("--zjpcy-primary-color","#1890ff"),";\n border-color: ").concat(xe("--zjpcy-primary-color","#1890ff"),";\n ")}),Be=h.default.span(de||(de=j(["\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"]))),Ue=h.default.div(ue||(ue=j(["\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"]))),Fe=function(t){var r=t.treeData,i=void 0===r?[]:r,a=t.value,o=t.defaultValue,l=t.onChange,s=t.placeholder,c=void 0===s?"请选择":s,d=t.disabled,u=void 0!==d&&d,p=t.multiple,h=void 0!==p&&p,g=t.maxTagCount,m=t.allowClear,v=void 0===m||m,y=t.size,x=void 0===y?"middle":y,j=t.styles,_=t.className,C=t.dropdownWidth,w=t.dropdownHeight,N=void 0===w?300:w,z=t.showSearch,E=void 0!==z&&z,S=t.filterOption,T=t.autoClearSearchValue,O=void 0===T||T,k=t.fieldNames,L=void 0===k?{}:k,A=t.width,M=n.useState(!1),I=M[0],D=M[1],R=n.useState(function(){return o?Array.isArray(o)?o:[o]:[]}),H=R[0],P=R[1],V=n.useState(""),U=V[0],F=V[1],Y=n.useRef(null),G=n.useRef(null),$=n.useState(new Set),W=$[0],K=$[1],Z=L.title,X=void 0===Z?"title":Z,q=L.value,J=void 0===q?"value":q,Q=L.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!==a?h?Array.isArray(a)?a:[a]:null!==a&&""!==a?[a]:[]:H},[a,H,h]),ae=n.useCallback(function(e,n){void 0===n&&(n=i);for(var t=0,r=n;t<r.length;t++){var a=r[t];if(ne(a)===e)return a;var o=re(a);if(o&&o.length>0){var l=ae(e,o);if(l)return l}}return null},[i,ne,re]),oe=n.useMemo(function(){return ie.map(function(e){return ae(e)}).filter(Boolean)},[ie,ae]);n.useEffect(function(){var e=function(e){Y.current&&!Y.current.contains(e.target)&&(D(!1),F(""))};return I&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[I]),n.useEffect(function(){I&&E&&G.current&&setTimeout(function(){var e;return null===(e=G.current)||void 0===e?void 0:e.focus()},0)},[I,E]);var le=n.useCallback(function(e){var n=[],t=function(e){var r=re(e);r&&0!==r.length?r.forEach(t):n.push(ne(e))};return t(e),n},[ne,re]),se=n.useCallback(function(e){var n=ne(e),t=re(e),r=t&&t.length>0;if(h){var i=r?le(e):[n],o=void 0,s=(o=i.some(function(e){return ie.includes(e)})?ie.filter(function(e){return!i.includes(e)}):Array.from(new Set(b(b([],ie,!0),i,!0)))).map(function(e){return ae(e)}).filter(Boolean);void 0===a&&P(o),null==l||l(o,s)}else{if(r)return;void 0===a&&P([n]),null==l||l(n,[e]),D(!1)}O&&F("")},[ie,h,ne,re,le,ae,a,l,O]),ce=n.useCallback(function(e){e.stopPropagation(),void 0===a&&P([]),null==l||l(h?[]:void 0,[])},[a,l,h]),de=n.useCallback(function(e,n){e.stopPropagation();var t=ie.filter(function(e){return e!==n}),r=t.map(function(e){return ae(e)}).filter(Boolean);void 0===a&&P(t),null==l||l(t,r)},[ie,ae,a,l]),ue=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]),pe=n.useCallback(function(e){if(!U)return!0;var n=String(te(e));return S?S(U,e):n.toLowerCase().includes(U.toLowerCase())},[U,te,S]),fe=n.useCallback(function(e){var n=re(e);return!(!n||0===n.length)&&n.some(function(e){return pe(e)||fe(e)})},[re,pe]),he=n.useCallback(function(e){var n=le(e);return 0!==n.length&&n.every(function(e){return ie.includes(e)})},[le,ie]),ge=n.useCallback(function(n,t){void 0===t&&(t=0);var r=ne(n),i=te(n),a=re(n),o=a&&a.length>0,l=h?o?he(n):ie.includes(r):!o&&ie.includes(r),s=W.has(r),c=!!n.disabled,d=pe(n),u=fe(n);return d||u?e.jsxs(De,{className:"treeselect-tree-node-wrapper",children:[e.jsxs(Re,{className:f.default("treeselect-tree-node",{"treeselect-tree-node-selected":l,"treeselect-tree-node-disabled":c,"treeselect-tree-node-leaf":!o}),$selected:l,$disabled:c,$level:t,$styles:null==j?void 0:j.treeNode,onClick:function(){return!c&&se(n)},children:[e.jsx(He,{className:f.default("treeselect-tree-node__expand-icon",{"treeselect-tree-node__expand-icon-expanded":s,"treeselect-tree-node__expand-icon-no-children":!o}),$expanded:s,$hasChildren:!!o,onClick:function(e){return o&&ue(e,n)},children:o&&e.jsx(B,{type:"arrowRight",size:12,color:"#bfbfbf"})}),h&&e.jsx(Pe,{className:"treeselect-tree-node__checkbox",children:e.jsx(Ve,{className:f.default("treeselect-tree-node__checkbox-inner",{"treeselect-tree-node__checkbox-inner-checked":l}),$checked:l,children:l&&e.jsx(B,{type:"check",size:10,color:"#fff"})})}),e.jsx(Be,{className:"treeselect-tree-node__title",children:i})]}),o&&s&&e.jsx(Ue,{className:"treeselect-tree-node-children",children:a.map(function(e){return ge(e,t+1)})})]},String(r)):null},[ie,W,ne,te,re,h,pe,fe,he,se,ue,null==j?void 0:j.treeNode]),me=n.useCallback(function(e){var n=[],t=function(e){var r=re(e);r&&0!==r.length?r.forEach(t):ie.includes(ne(e))&&n.push(e)};return e.forEach(t),n},[ie,ne,re]),ye=n.useCallback(function(){if(!h){var n=oe[0];return n?e.jsx(Ce,{className:"treeselect-selection__item",children:te(n)}):c}var t=me(i);if(0===t.length)return c;var r=t,a=0;return void 0!==g&&g>0&&t.length>g&&(r=t.slice(0,g),a=t.length-g),e.jsxs(e.Fragment,{children:[r.map(function(n){return e.jsxs(we,{className:f.default("treeselect-selection__tag",{"treeselect-selection__tag--more":!1}),$size:x,$styles:null==j?void 0:j.tag,children:[e.jsx(Ne,{className:"treeselect-selection__tag-content",children:te(n)}),e.jsx(ze,{className:"treeselect-selection__tag-close",onClick:function(e){return de(e,ne(n))},children:e.jsx(B,{type:"close",size:10})})]},ne(n))}),a>0&&e.jsxs(we,{className:"treeselect-selection__tag treeselect-selection__tag--more",$size:x,$styles:null==j?void 0:j.tag,children:["+",a]})]})},[h,oe,i,g,ne,te,de,me,c,x,null==j?void 0:j.tag]),xe=f.default("treeselect-wrapper",_);return e.jsxs(be,{ref:Y,className:xe,$width:A,$styles:null==j?void 0:j.wrapper,children:[e.jsxs(je,{className:f.default("treeselect-selection",{"treeselect-selection-open":I,"treeselect-selection-disabled":u}),$open:I,$disabled:u,$size:x,$styles:null==j?void 0:j.selection,onClick:function(){u||(D(!I),I||F(""))},children:[E&&I?e.jsx(Ee,{className:"treeselect-selection__search",children:e.jsx(Se,{ref:G,type:"text",className:"treeselect-selection__search-input",value:U,onChange:function(e){return F(e.target.value)},placeholder:0===oe.length?c:"",onClick:function(e){return e.stopPropagation()}})}):e.jsx(_e,{className:f.default("treeselect-selection__rendered",{"treeselect-selection__rendered--placeholder":0===oe.length}),$isPlaceholder:0===oe.length,children:ye()}),v&&!u&&oe.length>0&&e.jsx(Te,{className:"treeselect-selection__clear",$size:x,onClick:ce,children:e.jsx(B,{type:"close",size:12})}),e.jsx(Oe,{className:f.default("treeselect-selection__arrow",{"treeselect-selection__arrow-open":I}),$open:I,$size:x,children:e.jsx(B,{type:"arrowDown",size:12})})]}),I&&e.jsxs(ke,{className:"treeselect-dropdown",$width:C,$height:N,$styles:null==j?void 0:j.dropdown,children:[E&&!I&&e.jsx(Le,{className:"treeselect-dropdown__search",children:e.jsx(Ae,{ref:G,type:"text",className:"treeselect-dropdown__search-input",value:U,onChange:function(e){return F(e.target.value)},placeholder:"搜索"})}),e.jsx(Me,{className:"treeselect-dropdown__content",children:i.length>0?i.map(function(e){return ge(e)}):e.jsx(Ie,{className:"treeselect-dropdown__empty",children:e.jsx(ve,{size:"small",description:"暂无数据"})})})]})]})},Ye=function(t){var r=t.color,a=t.onChange,o=t.onColorChange,l=t.disabled,s=void 0!==l&&l,c=t.className,d=t.style,u=t.alpha,p=void 0!==u&&u,h=t.presetColors,g=void 0===h?[]:h,m=t.gradient,v=void 0!==m&&m,y=t.children,x=n.useState(!1),j=x[0],_=x[1],C=n.useState(r),w=C[0],N=C[1],z=n.useState([r,"#ffffff"]),E=z[0],S=z[1],T=n.useState(90),O=T[0],k=T[1],L=n.useRef(null),A=n.useRef(null),M=f.default("zjpcy-color-picker",{"zjpcy-color-picker--disabled":s,"zjpcy-color-picker--open":j},c),I=function(e,n){if(v&&void 0!==n){var t=b([],E,!0);t[n]=e.hex,S(t),D()}else N(e.hex),null==o||o(e.hex)},D=function(){var e="linear-gradient(".concat(O,"deg, ").concat(E[0],", ").concat(E[1],")");N(e),null==o||o(e)},R=function(e){e.stopPropagation(),s||_(!j)};return n.useEffect(function(){var e=function(e){var n=L.current&&L.current.contains(e.target),t=A.current&&A.current.contains(e.target);n||t||_(!1)};return j&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[j]),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])),S([e[2],e[3]]))}},[r,v]),e.jsxs("div",{className:M,style:d,children:[y?e.jsx("div",{ref:A,className:"zjpcy-color-picker-trigger-container",onClick:R,children:y}):e.jsx("div",{ref:A,className:"zjpcy-color-picker-default-trigger",style:{background:r},onClick:R}),j&&e.jsxs("div",{className:"zjpcy-color-picker-popup",children:[e.jsxs("div",{className:"zjpcy-color-picker-content",ref:L,children:[v?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"zjpcy-color-picker-gradient",children:[e.jsxs("div",{className:"zjpcy-color-picker-gradient-item",children:[e.jsx("div",{className:"zjpcy-color-picker-gradient-label",children:"起始颜色"}),e.jsx(i.SketchPicker,{color:E[0],onChange:function(e){I(e,0)},disableAlpha:!p})]}),e.jsxs("div",{className:"zjpcy-color-picker-gradient-item",children:[e.jsx("div",{className:"zjpcy-color-picker-gradient-label",children:"结束颜色"}),e.jsx(i.SketchPicker,{color:E[1],onChange:function(e){I(e,1)},disableAlpha:!p})]})]}),e.jsxs("div",{className:"zjpcy-color-picker-gradient-direction",children:[e.jsxs("div",{className:"zjpcy-color-picker-gradient-direction-label",children:["渐变方向: ",O,"°"]}),e.jsx("input",{type:"range",min:"0",max:"360",value:O,onChange:function(e){k(parseInt(e.target.value)),D()},className:"zjpcy-color-picker-gradient-range"})]})]}):e.jsx(i.SketchPicker,{color:w,onChange:function(e){I(e)},disableAlpha:!p}),g.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"zjpcy-color-picker-presets-label",children:"预设颜色"}),e.jsx("div",{className:"zjpcy-color-picker-presets",children:g.map(function(n,t){return e.jsx("div",{className:"zjpcy-color-picker-preset",style:{backgroundColor:n},onClick:function(){return I({hex:n})},title:n},t)})})]}),e.jsxs("div",{className:"zjpcy-color-picker-actions",children:[e.jsx("div",{className:"zjpcy-color-picker-preview-label",children:"参考值:"}),e.jsx("div",{className:"zjpcy-color-picker-preview ".concat(v?"zjpcy-color-picker-gradient-preview":"zjpcy-color-picker-solid-preview"),style:{background:w}}),e.jsxs("div",{className:"zjpcy-color-picker-button-group",children:[e.jsx(pe,{size:"small",onClick:function(){N(r),v&&(S([r,"#ffffff"]),k(90)),_(!1)},children:"取消"}),e.jsx(pe,{variant:"primary",size:"small",onClick:function(){a(w),_(!1)},children:"确认"})]})]})]}),e.jsx("div",{className:"zjpcy-color-picker-overlay",onClick:function(){return _(!1)}})]})]})},Ge=function(e){return y(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 $e(){var e=this;return p.default.useCallback(function(n){return y(e,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:return[4,Ge(n)];case 1:return[2,e.sent()]}})})},[])}var We=function(n){var t=n.url,r=n.onCopyStatusChange,i=n.children,a=$e();return e.jsx("span",{style:{margin:"0px",padding:"0px"},onClick:function(){return y(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,a(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})},Ke=$e,Ze=function(n){var t,r=n.orientation,i=void 0===r?"horizontal":r,a=n.type,o=void 0===a?"solid":a,l=n.color,s=void 0===l?"#339af0":l,c=n.className,d=void 0===c?"":c,u=n.style,p="#339af0"!==s&&void 0!==s,h=f.default("divider","divider-".concat(i),((t={})["divider-".concat(o,"-").concat(i)]="dashed"===o,t["divider-primary"]=p,t["divider-primary-with-text"]=p,t),d);return e.jsx("div",{className:h,style:m({backgroundColor:s},u)})},Xe=function(n){var t=n.children,r=n.layout,i=void 0===r?"horizontal":r,a=n.direction,o=n.justify,l=void 0===o?"flex-start":o,s=n.align,c=void 0===s?"stretch":s,d=n.wrap,u=void 0===d?"nowrap":d,p=n.gap,f=n.style,h=void 0===f?{}:f,g=a||("column"===i?"column":"row");return e.jsx("div",{className:"flex",style:m({gap:"number"==typeof p?"".concat(p,"px"):p,justifyContent:l,alignItems:c,flexWrap:u,flexDirection:g},h),children:t})},qe=function(n){var t=n.type,r=void 0===t?"text":t,i=n.placeholder,a=void 0===i?"":i,o=n.width,l=n.className,s=void 0===l?"":l,c=n.style,d=n.value,u=n.defaultValue,f=n.onChange,h=n.onBlur,g=n.onFocus,y=n.disabled,x=void 0!==y&&y,b=n.readOnly,j=void 0!==b&&b,_=n.onKeyDown,C=n.prefix,w=n.suffix,N=n.clear,z=void 0!==N&&N,E=n.extra,S=n.label,T=n.labelGap,O=void 0===T?8:T,k=n.labelClassName,L=void 0===k?"":k,A=n.labelStyle,M=n.autoComplete,I=v(n,["type","placeholder","width","className","style","value","defaultValue","onChange","onBlur","onFocus","disabled","readOnly","onKeyDown","prefix","suffix","clear","extra","label","labelGap","labelClassName","labelStyle","error","autoComplete"]),D=p.default.useState(u||""),R=D[0],H=D[1],P=p.default.useState(!1),V=P[0],U=P[1],F=function(n){return n?"string"==typeof n?e.jsx(B,{type:n,size:"medium",color:"#909399"}):n:null},Y=void 0!==d?d:R,G=z&&!x&&!j&&V&&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:[S&&e.jsx("div",{className:"input-label ".concat(L),style:m({marginRight:"number"==typeof O?"".concat(O,"px"):O},A),children:S}),e.jsxs("div",{className:"input-wrapper ".concat(s," ").concat(x?"input-wrapper-disabled":""," ").concat(j?"input-wrapper-readonly":""),style:m({width:o},c),children:[C&&e.jsx("div",{className:"input-prefix",children:F(C)}),e.jsx("input",m({type:r,placeholder:a,className:"input-inner",value:null!=d?String(d):Y,onChange:function(e){void 0===d&&H(e.target.value),null==f||f(e)},onBlur:function(e){U(!1),null==h||h(e)},onFocus:function(e){U(!0),null==g||g(e)},disabled:x,readOnly:j,onKeyDown:_,autoComplete:null!=M?M:"password"===r?"current-password":void 0},I)),e.jsxs("div",{className:"input-suffix-group",children:[e.jsx("div",{className:"input-suffix-clear ".concat(G?"visible":""),onClick:function(){x||j||(void 0!==d||H(""),f&&f({target:{value:""}}))},children:e.jsx(B,{type:"close",size:"medium",color:"#1890ff"})}),w&&e.jsx("div",{className:"input-suffix-content",children:F(w)})]})]})]}),E&&e.jsx("div",{className:"input-extra",children:E})]})},Je=function(n){var t=n.type,r=void 0===t?"text":t,i=n.placeholder,a=void 0===i?"搜索":i,o=n.width,l=n.className,s=void 0===l?"":l,c=n.style,d=n.value,u=n.onChange,p=n.onBlur,f=n.onFocus,h=n.disabled,g=void 0!==h&&h,y=n.readOnly,x=void 0!==y&&y,b=n.onSearch,j=n.onClear,_=n.clear,C=void 0!==_&&_,w=n.suffix,N=v(n,["type","placeholder","width","className","style","value","onChange","onBlur","onFocus","disabled","readOnly","onSearch","onClear","clear","suffix"]),z=function(){null==b||b()},E=C?e.jsx(B,{type:"search",onClick:z,style:{cursor:"pointer"}}):w;return e.jsxs("div",{className:"search-input-wrapper ".concat(s),style:m({width:o},c),children:[e.jsx(qe,m({type:r,placeholder:a,width:"100%",value:d,onChange:u,onBlur:p,onFocus:f,disabled:g,readOnly:x,onKeyDown:function(e){"Enter"===e.key&&(null==b||b())},clear:C,suffix:E},N)),!C&&e.jsxs("div",{className:"search-input-suffix",children:[d&&e.jsx(B,{type:"clear",size:"small",onClick:function(){if(null==j||j(),!j&&u){u({target:{value:""}})}},style:{cursor:"pointer",marginRight:"8px"}}),e.jsx(B,{type:"search",onClick:z,style:{cursor:"pointer"}})]})]})},Qe=function(n){var t=n.nType,r=n.errorMessage,i=n.extra,a=n.value,o=n.onChange,l=n.clear,s=void 0!==l&&l,c=v(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:""}}},u=p.default.useState({isValid:!0,message:""}),f=u[0],h=u[1];p.default.useEffect(function(){if(t&&a){var e=d(a);h(e)}},[t,a]);var g=r||f.message,y=!!g,x=!y&&i;return e.jsxs("div",{className:"number-input-wrapper",children:[e.jsx(qe,m({type:"text",value:a,onChange:function(e){var n=e.target.value;if(null==o||o(e),t){var r=d(n);h(r)}},clear:s},c,{className:"".concat(c.className||""," ").concat(y?"input-error":"")})),y&&e.jsx("div",{className:"input-error-message ".concat(y?"visible":""),children:g}),x&&e.jsx("div",{className:"input-extra",children:i})]})},en=function(n){var t=n.placeholder,r=void 0===t?"":t,i=n.width,a=n.height,o=n.className,l=void 0===o?"":o,s=n.style,c=n.value,d=n.defaultValue,u=n.onChange,f=n.onBlur,h=n.onFocus,g=n.onKeyDown,v=n.disabled,y=void 0!==v&&v,x=n.readOnly,b=void 0!==x&&x,j=n.rows,_=void 0===j?4:j,C=n.cols,w=n.maxLength,N=n.showCount,z=void 0!==N&&N,E=n.clear,S=void 0!==E&&E,T=n.extra,O=n.label,k=n.labelGap,L=void 0===k?8:k,A=n.labelClassName,M=void 0===A?"":A,I=n.labelStyle,D=n.resizable,R=void 0!==D&&D,H=n.resizeHandleSize,P=void 0===H?10:H,V=n.minWidth,U=void 0===V?200:V,F=n.maxWidth,Y=void 0===F?2e3:F,G=n.minHeight,$=void 0===G?80:G,W=n.maxHeight,K=void 0===W?800:W,Z=n.onResize,X=p.default.useState(d||""),q=X[0],J=X[1],Q=p.default.useState(!1),ee=Q[0],ne=Q[1],te=p.default.useState(!1),re=te[0],ie=te[1],ae=p.default.useRef(null),oe=p.default.useRef(null),le=p.default.useRef(null),se=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=p.default.useState(se(i)||0),ue=de[0],pe=de[1],fe=p.default.useState(ce(a)||24*_||80),he=fe[0],ge=fe[1];p.default.useEffect(function(){if(oe.current){var e=se(i)||oe.current.offsetWidth||0,n=ce(a)||24*_||80;pe(e),ge(n)}},[]);var me=void 0!==c,ve=me?c:q,ye=(null==ve?void 0:ve.length)||0;p.default.useEffect(function(){var e=function(e){if(re&&le.current){var n=e.clientX-le.current.mouseX,t=e.clientY-le.current.mouseY,r=le.current.width+n,i=le.current.height+t;r=Math.max(U,Math.min(Y,r)),i=Math.max($,Math.min(K,i)),pe(r),ge(i),null==Z||Z({width:r,height:i})}},n=function(){le.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,$,K,Z]);var xe={display:"inline-flex",flexDirection:"column",width:i?"number"==typeof i?"".concat(i,"px"):i:"100%"},be={position:"relative",display:"flex",alignItems:"flex-start",flex:1,width:R?"number"==typeof ue?"".concat(ue,"px"):ue:void 0},je=m({width:"100%",height:a?"number"==typeof a?"".concat(a,"px"):a:void 0,resize:"none"},s),_e=S&&ve&&!y&&!b,Ce=R?m(m({},je),{width:"100%",height:R?"number"==typeof he?"".concat(he,"px"):he:void 0}):je;return e.jsxs("div",{className:"textarea-wrapper ".concat(l),style:xe,ref:oe,children:[(O||z||_e)&&e.jsxs("div",{className:"textarea-header",style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[O?e.jsx("label",{className:"input-label ".concat(M),style:m({marginRight:"number"==typeof L?"".concat(L,"px"):L},I),children:O}):null,e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[_e&&e.jsx("span",{className:"textarea-clear",onClick:function(){if(!y&&!b){me||J(""),null==u||u({target:{value:""}})}},style:{cursor:"pointer"},children:e.jsx(B,{type:"close-circle",size:"small",color:"#909399"})}),z&&w&&e.jsxs("span",{className:"textarea-count",style:{fontSize:"12px",color:"#909399"},children:[ye,"/",w]})]})]}),e.jsxs("div",{className:"input-wrapper textarea-input-wrapper ".concat(ee?"textarea-input-wrapper-focused":""," ").concat(y?"textarea-input-wrapper-disabled":""," ").concat(re?"textarea-input-wrapper-resizing":""),style:be,children:[e.jsx("textarea",{ref:ae,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==u||u(e)},onBlur:function(e){ne(!1),null==f||f(e)},onFocus:function(e){ne(!0),null==h||h(e)},onKeyDown:g,disabled:y,readOnly:b,rows:_,cols:C,maxLength:w,style:Ce}),R&&e.jsx("div",{className:"textarea-resize-handle",onMouseDown:function(e){R&&!y&&!b&&oe.current&&(e.preventDefault(),e.stopPropagation(),le.current={mouseX:e.clientX,mouseY:e.clientY,width:oe.current.offsetWidth,height:oe.current.offsetHeight},ie(!0))},style:{position:"absolute",bottom:"0",right:"0",width:"".concat(P,"px"),height:"".concat(P,"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"}})})]}),T&&e.jsx("div",{className:"input-extra",style:{marginTop:"4px"},children:T})]})},nn=function(n){var t=n.defaultVisible,r=void 0!==t&&t,i=n.onVisibleChange,a=n.autoComplete,o=void 0===a?"current-password":a,l=v(n,["defaultVisible","onVisibleChange","autoComplete"]),s=p.default.useState(r),c=s[0],d=s[1],u=function(){var e=!c;d(e),null==i||i(e)};return e.jsx(qe,m({type:c?"text":"password",suffix:e.jsx("div",{className:"input-suffix-content",onClick:u,style:{cursor:"pointer"},children:e.jsx(B,{type:c?"eye":"eyeOff",size:"medium",color:"#909399"})}),autoComplete:o},l))},tn=qe;tn.Search=Je,tn.Number=Qe,tn.Textarea=en,tn.Password=nn;var rn=tn,an={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},on=p.default.createContext&&p.default.createContext(an),ln=["attr","size","title"];function sn(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 a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function cn(){return cn=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},cn.apply(this,arguments)}function dn(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 un(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?dn(Object(t),!0).forEach(function(n){pn(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):dn(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function pn(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 fn(e){return e&&e.map((e,n)=>p.default.createElement(e.tag,un({key:n},e.attr),fn(e.child)))}function hn(e){return n=>p.default.createElement(gn,cn({attr:un({},e.attr)},n),fn(e.child))}function gn(e){var n=n=>{var t,{attr:r,size:i,title:a}=e,o=sn(e,ln),l=i||n.size||"1em";return n.className&&(t=n.className),e.className&&(t=(t?t+" ":"")+e.className),p.default.createElement("svg",cn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:t,style:un(un({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&p.default.createElement("title",null,a),e.children)};return void 0!==on?p.default.createElement(on.Consumer,null,e=>n(e)):n(an)}function mn(e){return hn({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 vn=function(t){var r=t.announcement,i=t.height,a=void 0===i?40:i,o=t.speed,l=void 0===o?50:o,s=t.backgroundColor,c=void 0===s?"linear-gradient(to right, #e8eaf6 0%, #f5f5f5 50%, #e8eaf6 100%)":s,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,y=t.onClose;if(!r)return null;var x=n.useState(!0),b=x[0],j=x[1],_=u&&b,C=n.useRef(null),w=n.useRef(null),N=n.useRef(void 0),z=n.useRef(!1),E=n.useRef(!0);return n.useEffect(function(){if(_&&C.current&&w.current){var e=C.current,n=w.current;n.style.left="".concat(e.offsetWidth,"px");var t=function(){if(E.current&&n)if(z.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-l/100,"px"),N.current=requestAnimationFrame(t)}};N.current=requestAnimationFrame(t);var r=function(){z.current=!0},i=function(){z.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)}}},[l,r,_]),_?e.jsxs("div",{ref:C,className:"marquee-container ".concat(f?"marquee-container-fixed":""),style:{height:"".concat(a,"px"),background:c,top:f?"".concat(g,"px"):void 0},children:[e.jsx("div",{ref:w,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(a,"px"),width:"45px",background:c},onClick:function(){E.current=!1,j(!1),y&&y()},onMouseEnter:function(){z.current=!0},onMouseLeave:function(){z.current=!1},children:e.jsx(mn,{size:18,color:"#666"})})]}):null},yn=function(t){var r=t.type,i=t.content,a=t.duration,o=void 0===a?3e3:a,l=t.className,s=void 0===l?"":l,c=t.style,d=t.onClose,u=n.useState(!0),p=u[0],f=u[1];if(n.useEffect(function(){if(o>0){var e=setTimeout(function(){f(!1),null==d||d()},o);return function(){return clearTimeout(e)}}},[o,d]),!p)return null;return e.jsx("div",{className:"zjpcy-message zjpcy-message--".concat(r," ").concat(s," ").concat(p?"zjpcy-message--show":""),style:c,children:e.jsxs("div",{className:"zjpcy-message-content",children:[e.jsx(B,{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(--zjpcy-success-color)";case"warning":return"var(--zjpcy-warning-color)";case"error":return"var(--zjpcy-error-color)";default:return"var(--zjpcy-primary-color)"}}()}),e.jsx("span",{className:"zjpcy-message-text",children:i})]})})},xn=0,bn=new Map,jn=function(e){var n=bn.get(e);if(n){var t=n.container;n.root.unmount(),document.body.contains(t)&&document.body.removeChild(t),bn.delete(e)}},_n=function(n,t,r){void 0===r&&(r=3e3);var i=++xn,o=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}(),l=a.createRoot(o);l.render(e.jsx(yn,{type:n,content:t,duration:r,onClose:function(){jn(i)}})),bn.set(i,{container:o,root:l});var s=setTimeout(function(){jn(i)},r);return{close:function(){clearTimeout(s),jn(i)}}},Cn={success:function(e,n){_n("success",e,n)},warning:function(e,n){_n("warning",e,n)},error:function(e,n){_n("error",e,n)},info:function(e,n){_n("info",e,n)},close:function(){bn.forEach(function(e,n){return jn(n)})}},wn=n.createContext({message:null}),Nn=function(t){var r,i=t.visible,a=t.title,l=void 0===a?"标题":a,s=t.width,c=void 0===s?600:s,d=t.height,u=void 0===d?"auto":d,p=t.headerHeight,h=void 0===p?40:p,g=t.footerHeight,v=void 0===g?40:g,y=t.confirmLoading,x=void 0!==y&&y,b=t.direction,j=void 0===b?"normal":b,_=t.top,C=t.onCancel,w=t.onOk,N=t.children,z=t.footer,E=void 0===z?null:z,S=t.bordered,T=void 0!==S&&S,O=t.className,k=t.style,L=t.okText,A=void 0===L?"确认":L,M=t.cancelText,I=void 0===M?"取消":M,D=t.getContainer,R=void 0===D?function(){return document.body}:D,H=t.maskStyle,P=t.maskClassName,V=t.zIndex,U=void 0===V?1e3:V,F=t.contentClassName,Y=t.contentStyle,G=t.destroyOnClose,$=void 0!==G&&G,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(!1),re=te[0],ie=te[1],ae=n.useState({x:0,y:0}),oe=ae[0],le=ae[1],se=n.useRef(null),ce=j,de=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){se.current={x:e.clientX,y:e.clientY}};return document.addEventListener("mousedown",e,!0),function(){document.removeEventListener("mousedown",e,!0)}},[]),n.useEffect(function(){if(i){var e=function(){var e=se.current;if(!e||"undefined"==typeof window)return{x:0,y:0};var n=u?de(u):0;if("center"===ce&&void 0!==_){var t=window.innerWidth/2,r=_+(n>0?n/2:0);return{x:e.x-t,y:e.y-r}}if("center"===ce)return t=window.innerWidth/2,r=window.innerHeight/2,{x:e.x-t,y:e.y-r};if(void 0!==_&&n>0)return t=window.innerWidth/2,r=_+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}}();le(e),ne(!1),requestAnimationFrame(function(){J(!0)});var n=setTimeout(function(){ie(!0)},50);return function(){return clearTimeout(n)}}ne(!0),ie(!1);var t=setTimeout(function(){J(!1),ne(!1)},550);return function(){return clearTimeout(t)}},[i,550,u,_,$]);var ue=function(){ne(!0);var e=setTimeout(function(){J(!1),ne(!1),null==C||C()},550);return function(){return clearTimeout(e)}},fe=function(){null==w||w()},he=m(((r={width:"number"==typeof c?"".concat(c,"px"):c,top:void 0!==_?"".concat(_,"px"):void 0})["--zjpcy-modal-origin-x"]="".concat(oe.x,"px"),r["--zjpcy-modal-origin-y"]="".concat(oe.y,"px"),r.visibility=re?"visible":"hidden",r),k),ge={height:"number"==typeof h?"".concat(h,"px"):h},me=u?de(u):0,ve=de(h),ye=de(v),xe=me>0?Math.max(0,me-ve-ye):void 0,be=m({},Y);if(!be.maxHeight&&u){var je=de(u);be.maxHeight="".concat(je,"px")}!be.maxHeight&&xe&&(be.maxHeight="".concat(xe,"px"));var _e={height:"number"==typeof v?"".concat(v,"px"):v},Ce=function(){if(!q&&!ee)return null;var n=m({zIndex:U},H);return e.jsx("div",{className:f.default("zjpcy-modal-overlay",{"zjpcy-modal-overlay--visible":q&&!ee,"zjpcy-modal-overlay--closing":ee,"zjpcy-modal-overlay--custom-top":void 0!==_},O,P),onClick:ue,style:n,children:e.jsxs("div",{className:f.default("zjpcy-modal-container",{"zjpcy-modal-container--center-top":re&&!ee&&"center"===ce&&void 0!==_,"zjpcy-modal-container--center":re&&!ee&&"center"===ce&&void 0===_,"zjpcy-modal-container--top-right":re&&!ee&&"top-right"===ce,"zjpcy-modal-container--bottom-right":re&&!ee&&"bottom-right"===ce,"zjpcy-modal-container--bottom-left":re&&!ee&&"bottom-left"===ce,"zjpcy-modal-container--normal":re&&!ee&&"normal"===ce,"zjpcy-modal-container--closing-center-top":ee&&"center"===ce&&void 0!==_,"zjpcy-modal-container--closing-center":ee&&"center"===ce&&void 0===_,"zjpcy-modal-container--closing-top-right":ee&&"top-right"===ce,"zjpcy-modal-container--closing-bottom-right":ee&&"bottom-right"===ce,"zjpcy-modal-container--closing-bottom-left":ee&&"bottom-left"===ce,"zjpcy-modal-container--closing-normal":ee&&"normal"===ce,"zjpcy-modal-container--bordered":T,"zjpcy-modal-container--has-height":void 0!==u}),style:he,onClick:function(e){return e.stopPropagation()},children:[K?Z?e.jsx("div",{className:"zjpcy-modal-loading",children:e.jsx("div",{className:"zjpcy-modal-loading-content",children:Z})}):e.jsx("div",{className:"zjpcy-modal-loading",children:e.jsx("div",{className:"zjpcy-modal-loading-content",children:e.jsx("div",{className:"zjpcy-modal-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"zjpcy-modal-loading-icon",children:[e.jsx("circle",{className:"zjpcy-modal-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"zjpcy-modal-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})})})}):null,e.jsxs("div",{className:"zjpcy-modal-header",style:ge,children:[e.jsx("div",{className:"zjpcy-modal-header__left",children:e.jsx("span",{className:"zjpcy-modal-header__title",children:l})}),e.jsx("div",{className:"zjpcy-modal-header__right",children:e.jsx("div",{className:"zjpcy-modal-close-btn",onClick:ue,children:e.jsx(B,{type:"close",size:20,color:"currentColor"})})})]}),q&&e.jsx("div",{className:f.default("zjpcy-modal-content",F),style:be,children:$&&ee?null:N}),e.jsx(Xe,{className:"zjpcy-modal-footer",align:"center",justify:"flex-end",style:Object.assign({},_e,{padding:"0px 10px"}),gap:12,children:null===E?e.jsxs(Xe,{className:"zjpcy-modal-footer__actions",justify:"flex-end",gap:12,children:[e.jsx(pe,{variant:"secondary",onClick:ue,disabled:x,children:I||"取消"}),e.jsx(pe,{variant:"primary",onClick:fe,loading:x,children:A||"确认"})]}):E})]})})}();if(!Ce)return null;if(!1===R)return Ce;var we="function"==typeof R?R():R;return we?o.createPortal(Ce,we):Ce},zn={};Object.defineProperty(zn,"__esModule",{value:!0});var En=p.default;function Sn(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Tn=Sn(En);!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 On=En.forwardRef(function({style:e={},className:n="",autoFill:t=!1,play:r=!0,pauseOnHover:i=!1,pauseOnClick:a=!1,direction:o="left",speed:l=50,delay:s=0,loop:c=0,gradient:d=!1,gradientColor:u="white",gradientWidth:p=200,onFinish:f,onCycleComplete:h,onMount:g,children:m},v){const[y,x]=En.useState(0),[b,j]=En.useState(0),[_,C]=En.useState(1),[w,N]=En.useState(!1),z=En.useRef(null),E=v||z,S=En.useRef(null),T=En.useCallback(()=>{if(S.current&&E.current){const e=E.current.getBoundingClientRect(),n=S.current.getBoundingClientRect();let r=e.width,i=n.width;"up"!==o&&"down"!==o||(r=e.height,i=n.height),C(t&&r&&i&&i<r?Math.ceil(r/i):1),x(r),j(i)}},[t,E,o]);En.useEffect(()=>{if(w&&(T(),S.current&&E.current)){const e=new ResizeObserver(()=>T());return e.observe(E.current),e.observe(S.current),()=>{e&&e.disconnect()}}},[T,E,w]),En.useEffect(()=>{T()},[T,m]),En.useEffect(()=>{N(!0)},[]),En.useEffect(()=>{"function"==typeof g&&g()},[]);const O=En.useMemo(()=>t?b*_/l:b<y?y/l:b/l,[t,y,b,_,l]),k=En.useMemo(()=>Object.assign(Object.assign({},e),{"--pause-on-hover":!r||i?"paused":"running","--pause-on-click":!r||i&&!a||a?"paused":"running","--width":"up"===o||"down"===o?"100vh":"100%","--transform":"up"===o?"rotate(-90deg)":"down"===o?"rotate(90deg)":"none"}),[e,r,i,a,o]),L=En.useMemo(()=>({"--gradient-color":u,"--gradient-width":"number"==typeof p?`${p}px`:p}),[u,p]),A=En.useMemo(()=>({"--play":r?"running":"paused","--direction":"left"===o?"normal":"reverse","--duration":`${O}s`,"--delay":`${s}s`,"--iteration-count":c?`${c}`:"infinite","--min-width":t?"auto":"100%"}),[r,o,O,s,c,t]),M=En.useMemo(()=>({"--transform":"up"===o?"rotate(90deg)":"down"===o?"rotate(-90deg)":"none"}),[o]),I=En.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,n)=>Tn.default.createElement(En.Fragment,{key:n},En.Children.map(m,e=>Tn.default.createElement("div",{style:M,className:"rfm-child"},e)))),[M,m]);return w?Tn.default.createElement("div",{ref:E,style:k,className:"rfm-marquee-container "+n},d&&Tn.default.createElement("div",{style:L,className:"rfm-overlay"}),Tn.default.createElement("div",{className:"rfm-marquee",style:A,onAnimationIteration:h,onAnimationEnd:f},Tn.default.createElement("div",{className:"rfm-initial-child-container",ref:S},En.Children.map(m,e=>Tn.default.createElement("div",{style:M,className:"rfm-child"},e))),I(_-1)),Tn.default.createElement("div",{className:"rfm-marquee",style:A},I(_))):null});var kn=zn.default=On,Ln=function(n){var t=n.text,r=void 0===t?"":t,i=n.speed,a=void 0===i?50:i,o=n.height,l=void 0===o?60:o,s=n.icon,c=void 0===s?null:s,d=n.styles,u=void 0===d?{}:d,f=n.closeStyle,h=void 0===f?{}:f,g=n.showCloseButton,v=void 0!==g&&g,y=n.floatingTop,x=void 0!==y&&y,b=n.pauseOnHover,j=void 0===b||b,_=n.type,C=void 0===_?"primary":_,w=n.className,N=void 0===w?"":w,z=p.default.useState(!0),E=z[0],S=z[1];if(!r||!E)return null;return e.jsxs("div",{className:"zjpcy-notice zjpcy-notice--".concat(C," ").concat(x?"zjpcy-notice-floating":""," ").concat(N),style:m({height:"".concat(l,"px")},u),children:[e.jsxs(kn,{pauseOnHover:j,speed:a,gradient:!1,children:[e.jsx("span",{style:{width:"1200px"}}),Array.isArray(r)?e.jsx("div",{className:"zjpcy-notice-content",children:r.map(function(n,t){return e.jsxs("span",{style:{marginRight:"15px",display:"inline-block"},children:[c?e.jsx("span",{className:"zjpcy-notice-icon",children:c}):null,e.jsx("span",{className:"zjpcy-notice-text",children:n})]},t)})}):e.jsx("div",{className:"zjpcy-notice-content",children:e.jsxs("span",{children:[c?e.jsx("span",{className:"zjpcy-notice-icon",children:c}):null,e.jsx("span",{className:"zjpcy-notice-text",children:r})]})})]}),v&&e.jsx("div",{className:"zjpcy-notice-close",style:m({height:"".concat(l,"px")},h),onClick:function(){S(!1)},children:e.jsx("span",{className:"zjpcy-notice-close-icon",children:"×"})})]})},An=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"})}},Mn=function(t){var r=t.message,i=t.duration,a=void 0===i?3e3:i,o=t.type,l=void 0===o?"info":o,s=t.position,c=void 0===s?"center":s,d=t.color,u=t.top,p=t.open,f=t.clickOutsideToClose,h=void 0!==f&&f,g=t.onClose,v=void 0!==p,y=n.useState(!0),x=y[0],b=y[1],j=n.useState(!0),_=j[0],C=j[1],w=n.useRef(null),N=v?p:x;if(n.useEffect(function(){var e=function(e){h&&w.current&&!w.current.contains(e.target)&&(C(!1),setTimeout(function(){g&&g(),v||b(!1)},500))};return h&&N&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[h,N,v,g]),n.useEffect(function(){v&&(p?C(!0):(C(!1),setTimeout(function(){g&&g()},500)))},[p,v,g]),n.useEffect(function(){if(N){var e=setTimeout(function(){C(!1),setTimeout(function(){g&&g(),v||b(!1)},500)},a);return function(){return clearTimeout(e)}}},[a,N,v,g]),!N||!_)return null;var z="notification-".concat(l),E=d?"notification-custom":"",S=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}(),T=m({backgroundColor:d},S),O=void 0===u?"notification-".concat(c):"";return e.jsx("div",{ref:w,className:"notification ".concat(z," ").concat(O," ").concat(E," ").concat(_?"fade-in":"fade-out"),style:T,children:e.jsxs("div",{className:"notification-content",children:[An(l),e.jsx("span",{children:r})]})})},In=n.createContext(void 0),Dn=function(t){var r,i=t.value,a=t.checked,o=t.defaultChecked,l=void 0!==o&&o,s=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.size,p=t.children,h=t.className,g=t.style,v=t.label,y=t.labelGap,x=void 0===y?8:y,b=t.labelClassName,j=void 0===b?"":b,_=t.labelStyle,C=n.useContext(In),w=!!C,N=n.useRef(null),z=n.useState(l),E=z[0],S=z[1],T=w?C.value===i:void 0!==a?a:E,O=u||(w?C.size:void 0),k="button"===(w?C.type:void 0);n.useEffect(function(){if(w&&C.registerRadio)return C.registerRadio(i,N.current),function(){var e;null===(e=C.unregisterRadio)||void 0===e||e.call(C,i)}},[w,i,C]),n.useEffect(function(){T&&w&&C.updateIndicator&&requestAnimationFrame(function(){var e;null===(e=C.updateIndicator)||void 0===e||e.call(C)})},[T,w]),n.useEffect(function(){w||void 0===a||S(a)},[a,w]);var L=f.default("zjpcy-radio",((r={"zjpcy-radio--checked":T,"zjpcy-radio--unchecked":!T,"zjpcy-radio--disabled":d||w&&C.disabled,"zjpcy-radio--disabled-checked":T&&(d||w&&C.disabled)})["zjpcy-radio--".concat(O)]=O,r["zjpcy-radio--button"]=k,r),h);return e.jsx("label",{ref:N,className:L,style:g,children:e.jsxs("div",{className:"zjpcy-radio-wrapper",style:{display:"flex",alignItems:"center"},children:[v&&e.jsx("div",{className:"zjpcy-radio-label ".concat(j),style:m({marginRight:"number"==typeof x?"".concat(x,"px"):x},_),children:v}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[e.jsx("input",{type:"radio",className:"zjpcy-radio__input",checked:T,onChange:function(e){var n,t=e.target.checked;d||w&&C.disabled||(w?null===(n=C.onChange)||void 0===n||n.call(C,i):(S(t),null==s||s(t,i)))},disabled:d||w&&C.disabled,value:i}),!k&&e.jsx("span",{className:"zjpcy-radio__inner"}),p&&e.jsx("span",{className:"zjpcy-radio__label",children:p})]})]})})};Dn.Group=function(t){var r,i=t.value,a=t.defaultValue,o=t.onChange,l=t.disabled,s=void 0!==l&&l,c=t.type,d=void 0===c?"radio":c,u=t.size,p=void 0===u?"middle":u,h=t.children,g=t.className,m=t.style,v=n.useState(a),y=v[0],x=v[1],b=n.useRef(null),j=n.useRef(new Map),_=n.useState({width:0,height:0,transform:"translateX(0px)"}),C=_[0],w=_[1],N=void 0!==i?i:y,z=n.useCallback(function(e,n){n&&j.current.set(e,n)},[]),E=n.useCallback(function(e){j.current.delete(e)},[]),S=n.useCallback(function(){if("button"===d&&b.current){var e=j.current.get(N);if(e){var n=b.current.getBoundingClientRect(),t=e.getBoundingClientRect(),r=t.left-n.left;w({width:t.width,height:t.height,transform:"translateX(".concat(r,"px)")})}}},[N,d]);n.useEffect(function(){if("button"===d){var e=requestAnimationFrame(function(){S()});return function(){return cancelAnimationFrame(e)}}},[d,S]),n.useEffect(function(){if("button"===d){var e=function(){S()};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[d,S]),n.useEffect(function(){void 0!==i&&x(i)},[i]);var T=f.default("zjpcy-radio-group",((r={"zjpcy-radio-group--button":"button"===d})["zjpcy-radio-group--".concat(p)]=p,r["zjpcy-radio-group--button-large"]="button"===d&&"large"===p,r["zjpcy-radio-group--button-middle"]="button"===d&&"middle"===p,r["zjpcy-radio-group--button-small"]="button"===d&&"small"===p,r),g);return e.jsx(In.Provider,{value:{value:N,onChange:function(e){x(e),null==o||o(e)},disabled:s,type:d,size:p,registerRadio:z,unregisterRadio:E,updateIndicator:S},children:e.jsxs("div",{ref:b,className:T,style:m,children:["button"===d&&e.jsx("div",{className:"zjpcy-radio-group__indicator",style:{width:C.width,height:C.height,transform:C.transform}}),h]})})},Dn.displayName="Radio",Dn.Group.displayName="Radio.Group";var Rn,Hn,Pn,Vn,Bn,Un,Fn,Yn,Gn,$n,Wn,Kn,Zn,Xn,qn,Jn,Qn,et,nt,tt,rt=Dn,it=function(e,n){return"var(".concat(e,", ").concat(n,")")},at=h.default.div(Rn||(Rn=j(["\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")}),ot=h.default.div(Hn||(Hn=j(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),lt=h.default.div(Pn||(Pn=j(["\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"])),it("--zjpcy-text-color","rgba(0, 0, 0, 0.85)")),st=h.default.div(Vn||(Vn=j(["\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?it("--zjpcy-primary-color","#1890ff"):it("--zjpcy-input-border","#d9d9d9")},it("--zjpcy-border-radius-lg","8px"),it("--zjpcy-bg-color-white","#fff"),it("--zjpcy-bg-color","#fafafa"),it("--zjpcy-transition-duration","0.2s"),it("--zjpcy-transition-timing-function","ease-in-out"),function(e){return e.$open?it("--zjpcy-input-box-shadow-focus","0 0 0 2px rgba(51, 154, 240, 0.2)"):it("--zjpcy-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?it("--zjpcy-opacity-disabled","0.65"):1},function(e){return e.$disabled?it("--zjpcy-input-border","#d9d9d9"):it("--zjpcy-primary-color","#1890ff")},function(e){return e.$disabled?"none":it("--zjpcy-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")}),ct=h.default.div(Bn||(Bn=j(["\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"]))),dt=h.default.span(Un||(Un=j(["\n color: ",";\n user-select: none;\n"],["\n color: ",";\n user-select: none;\n"])),it("--zjpcy-text-color-light","#bfbfbf")),ut=h.default.span(Fn||(Fn=j(["\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"])),it("--zjpcy-text-color","rgba(0, 0, 0, 0.85)")),pt=h.default.div(Yn||(Yn=j(["\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"]))),ft=h.default.span(Gn||(Gn=j(["\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"])),it("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)"),it("--zjpcy-primary-color","#1890ff"),it("--zjpcy-border-radius-sm","4px"),it("--zjpcy-primary-color","#1890ff"),it("--zjpcy-transition-duration","0.2s"),it("--zjpcy-primary-color","#1890ff"),it("--zjpcy-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")}),ht=h.default.span($n||($n=j(["\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"]))),gt=h.default.input(Wn||(Wn=j(["\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"])),it("--zjpcy-text-color","rgba(0, 0, 0, 0.85)"),it("--zjpcy-text-color-light","#bfbfbf")),mt=h.default.div(Kn||(Kn=j(["\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"]))),vt=h.default.div(Zn||(Zn=j(["\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"])),it("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)"),it("--zjpcy-transition-duration","0.2s"),it("--zjpcy-text-color-secondary","rgba(0, 0, 0, 0.65)")),yt=h.default.div(Xn||(Xn=j(["\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"])),it("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)"),it("--zjpcy-transition-duration","0.2s"),function(e){return e.$open?"rotate(180deg)":"rotate(0deg)"}),xt=h.default.div(qn||(qn=j(["\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"])),it("--zjpcy-primary-color","#1890ff")),bt=h.default.div(Jn||(Jn=j(["\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"])),it("--zjpcy-z-index-modal","1000"),it("--zjpcy-bg-color-white","#fff"),it("--zjpcy-border-color-light","#f0f0f0"),it("--zjpcy-border-radius-md","6px"),it("--zjpcy-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)"},it("--zjpcy-transition-duration","0.2s"),it("--zjpcy-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")}),jt=h.default.div(Qn||(Qn=j(["\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"},it("--zjpcy-border-color","#e8e8e8"),it("--zjpcy-text-color-light","#bfbfbf")),_t=h.default.div(et||(et=j(["\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"},it("--zjpcy-transition-duration","0.2s"),function(e){return e.$selected?it("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)"):"transparent"},function(e){var n=e.$disabled,t=e.$selected;return n?it("--zjpcy-text-color-light","#bfbfbf"):t?it("--zjpcy-primary-color","#1890ff"):it("--zjpcy-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?it("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)"):it("--zjpcy-bg-color","#fafafa")},it("--zjpcy-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")}),Ct=h.default.div(nt||(nt=j(["\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"])),it("--zjpcy-primary-color","#1890ff")),wt=h.default.div(tt||(tt=j(["\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"])),it("--zjpcy-text-color-tertiary","rgba(0, 0, 0, 0.45)")),Nt=function(t){var r=t.value,i=t.defaultValue,a=t.options,o=void 0===a?[]:a,l=t.disabled,s=void 0!==l&&l,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,g=t.searchable,v=void 0!==g&&g,y=t.clearable,x=void 0!==y&&y,j=t.size,_=void 0===j?"default":j,C=t.width,w=t.styles,N=t.onChange,z=t.onOpenChange,E=t.onSearch,S=t.optionRender,T=t.tagRender,O=t.label,k=t.labelGap,L=void 0===k?8:k,A=t.labelClassName,M=void 0===A?"":A,I=t.labelStyle,D=t.className,R=void 0===D?"":D,H=t.style,P=t.showArrow,V=void 0===P||P,B=t.maxHeight,U=void 0===B?256:B,F=t.emptyContent,Y=void 0===F?"暂无数据":F,G=t.getPopupContainer,$=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],ae=n.useState(!1),oe=ae[0],le=ae[1],se=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=$?r:K,pe="multiple"===p,fe=n.useMemo(function(){return ee?o.filter(function(e){return String(e.label).toLowerCase().includes(ee.toLowerCase())}):o},[o,ee]),he=n.useMemo(function(){if(pe){var e=Array.isArray(ue)?ue:[];return o.filter(function(n){return e.includes(n.value)})}return o.find(function(e){return e.value===ue})||null},[ue,o,pe]),ge=n.useCallback(function(e,n){$||Z(e),null==N||N(e,n)},[$,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]),ye=n.useCallback(function(e){pe?ve(e):me(e)},[pe,ve,me]),xe=n.useCallback(function(e,n){if(e.stopPropagation(),!s){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,s,ge,he]),be=n.useCallback(function(e){(e.stopPropagation(),s)||(ge(pe?[]:"",pe?[]:void 0),ne(""))},[s,pe,ge]),je=n.useCallback(function(e){var n=e.target.value;ne(n),null==E||E(n)},[E]);n.useEffect(function(){var e=function(e){se.current&&!se.current.contains(e.target)&&(J(!1),ne(""))};return q&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[q]),n.useEffect(function(){null==z||z(q),q&&v&&setTimeout(function(){var e;return null===(e=de.current)||void 0===e?void 0:e.focus()},0)},[q,v,z]);var _e,Ce=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&&ye(fe[re])}else"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),J(!0))},[q,re,fe,ye]),we=function(n){return T?T({value:n.value,label:n.label,onClose:function(e){return xe(e,n.value)},disabled:s}):e.jsxs(ft,{className:"select-tag",$disabled:s,$styles:null==w?void 0:w.tag,children:[e.jsx("span",{children:n.label}),!s&&e.jsx(ht,{className:"select-tag-close",onClick:function(e){return xe(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,a=S?S(n):e.jsxs(e.Fragment,{children:[r&&pe&&e.jsx(Ct,{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(_t,{className:"select-option ".concat(r?"select-option-selected":""," ").concat(i?"select-option-active":""),$selected:r,$active:i,$disabled:!!n.disabled,$styles:null==w?void 0:w.option,onClick:function(){return ye(n)},onMouseEnter:function(){return ie(t)},children:a},n.value)},ze=pe?Array.isArray(ue)&&ue.length>0:""!==ue&&null!=ue,Ee=x&&!s&&ze&&!d&&oe,Se=V&&!d&&!Ee;return e.jsx(at,{ref:se,className:"select-wrapper ".concat(R),$styles:null==w?void 0:w.wrapper,style:m({width:C},H),children:e.jsxs(ot,{children:[O&&e.jsx(lt,{className:"select-label ".concat(M),style:m({marginRight:"number"==typeof L?"".concat(L,"px"):L},I),children:O}),e.jsxs("div",{style:{flex:1,position:"relative"},children:[e.jsxs(st,{className:"select-selector ".concat(_?"select-selector-".concat(_):""," ").concat(q?"select-selector-open":""," ").concat(s?"select-selector-disabled":""),$disabled:s,$loading:d,$size:_,$open:q,$styles:null==w?void 0:w.selector,onClick:function(){return!s&&!d&&J(!q)},onKeyDown:Ce,onMouseEnter:function(){return le(!0)},onMouseLeave:function(){return le(!1)},tabIndex:s?-1:0,role:"combobox","aria-expanded":q,"aria-haspopup":"listbox",children:[e.jsx(ct,{children:function(){if(v&&q){var n=pe?"搜索...":String((null==he?void 0:he.label)||h);return e.jsx(gt,{ref:de,type:"text",value:ee,onChange:je,placeholder:n,onClick:function(e){return e.stopPropagation()}})}if(pe){var t=he;return t.length>0?e.jsx(pt,{children:t.map(we)}):e.jsx(dt,{children:h})}var r=he;return r?e.jsx(ut,{children:r.label}):e.jsx(dt,{children:h})}()}),e.jsxs(mt,{children:[Ee&&e.jsx(vt,{className:"select-clear",onClick:be,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(xt,{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"})})}),Se&&e.jsx(yt,{className:"select-arrow ".concat(q?"select-arrow-open":""),$open:q,children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M7 10l5 5 5-5z"})})})]})]}),(_e=e.jsx(bt,{ref:ce,className:"select-dropdown",$open:q,$styles:null==w?void 0:w.dropdown,children:e.jsx(jt,{$maxHeight:U,children:fe.length>0?fe.map(Ne):e.jsx(wt,{className:"select-empty",children:Y})})}),G?G()?_e:null:_e)]})]})})},zt=function(t){var r=t.value,i=t.options,a=t.onChange,o=n.useState(!1),l=o[0],s=o[1],c=n.useRef(null),d=n.useRef(null),u=n.useState({}),p=u[0],h=u[1],g=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,a=(null===(n=d.current)||void 0===n?void 0:n.offsetHeight)||200,o=t.left+t.width/2-i/2+window.scrollX,l=r-t.bottom,s=l>=a||l>=t.top;h(s?{top:t.bottom+window.scrollY+6,left:o,width:"auto",minWidth:Math.max(i,120)}:{top:t.top+window.scrollY-a-6,left:o,width:"auto",minWidth:Math.max(i,120)})}},[]);n.useEffect(function(){var e=function(e){c.current&&!c.current.contains(e.target)&&s(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),n.useEffect(function(){if(l){g();var e=function(){return g()};return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[l,g]);return e.jsxs("div",{className:"zjpcy-page-size-select",ref:c,children:[e.jsxs("div",{className:f.default("zjpcy-page-size-select-trigger",{"zjpcy-page-size-select-trigger-open":l}),onClick:function(){s(!l),l||setTimeout(g,0)},children:[e.jsxs("span",{className:"zjpcy-page-size-select-value",children:[r," 条/页"]}),e.jsx("svg",{className:"zjpcy-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"})})]}),l&&e.jsx("div",{className:"zjpcy-page-size-select-dropdown zjpcy-page-size-select-dropdown-open",ref:d,style:p,children:i.map(function(n){var t="number"==typeof n?n:parseInt(n,10);return e.jsxs("div",{className:f.default("zjpcy-page-size-select-option",{"zjpcy-page-size-select-option-selected":r===t}),onClick:function(){return a(t),void s(!1)},children:[n," 条/页"]},n)})})]})},Et=function(t){var r=t.total,i=void 0===r?0:r,a=t.current,o=t.pageSize,l=void 0===o?10:o,s=t.onChange,c=t.pageSizeOptions,d=void 0===c?["10","20","50","100"]:c,u=t.showSizeChanger,p=void 0!==u&&u,h=t.showQuickJumper,g=void 0!==h&&h,m=t.showTotal,v=t.size,y=void 0===v?"default":v,x=t.align,b=t.className,j=void 0===b?"":b,_=t.style,C=n.useState(1),w=C[0],N=C[1],z=n.useState(l),E=z[0],S=z[1],T=n.useRef(!0),O=void 0!==a?a:w,k=void 0!==l?l:E,L=Math.ceil(i/k),A=n.useRef(s);A.current=s,n.useEffect(function(){void 0!==l&&S(l)},[l]),n.useEffect(function(){void 0!==a&&N(a)},[a]),n.useEffect(function(){if(T.current)T.current=!1;else if(O>L&&L>0){var e=L;void 0===a&&N(e),A.current&&A.current(e,k)}},[O,L,a,k]);var M=function(e){e===O||e<1||e>L||(void 0===a&&N(e),s&&s(e,k))},I=(O-1)*k+1,D=Math.min(O*k,i),R="center"===x?"zjpcy-pagination-align-center":"flex-end"===x?"zjpcy-pagination-align-right":"";return e.jsxs("div",{className:f.default("zjpcy-pagination",{"zjpcy-pagination-mini":"small"===y},R,j),style:_,children:[m&&e.jsx("div",{className:"zjpcy-pagination-total-text",children:m(i,[I,D])}),e.jsxs("ul",{className:"zjpcy-pagination-list",children:[e.jsx("li",{className:"zjpcy-pagination-prev ".concat(O<=1?"zjpcy-pagination-prev-disabled":""),onClick:function(){O>1&&M(O-1)},children:e.jsx(B,{type:"arrowLeft"})}),function(){if(L<=7)return Array.from({length:L},function(e,n){return n+1});var e=[];if(e.push(1),O<=4){for(var n=2;n<=5;n++)e.push(n);e.push("..."),e.push(L)}else if(O>=L-3){e.push("...");for(n=L-4;n<=L-1;n++)e.push(n);e.push(L)}else{e.push("...");for(n=O-1;n<=O+1;n++)e.push(n);e.push("..."),e.push(L)}return e}().map(function(n,t){return e.jsx("li",{className:"number"==typeof n?"zjpcy-pagination-item ".concat(n===O?"zjpcy-pagination-item-active":""):"zjpcy-pagination-ellipsis",onClick:function(){return"number"==typeof n&&M(n)},children:n},t)}),e.jsx("li",{className:"zjpcy-pagination-next ".concat(O>=L?"zjpcy-pagination-next-disabled":""),onClick:function(){O<L&&M(O+1)},children:e.jsx(B,{type:"arrowRight"})})]}),(p||g)&&e.jsxs("div",{className:"zjpcy-pagination-options",children:[p&&e.jsx(zt,{value:k,options:d,onChange:function(e){return function(e){var n=parseInt(e,10);void 0===l&&S(n),void 0===a&&N(1),s&&s(1,n)}(e.toString())}}),g&&e.jsxs("div",{className:"zjpcy-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<=L&&(M(t),n.value="")}},placeholder:"页码"}),"页"]})]})]})},St=function(t){var r=t.children,i=t.title,a=t.placement,l=void 0===a?"top":a,s=t.trigger,c=void 0===s?"hover":s,d=t.delay,u=void 0===d?100:d,p=t.open,f=t.backgroundColor,h=t.style,g=void 0===h?{}:h,v=t.className,y=void 0===v?"":v,x=n.useState(!1),b=x[0],j=x[1],_=n.useState(!1),C=_[0],w=_[1],N=n.useState({top:0,left:0}),z=N[0],E=N[1],S=n.useRef(null),T=n.useRef(null),O=n.useRef(null),k=n.useRef(null),L=void 0!==p,A=(L?p:b)||C,M=n.useCallback(function(){if(S.current&&T.current){var e=S.current.getBoundingClientRect(),n=T.current.getBoundingClientRect(),t=0,r=0;switch(l){case"top":t=e.top-n.height-8,r=e.left+(e.width-n.width)/2;break;case"bottom":t=e.bottom+8,r=e.left+(e.width-n.width)/2;break;case"left":t=e.top+(e.height-n.height)/2,r=e.left-n.width-8;break;case"right":t=e.top+(e.height-n.height)/2,r=e.right+8}E({top:t,left:r})}},[l]),I=n.useCallback(function(){i&&(k.current&&(clearTimeout(k.current),k.current=null),L||(j(!0),requestAnimationFrame(function(){w(!0)})))},[i,L]),D=n.useCallback(function(){L||(w(!1),k.current=setTimeout(function(){j(!1),k.current=null},200))},[L]),R=n.useCallback(function(e){if("click"===c&&!L&&b){var n=e.target;S.current&&!S.current.contains(n)&&T.current&&!T.current.contains(n)&&D()}},[c,L,b,D]);n.useEffect(function(){L&&(p?(k.current&&(clearTimeout(k.current),k.current=null),requestAnimationFrame(function(){w(!0)})):(w(!1),k.current=setTimeout(function(){k.current=null},200)))},[p,L]),n.useEffect(function(){if(A){requestAnimationFrame(M);var e=function(){return M()},n=function(){return M()};return window.addEventListener("resize",e),window.addEventListener("scroll",n,!0),"click"!==c||L||document.addEventListener("click",R),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",n,!0),"click"!==c||L||document.removeEventListener("click",R)}}},[A,l,c,L,M,R]),n.useEffect(function(){return function(){O.current&&clearTimeout(O.current),k.current&&clearTimeout(k.current)}},[]);var H=A&&i&&e.jsxs("div",{ref:T,className:"zjpcy-tooltip zjpcy-tooltip-".concat(l," ").concat(C?"is-visible":""," ").concat(y),style:m({position:"fixed",top:z.top,left:z.left,zIndex:1e3,backgroundColor:f},g),onMouseEnter:"hover"!==c||L?void 0:function(){k.current&&(clearTimeout(k.current),k.current=null),j(!0),w(!0)},onMouseLeave:"hover"!==c||L?void 0:D,children:[e.jsx("div",{className:"zjpcy-tooltip-content",children:i}),e.jsx("div",{className:"zjpcy-tooltip-arrow",style:{backgroundColor:f}})]});return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:S,onMouseEnter:"hover"===c?function(){"hover"!==c||L||(O.current&&clearTimeout(O.current),O.current=setTimeout(function(){I(),O.current=null},u))}:void 0,onMouseLeave:"hover"===c?function(){"hover"!==c||L||(O.current&&(clearTimeout(O.current),O.current=null),D())}:void 0,onClick:"click"===c?function(){"click"!==c||L||(b?D():I())}:void 0,style:{display:"inline-block"},children:r}),H&&o.createPortal(H,document.body)]})},Tt=n.createContext(void 0),Ot=function(t){var r,i=t.value,a=t.checked,o=t.defaultChecked,l=void 0!==o&&o,s=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.indeterminate,p=void 0!==u&&u,h=t.children,g=t.className,v=t.style,y=t.label,x=t.labelGap,j=void 0===x?8:x,_=t.labelClassName,C=void 0===_?"":_,w=t.labelStyle,N=n.useContext(Tt),z=!!N,E=n.useState(l),S=E[0],T=E[1],O=z?null===(r=N.value)||void 0===r?void 0:r.includes(i):void 0!==a?a:S;n.useEffect(function(){z||void 0===a||T(a)},[a,z]);var k=d||z&&N.disabled,L=f.default("zjpcy-checkbox",{"zjpcy-checkbox--checked":O,"zjpcy-checkbox--disabled":k,"zjpcy-checkbox--indeterminate":p,"zjpcy-checkbox--disabled-checked":k&&O,"zjpcy-checkbox--disabled-indeterminate":k&&p},g);return e.jsx("label",{className:L,style:v,children:e.jsxs("div",{className:"zjpcy-checkbox-wrapper",style:{display:"flex",alignItems:"center"},children:[y&&e.jsx("div",{className:"zjpcy-checkbox-label ".concat(C),style:m({marginRight:"number"==typeof j?"".concat(j,"px"):j},w),children:y}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[e.jsx("input",{type:"checkbox",className:"zjpcy-checkbox__input",checked:O,onChange:function(e){var n,t=e.target.checked;if(!(d||z&&N.disabled))if(z){var r=N.value||[],a=void 0;a=t?b(b([],r,!0),[i],!1):r.filter(function(e){return e!==i}),null===(n=N.onChange)||void 0===n||n.call(N,a)}else T(t),null==s||s(t,i)},disabled:d||z&&N.disabled,value:i,ref:function(e){e&&(e.indeterminate=p)}}),e.jsx("span",{className:"zjpcy-checkbox__inner"}),h&&e.jsx("span",{className:"zjpcy-checkbox__label",children:h})]})]})})};Ot.Group=function(t){var r=t.value,i=t.defaultValue,a=void 0===i?[]:i,o=t.onChange,l=t.disabled,s=void 0!==l&&l,c=t.options,d=t.children,u=t.className,p=t.style,h=t.layout,g=void 0===h?"vertical":h,v=t.gap,y=void 0===v?8:v,x=n.useState(a||[]),b=x[0],j=x[1];n.useEffect(function(){void 0!==r&&j(r)},[r]);var _=f.default("zjpcy-checkbox-group",{"zjpcy-checkbox-group--horizontal":"horizontal"===g},u),C=m(m({},p),{gap:"number"==typeof y?"".concat(y,"px"):y});return e.jsx(Tt.Provider,{value:{value:void 0!==r?r:b,onChange:function(e){j(e),null==o||o(e)},disabled:s},children:e.jsx("div",{className:_,style:C,children:c?c.map(function(n,t){var r;return e.jsx(Ot,{value:n.value,disabled:n.disabled||s,children:n.label},null!==(r=n.value)&&void 0!==r?r:t)}):d})})},Ot.displayName="Checkbox",Ot.Group.displayName="Checkbox.Group";var kt=Ot,Lt=function(n){var t=n.id,r=n.record,i=n.rowIndex,a=n.allColumns,o=n.renderTableCell,l=n.isRowSelectionEnabled,d=n.rowSelection,u=n.selectedRowKeys,p=void 0===u?[]:u,h=n.handleRowSelect,g=s.useSortable({id:t}),v=g.attributes,y=g.listeners,x=g.setNodeRef,b=g.transform,j=g.transition,_=g.isDragging,C={transform:c.CSS.Transform.toString(b),transition:j,opacity:_?.5:1,cursor:"grab"};return e.jsxs("tr",m({ref:x,style:C},v,y,{className:f.default("zjpcy-table-sortable-row",{"zjpcy-table-sortable-row-dragging":_}),"data-dragging":_,children:[l&&function(){var n,a=p.includes(t),o=null===(n=null==d?void 0:d.getCheckboxProps)||void 0===n?void 0:n.call(d,r,i),l=(null==o?void 0:o.disabled)||!1,s={width:(null==d?void 0:d.columnWidth)||"50px",textAlign:"center",backgroundColor:"white"};return e.jsx("td",{style:s,children:"checkbox"===(null==d?void 0:d.type)?e.jsx(kt,{checked:a,disabled:l,onChange:function(e){return null==h?void 0:h(r,i,e)}}):e.jsx(rt,{checked:a,disabled:l,onChange:function(){return null==h?void 0:h(r,i,!a)}})},"zjpcy-table-sortable-selection-".concat(t))}(),a.map(function(e,n){return o(e,r,i,n,a)})]}))},At=function(t){var r=t.dataSource,i=void 0===r?[]:r,a=t.columns,o=void 0===a?[]:a,c=t.bordered,d=void 0!==c&&c,u=t.scroll,h=void 0===u?{}:u,g=t.rowKey,y=void 0===g?"key":g,x=t.className,j=void 0===x?"":x,_=t.pagination,C=t.empty,w=t.loading,N=void 0!==w&&w,z=t.loadingText,E=void 0===z?"加载中...":z,S=t.loadingDelay,T=t.draggable,O=void 0!==T&&T,k=t.onDragEnd,L=t.rowSelection,A=n.useState([]),M=A[0],I=A[1],D=n.useState([]),R=D[0],H=D[1],P=n.useState([]),V=P[0],U=P[1],F=n.useState([]),Y=F[0],G=F[1],$=n.useState(1),W=$[0],K=$[1],Z=n.useState(10),X=Z[0],q=Z[1],J=n.useState(N),Q=J[0],ee=J[1],ne=n.useState(i),te=ne[0],re=ne[1],ie=n.useRef(null),ae=n.useRef(null),oe=n.useRef(null),le=n.useRef(null),se=n.useRef(null),ce=n.useRef(0),de=n.useRef(!1),ue=n.useRef(null),pe=n.useRef(0),fe=n.useState(null),he=fe[0],ge=fe[1],me=n.useState(""),ye=me[0],xe=me[1],be=null==L?void 0:L.type,je="checkbox"===be||"radio"===be,_e=n.useState((null==L?void 0:L.defaultSelectedRowKeys)||[]),Ce=_e[0],we=_e[1],Ne=void 0!==(null==L?void 0:L.selectedRowKeys)?L.selectedRowKeys:Ce;n.useEffect(function(){re(i)},[i]),n.useEffect(function(){return ie.current&&(clearTimeout(ie.current),ie.current=null),N&&S&&S>0?(ee(!0),ie.current=setTimeout(function(){ee(!1)},S)):ee(N),function(){ie.current&&clearTimeout(ie.current)}},[N,S]),n.useEffect(function(){_&&"object"==typeof _&&(void 0!==_.current&&K(_.current),void 0!==_.pageSize&&q(_.pageSize))},[_&&"object"==typeof _?_.current:void 0,_&&"object"==typeof _?_.pageSize:void 0]),n.useEffect(function(){return function(){se.current&&cancelAnimationFrame(se.current),ue.current&&clearTimeout(ue.current)}},[]);var ze=function(e){return e?"number"==typeof e?e:parseInt(e,10)||0:0};n.useEffect(function(){var e=[],n=[],t=[],r=[];o.forEach(function(i,a){var o=ze(i.width);r[a]=o;var l=m(m({},i),{_index:a});"start"===i.fixed||!0===i.fixed?e.push(l):"end"===i.fixed?n.push(l):t.push(l)}),I(e),H(n),U(t),G(r),requestAnimationFrame(function(){Ee.current(0)})},[o]);var Ee=n.useRef(function(e){ae.current&&ae.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,a=r.right;"auto"!==i&&"0px"!==i?t.style.transform="translateX(".concat(e,"px)"):"auto"!==a&&"0px"!==a&&(t.style.transform="translateX(".concat(-e,"px)"))})}),Se=function(e,n,t){se.current&&cancelAnimationFrame(se.current),se.current=requestAnimationFrame(function(){n&&n.scrollLeft!==t&&(n.scrollLeft=t),Ee.current(t),se.current=null})},Te=function(e,n){var t=n||X,r=t!==X?1:e;K(r),q(t),_&&"function"==typeof _.onChange&&_.onChange(r,n)},Oe=function(e,n){if(void 0===e&&(e=W),void 0===n&&(n=X),!1===_)return null;var t,r=void 0!==(null==_?void 0:_.total)?_.total:te.length,i=Math.ceil(r/n)||1,a=Math.min(e,i);if(void 0!==(null==_?void 0:_.total))t=te;else{var o=(a-1)*n,l=o+n;t=te.slice(o,l)}return{data:t,total:r,pageSize:n,current:a,totalPages:i}},ke=function(e,n){return"function"==typeof y?y(e,n):e[y]||n},Le=function(){var e=Oe();return(e?e.data:te).map(function(e,n){var t,r=ke(e,n),i=null===(t=null==L?void 0:L.getCheckboxProps)||void 0===t?void 0:t.call(L,e,n);return{key:r,disabled:null==i?void 0:i.disabled}}).filter(function(e){return!e.disabled}).map(function(e){return e.key})},Ae=function(){var e=Le();if(0===e.length)return!1;var n=e.filter(function(e){return Ne.includes(e)}).length;return n>0&&n<e.length},Me=function(e,n,t){var r,i,a,o=ke(e,n);i="radio"===be?t?[o]:[]:t?b(b([],Ne,!0),[o],!1):Ne.filter(function(e){return e!==o}),a=te.filter(function(e){var n="function"==typeof y?y(e,te.indexOf(e)):e[y];return i.includes(n)}),we(i),null===(r=null==L?void 0:L.onChange)||void 0===r||r.call(L,i,a)},Ie=function(){var n,t={width:(null==L?void 0:L.columnWidth)||"50px",textAlign:"center",backgroundColor:"#fafafa !important",top:0};return e.jsx("th",{style:t,children:"checkbox"===be?e.jsx(kt,{checked:(n=Le(),0!==n.length&&n.every(function(e){return Ne.includes(e)})),indeterminate:Ae(),onChange:function(e){return function(e){var n,t,r=Oe(),i=r?r.data:te;if(e){var a=i.map(function(e,n){var t,r=ke(e,n),i=null===(t=null==L?void 0:L.getCheckboxProps)||void 0===t?void 0:t.call(L,e,n);return{key:r,disabled:null==i?void 0:i.disabled}}).filter(function(e){return!e.disabled}).map(function(e){return e.key}),o=b(b([],Ne.filter(function(e){return!i.some(function(n,t){return ke(n,t)===e})}),!0),a,!0),l=te.filter(function(e){var n="function"==typeof y?y(e,te.indexOf(e)):e[y];return o.includes(n)});we(o),null===(n=null==L?void 0:L.onChange)||void 0===n||n.call(L,o,l)}else{var s=i.map(function(e,n){return ke(e,n)}),c=Ne.filter(function(e){return!s.includes(e)});l=te.filter(function(e){var n="function"==typeof y?y(e,te.indexOf(e)):e[y];return c.includes(n)}),we(c),null===(t=null==L?void 0:L.onChange)||void 0===t||t.call(L,c,l)}}(e)}}):(null==L?void 0:L.columnTitle)||""},"zjpcy-table-selection-header")},De=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(De).join("");if("object"==typeof e&&!p.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);if(void 0!==e.value)return String(e.value);if(void 0!==e.text)return String(e.text);try{return JSON.stringify(e)}catch(e){return""}}if(p.default.isValidElement(e)){var n=e.props;if(n.children)return De(n.children);if(void 0!==n.title)return String(n.title);if(void 0!==n.label)return String(n.label);if(void 0!==n.value)return String(n.value);if(void 0!==n.alt)return String(n.alt)}return""},Re=function(e,n,t){ge({rowIndex:e,colKey:n}),xe(String(t||""))},He=function(e,n){n.onSave&&n.onSave(e,ye),ge(null),xe("")},Pe=function(){ge(null),xe("")},Ve=function(n,t){var r,i=ke(n,t),a=Ne.includes(i),o=null===(r=null==L?void 0:L.getCheckboxProps)||void 0===r?void 0:r.call(L,n,t),l=(null==o?void 0:o.disabled)||!1,s={width:(null==L?void 0:L.columnWidth)||"50px",textAlign:"center",backgroundColor:"white"};return e.jsx("td",{style:s,children:"checkbox"===be?e.jsx(kt,{checked:a,disabled:l,onChange:function(e){return Me(n,t,e)}}):e.jsx(rt,{checked:a,disabled:l,onChange:function(){return Me(n,t,!a)}})},"zjpcy-table-selection-".concat(i))},Be=function(n,t,r,i,a,o){if(void 0===o&&(o=!1),o)return Ve(t,r);var l={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"white"};if("start"===n.fixed||!0===n.fixed){l.position="sticky";var s=0;je&&(s+=ze((null==L?void 0:L.columnWidth)||"50px"));for(var c=0;c<i;c++)s+=Y[c]||0;l.left="".concat(s,"px"),l.zIndex=5}else if("end"===n.fixed){l.position="sticky";var d=0;for(c=a.length-1;c>i;c--)d+=Y[c]||0;l.right="".concat(d,"px"),l.zIndex=5}var u=M.length?M.length-1:-1,f=R.length?M.length+V.length:-1,h=("start"===n.fixed||!0===n.fixed)&&i===u,g="end"===n.fixed&&i===f,m=n.key||n.dataIndex||n._index,v=(null==he?void 0:he.rowIndex)===r&&(null==he?void 0:he.colKey)===String(m),y=n.dataIndex?t[n.dataIndex]:null;n.render&&(y=n.render(y,t,r));var x=y;if(null!==y&&"object"==typeof y&&!p.default.isValidElement(y))if(void 0!==y.name)x=String(y.name);else if(void 0!==y.label)x=String(y.label);else if(void 0!==y.title)x=String(y.title);else try{x=JSON.stringify(y)}catch(e){x=""}var b=n.maxLines&&n.maxLines>0,j="";if(n.tooltip&&!v&&!(j=De(x))&&n.dataIndex){var _=t[n.dataIndex];j="object"==typeof _?De(_):String(_||"")}if(n.editable&&v)return e.jsx("td",{style:l,className:"".concat(h?"zjpcy-table-fixed-left-shadow":"").concat(g?" zjpcy-table-fixed-right-shadow":""),children:e.jsxs("div",{className:"zjpcy-table-edit-cell",onClick:function(e){return e.stopPropagation()},children:[e.jsx("input",{type:"text",className:"zjpcy-table-edit-input",value:ye,onChange:function(e){return xe(e.target.value)},autoFocus:!0,onClick:function(e){return e.stopPropagation()}}),e.jsxs("div",{className:"zjpcy-table-edit-actions",children:[e.jsx("span",{className:"zjpcy-table-edit-icon zjpcy-edit-submit",onClick:function(){return He(t,n)},title:"保存",children:e.jsx(B,{type:"check",size:24,color:"#339af0"})}),e.jsx("span",{className:"zjpcy-table-edit-icon zjpcy-edit-cancel",onClick:Pe,title:"取消",children:e.jsx(B,{type:"close",size:24,color:"#339af0"})})]})]})},n.key||n.dataIndex||n._index);var C=b?e.jsx("div",{className:"zjpcy-table-cell-ellipsis",style:{WebkitLineClamp:n.maxLines},children:x}):x,w=j?e.jsx(St,{title:j,placement:"top",delay:0,children:e.jsx("span",{className:"zjpcy-table-cell-tooltip-wrapper",children:C})}):C;return e.jsxs("td",{style:l,onClick:n.editable?function(){return Re(r,String(m),y)}:void 0,className:"".concat(h?"zjpcy-table-fixed-left-shadow":"").concat(g?" zjpcy-table-fixed-right-shadow":"").concat(b?" zjpcy-table-cell-has-ellipsis":"").concat(n.editable?" zjpcy-table-editable-cell":""),children:[w,n.editable&&e.jsx("span",{className:"zjpcy-table-edit-icon-wrapper",children:e.jsx(B,{type:"edit",size:16,color:"#339af0"})})]},n.key||n.dataIndex||n._index)},Ue=l.useSensors(l.useSensor(l.PointerSensor,{activationConstraint:{distance:8}}),l.useSensor(l.KeyboardSensor,{coordinateGetter:s.sortableKeyboardCoordinates})),Fe=function(e){var n=e.active,t=e.over;if(t&&n.id!==t.id){var r=Oe(),i=r?r.data:te,a=i.findIndex(function(e,t){return String(ke(e,t))===String(n.id)}),o=i.findIndex(function(e,n){return String(ke(e,n))===String(t.id)});if(-1!==a&&-1!==o){var l=s.arrayMove(i,a,o);if(r&&_&&"object"==typeof _&&void 0===_.total){var c=(r.current-1)*r.pageSize,d=b([],te,!0);l.forEach(function(e,n){d[c+n]=e}),re(d),k&&k(d)}else re(l),k&&k(l)}}},Ye={width:h.x?"number"==typeof h.x?"".concat(h.x,"px"):h.x:"100%"},Ge={maxHeight:h.y?"number"==typeof h.y?"".concat(h.y,"px"):h.y:"auto",overflowY:h.y?"auto":"visible",overflowX:h.x?"auto":"visible"},$e=b(b(b([],M,!0),V,!0),R,!0),We=n.useMemo(function(){return Oe()},[te,_,X,W]),Ke=We?We.data:te;return e.jsxs("div",{ref:ae,className:f.default("custom-table-container",{"custom-table-bordered":d,"custom-table-draggable":O},j),style:Ye,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"})]})}),E&&e.jsx("div",{className:"custom-table-loading-text",children:E})]})}),e.jsx("div",{className:"custom-table-header",ref:oe,onScroll:function(e){if(oe.current&&le.current){var n=e.target;if(n===oe.current){var t=n.scrollLeft;de.current=!0,ue.current&&clearTimeout(ue.current),ue.current=setTimeout(function(){de.current=!1},150),Math.abs(t-ce.current)>.5&&(ce.current=t,pe.current=t,Se(oe.current,le.current,t))}}},children:e.jsxs("table",{className:f.default("custom-table",{"custom-table-bordered-body":d,"custom-table-header-separator":!d}),children:[e.jsxs("colgroup",{children:[je&&e.jsx("col",{style:{width:(null==L?void 0:L.columnWidth)||"50px"}},"header-selection-col"),$e.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.jsxs("tr",{children:[je&&Ie(),$e.map(function(n,t){return function(n,t,r,i){if(void 0===i&&(i=!1),i)return Ie();var a={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"#fafafa !important",top:0};if("start"===n.fixed||!0===n.fixed){a.position="sticky";var o=0;je&&(o+=ze((null==L?void 0:L.columnWidth)||"50px"));for(var l=0;l<t;l++)o+=Y[l]||0;a.left="".concat(o,"px"),a.zIndex=10}else if("end"===n.fixed){a.position="sticky";var s=0;for(l=r.length-1;l>t;l--)s+=Y[l]||0;a.right="".concat(s,"px"),a.zIndex=10}return e.jsx("th",{style:a,children:n.title||""},n.key||n.dataIndex||n._index)}(n,t,$e)})]})})]})}),e.jsx("div",{className:"custom-table-body",ref:le,style:Ge,onScroll:function(e){if(oe.current&&le.current){var n=e.target;if(n===le.current){var t=n.scrollLeft;de.current=!0,ue.current&&clearTimeout(ue.current),ue.current=setTimeout(function(){de.current=!1},150),Math.abs(t-ce.current)>.5&&(ce.current=t,pe.current=t,Se(le.current,oe.current,t))}}},children:function(){var n=e.jsxs("table",{className:f.default("custom-table",{"custom-table-bordered-body":d,"custom-table-header-separator":!d}),children:[e.jsxs("colgroup",{children:[je&&e.jsx("col",{style:{width:(null==L?void 0:L.columnWidth)||"50px"}},"body-selection-col"),$e.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:O?Ke.map(function(n,t){return e.jsx(Lt,{id:String(ke(n,t)),record:n,rowIndex:t,columns:o,columnWidths:Y,fixedLeftColumns:M,fixedRightColumns:R,normalColumns:V,allColumns:$e,editingCell:he,editingValue:ye,handleEdit:Re,handleSave:He,handleCancel:Pe,setEditingValue:xe,renderTableCell:Be,isRowSelectionEnabled:je,rowSelection:L,selectedRowKeys:Ne,handleRowSelect:Me},ke(n,t))}):Ke.map(function(n,t){return e.jsxs("tr",{children:[je&&Ve(n,t),$e.map(function(e,r){return Be(e,n,t,r,$e)})]},ke(n,t))})})]});if(O){var t=Ke.map(function(e,n){return String(ke(e,n))});return e.jsx(l.DndContext,{sensors:Ue,collisionDetection:l.closestCenter,onDragEnd:Fe,children:e.jsx(s.SortableContext,{items:t,strategy:s.verticalListSortingStrategy,children:n})})}return n}()}),0===Ke.length&&e.jsx("div",{className:"custom-table-empty",children:C||e.jsx(ve,{size:"small",description:"暂无数据"})}),function(){if(!1===_||!We)return null;var n=We.total,t=We.current,r=We.pageSize,i=v(_||{},["onChange","pageSize","current"]);return e.jsx("div",{className:"custom-table-pagination-wrapper",children:e.jsx(Et,m({total:n,current:t,pageSize:r,onChange:Te,showTotal:function(e,n){return"第 ".concat(n[0],"-").concat(n[1]," 条,共 ").concat(e," 条")},showSizeChanger:!0,showQuickJumper:!0,align:"flex-end"},i))})}()]})};function Mt(e){return hn({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 It=function(t){var r=t.showAfter,i=void 0===r?100:r,a=t.bottom,o=void 0===a?30:a,l=t.right,s=void 0===l?30:l,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,y=t.containerRef,x=t.icon,b=n.useState(!1),j=b[0],_=b[1],C=n.useRef(null),w=n.useCallback(function(){(null==y?void 0:y.current)?y.current.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"}),null==v||v()},[v,y]);if(n.useEffect(function(){var e=function(){var e=0;e=(null==y?void 0:y.current)?y.current.scrollTop:window.pageYOffset,_(e>i)};if(null==y?void 0:y.current){var n=y.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,y]),!j)return null;var N=e.jsx(Mt,{size:Math.floor(.5*d)}),z=.5*d;return(null==y?void 0:y.current)?e.jsx("div",{ref:C,className:"top-button-wrapper-container",style:{position:"sticky",bottom:"".concat(o,"px"),marginLeft:"auto",width:"".concat(d,"px"),height:"".concat(d,"px"),right:"".concat(s,"px"),zIndex:10},children:e.jsx("button",{className:"top-button",onClick:w,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:h,color:p,boxShadow:m,padding:0,border:"none"},children:x?e.jsx("span",{style:{width:z,height:z,display:"flex",alignItems:"center",justifyContent:"center"},children:x}):N})}):e.jsx("div",{ref:C,className:"top-button-wrapper",style:{position:"fixed",bottom:"".concat(o,"px"),right:"".concat(s,"px"),zIndex:1e3},children:e.jsx("button",{className:"top-button",onClick:w,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:h,color:p,boxShadow:m,padding:0,border:"none"},children:x?e.jsx("span",{style:{width:z,height:z,display:"flex",alignItems:"center",justifyContent:"center"},children:x}):N})})},Dt=function(n){var t=n.children,r=n.width,i=n.rows,a=n.style,o=n.className,l=m(m({},a),{width:r}),s=["zjpcy-typography",function(e){return e?"zjpcy-typography--line-clamp-".concat(e):""}(i),o].filter(Boolean);return e.jsx("div",{className:s.join(" "),style:l,children:t})},Rt=function(t){var r=t.items,i=t.columns,a=void 0===i?3:i,o=t.gutter,l=void 0===o?20:o,s=t.className,c=t.style,d=t.classNames,u=void 0===d?{}:d,p=t.styles,f=void 0===p?{}:p,h=t.onLayoutChange,g=n.useRef(null),v=n.useState(3),y=v[0],x=v[1],b=n.useState(20),j=b[0],_=b[1],C=function(e,n,t){if(null!==e&&"object"==typeof e&&!Array.isArray(e)){for(var r=e,i=0,a=Object.keys(r).map(Number).sort(function(e,n){return n-e});i<a.length;i++){var o=a[i];if(t>=o&&r.hasOwnProperty(o))return r[o]}return n}return e};n.useEffect(function(){var e,n=function(){clearTimeout(e),e=window.setTimeout(function(){if(g.current){var e=g.current.offsetWidth,n=C(a,3,e),t=C(l,20,e);x(n),_(t),h&&h(n,r)}},100)};return n(),window.addEventListener("resize",n),function(){clearTimeout(e),window.removeEventListener("resize",n)}},[a,l,r,h]);var w=n.useMemo(function(){var e=Array.from({length:y},function(){return[]});return r.filter(function(n){return!(void 0!==n.column&&n.column>=0&&n.column<y)||(e[n.column].push(n),!1)}).forEach(function(n,t){e[t%y].push(n)}),e},[r,y]),N=function(e,n){var t=u[e];return"function"==typeof t?t(n):t||""},z=function(e,n){var t=f[e];return"function"==typeof t?t(n):t||{}};return e.jsx("div",{ref:g,className:"zjpcy-masonry ".concat(s||""," ").concat(N("container",0)),style:m(m({display:"flex",gap:"".concat(j,"px")},c),z("container",0)),children:w.map(function(n,t){return e.jsx("div",{className:"zjpcy-masonry-column ".concat(N("column",t)),style:m({flex:1,display:"flex",flexDirection:"column",gap:"".concat(j,"px")},z("column",t)),children:n.map(function(n,t){return e.jsx("div",{className:"zjpcy-masonry-item ".concat(N("item",t)),style:m({},z("item",t)),children:n.content},n.key)})},"column-".concat(t))})})},Ht=function(n){var t=n.children,r=n.gap,i=void 0===r?12:r,a=n.align,o=void 0===a?"center":a,l=n.wrap,s=void 0===l?"nowrap":l,c=n.className,d=n.style,u=void 0===d?{}:d,f=n.inline,h=void 0!==f&&f,g=n.as,v=void 0===g?"div":g,y=p.default.Children.toArray(t).filter(function(e){return null!=e});return 0===y.length?null:e.jsx(v,{className:"space ".concat(h?"space-inline":""," ").concat(c||""),style:m({display:h?"inline-flex":"flex",gap:"number"==typeof i?"".concat(i,"px"):i,alignItems:function(){switch(o){case"start":return"flex-start";case"end":return"flex-end";case"center":default:return"center";case"baseline":return"baseline";case"stretch":return"stretch"}}(),flexWrap:s},u),children:y.map(function(n,t){return e.jsx("span",{className:"space-item",children:n},t)})})},Pt=function(){return null},Vt=function(t){var r=t.className,i=t.style,a=t.children,o=t.offsetTop,l=void 0===o?0:o,s=t.affix,c=void 0===s||s,d=t.bounds,u=void 0===d?5:d,f=t.getContainer,h=void 0===f?function(){return window.document.documentElement}:f,g=t.onChange,v=n.useState(""),y=v[0],x=v[1],j=n.useState([]),_=j[0],C=j[1],w=n.useRef(null),N=n.useRef(null),z=n.useRef(""),E=n.useRef(!1),S=n.useRef("");n.useEffect(function(){z.current=y},[y]);var T=function(){var e=h(),n=e===window.document.documentElement||e===document.body,t=!1,r=_.map(function(r){var i=document.querySelector(r.href);if(i){var a=i.getBoundingClientRect(),o=0;if(n)o=a.top+window.scrollY-l;else{var s=e.getBoundingClientRect();o=a.top-s.top+e.scrollTop-l}if(Math.abs(o-r.top)>1)return t=!0,m(m({},r),{top:o})}return r});t&&C(r)},O=function(){if(!E.current&&0!==_.length){for(var e=h(),n=(e===window.document.documentElement||e===document.body?window.scrollY:e.scrollTop)+l+u,t="",r=b([],_,!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(S.current){var a=r.find(function(e){return e.href===S.current});if(a)return void(Math.abs(n-a.top)<50&&(S.current!==z.current&&(x(S.current),z.current=S.current,null==g||g(S.current)),S.current=""))}t!==z.current&&(x(t),z.current=t,null==g||g(t))}};n.useEffect(function(){var e=function(e){var n=[],t=function(e){if(p.default.isValidElement(e)){var r=e;if(r.type===Pt&&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}(a);C(e)},[a]),n.useEffect(function(){T(),O();var e=h();N.current=function(){O()},e.addEventListener("scroll",N.current);var n=function(){T(),O()};return window.addEventListener("resize",n),function(){N.current&&e.removeEventListener("scroll",N.current),window.removeEventListener("resize",n)}},[_,l,u,h,g]);var k="zjpcy-anchor ".concat(r||""," ").concat(c?"zjpcy-anchor-affix":"");return e.jsx("div",{ref:w,className:k,style:i,children:e.jsx("ul",{className:"zjpcy-anchor-list",children:_.map(function(n){return e.jsx("li",{className:"zjpcy-anchor-link ".concat(y===n.href?"zjpcy-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();E.current=!0,S.current=n,x(n),z.current=n,g&&g(n),setTimeout(function(){if(r!==window.document.documentElement&&r!==document.body){var e=r.getBoundingClientRect(),n=(i=t.getBoundingClientRect()).top-e.top+r.scrollTop-l;r&&"function"==typeof r.scrollTo&&r.scrollTo({top:n,behavior:"smooth"})}else{var i=t.getBoundingClientRect(),a=window.pageYOffset||document.documentElement.scrollTop;n=i.top+a-l,window.scrollTo({top:n,behavior:"smooth"})}setTimeout(function(){E.current=!1},1500)},0)}}(e,n.href)},className:"zjpcy-anchor-link-a",children:n.title})},n.href)})})})};Vt.Link=Pt;var Bt=Vt,Ut=function(n){var t=n.items,r=n.separator,i=void 0===r?"/":r,a=n.className,o=void 0===a?"":a;return t&&0!==t.length?e.jsx("nav",{className:"breadcrumb ".concat(o),"aria-label":"breadcrumb",children:e.jsx("ol",{className:"breadcrumb-list",children:t.map(function(n,r){var a=r===t.length-1;return e.jsx("li",{className:"breadcrumb-item",children:a?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 Ft=e=>"string"==typeof e,Yt=()=>{let e,n;const t=new Promise((t,r)=>{e=t,n=r});return t.resolve=e,t.reject=n,t},Gt=e=>null==e?"":""+e,$t=/###/g,Wt=e=>e&&e.indexOf("###")>-1?e.replace($t,"."):e,Kt=e=>!e||Ft(e),Zt=(e,n,t)=>{const r=Ft(n)?n.split("."):n;let i=0;for(;i<r.length-1;){if(Kt(e))return{};const n=Wt(r[i]);!e[n]&&t&&(e[n]=new t),e=Object.prototype.hasOwnProperty.call(e,n)?e[n]:{},++i}return Kt(e)?{}:{obj:e,k:Wt(r[i])}},Xt=(e,n,t)=>{const{obj:r,k:i}=Zt(e,n,Object);if(void 0!==r||1===n.length)return void(r[i]=t);let a=n[n.length-1],o=n.slice(0,n.length-1),l=Zt(e,o,Object);for(;void 0===l.obj&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),l=Zt(e,o,Object),l?.obj&&void 0!==l.obj[`${l.k}.${a}`]&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=t},qt=(e,n)=>{const{obj:t,k:r}=Zt(e,n);if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r]},Jt=(e,n,t)=>{for(const r in n)"__proto__"!==r&&"constructor"!==r&&(r in e?Ft(e[r])||e[r]instanceof String||Ft(n[r])||n[r]instanceof String?t&&(e[r]=n[r]):Jt(e[r],n[r],t):e[r]=n[r]);return e},Qt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var er={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const nr=e=>Ft(e)?e.replace(/[&<>"'\/]/g,e=>er[e]):e;const tr=[" ",",","?","!",";"],rr=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),ir=(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,a="";for(let o=e;o<r.length;++o)if(o!==e&&(a+=t),a+=r[o],n=i[a],void 0!==n){if(["string","number","boolean"].indexOf(typeof n)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=n}return i},ar=e=>e?.replace("_","-"),or={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 lr{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||or,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:(Ft(e[0])&&(e[0]=`${t}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new lr(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new lr(this.logger,e)}}var sr=new lr;class cr{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 dr extends cr{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,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,n],t&&(Array.isArray(t)?o.push(...t):Ft(t)&&i?o.push(...t.split(i)):o.push(t)));const l=qt(this.data,o);return!l&&!n&&!t&&e.indexOf(".")>-1&&(e=o[0],n=o[1],t=o.slice(2).join(".")),!l&&a&&Ft(t)?ir(this.data?.[e]?.[n],t,i):l}addResource(e,n,t,r,i={silent:!1}){const a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let o=[e,n];t&&(o=o.concat(a?t.split(a):t)),e.indexOf(".")>-1&&(o=e.split("."),r=n,n=o[1]),this.addNamespaces(n),Xt(this.data,o,r),i.silent||this.emit("added",e,n,t,r)}addResources(e,n,t,r={silent:!1}){for(const r in t)(Ft(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,a={silent:!1,skipCopy:!1}){let o=[e,n];e.indexOf(".")>-1&&(o=e.split("."),r=t,t=n,n=o[1]),this.addNamespaces(n);let l=qt(this.data,o)||{};a.skipCopy||(t=JSON.parse(JSON.stringify(t))),r?Jt(l,t,i):l={...l,...t},Xt(this.data,o,l),a.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 ur={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 pr=Symbol("i18next/PATH_KEY");function fr(e,n){const{[pr]:t}=e(function(){const e=[],n=Object.create(null);let t;return n.get=(r,i)=>(t?.revoke?.(),i===pr?e:(e.push(i),t=Proxy.revocable(r,n),t.proxy)),Proxy.revocable(Object.create(null),n).proxy}());return t.join(n?.keySeparator??".")}const hr={},gr=e=>!Ft(e)&&"boolean"!=typeof e&&"number"!=typeof e;class mr extends cr{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=sr.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=gr(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 a=t&&e.indexOf(t)>-1,o=!(this.options.userDefinedKeySeparator||n.keySeparator||this.options.userDefinedNsSeparator||n.nsSeparator||((e,n,t)=>{n=n||"",t=t||"";const r=tr.filter(e=>n.indexOf(e)<0&&t.indexOf(e)<0);if(0===r.length)return!0;const i=rr.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let a=!i.test(e);if(!a){const n=e.indexOf(t);n>0&&!i.test(e.substring(0,n))&&(a=!0)}return a})(e,t,r));if(a&&!o){const n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:Ft(i)?[i]:i};const a=e.split(t);(t!==r||t===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:Ft(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=fr(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],r),s=l[l.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:`${s}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${c}${o}`:i?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:o;const p=this.resolve(e,r);let f=p?.res;const h=p?.usedKey||o,g=p?.exactUsedKey||o,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==r.count&&!Ft(r.count),x=mr.hasDefaultValue(r),b=y?this.pluralResolver.getSuffix(d,r.count,r):"",j=r.ordinal&&y?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",_=y&&!r.ordinal&&0===r.count,C=_&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${b}`]||r[`defaultValue${j}`]||r.defaultValue;let w=f;v&&!f&&x&&(w=C);const N=gr(w),z=Object.prototype.toString.apply(w);if(!(v&&w&&N&&["[object Number]","[object Function]","[object RegExp]"].indexOf(z)<0)||Ft(m)&&Array.isArray(w))if(v&&Ft(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)&&x&&(n=!0,f=C),this.isValidLookup(f)||(i=!0,f=o);const l=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,u=x&&C!==f&&this.options.updateMissing;if(i||n||u){if(this.logger.log(u?"updateKey":"missingKey",d,s,o,u?C:f),a){const e=this.resolve(o,{...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=x&&t!==f?t:l;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,u,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,u,r),this.emit("missingKey",e,s,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,r);_&&r[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{t([e],o+n,r[`defaultValue${n}`]||C)})}):t(e,o,C))}f=this.extendTranslation(f,e,r,p,t),i&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${s}${c}${o}`),(i||n)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${o}`:o,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,w,{...r,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(p.res=e,p.usedParams=this.getUsedParamsDetails(r),p):e}if(a){const e=Array.isArray(w),n=e?[]:{},t=e?g:h;for(const e in w)if(Object.prototype.hasOwnProperty.call(w,e)){const i=`${t}${a}${e}`;n[e]=x&&!f?this.translate(i,{...r,defaultValue:gr(C)?C[e]:void 0,joinArrays:!1,ns:l}):this.translate(i,{...r,joinArrays:!1,ns:l}),n[e]===i&&(n[e]=w[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 a=Ft(e)&&(void 0!==t?.interpolation?.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let o;if(a){const n=e.match(this.interpolator.nestingRegexp);o=n&&n.length}let l=t.replace&&!Ft(t.replace)?t.replace:t;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,t.lng||this.language||r.usedLng,t),a){const n=e.match(this.interpolator.nestingRegexp);o<(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 a=t.postProcess||this.options.postProcess,o=Ft(a)?[a]:a;return null!=e&&o?.length&&!1!==t.applyPostProcessor&&(e=ur.handle(o,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(t)},...t}:t,this)),e}resolve(e,n={}){let t,r,i,a,o;return Ft(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const l=this.extractFromKey(e,n),s=l.key;r=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==n.count&&!Ft(n.count),u=d&&!n.ordinal&&0===n.count,p=void 0!==n.context&&(Ft(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)||(o=e,hr[`${f[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(o)||(hr[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" 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;a=r;const o=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,s,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)&&o.push(s+e.replace(i,this.options.pluralSeparator)),o.push(s+e),u&&o.push(s+t)),p){const r=`${s}${this.options.contextSeparator||"_"}${n.context}`;o.push(r),d&&(n.ordinal&&0===e.indexOf(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),u&&o.push(r+t))}}let l;for(;l=o.pop();)this.isValidLookup(t)||(i=l,t=this.getResource(r,e,l,n))}))})}),{res:t,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}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&&!Ft(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 vr{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=sr.create("languageUtils")}getScriptPartFromCode(e){if(!(e=ar(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=ar(e))||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ft(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)),Ft(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 Ft(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))):Ft(e)&&i(this.formatLanguageCode(e)),t.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}const yr={zero:0,one:1,two:2,few:3,many:4,other:5},xr={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class br{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=sr.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const t=ar("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 a;try{a=new Intl.PluralRules(t,{type:r})}catch(t){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),xr;if(!e.match(/-|_/))return xr;const r=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(r,n)}return this.pluralRulesCache[i]=a,a}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)=>yr[e]-yr[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 jr=(e,n,t,r=".",i=!0)=>{let a=((e,n,t)=>{const r=qt(e,t);return void 0!==r?r:qt(n,t)})(e,n,t);return!a&&i&&Ft(t)&&(a=ir(e,t,r),void 0===a&&(a=ir(n,t,r))),a},_r=e=>e.replace(/\$/g,"$$$$");class Cr{constructor(e={}){this.logger=sr.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:a,suffix:o,suffixEscaped:l,formatSeparator:s,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:nr,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Qt(i):a||"{{",this.suffix=o?Qt(o):l||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=u?Qt(u):p||Qt("$t("),this.nestingSuffix=f?Qt(f):h||Qt(")"),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,a,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=e=>{if(e.indexOf(this.formatSeparator)<0){const i=jr(n,l,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),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(jr(n,l,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,t,{...r,...n,interpolationkey:a})};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=>_r(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?_r(this.escape(e)):_r(e)}].forEach(n=>{for(o=0;i=n.regex.exec(e);){const t=i[1].trim();if(a=s(t),void 0===a)if("function"==typeof c){const n=c(e,i,r);a=Ft(n)?n:""}else if(r&&Object.prototype.hasOwnProperty.call(r,t))a="";else{if(d){a=i[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating ${e}`),a=""}else Ft(a)||this.useRawValueToEscape||(a=Gt(a));const l=n.safeValue(a);if(e=e.replace(i[0],l),d?(n.regex.lastIndex+=a.length,n.regex.lastIndex-=i[0].length):n.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n,t={}){let r,i,a;const o=(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,a);const o=i.match(/'/g),l=i.match(/"/g);((o?.length??0)%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),n&&(a={...n,...a})}catch(n){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,n),`${e}${t}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let l=[];a={...t},a=a.replace&&!Ft(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const s=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==s&&(l=r[1].slice(s).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,s)),i=n(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!Ft(i))return i;Ft(i)||(i=Gt(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),l.length&&(i=l.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 wr=e=>{const n={};return(t,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const o=r+JSON.stringify(a);let l=n[o];return l||(l=e(ar(r),i),n[o]=l),l(t)}},Nr=e=>(n,t,r)=>e(ar(t),r)(n);class zr{constructor(e={}){this.logger=sr.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const t=n.cacheInBuiltFormats?wr:Nr;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()]=wr(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:a}=(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,""),a=n.trim();t[a]||(t[a]=i),"false"===i&&(t[a]=!1),"true"===i&&(t[a]=!0),isNaN(i)||(t[a]=parseInt(i,10))}})}return{formatName:n,formatOptions:t}})(n);if(this.formats[i]){let n=e;try{const o=r?.formatParams?.[r.interpolationkey]||{},l=o.locale||o.lng||r.locale||r.lng||t;n=this.formats[i](e,l,{...a,...r,...o})}catch(e){this.logger.warn(e)}return n}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class Er extends cr{constructor(e,n,t,r={}){super(),this.backend=e,this.store=n,this.services=t,this.languageUtils=t.languageUtils,this.options=r,this.logger=sr.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={},a={},o={},l={};return e.forEach(e=>{let r=!0;n.forEach(n=>{const o=`${e}|${n}`;!t.reload&&this.store.hasResourceBundle(e,n)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===a[o]&&(a[o]=!0):(this.state[o]=1,r=!1,void 0===a[o]&&(a[o]=!0),void 0===i[o]&&(i[o]=!0),void 0===l[n]&&(l[n]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,t){const r=e.split("|"),i=r[0],a=r[1];n&&this.emit("failedLoading",i,a,n),!n&&t&&this.store.addResourceBundle(i,a,t,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&t&&(this.state[e]=0);const o={};this.queue.forEach(t=>{((e,n,t)=>{const{obj:r,k:i}=Zt(e,n,Object);r[i]=r[i]||[],r[i].push(t)})(t.loaded,[i],a),((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=>{o[e]||(o[e]={});const n=t.loaded[e];n.length&&n.forEach(n=>{void 0===o[e][n]&&(o[e][n]=!0)})}),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,n,t,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:n,fcName:t,tried:r,wait:i,callback:a});this.readingCalls++;const o=(o,l)=>{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)}o&&l&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,n,t,r+1,2*i,a)},i):a(o,l)},l=this.backend[t].bind(this.backend);if(2!==l.length)return l(e,n,o);try{const t=l(e,n);t&&"function"==typeof t.then?t.then(e=>o(null,e)).catch(o):o(null,t)}catch(e){o(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();Ft(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ft(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,a)=>{t&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,t),!t&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,a),this.loaded(e,t,a)})}saveMissing(e,n,t,r,i,a={},o=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(n)){if(null!=t&&""!==t){if(this.backend?.create){const l={...a,isUpdate:i},s=this.backend.create.bind(this.backend);if(s.length<6)try{let i;i=5===s.length?s(e,n,t,r,l):s(e,n,t,r),i&&"function"==typeof i.then?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else s(e,n,t,r,o,l)}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 Sr=()=>({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]),Ft(e[1])&&(n.defaultValue=e[1]),Ft(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}),Tr=e=>(Ft(e.ns)&&(e.ns=[e.ns]),Ft(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ft(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),Or=()=>{};class kr extends cr{constructor(e={},n){var t;if(super(),this.options=Tr(e),this.services={},this.logger=sr,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&&(Ft(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const t=Sr();this.options={...t,...this.options,...Tr(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?sr.init(r(this.modules.logger),this.options):sr.init(null,this.options),e=this.modules.formatter?this.modules.formatter:zr;const n=new vr(this.options);this.store=new dr(this.options.resources,this.options);const i=this.services;i.logger=sr,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new br(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 Cr(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Er(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 mr(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=Or),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=Yt(),a=()=>{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?a():setTimeout(a,0),i}loadResources(e,n=Or){let t=n;const r=Ft(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=Yt();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=Or),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&&ur.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=Yt();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,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,t.resolve((...e)=>this.t(...e)),n&&n(i,(...e)=>this.t(...e))},a=n=>{e||n||!this.services.languageDetector||(n=[]);const t=Ft(n)?n:n&&n[0],a=this.store.hasLanguageSomeTranslations(t)?t:this.services.languageUtils.getBestMatchFromCodes(Ft(n)?[n]:n);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};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(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),t}getFixedT(e,n,t){const r=(e,n,...i)=>{let a;a="object"!=typeof n?this.options.overloadTranslationOptionHandler([e,n].concat(i)):{...n},a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||t||r.keyPrefix);const o=this.options.keySeparator||".";let l;return a.keyPrefix&&Array.isArray(e)?l=e.map(e=>("function"==typeof e&&(e=fr(e,{...this.options,...n})),`${a.keyPrefix}${o}${e}`)):("function"==typeof e&&(e=fr(e,{...this.options,...n})),l=a.keyPrefix?`${a.keyPrefix}${o}${e}`:e),this.t(l,a)};return Ft(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 a=(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,a);if(void 0!==e)return e}return!!this.hasResourceBundle(t,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(t,e)||r&&!a(i,e)))}loadNamespaces(e,n){const t=Yt();return this.options.ns?(Ft(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=Yt();Ft(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 vr(Sr());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 kr(e,n);return t.createInstance=kr.createInstance,t}cloneInstance(e={},n=Or){const t=e.forkResourceStore;t&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new kr(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 dr(e,r),i.services.resourceStore=i.store}if(e.interpolation){const n={...Sr().interpolation,...this.options.interpolation,...e.interpolation},t={...r,interpolation:n};i.services.interpolator=new Cr(t)}return i.translator=new mr(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 Lr=kr.createInstance(),Ar={},Mr=(e,n,t,r)=>{Hr(t)&&Ar[t]||(Hr(t)&&(Ar[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);Hr(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))},Ir=(e,n)=>()=>{if(e.isInitialized)n();else{const t=()=>{setTimeout(()=>{e.off("initialized",t)},0),n()};e.on("initialized",t)}},Dr=(e,n,t)=>{e.loadNamespaces(n,Ir(e,t))},Rr=(e,n,t,r)=>{if(Hr(t)&&(t=[t]),e.options.preload&&e.options.preload.indexOf(n)>-1)return Dr(e,t,r);t.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(n,Ir(e,r))},Hr=e=>"string"==typeof e,Pr=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Vr={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Br=e=>Vr[e];let Ur={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Pr,Br),transDefaultProps:void 0};let Fr;const Yr={type:"3rdParty",init(e){((e={})=>{Ur={...Ur,...e}})(e.options.react),(e=>{Fr=e})(e)}},Gr=n.createContext();class $r{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Wr,Kr={exports:{}},Zr={};var Xr,qr={};"production"===process.env.NODE_ENV?Kr.exports=function(){if(Wr)return Zr;Wr=1;var e=p.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,a=e.useDebugValue;function o(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var l=n(),s=t({inst:{value:l,getSnapshot:n}}),c=s[0].inst,d=s[1];return i(function(){c.value=l,c.getSnapshot=n,o(c)&&d({inst:c})},[e,l,n]),r(function(){return o(c)&&d({inst:c}),e(function(){o(c)&&d({inst:c})})},[e]),a(l),l};return Zr.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,Zr}():Kr.exports=(Xr||(Xr=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=p.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,a=n.useLayoutEffect,o=n.useDebugValue,l=!1,s=!1,c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(c,d){l||void 0===n.startTransition||(l=!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(!s){var p=d();t(u,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s=!0)}var f=(p=r({inst:{value:u,getSnapshot:d}}))[0].inst,h=p[1];return a(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]),o(u),u};qr.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())}()),qr);var Jr=Kr.exports;const Qr={t:(e,n)=>{return Hr(n)?n:"object"==typeof(t=n)&&null!==t&&Hr(n.defaultValue)?n.defaultValue:Array.isArray(e)?e[e.length-1]:e;var t},ready:!1},ei=()=>()=>{},ni=(e,t={})=>{const{i18n:r}=t,{i18n:i,defaultNS:a}=n.useContext(Gr)||{},o=r||i||Fr;o&&!o.reportNamespaces&&(o.reportNamespaces=new $r),o||Mr(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=n.useMemo(()=>({...Ur,...o?.options?.react,...t}),[o,t]),{useSuspense:s,keyPrefix:c}=l,d=e||a||o?.options?.defaultNS,u=Hr(d)?[d]:d||["translation"],p=n.useMemo(()=>u,u);o?.reportNamespaces?.addUsedNamespaces?.(p);const f=n.useRef(0),h=n.useCallback(e=>{if(!o)return ei;const{bindI18n:n,bindI18nStore:t}=l,r=()=>{f.current+=1,e()};return n&&o.on(n,r),t&&o.store.on(t,r),()=>{n&&n.split(" ").forEach(e=>o.off(e,r)),t&&t.split(" ").forEach(e=>o.store.off(e,r))}},[o,l]),g=n.useRef(),m=n.useCallback(()=>{if(!o)return Qr;const e=!(!o.isInitialized&&!o.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}}):(Mr(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0))(e,o,l)),n=t.lng||o.language,r=f.current,i=g.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;const a={t:o.getFixedT(n,"fallback"===l.nsMode?p:p[0],c),ready:e,lng:n,keyPrefix:c,revision:r};return g.current=a,a},[o,p,c,l,t.lng]),[v,y]=n.useState(0),{t:x,ready:b}=Jr.useSyncExternalStore(h,m,m);n.useEffect(()=>{if(o&&!b&&!s){const e=()=>y(e=>e+1);t.lng?Rr(o,t.lng,p,e):Dr(o,p,e)}},[o,t.lng,p,b,s,v]);const j=o||{},_=n.useRef(null),C=n.useRef(),w=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=j,n=e?.language;let t=e;e&&(_.current&&_.current.__original===e?C.current!==n?(t=w(e),_.current=t,C.current=n):t=_.current:(t=w(e),_.current=t,C.current=n));const r=[x,t,b];return r.t=x,r.i18n=t,r.ready=b,r},[x,j,b,j.resolvedLanguage,j.language,j.languages]);if(o&&s&&!b)throw new Promise(e=>{const n=()=>e();t.lng?Rr(o,t.lng,p,n):Dr(o,p,n)});return N};function ti({i18n:e,defaultNS:t,children:r}){const i=n.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return n.createElement(Gr.Provider,{value:i},r)}var ri={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行"},ii={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"};Lr.use(Yr).init({resources:{"zh-CN":{translation:ri},"en-US":{translation:ii}},lng:"zh-CN",fallbackLng:"zh-CN",interpolation:{escapeValue:!1}});var ai=function(n){var t=n.children,r=n.locale,i=n.resources;return p.default.useEffect(function(){i&&Object.keys(i).forEach(function(e){var n=i[e];Object.keys(n).forEach(function(t){var r=n[t];Lr.addResourceBundle(e,t,r,!0)})})},[i]),p.default.useEffect(function(){r&&r!==Lr.language&&Lr.changeLanguage(r)},[r]),e.jsx(ti,{i18n:Lr,children:t})},oi=function(t){var r=t.items,i=t.type,a=void 0===i?"text":i,o=t.children,l=t.trigger,s=void 0===l?"click":l,c=t.placement,d=void 0===c?"bottom":c,u=t.disabled,p=void 0!==u&&u,h=t.open,m=t.ellipsis,v=void 0===m||m,y=t.className,x=t.style,b=t.contentStyles,j=t.getContainer,_=t.onVisibleChange,C=t.onChange,w=void 0!==h,N=n.useState(!1),z=N[0],E=N[1],S=n.useState(!1),T=S[0],O=S[1],k=w?h:z,L=n.useRef(null),A=n.useRef(null),M=n.useRef(null);n.useEffect(function(){return function(){M.current&&clearTimeout(M.current)}},[]),n.useEffect(function(){var e=function(e){L.current&&!L.current.contains(e.target)&&I()};return k&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[k,_,w]);var I=function(){O(!0),M.current&&clearTimeout(M.current),M.current=setTimeout(function(){O(!1),w||E(!1),null==_||_(!1)},200)},D=function(){M.current&&(clearTimeout(M.current),M.current=null),O(!1),w||E(!0),null==_||_(!0)},R=function(){p||"click"===s&&(k||T?I():D())},H=function(){p||"hover"!==s||D()},P=function(){p||"hover"!==s||I()};return e.jsx("div",{ref:L,className:f.default("dropdown",y,{"dropdown--disabled":p}),style:x,children:e.jsxs("div",{className:"dropdown-content-wrapper",children:["button"===a?e.jsx(pe,{variant:"secondary",size:"medium",disabled:p,onClick:R,icon:"caret-down",children:o||"Dropdown"}):e.jsxs("div",{ref:A,className:f.default("dropdown-trigger",{"dropdown-trigger--text":"text"===a,"dropdown-trigger--disabled":p}),onClick:R,onMouseEnter:H,onMouseLeave:P,children:[o||"Dropdown",e.jsx(B,{type:"caret-down",className:"dropdown-arrow"})]}),function(){if(!r||0===r.length||!k&&!T)return null;var n=e.jsx("div",{className:f.default("dropdown-menu-wrapper",{"dropdown-menu-visible":k&&!T,"dropdown-menu-closing":T}),children:e.jsx("div",{className:f.default("dropdown-menu dropdown-menu--".concat(d," dropdown-menu--p-").concat(d)),children:e.jsx("ul",{className:"dropdown-list",style:b,children:r.map(function(n){return e.jsxs("li",{className:f.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==C||C(e),I())}(n)},children:[n.icon&&e.jsx("span",{className:"dropdown-item-icon",children:"string"==typeof n.icon?e.jsx(B,{type:n.icon}):n.icon}),e.jsx("span",{className:f.default("dropdown-item-label",{"dropdown-item-label--with-width":(null==b?void 0:b.width)&&!v,"dropdown-item-label--ellipsis":(null==b?void 0:b.width)&&v}),children:n.label})]},n.key)})})})});if(j){var t=j();if(t)return g.default.createPortal(n,t)}return n}()]})})},li=function(e){var n,t=e.trim();return t&&(null===(n=Array.from(t)[0])||void 0===n?void 0:n.toUpperCase())||""},si=p.default.memo(function(t){var r,i,a,o=t.item,l=t.level,s=t.mode,c=t.collapsed,d=t.theme,u=t.openKeySet,p=t.selectedKey,h=t.onItemClick,g=t.onToggleOpen,m=!!o.children&&o.children.length>0,v=u.has(o.key),y=p===o.key,x="horizontal"===s,b="inline"===s,j="vertical-flat"===s,_=0===l,C=n.useCallback(function(e){e.stopPropagation(),o.disabled||(m&&!j&&g(o.key),j&&m||h(o,o.key))},[o,h,g,m,j]),w=x&&_?16:b?12+24*l:c?0:12+16*l,N=v&&(!c||x),z=function(e){var t=n.useState(e),r=t[0],i=t[1],a=n.useState(e),o=a[0],l=a[1];return n.useEffect(function(){var n;return e?(l(!0),n=requestAnimationFrame(function(){i(!0)})):(i(!1),n=setTimeout(function(){l(!1)},150)),function(){"number"==typeof n?cancelAnimationFrame(n):clearTimeout(n)}},[e]),{isVisible:r,shouldRender:o}}(N&&x&&_),E=z.isVisible,S=z.shouldRender,T=m&&(!c||!_)&&!j,O=d||"light",k=f.default("zjpcy-menu-item-wrapper",{"zjpcy-menu-item-wrapper-root":_,"zjpcy-menu-item-wrapper-collapsed":c&&_}),L=f.default("zjpcy-menu-item",((r={})["zjpcy-menu-item-".concat(O)]=!0,r["zjpcy-menu-item-".concat(O,"-selected")]=y,r["zjpcy-menu-item-".concat(O,"-selected-vertical")]=y&&("vertical"===s||"inline"===s||"vertical-flat"===s),r["zjpcy-menu-item-disabled"]=o.disabled,r["zjpcy-menu-item-has-children"]=m,r["zjpcy-menu-item-has-children-selected"]=m&&y,r["zjpcy-menu-item-".concat(O,"-has-children")]=m,r["zjpcy-menu-item-root"]=_,r["zjpcy-menu-item-collapsed"]=c&&_,r)),A=f.default("zjpcy-menu-item-icon",{"zjpcy-menu-item-icon-collapsed":c}),M=f.default("zjpcy-menu-item-arrow",{"zjpcy-menu-item-arrow-open":N,"zjpcy-menu-item-arrow-horizontal":x,"zjpcy-menu-item-arrow-horizontal-open":N&&x}),I=f.default("zjpcy-menu-submenu-wrapper",((i={})["zjpcy-menu-submenu-wrapper-".concat(s)]=!0,i["zjpcy-menu-submenu-wrapper-horizontal-popup"]=x&&_,i["zjpcy-menu-submenu-wrapper-vertical-flat"]=j,i["zjpcy-menu-submenu-wrapper-vertical-flat-container"]=j,i));return e.jsxs("div",{className:k,children:[e.jsx("div",{className:L,style:{padding:"0px ".concat(w,"px")},title:c&&_?o.label:void 0,onClick:C,children:e.jsxs("div",{className:"zjpcy-menu-item-content",children:[c?e.jsx(e.Fragment,{children:o.icon?e.jsx("span",{className:A,children:o.icon}):e.jsx("span",{className:"zjpcy-menu-item-collapsed-label",children:li(o.label)})}):e.jsxs(e.Fragment,{children:[o.icon&&e.jsx("span",{className:"zjpcy-menu-item-icon",children:o.icon}),e.jsxs("div",{className:"zjpcy-menu-item-text",children:[e.jsx("span",{className:"zjpcy-menu-item-label",children:o.label}),o.description&&!m&&e.jsx("span",{className:"zjpcy-menu-item-description",children:o.description})]})]}),T&&e.jsx("span",{className:M,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&&(!x||!_||S)&&e.jsx("div",{className:I,children:e.jsx("div",{className:j?"zjpcy-menu-submenu-vertical-flat zjpcy-menu-submenu-vertical-flat-open":x&&_?f.default("zjpcy-menu-submenu-horizontal-popup",{"zjpcy-menu-submenu-horizontal-popup-open":E}):b?f.default("zjpcy-menu-submenu-inline",{"zjpcy-menu-submenu-inline-open":N}):f.default("zjpcy-menu-submenu-vertical",{"zjpcy-menu-submenu-vertical-open":N}),children:e.jsx("div",{className:"zjpcy-menu-submenu-content",children:null===(a=o.children)||void 0===a?void 0:a.map(function(n){return e.jsx(si,{item:n,level:l+1,mode:s,collapsed:c,theme:d,openKeySet:u,selectedKey:p,onItemClick:h,onToggleOpen:g},n.key)})})})})]})});si.displayName="MenuItemComponent";var ci,di,ui,pi,fi,hi,gi,mi,vi,yi,xi,bi,ji,_i,Ci,wi,Ni,zi,Ei,Si,Ti,Oi,ki,Li,Ai,Mi,Ii=function(t){var r,i=t.mode,a=void 0===i?"vertical":i,o=t.items,l=t.className,s=void 0===l?"":l,c=t.style,d=t.selectedKey,u=t.defaultOpenKeys,p=void 0===u?[]:u,h=t.openKeys,g=t.collapsed,m=void 0!==g&&g,v=t.open,y=t.theme,x=void 0===y?"light":y,j=t.onChange,_=t.onOpenChange,C=n.useRef(null),w=n.useState(!0)[0],N=n.useState(p),z=N[0],E=N[1],S=n.useState(""),T=S[0],O=S[1],k=void 0!==h,L=void 0!==d,A=k?h:z,M=L?d:T,I=void 0!==v?v:w,D=n.useMemo(function(){return new Set(A)},[A]);n.useEffect(function(){void 0!==d&&O(d)},[d]),n.useEffect(function(){if(M&&!k&&"horizontal"!==a&&"vertical-flat"!==a){var e=function(n,t,r){void 0===r&&(r=[]);for(var i=0,a=n;i<a.length;i++){var o=a[i];if(o.key===t)return r;if(o.children&&o.children.length>0){var l=e(o.children,t,b(b([],r,!0),[o.key],!1));if(l.length>0)return l}}return[]},n=e(o,M);n.length>0&&E(function(e){var t=new Set(b(b([],e,!0),n,!0));return Array.from(t)})}},[M,o,k,a]);var R,H,P=n.useCallback(function(e,n){L||O(n),null==j||j(e,n),"horizontal"===a&&(!e.children||0===e.children.length)&&A.length>0&&(k||E([]),null==_||_([]))},[j,L,a,A.length,k,_]),V=n.useCallback(function(e){if(k){var n=D.has(e)?A.filter(function(n){return n!==e}):b(b([],A,!0),[e],!1);null==_||_(n)}else E(function(n){var t=n.includes(e)?n.filter(function(n){return n!==e}):b(b([],n,!0),[e],!1);return null==_||_(t),t})},[D,A,k,_]),B="horizontal"!==a&&m;if(R=C,H=n.useCallback(function(){"horizontal"===a&&A.length>0&&(k||E([]),null==_||_([]))},[a,A.length,k,_]),n.useEffect(function(){var e=function(e){R.current&&!R.current.contains(e.target)&&H(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[R,H]),!I)return null;var U=f.default("zjpcy-menu","zjpcy-menu-".concat(x),((r={})["zjpcy-menu-".concat(a)]=!0,r["zjpcy-menu-".concat(a,"-collapsed")]=B,r["zjpcy-menu-dark-vertical-flat"]="dark"===x&&"vertical-flat"===a,r),s);return e.jsx("div",{ref:C,className:U,style:c,role:"menu",children:o.map(function(n){return e.jsx(si,{item:n,level:0,mode:a,collapsed:B,theme:x,openKeySet:D,selectedKey:M,onItemClick:P,onToggleOpen:V},n.key)})})},Di=function(t){var r=t.value,i=void 0===r?0:r,a=t.count,o=void 0===a?5:a,l=t.allowHalf,s=void 0===l||l,c=t.disabled,d=void 0!==c&&c,u=t.color,p=void 0===u?"#1677ff":u,h=t.onChange,g=t.className,m=void 0===g?"":g,v=t.size,y=void 0===v?24:v,x=t.chats,b=n.useState(0),j=b[0],_=b[1],C=n.useRef([]),w=n.useRef(0),N=Array.isArray(x)&&x.length>=o&&x.every(function(e){return null!=e&&""!==e}),z=n.useState([]),E=z[0],S=z[1],T=n.useState(!1),O=T[0],k=T[1];C.current.length!==o&&(C.current=Array(o).fill(null)),n.useEffect(function(){if(N)if("string"==typeof i&&i.length>0){var e=Math.min(i.length,o);S(x.slice(0,e))}else S([]);else S([])},[i,N,x,o]),n.useLayoutEffect(function(){0===j&&O&&k(!1)},[j,O]);var L=j||(N?E.length:parseFloat(Number(i).toFixed(1)||"0")),A=n.useCallback(function(e){return function(n){C.current[e]=n}},[]),M=n.useMemo(function(){return Array.from({length:o}).map(function(e,n){var t=n+1,r=!1,i=!1;N?r=n<(O&&j>0?j:E.length):L>=t?r=!0:s&&L>n&&L<t&&(i=!0);return{index:n,isHalf:i,isFull:r,iconType:i?"half":r?"full":"empty",iconColor:r||i?p:"#d9d9d9"}})},[o,L,s,p,N,E.length,O,j]),I=function(n){if(N){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!==w.current&&(w.current=t,_(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);S(r),null==h||h(r.join(""))}else null==h||h(t.toString());_(0),w.current=0,k(!1)}},children:t})}return e.jsxs(e.Fragment,{children:[e.jsx(B,{type:"starOutline",size:y,color:"#d9d9d9",className:"rate-star-bg"}),e.jsx("span",{className:"rate-star-left",onMouseEnter:function(e){if(!d&&s){e.stopPropagation();var t=n.index+.5;t!==w.current&&(w.current=t,_(t))}},onClick:function(e){!d&&s&&(e.stopPropagation(),null==h||h((n.index+.5).toString()),_(0),w.current=0,k(!1))}}),e.jsx("span",{className:"rate-star-right",onMouseEnter:function(e){if(!d){e.stopPropagation();var t=n.index+1;t!==w.current&&(w.current=t,_(t))}},onClick:function(e){if(!d){if(e.stopPropagation(),N){var t=x.slice(0,n.index+1);null==h||h(t.join(""))}else null==h||h((n.index+1).toString());_(0),w.current=0,k(!1)}}}),e.jsx("span",{className:f.default("rate-star-fill",{"rate-star-fill-half":n.isHalf,"rate-star-fill-full":n.isFull,"rate-star-fill-empty":!n.isHalf&&!n.isFull}),style:{color:n.iconColor},children:e.jsx(B,{type:"star",size:y,color:n.iconColor,className:"rate-star-icon"})})]})};return e.jsx("div",{className:f.default("rate",{"rate-disabled":d,"rate-chats-mode":N,"rate-chats-mode-disabled":N&&d,"rate-star-mode":!N},m),style:{"--rate-color":p},onMouseEnter:function(){d||k(!0)},onMouseLeave:function(){d||(k(!1),_(0),w.current=0)},children:M.map(function(n){return e.jsx("span",{ref:A(n.index),className:"rate-star",style:{fontSize:"".concat(y,"px")},children:I(n)},n.index)})})},Ri=function(t){var r,i=t.min,a=void 0===i?0:i,o=t.max,l=void 0===o?100:o,s=t.step,c=void 0===s?1:s,d=t.value,u=t.defaultValue,p=void 0===u?0:u,f=t.disabled,h=void 0!==f&&f,g=t.marks,v=void 0===g?{}:g,y=t.showValue,x=void 0!==y&&y,b=t.trackColor,j=void 0===b?"#1890ff":b,_=t.handleColor,C=void 0===_?"#1890ff":_,w=t.gradient,N=t.onChange,z=t.onAfterChange,E=t.className,S=void 0===E?"":E,T=t.style,O=n.useState(p),k=O[0],L=O[1],A=n.useState(!1),M=A[0],I=A[1],D=n.useRef(null),R=n.useRef(null),H=n.useRef(void 0!==d?d:p),P=void 0!==d,V=P?d:k;n.useEffect(function(){H.current=V},[V]);var B=n.useCallback(function(e){var n=(e-a)/(l-a);return Math.max(0,Math.min(1,n))},[a,l]),U=n.useCallback(function(e){var n=Math.max(0,Math.min(1,e)),t=a+n*(l-a);if(c>0){var r=Math.round(t/c)*c;return Math.min(l,Math.max(a,r))}return Math.min(l,Math.max(a,t))},[a,l,c]),F=function(e){return"touches"in e?e.touches[0].clientX:e.clientX},Y=n.useCallback(function(e){D.current&&!h&&(R.current&&cancelAnimationFrame(R.current),R.current=requestAnimationFrame(function(){var n=D.current.getBoundingClientRect(),t=(e-n.left)/n.width,r=U(t);r!==H.current&&(H.current=r,P||L(r),null==N||N(r))}))},[h,P,U,N]),G=function(e){if(!h){e.preventDefault(),I(!0);var n=F(e);Y(n)}};n.useEffect(function(){if(M){var e=function(e){e.preventDefault();var n=F(e);Y(n)},n=function(){I(!1),R.current&&(cancelAnimationFrame(R.current),R.current=null),null==z||z(H.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),R.current&&(cancelAnimationFrame(R.current),R.current=null)}}},[M,Y,z]);var $=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=T&&T["--zjpcy-slider-track-filled-bg"],X=T&&T["--zjpcy-slider-handle-border"],q=w&&!K.trackColor&&!Z&&"#1890ff"===j,J=K.trackColor||Z||j,Q=K.handleColor||X||C;return e.jsxs("div",{className:"slider-container ".concat(h?"slider-container-disabled":""," ").concat(M?"slider-container-dragging":""," ").concat(S),style:m((r={},r["--zjpcy-slider-track-filled-bg"]=J,r["--zjpcy-slider-handle-border"]="2px solid ".concat(Q),r),T),children:[e.jsxs("div",{ref:D,className:"slider-track",onClick:function(e){h||(e.target.classList.contains("slider-handle")||(Y(e.clientX),null==z||z(V)))},role:"presentation",children:[e.jsx("div",{className:"slider-track-filled",style:m({width:"".concat(100*$,"%")},q&&w?{background:"linear-gradient(to right, ".concat(w.startColor,", ").concat(w.endColor,")")}:{})}),e.jsx("div",{className:"slider-handle",style:{left:"".concat(100*$,"%")},onMouseDown:G,onTouchStart:G,onKeyDown:function(e){if(!h){var n=V;switch(e.key){case"ArrowLeft":case"ArrowDown":n=Math.max(a,V-c);break;case"ArrowRight":case"ArrowUp":n=Math.min(l,V+c);break;case"Home":n=a;break;case"End":n=l;break;case"PageDown":n=Math.max(a,V-10*c);break;case"PageUp":n=Math.min(l,V+10*c);break;default:return}e.preventDefault(),void 0===d&&L(n),null==N||N(n),null==z||z(n)}},role:"slider","aria-valuemin":a,"aria-valuemax":l,"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)})}),x&&e.jsxs("div",{className:"slider-value-display",children:["当前值:",V]})]})},Hi=n.createContext(null),Pi=function(n){var t=n.index,r=n.status,i=n.item;return i.node?e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-".concat(r),children:i.node}):i.title?e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-".concat(r),children:i.title}):i.description?e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-".concat(r),children:i.description}):"finish"===r?e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-finish",children:"✓"}):"error"===r?e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-error",children:"✕"}):e.jsx("span",{className:"zjpcy-step-node zjpcy-step-node-".concat(r),children:t+1})},Vi=function(t){var r=t.item,i=t.index,a=t.isLast,o=p.default.useRef(null),l=n.useContext(Hi),s=n.useState(0),c=s[0],d=s[1];if(!l)return null;var u=l.current,h=l.status,g=l.direction,m=l.onChange,v=r.status||(i<u?"finish":i===u?h:"wait");p.default.useEffect(function(){var e;if(o.current&&"panel"===l.type){var n=null===(e=o.current.getBoundingClientRect())||void 0===e?void 0:e.height;d(n||0)}},[o,l]);var y=n.useMemo(function(){if("panel"!==l.type||0===c)return null;var n=c/4-8;return e.jsx("div",{style:{transform:"translateY(".concat(n,"px)")},className:"zjpcy-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,l]),x={};r.tailColor&&(x.backgroundColor=r.tailColor);var b=r.tailType||"solid";return e.jsxs("div",{className:f.default("zjpcy-step","zjpcy-step-direction-".concat(g),"zjpcy-step-".concat(v),{"zjpcy-step-disabled":r.disabled}),onClick:function(){!r.disabled&&m&&i!==u&&m(i)},ref:o,children:[e.jsxs("div",{className:"zjpcy-step-head",children:[e.jsx(Pi,{index:i,status:v,item:r}),!a&&e.jsxs(e.Fragment,{children:["default"===l.type&&e.jsx("div",{className:"zjpcy-step-tail zjpcy-step-tail-".concat(b),style:x,children:r.tailTitle&&e.jsx("div",{className:"zjpcy-step-tail-title",children:r.tailTitle})}),y]})]}),e.jsxs("div",{className:"zjpcy-step-content",children:[r.title&&e.jsx("div",{className:"zjpcy-step-title",children:r.title}),r.description&&e.jsx("div",{className:"zjpcy-step-description",children:r.description})]})]})},Bi=function(n){var t=n.current,r=void 0===t?0:t,i=n.status,a=void 0===i?"process":i,o=n.direction,l=void 0===o?"horizontal":o,s=n.size,c=void 0===s?"default":s,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:a,direction:l,size:c,type:u,onChange:f};return e.jsx(Hi.Provider,{value:v,children:e.jsx("div",{className:"zjpcy-steps ".concat(l," ").concat(c," ").concat(u," ").concat(g),style:m,children:p.map(function(n,t){return e.jsx(Vi,{item:n,index:t,isLast:t===p.length-1},t)})})})},Ui=function(e,n){return"var(".concat(e,", ").concat(n,")")},Fi=h.default.div(ci||(ci=j(["\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")}),Yi=h.default.div(di||(di=j(["\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(--zjpcy-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(--zjpcy-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"])),Ui("--zjpcy-switch-track-bg-gradient","linear-gradient(135deg, #e8e8e8 0%, #d9d9d9 100%)"),Ui("--zjpcy-switch-track-radius","12px"),Ui("--zjpcy-switch-transition","all 0.2s ease-in-out"),function(e){return e.$disabled?"not-allowed":"pointer"},function(e){return e.$disabled?"var(--zjpcy-switch-disabled-opacity, 0.65)":1},Ui("--zjpcy-switch-track-active-gradient","linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)"),Ui("--zjpcy-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?Ui("--zjpcy-switch-small-height","16px"):Ui("--zjpcy-switch-default-height","22px"),";\n "):"small"===n?"\n width: ".concat(t?"auto":Ui("--zjpcy-switch-small-width","28px"),";\n min-width: ").concat(Ui("--zjpcy-switch-small-width","28px"),";\n height: ").concat(Ui("--zjpcy-switch-small-height","16px"),";\n "):"\n width: ".concat(t?"auto":Ui("--zjpcy-switch-default-width","44px"),";\n min-width: ").concat(Ui("--zjpcy-switch-default-width","44px"),";\n height: ").concat(Ui("--zjpcy-switch-default-height","22px"),";\n ")},function(e){return e.$checked&&"\n background: ".concat(Ui("--zjpcy-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")}),Gi=h.default.div(ui||(ui=j(["\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"])),Ui("--zjpcy-switch-thumb-bg","#fff"),Ui("--zjpcy-bg-color-light","#f5f5f5"),Ui("--zjpcy-switch-thumb-radius","50%"),Ui("--zjpcy-switch-thumb-shadow","0 2px 8px rgba(0, 0, 0, 0.15)"),Ui("--zjpcy-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 a="".concat(t?r-i-2:2,"px");return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(a,";\n ")}if("small"===n){var o=t?"14px":"2px";return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(o,";\n ")}var l=t?"24px":"2px";return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(l,";\n ")},function(e){return e.$loading&&"\n animation: zjpcy-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")}),$i=h.default.div(pi||(pi=j(["\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: zjpcy-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: zjpcy-switch-spin 1s linear infinite;\n transform-origin: center center;\n display: block;\n fill: ",";\n }\n\n ","\n\n ","\n"])),Ui("--zjpcy-switch-loading-size","12px"),Ui("--zjpcy-switch-loading-size","12px"),Ui("--zjpcy-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")}),Wi=h.default.span(fi||(fi=j(["\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")}),Ki=h.default.span(hi||(hi=j(["\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"},Ui("--zjpcy-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")}),Zi=function(t){var r=t.checked,i=t.defaultChecked,a=void 0!==i&&i,o=t.disabled,l=void 0!==o&&o,s=t.loading,c=void 0!==s&&s,d=t.size,u=void 0===d?"default":d,p=t.width,f=t.checkedChildren,h=t.unCheckedChildren,g=t.styles,v=t.onChange,y=t.label,x=t.labelGap,b=void 0===x?8:x,j=t.labelClassName,_=void 0===j?"":j,C=t.labelStyle,w=void 0!==r,N=n.useState(a),z=N[0],E=N[1],S=w?r:z,T=void 0!==f||void 0!==h;n.useEffect(function(){!function(){if("undefined"!=typeof document&&!document.getElementById("zjpcy-switch-styles")){var e=document.createElement("style");e.id="zjpcy-switch-styles",e.textContent="\n @keyframes zjpcy-switch-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n @keyframes zjpcy-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(Fi,{className:"switch-wrapper",$styles:null==g?void 0:g.wrapper,children:e.jsxs("div",{className:"switch-label-wrapper",style:{display:"flex",alignItems:"center"},children:[y&&e.jsx("div",{className:"switch-label ".concat(_),style:m({marginRight:"number"==typeof b?"".concat(b,"px"):b},C),children:y}),e.jsxs(Yi,{className:"switch-track".concat(S?" switch-track-checked":"").concat(l?" switch-track-disabled":"").concat(c?" switch-track-loading":""),$checked:S,$disabled:l,$size:u,$loading:c,$hasChildren:T,$width:p,$styles:null==g?void 0:g.track,onClick:function(){if(!l&&!c){var e=!S;w||E(e),null==v||v(e)}},children:[c&&e.jsx($i,{className:"switch-loading-icon",$checked:S,$size:u,$width:p,$styles:null==g?void 0:g.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&&S&&f&&e.jsx(Wi,{className:"switch-checked-inner",$size:u,$styles:null==g?void 0:g.inner,children:f}),!c&&!S&&h&&e.jsx(Ki,{className:"switch-unchecked-inner",$size:u,$styles:null==g?void 0:g.inner,children:h}),e.jsx(Gi,{className:"switch-thumb".concat(S?" switch-thumb-checked":""),$checked:S,$size:u,$loading:c,$hasChildren:T,$width:p,$styles:null==g?void 0:g.thumb})]})]})})},Xi=function(n){var t=n.item,r=n.isActive,i=n.isClosable,a=n.onClick,o=n.onClose,l=n.tabRefs,d=s.useSortable({id:t.key,disabled:t.disabled}),u=d.attributes,p=d.listeners,h=d.setNodeRef,g=d.transform,v=d.transition,y=d.isDragging,x={transform:c.CSS.Transform.toString(g),transition:v,opacity:y?.5:1,zIndex:y?1e3:"auto",position:"relative"};return e.jsxs("div",{ref:function(e){h(e),e?l.current.set(t.key,e):l.current.delete(t.key)},className:f.default("zjpcy-tabs-tab",{"zjpcy-tabs-tab--active":r,"zjpcy-tabs-tab--disabled":t.disabled,"zjpcy-tabs-tab--dragging":y}),role:"tab","aria-selected":r,style:x,children:[e.jsxs("div",m({className:"zjpcy-tabs-tab__drag-handle"},u,p,{onClick:a,style:{cursor:t.disabled?"not-allowed":"grab",display:"flex",alignItems:"center",gap:"6px"},children:[t.icon&&e.jsx("span",{className:"zjpcy-tabs-tab__icon",children:t.icon}),e.jsx("span",{className:"zjpcy-tabs-tab__label",children:t.label})]})),i&&!t.disabled&&e.jsx("span",{className:"zjpcy-tabs-tab__close",onClick:function(e){return o(e)},children:e.jsx(B,{type:"close",size:12})})]})},qi=function(t){var r=t.items,i=void 0===r?[]:r,a=t.activeKey,o=t.defaultActiveKey,c=t.onChange,d=t.onClose,u=t.tabsClosable,h=void 0!==u&&u,g=t.tabPlacement,v=void 0===g?"top":g,y=t.type,x=void 0===y?"line":y,b=t.onAdd,j=t.className,_=t.style,C=t.contentClassName,w=t.contentStyle,N=t.draggable,z=void 0!==N&&N,E=t.onDragEnd,S=n.useState(function(){return o}),T=S[0],O=S[1],k=n.useRef(null),L=n.useRef(new Map),A=n.useRef(null),M=n.useState({}),I=M[0],D=M[1],R=n.useState(!1),H=R[0],P=R[1],V=n.useState(!1),U=V[0],F=V[1],Y=n.useState(!1),G=Y[0],$=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!==a&&O(a)},[a]),n.useEffect(function(){re(i)},[i]),n.useEffect(function(){var e;if(void 0===a){var n=null===(e=i[0])||void 0===e?void 0:e.key;if(!(!!o&&i.some(function(e){return e.key===o}))||T)if(n)i.some(function(e){return e.key===T})||O(n);else O(void 0);else O(o)}},[i,T,a,o]);var ie=void 0!==a?a:T,ae=n.useMemo(function(){return i.find(function(e){return e.key===ie})||i[0]},[i,ie]),oe=function(e,n){if(void 0===n&&(n=!0),e&&k.current){var t=L.current.get(e),r=k.current;if(t&&r){var i=r.querySelector(".zjpcy-tabs-indicator"),a=q.current;if(i&&a&&(i.style.transition="none"),"top"===v||"bottom"===v){if(D({left:t.offsetLeft,width:t.offsetWidth,top:void 0,height:void 0}),!n){var o=t.offsetLeft,l=o+t.offsetWidth,s=r.scrollLeft,c=r.clientWidth;(o<s||l>s+c)&&t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}else D({top:t.offsetTop,height:t.offsetHeight,left:void 0,width:void 0});i&&a&&n?requestAnimationFrame(function(){i.style.transition="",q.current=!1}):a&&(q.current=!1)}}},le=p.default.useCallback(function(){if(k.current){var e=k.current,n="top"===v||"bottom"===v;if("card"===x)return P(!1),F(!1),void $(!1);if(n){var t=Math.ceil(e.scrollWidth)>Math.floor(e.clientWidth);if(P(t),t){var r=e.scrollLeft>1;F(r);var i=e.scrollWidth-e.clientWidth,a=e.scrollLeft<i-1;$(a)}else F(!1),$(!1)}else P(!1),F(!1),$(!1)}},[v,x]),se=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,le()},400)}};n.useEffect(function(){ie&&(oe(ie,!1),le())},[ie,i,v,le]),n.useEffect(function(){le();var e=requestAnimationFrame(function(){ie&&oe(ie,!1),le()});return function(){return cancelAnimationFrame(e)}},[le,ie]),n.useEffect(function(){var e,n=function(){ie&&oe(ie,!1),le()},t=function(){clearTimeout(e),e=setTimeout(function(){le()},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)}},[le,ie]),n.useEffect(function(){var e=function(){if(A.current&&k.current&&"card"===x&&b){var e=k.current,n=A.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)}},[x,b,i]);var ce=function(e){e.disabled||(void 0===a&&O(e.key),oe(e.key,!0),le(),null==c||c(e.key))},de=function(e,n){e.stopPropagation(),n.disabled||null==d||d(n.key)},ue=function(){null==b||b(),setTimeout(function(){k.current&&requestAnimationFrame(function(){if(k.current&&L.current.size>0){var e=Array.from(L.current.keys());if(e.length>0){var n=e[e.length-1],t=L.current.get(n),r=k.current;if(t&&r&&A.current)if("card"===x){var i=A.current.offsetWidth+4,a=t.offsetLeft+t.offsetWidth,o=r.clientWidth;if(a-r.scrollLeft>o-i){var l=a-o+i;r.scrollTo({left:l,behavior:"smooth"})}}else t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}})},100)},pe=l.useSensors(l.useSensor(l.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 a=s.arrayMove(te,r,i);re(a),null==E||E(a)}}},ge=function(){var n="top"===v||"bottom"===v,t="card"===x,r=z?te:i,a=e.jsxs("div",{className:"zjpcy-tabs-nav-wrapper",onMouseEnter:function(){return Z(!0)},onMouseLeave:function(){return Z(!1)},children:[n&&H&&!t&&e.jsx("button",{className:f.default("zjpcy-tabs-nav__button","zjpcy-tabs-nav__button--left",{"zjpcy-tabs-nav__button--disabled":!U,"zjpcy-tabs-nav__button--visible":K}),onClick:function(){return se("left")},disabled:!U,type:"button",children:e.jsx(B,{type:"arrowLeft",size:12})}),e.jsxs("div",{className:"zjpcy-tabs-nav",ref:k,children:[r.map(function(n){return function(n,t,r){return!z||n.disabled||"top"!==v&&"bottom"!==v?e.jsxs("div",{ref:function(e){e?L.current.set(n.key,e):L.current.delete(n.key)},className:f.default("zjpcy-tabs-tab",{"zjpcy-tabs-tab--active":t,"zjpcy-tabs-tab--disabled":n.disabled}),role:"tab","aria-selected":t,onClick:function(){return ce(n)},children:[n.icon&&e.jsx("span",{className:"zjpcy-tabs-tab__icon",children:n.icon}),e.jsx("span",{className:"zjpcy-tabs-tab__label",children:n.label}),r&&!n.disabled&&e.jsx("span",{className:"zjpcy-tabs-tab__close",onClick:function(e){return de(e,n)},children:e.jsx(B,{type:"close",size:12})})]},n.key):e.jsx(Xi,{item:n,isActive:t,isClosable:r,onClick:function(){return ce(n)},onClose:function(e){return de(e,n)},tabRefs:L},n.key)}(n,n.key===ie,h||n.closable||!1)}),"card"===x&&b&&e.jsx("div",{ref:A,className:f.default("zjpcy-tabs-tab zjpcy-tabs-tab--add",{sticky:!0===Q}),role:"tab",onClick:ue,children:e.jsx(B,{type:"plus",size:16})}),e.jsx("div",{className:"zjpcy-tabs-indicator",style:I})]}),n&&H&&!t&&e.jsx("button",{className:f.default("zjpcy-tabs-nav__button","zjpcy-tabs-nav__button--right",{"zjpcy-tabs-nav__button--disabled":!G,"zjpcy-tabs-nav__button--visible":K}),onClick:function(){return se("right")},disabled:!G,type:"button",children:e.jsx(B,{type:"arrowRight",size:12})})]});return!z||t||"top"!==v&&"bottom"!==v?a:e.jsx(l.DndContext,{sensors:pe,collisionDetection:l.closestCenter,onDragStart:fe,onDragEnd:he,children:e.jsx(s.SortableContext,{items:r.map(function(e){return e.key}),strategy:s.horizontalListSortingStrategy,children:a})})},me=function(){var n=(null==ae?void 0:ae.renderContent)?ae.renderContent():null==ae?void 0:ae.content,t=f.default("zjpcy-tabs-content","zjpcy-tabs-content--".concat(v),C),r=m({},w);return e.jsx("div",{className:t,style:r,children:n})};return e.jsx("div",{className:f.default("zjpcy-tabs","zjpcy-tabs--".concat(v),"zjpcy-tabs--".concat(x),j),style:_,children:"bottom"===v?e.jsxs(e.Fragment,{children:[me(),ge()]}):e.jsxs(e.Fragment,{children:[ge(),me()]})})},Ji=function(e,n){return"var(".concat(e,", ").concat(n,")")},Qi=h.default.div(gi||(gi=j(["\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")}),ea=h.default.div(mi||(mi=j(["\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||Ji("--transfer-list-width","200px")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||Ji("--transfer-height","300px")},Ji("--transfer-border-color","#d9d9d9"),Ji("--transfer-border-radius","6px"),Ji("--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")}),na=h.default.div(vi||(vi=j(["\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"])),Ji("--transfer-header-height","40px"),Ji("--transfer-padding","12px"),Ji("--transfer-header-bg","#fafafa"),Ji("--transfer-border-color","#d9d9d9"),Ji("--transfer-header-font-size","14px"),Ji("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")),ta=h.default.div(yi||(yi=j(["\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"]))),ra=h.default.span(xi||(xi=j(["\n font-size: 12px;\n color: ",";\n"],["\n font-size: 12px;\n color: ",";\n"])),Ji("--transfer-description-color","rgba(0, 0, 0, 0.45)")),ia=h.default.div(bi||(bi=j(["\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"])),Ji("--transfer-padding","12px"),Ji("--transfer-border-color","#d9d9d9")),aa=h.default.input(ji||(ji=j(["\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"])),Ji("--transfer-search-height","32px"),Ji("--transfer-search-padding","0 8px"),Ji("--transfer-search-border","#d9d9d9"),Ji("--transfer-font-size","14px"),Ji("--transfer-transition","all 0.3s"),Ji("--transfer-search-placeholder-color","rgba(0, 0, 0, 0.45)"),Ji("--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")}),oa=h.default.button(_i||(_i=j(["\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"])),Ji("--transfer-search-height","32px"),Ji("--transfer-search-border","#d9d9d9"),Ji("--transfer-bg","#fff"),function(e){return e.$disabled?"not-allowed":"pointer"},Ji("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},Ji("--transfer-search-focus-border","#1890ff"),Ji("--transfer-search-focus-border","#1890ff")),la=h.default.div(Ci||(Ci=j(["\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"]))),sa=h.default.div(wi||(wi=j(["\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"])),Ji("--transfer-item-height","32px"),Ji("--transfer-item-padding","0 12px"),function(e){return e.$disabled?"not-allowed":"pointer"},Ji("--transfer-transition","all 0.3s"),Ji("--transfer-item-font-size","14px"),function(e){return e.$disabled?Ji("--transfer-item-disabled-color","rgba(0, 0, 0, 0.25)"):Ji("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")},function(e){return e.$selected?Ji("--transfer-item-selected-bg","#e6f7ff"):"transparent"},function(e){var n=e.$disabled,t=e.$selected;return n?"transparent":t?Ji("--transfer-item-selected-bg","#e6f7ff"):Ji("--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")}),ca=h.default.span(Ni||(Ni=j(["\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"}),da=h.default.span(zi||(zi=j(["\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}),ua=h.default.span(Ei||(Ei=j(["\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"]))),pa=h.default.div(Si||(Si=j(["\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"])),Ji("--transfer-padding","12px"),Ji("--transfer-border-color","#d9d9d9"),Ji("--transfer-description-font-size","12px"),Ji("--transfer-description-color","rgba(0, 0, 0, 0.45)")),fa=h.default.div(Ti||(Ti=j(["\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"])),Ji("--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")}),ha=h.default.button(Oi||(Oi=j(["\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"])),Ji("--transfer-operation-border","#d9d9d9"),Ji("--transfer-operation-bg","#f5f5f5"),function(e){return e.$disabled?"not-allowed":"pointer"},Ji("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},Ji("--transfer-operation-hover-bg","#e6f7ff"),Ji("--transfer-operation-hover-border","#1890ff"),Ji("--transfer-operation-disabled-bg","#f5f5f5"),Ji("--transfer-operation-disabled-color","rgba(0, 0, 0, 0.25)"),function(e){return"right"===e.$direction?"'>'":"'<'"}),ga=h.default.div(ki||(ki=j(["\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"])),Ji("--transfer-description-color","rgba(0, 0, 0, 0.45)"),Ji("--transfer-font-size","14px")),ma=h.default.div(Li||(Li=j(["\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"]))),va=h.default.div(Ai||(Ai=j(["\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"])),Ji("--transfer-loading-track-color","#f0f0f0"),Ji("--transfer-loading-spinner-color","#1890ff")),ya=function(e,n,t){return n?e[n]:e[t]},xa=function(e,n){return ya(e,null==n?void 0:n.key,"key")},ba=function(e,n){return ya(e,null==n?void 0:n.title,"title")},ja=function(t){var r=t.dataSource,i=t.fieldNames,a=t.selectedKeys,o=t.showSearch,l=t.disabled,s=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,y=t.body,x=t.onSelectChange,j=t.onSearch,_=t.render,C=t.footer,w=t.direction,N=t.rowClassName,z=t.loading,E=t.loadingRender,S=t.loadingDelay,T=t.sourceSelectedKeys,O=t.targetSelectedKeys,k=n.useState(""),L=k[0],A=k[1],M=n.useState(z),I=M[0],D=M[1],R=n.useRef(null);n.useEffect(function(){return R.current&&(clearTimeout(R.current),R.current=null),z&&S&&S>0?(D(!0),R.current=setTimeout(function(){D(!1)},S)):D(z),function(){R.current&&clearTimeout(R.current)}},[z,S]);var H=n.useMemo(function(){return L?p?r.filter(function(e){return p(L,e)}):r.filter(function(e){var n=ba(e,i),t=null!=n?String(n):"";if(t)return t.toLowerCase().includes(L.toLowerCase());var r=L.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,L,p,i]),P=n.useMemo(function(){var e=H.filter(function(e){return!e.disabled});return 0!==e.length&&e.every(function(e){return a.includes(xa(e,i))})},[H,a,i]),V=n.useMemo(function(){var e=H.filter(function(e){return!e.disabled});if(0===e.length)return!1;var n=e.filter(function(e){return a.includes(xa(e,i))}).length;return n>0&&n<e.length},[H,a,i]),U=n.useCallback(function(){if(!l){var e=H.filter(function(e){return!e.disabled}).map(function(e){return xa(e,i)});if(P){var n=a.filter(function(n){return!e.includes(n)});"left"===w?x(n,O):x(T,n)}else{var t=b(b([],a,!0),e,!0);n=t.filter(function(e,n){return t.indexOf(e)===n});"left"===w?x(n,O):x(T,n)}}},[l,H,a,P,x,i,w,T,O]),F=n.useCallback(function(e){if(!l&&!e.disabled){var n,t=xa(e,i),r=a.indexOf(t);n=r>-1?b(b([],a.slice(0,r),!0),a.slice(r+1),!0):b(b([],a,!0),[t],!1),"left"===w?x(n,O):x(T,n)}},[l,a,x,i,w,T,O]),Y=n.useCallback(function(e){var n=e.target.value;A(n)},[]),G=n.useCallback(function(){null==j||j(L)},[j,L]),$=n.useCallback(function(e){"Enter"===e.key&&G()},[G]),W=n.useCallback(function(){G()},[G]),K=n.useMemo(function(){var e=a.length,n=r.length;return"".concat(e,"/").concat(n)},[a,r]);return e.jsxs(ea,{className:"transfer-list",$disabled:l,$styles:null==f?void 0:f.list,$height:h,$width:g,children:[function(){if(m){var n=m({direction:w,dataSource:r,selectedKeys:a,sourceSelectedKeys:T,targetSelectedKeys:O});return null===n?null:n}return e.jsxs(na,{className:"transfer-list-header",children:[e.jsxs(ta,{children:[e.jsx(ca,{className:"transfer-checkbox",$checked:P,$indeterminate:V,$disabled:l||0===H.length,onClick:U,style:{opacity:l||0===H.length?.6:1}}),e.jsx("span",{children:s})]}),e.jsx(ra,{children:K})]})}(),o&&null!==m&&e.jsx(ia,{className:"transfer-search-wrapper",children:v?v({direction:w,value:L,onChange:function(e){A(e),null==j||j(e)},disabled:l}):e.jsxs(e.Fragment,{children:[e.jsx(aa,{type:"text",placeholder:u,value:L,onChange:Y,onKeyDown:$,disabled:l,$styles:null==f?void 0:f.search}),e.jsx(oa,{onClick:W,disabled:l,$disabled:l,"aria-label":"搜索",children:e.jsx(B,{type:"search",size:"small",color:l?"#bfbfbf":"#1890ff"})})]})}),y?y({direction:w,dataSource:H,selectedKeys:a,sourceSelectedKeys:T,targetSelectedKeys:O,onSelectChange:x}):I?e.jsx(ma,{className:"transfer-loading",children:E?E():e.jsx(va,{className:"transfer-loading-spinner"})}):e.jsx(la,{className:"transfer-list-body",children:H.length>0?H.map(function(n){var t=xa(n,i),r=a.includes(t),o=(null==N?void 0:N(n))||"";return e.jsxs(sa,{className:"transfer-list-item ".concat(o),$selected:r,$disabled:l||n.disabled,$styles:null==f?void 0:f.item,onClick:function(){return F(n)},children:[e.jsx(da,{$checked:r}),e.jsx(ua,{children:_?_(n):ba(n,i)})]},t)}):e.jsx(ga,{className:"transfer-empty",children:"暂无数据"})}),(c||C)&&e.jsx(pa,{className:"transfer-list-footer",children:C?C({direction:w}):c})]})},_a=function(n){var t=n.moveToRightDisabled,r=n.moveToLeftDisabled,i=n.onMoveToRight,a=n.onMoveToLeft,o=n.style;return e.jsxs(fa,{className:"transfer-operation",$styles:o,children:[e.jsx(ha,{type:"button",$direction:"right",$disabled:t,onClick:i,disabled:t,"aria-label":"移动到右侧"}),e.jsx(ha,{type:"button",$direction:"left",$disabled:r,onClick:a,disabled:r,"aria-label":"移动到左侧"})]})},Ca=function(t){var r=t.dataSource,i=t.fieldNames,a=t.targetKeys,o=t.defaultTargetKeys,l=void 0===o?[]:o,s=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,y=void 0===v?"目标列表":v,x=t.leftDescription,j=t.rightDescription,_=t.filterOption,C=t.styles,w=t.listHeight,N=t.listWidth,z=t.header,E=t.search,S=t.body,T=t.onSelectChange,O=t.onChange,k=t.onSearch,L=t.render,A=t.footer,M=t.rowClassName,I=t.mode,D=void 0===I?"transfer":I,R=t.loading,H=void 0!==R&&R,P=t.loadingRender,V=t.loadingDelay,B=void 0!==a,U=void 0!==s,F=n.useState(l),Y=F[0],G=F[1],$=n.useState(d),W=$[0],K=$[1],Z=n.useState([]),X=Z[0],q=Z[1],J=B?a:Y,Q=U?s.filter(function(e){return!J.includes(e)}):W,ee=U?s.filter(function(e){return J.includes(e)}):X,ne=n.useMemo(function(){return r.filter(function(e){return!J.includes(xa(e,i))})},[r,J,i]),te=n.useMemo(function(){return r.filter(function(e){return J.includes(xa(e,i))})},[r,J,i]),re=n.useCallback(function(e,n){U||K(e),null==T||T(e,n)},[U,T]),ie=n.useCallback(function(e,n){U||q(n),null==T||T(e,n)},[U,T]),ae=n.useCallback(function(){if(0!==Q.length){var e=b(b([],J,!0),Q,!0),n=b([],Q,!0);B||(G(e),K([])),null==O||O(e,"right",n)}},[Q,J,B,O]),oe=n.useCallback(function(){if(0!==ee.length){var e=J.filter(function(e){return!ee.includes(e)}),n=b([],ee,!0);B||(G(e),q([])),null==O||O(e,"left",n)}},[ee,J,B,O]),le=n.useCallback(function(e){null==k||k("left",e)},[k]),se=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||G(t),null==O||O(t,"right",t),null==T||T([],t)},[B,O,T]),pe=n.useMemo(function(){return r},[r]),fe=n.useMemo(function(){return U?s.filter(function(e){return J.includes(e)}):J},[U,s,J]);return e.jsx(Qi,{className:"transfer-wrapper",$styles:null==C?void 0:C.wrapper,children:"single"===D?e.jsx(ja,{direction:"left",dataSource:pe,fieldNames:i,selectedKeys:fe,showSearch:p,disabled:h,title:m,description:x,filterOption:_,styles:C,listHeight:w,listWidth:N,header:z,search:E,body:S,onSelectChange:ue,onSearch:le,render:L,footer:A,rowClassName:M,loading:H,loadingRender:P,loadingDelay:V,sourceSelectedKeys:[],targetSelectedKeys:fe}):e.jsxs(e.Fragment,{children:[e.jsx(ja,{direction:"left",dataSource:ne,fieldNames:i,selectedKeys:Q,showSearch:p,disabled:h,title:m,description:x,filterOption:_,styles:C,listHeight:w,listWidth:N,header:z,search:E,body:S,onSelectChange:re,onSearch:le,render:L,footer:A,rowClassName:M,loading:H,loadingRender:P,loadingDelay:V,sourceSelectedKeys:Q,targetSelectedKeys:ee}),e.jsx(_a,{moveToRightDisabled:ce,moveToLeftDisabled:de,onMoveToRight:ae,onMoveToLeft:oe,style:null==C?void 0:C.operation}),e.jsx(ja,{direction:"right",dataSource:te,fieldNames:i,selectedKeys:ee,showSearch:p,disabled:h,title:y,description:j,filterOption:_,styles:C,listHeight:w,listWidth:N,header:z,search:E,body:S,onSelectChange:ie,onSearch:se,render:L,footer:A,rowClassName:M,loading:H,loadingRender:P,loadingDelay:V,sourceSelectedKeys:Q,targetSelectedKeys:ee})]})})},wa=h.default.label(Mi||(Mi=j(["\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"]))),Na=function(n){var t=n.title,r=n.indicatorColor,i=void 0===r?"blue":r,a=n.indicatorWidth,o=void 0===a?"3px":a,l=n.indicatorHeight,s=void 0===l?"100%":l,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(o),"--label-indicator-height":p(s),"--label-padding-right":p(d)},h=m(m({},f),u);return e.jsx(wa,{className:"label-wrapper",style:h,children:t||null})},za=function(e,n){return"var(".concat(e,", ").concat(n,")")},Ea=h.default.div(Aa||(Aa=j(["\n display: flex;\n flex-direction: column;\n min-height: ",";\n max-height: 100vh;\n /* 使用更明确的默认值,避免 SSR 时 theme 为 undefined 导致黑色背景闪烁 */\n background: ",";\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n flex: 1;\n\n /* SSR 安全:确保服务端和客户端初始渲染一致 */\n @media (prefers-color-scheme: dark) {\n /* 在暗色模式下默认使用 light 主题避免闪烁,由 JS 控制实际主题 */\n }\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 /* 使用更明确的默认值,避免 SSR 时 theme 为 undefined 导致黑色背景闪烁 */\n background: ",";\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n flex: 1;\n\n /* SSR 安全:确保服务端和客户端初始渲染一致 */\n @media (prefers-color-scheme: dark) {\n /* 在暗色模式下默认使用 light 主题避免闪烁,由 JS 控制实际主题 */\n }\n\n &.layout-wrapper {\n /* 外部可通过 .layout-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),za("--layout-min-height","100vh"),function(e){return"dark"===e.$theme?"linear-gradient(180deg, ".concat(za("--layout-bg-dark","#001529")," 0%, ").concat(za("--zjpcy-text-color","rgba(0, 0, 0, 0.85)")," 100%)"):"linear-gradient(180deg, ".concat(za("--layout-bg-light","#f5f5f5")," 0%, ").concat(za("--zjpcy-bg-color","#fafafa")," 100%)")},function(e){return e.$hasSider&&"\n flex-direction: row;\n align-items: stretch;\n "}),Sa=h.default.header(Ma||(Ma=j(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n /* 确保默认使用亮色主题,避免 SSR 闪烁 */\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 /* 确保默认使用亮色主题,避免 SSR 闪烁 */\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"])),za("--layout-header-padding","0 24px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(za("--layout-header-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(za("--layout-header-bg-light","#fff")," 0%, ").concat(za("--zjpcy-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?za("--layout-header-color-dark","#fff"):za("--layout-header-color-light","rgba(0, 0, 0, 0.85)")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||za("--layout-header-height","60px")},za("--layout-header-z-index","10"),za("--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(za("--layout-header-box-shadow","0 2px 8px rgba(0, 0, 0, 0.15)"),";\n ")}),Ta=h.default.aside(Ia||(Ia=j(["\n display: flex;\n flex-direction: column;\n /* SSR 安全:明确处理 theme 为 undefined 的情况,默认使用亮色主题 */\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 .zjpcy-menu {\n background: transparent;\n }\n\n /* Menu 菜单项在 Sider 中的样式 - 覆盖默认样式 */\n .zjpcy-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 .zjpcy-menu-submenu {\n .zjpcy-menu-item {\n margin: 0px;\n }\n }\n\n /* Dark 主题下的子菜单样式 */\n .zjpcy-menu-submenu.horizontal-popup,\n .zjpcy-menu-submenu.horizontal-popup .zjpcy-menu-submenu {\n background: linear-gradient(135deg, #001529 0%, #002140 100%);\n border: 1px solid #303030;\n }\n\n /* Dark 主题下子菜单中的菜单项 */\n .zjpcy-menu-submenu .zjpcy-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 /* SSR 安全:明确处理 theme 为 undefined 的情况,默认使用亮色主题 */\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 .zjpcy-menu {\n background: transparent;\n }\n\n /* Menu 菜单项在 Sider 中的样式 - 覆盖默认样式 */\n .zjpcy-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 .zjpcy-menu-submenu {\n .zjpcy-menu-item {\n margin: 0px;\n }\n }\n\n /* Dark 主题下的子菜单样式 */\n .zjpcy-menu-submenu.horizontal-popup,\n .zjpcy-menu-submenu.horizontal-popup .zjpcy-menu-submenu {\n background: linear-gradient(135deg, #001529 0%, #002140 100%);\n border: 1px solid #303030;\n }\n\n /* Dark 主题下子菜单中的菜单项 */\n .zjpcy-menu-submenu .zjpcy-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(za("--layout-sider-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(180deg, ".concat(za("--layout-sider-bg-light","#fff")," 0%, ").concat(za("--zjpcy-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?za("--layout-sider-color-dark","#fff"):za("--layout-sider-color-light","rgba(0, 0, 0, 0.85)")},za("--layout-sider-z-index","10"),za("--layout-sider-transition","all 0.2s ease-in-out"),za("--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(za("--zjpcy-border-color-light","#f0f0f0"),")")},function(e){return"dark"===e.$theme?"2px 0 8px rgba(0, 0, 0, 0.3)":za("--zjpcy-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||za("--layout-sider-width","200px"),a=void 0!==t?"".concat(t,"px"):za("--layout-sider-collapsed-width","60px");return"\n width: ".concat(r?a:i,";\n min-width: ").concat(r?a:i,";\n max-width: ").concat(r?a:i,";\n ")},function(e){return e.$fixed&&"\n position: fixed;\n top: ".concat(za("--layout-header-height","64px"),";\n left: 0;\n bottom: 0;\n overflow-y: auto;\n box-shadow: ").concat(za("--layout-sider-box-shadow","0 4px 12px rgba(0, 0, 0, 0.15)"),";\n ")},za("--zjpcy-border-radius-sm","4px"),za("--zjpcy-text-color","rgba(0, 0, 0, 0.85)"),za("--zjpcy-primary-light-color","rgba(24, 144, 255, 0.06)"),za("--zjpcy-primary-color","#1890ff"),za("--zjpcy-primary-light-color","rgba(24, 144, 255, 0.12)"),za("--zjpcy-primary-color","#1890ff"),za("--zjpcy-primary-color","#1890ff"),za("--zjpcy-primary-light-color","rgba(24, 144, 255, 0.18)"),za("--zjpcy-primary-color","#1890ff")),Oa=h.default.div(Da||(Da=j(["\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"},za("--zjpcy-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 "}),ka=h.default.div(Ra||(Ra=j(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: ",";\n /* SSR 安全:默认使用亮色主题 */\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 /* SSR 安全:默认使用亮色主题 */\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"])),za("--layout-trigger-height","48px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(za("--layout-sider-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(za("--layout-sider-bg-light","#fff")," 0%, ").concat(za("--zjpcy-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?za("--layout-sider-color-dark","#fff"):za("--layout-sider-color-light","rgba(0, 0, 0, 0.85)")},za("--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(za("--zjpcy-primary-color","#1890ff")," 100%)"):"linear-gradient(135deg, ".concat(za("--zjpcy-primary-light-color","rgba(24, 100, 240, 0.1)")," 0%, ").concat(za("--zjpcy-bg-color-light","#f5f5f5")," 100%)")},function(e){return"dark"===e.$theme?"#fff":za("--zjpcy-primary-color","#1890ff")},function(e){var n=e.$placement,t=e.$theme;return"top"===n&&"\n border-bottom: 1px solid ".concat("dark"===t?"#303030":za("--zjpcy-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":za("--zjpcy-border-color-light","#f0f0f0"),";\n ")},function(e){var n=e.$zeroWidthMode,t=e.$collapsed;return n&&t&&"\n display: none;\n "}),La=h.default.div(Ha||(Ha=j(["\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"])),za("--zjpcy-primary-color","#1890ff"),za("--zjpcy-primary-hover-color","#40a9ff"),za("--zjpcy-shadow-sm","0 2px 8px rgba(0, 0, 0, 0.15)"),za("--zjpcy-transition-duration","0.2s"),za("--zjpcy-transition-timing-function","ease-in-out"),za("--zjpcy-primary-hover-color","#40a9ff"),za("--zjpcy-shadow-md","0 4px 12px rgba(0, 0, 0, 0.25)"),za("--zjpcy-shadow-extra-light","0 2px 8px rgba(0, 0, 0, 0.08)"));h.default.div(Pa||(Pa=j(["\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 Aa,Ma,Ia,Da,Ra,Ha,Pa,Va,Ba,Ua=h.default.main(Va||(Va=j(["\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"])),za("--layout-content-padding","24px"),za("--layout-content-bg","transparent"),za("--layout-content-min-height","280px"),za("--layout-content-transition","all 0.2s ease-in-out"),function(e){return e.$fixed&&"\n overflow-y: auto;\n "},za("--zjpcy-border-color-extra-light","#d9d9d9"),za("--zjpcy-border-radius-sm","4px"),za("--zjpcy-transition-duration","0.2s"),za("--zjpcy-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(za("--zjpcy-primary-color","#1890ff")," 50%, transparent);\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: color-mix(in srgb, ").concat(za("--zjpcy-primary-color","#1890ff")," 70%, transparent);\n }\n\n scrollbar-width: thin;\n scrollbar-color: color-mix(in srgb, ").concat(za("--zjpcy-primary-color","#1890ff")," 50%, transparent) transparent;\n ")}),Fa=h.default.footer(Ba||(Ba=j(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n /* SSR 安全:默认使用亮色主题 */\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 /* SSR 安全:默认使用亮色主题 */\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"])),za("--layout-footer-padding","24px 50px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(za("--layout-footer-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(za("--layout-footer-bg-light","#fff")," 0%, ").concat(za("--zjpcy-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?za("--layout-footer-color-dark","#fff"):za("--layout-footer-color-light","rgba(0, 0, 0, 0.85)")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||za("--layout-footer-height","48px")},function(e){return"dark"===e.$theme?"var(--layout-footer-border, 1px solid #303030)":"var(--layout-footer-border, 1px solid ".concat(za("--zjpcy-border-color-light","#f0f0f0"),")")},za("--layout-footer-z-index","10"),za("--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 "}),Ya=n.createContext(void 0),Ga=function(t){var r=t.children,i=n.useState(!1),a=i[0],o=i[1],l=n.useState(!1),s=l[0],c=l[1],d=n.useState(function(){return function(){}}),u=d[0],p=d[1];return e.jsx(Ya.Provider,{value:{siderCollapsed:a,setSiderCollapsed:o,zeroWidthMode:s,setZeroWidthMode:c,onExpand:u,setOnExpand:p},children:r})},$a=function(){var e=n.useContext(Ya);if(!e)throw new Error("useLayoutContext must be used within a LayoutProvider");return e},Wa=p.default.createContext({isNested:!1}),Ka=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,a=void 0===i?{}:i,o=n.children,l=n.width,s=void 0===l?200:l,c=n.collapsedWidth,d=void 0===c?60:c,u=n.collapsible,f=void 0!==u&&u,h=n.collapsed,g=void 0!==h&&h,m=n.onCollapse,v=n.trigger,y=n.triggerPlacement,x=void 0===y?"bottom":y,b=n.zeroWidthMode,j=void 0!==b&&b,_=n.fixed,C=void 0!==_&&_,w=n.theme,N=void 0===w?"light":w,z=null!=N?N:"light",E=p.default.useContext(Wa).isNested,S=$a(),T=S.setSiderCollapsed,O=S.setZeroWidthMode,k=S.setOnExpand;p.default.useEffect(function(){T(g),O(j)},[g,j,T,O]);var L=function(){null==m||m(!g)};p.default.useEffect(function(){k(function(){return L})},[g,m,k]);var A=j&&g?0:d;return e.jsxs(Ta,{className:"layout-sider ".concat(g?"collapsed":""," ").concat(r),style:a,$width:s,$collapsedWidth:A,$collapsed:g,$fixed:C,$theme:z,$inNestedLayout:E,"data-theme":z,children:[e.jsx(Oa,{children:o}),f&&e.jsx(ka,{className:"layout-sider-trigger",$collapsed:g,$placement:j?"top":x,onClick:L,$zeroWidthMode:j,$theme:z,children:v||e.jsx(B,{type:g?"arrowRight":"arrowLeft",size:20,color:"dark"===z?"#fff":"rgba(0, 0, 0, 0.65)"})})]})},Za=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,a=void 0===i?{}:i,o=n.children,l=n.hasSider,s=n.theme,c=void 0===s?"light":s,d=void 0!==l?l:function(e){return!!e&&p.default.Children.toArray(e).some(function(e){return p.default.isValidElement(e)&&e.type===Ka})}(o),u=p.default.useState(!1),f=u[0],h=u[1];return p.default.useEffect(function(){h(!0)},[]),e.jsx(Ga,{children:e.jsx(Wa.Provider,{value:{isNested:!0},children:e.jsx(Ea,{className:"layout-wrapper ".concat(r).concat(f?" layout-mounted":""),style:a,$hasSider:d,$theme:c,"data-theme":c,children:o})})})};Za.Header=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,a=void 0===i?{}:i,o=n.children,l=n.height,s=n.fixed,c=void 0!==s&&s,d=n.theme,u=void 0===d?"light":d,p=null!=u?u:"light",f=(null==a?void 0:a.background)||"#3030302b";return e.jsx(Sa,{className:"layout-header layout-header-".concat(p," ").concat(r),style:a,$height:l,$fixed:c,$theme:p,$bgColor:f,"data-theme":p,children:o})},Za.Sider=Ka,Za.Content=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,a=void 0===i?{}:i,o=n.children,l=n.theme,s=void 0===l?"light":l,c=null!=s?s:"light",d=$a(),u=d.siderCollapsed,p=d.zeroWidthMode,f=d.onExpand;return e.jsxs(Ua,{className:"layout-content ".concat(r),style:a,$theme:c,"data-theme":c,children:[p&&u&&e.jsx(La,{onClick:f,children:e.jsx(B,{type:"menu",size:24,color:"#fff"})}),o]})},Za.Footer=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,a=void 0===i?{}:i,o=n.children,l=n.height,s=n.fixed,c=void 0!==s&&s,d=n.theme,u=void 0===d?"light":d,p=null!=u?u:"light";return e.jsx(Fa,{className:"layout-footer ".concat(r),style:a,$height:l,$fixed:c,$theme:p,"data-theme":p,children:o})};var Xa,qa,Ja,Qa,eo,no,to,ro=Za,io=function(e,n){return"var(".concat(e,", ").concat(n,")")},ao=r.keyframes(Xa||(Xa=j(["\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"]))),oo=h.default.form(qa||(qa=j(["\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")}),lo=h.default.div(Ja||(Ja=j(["\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"])),io("--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(io("--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")}),so=h.default.label(Qa||(Qa=j(["\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"])),io("--form-label-font-size","14px"),io("--form-label-color","#333"),io("--form-label-margin-bottom","8px"),function(e){return e.$labelAlign||"end"},function(e){return e.$colon?'":"':""},function(e){return e.$required?'"*"':'""'},io("--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")}),co=h.default.div(eo||(eo=j(["\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")}),uo=h.default.div(no||(no=j(["\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"])),io("--form-error-font-size","12px"),io("--form-error-color","#f5222d"),ao,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")}),po=h.default.div(to||(to=j(["\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"])),io("--form-help-font-size","12px"),io("--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")}),fo=n.createContext(null),ho=function(t){var r=t.children,i=t.className,a=void 0===i?"":i,o=t.style,l=t.layout,s=void 0===l?"horizontal":l,c=t.labelSpan,d=t.wrapperSpan,u=t.initialValues,f=void 0===u?{}:u,h=t.onFinish,g=t.onFinishFailed,v=t.colon,b=void 0===v||v,j=t.requiredMark,_=void 0===j||j,C=t.styles,w=t.formRef,N=t.form,z=n.useState(f),E=z[0],S=z[1],T=n.useState({}),O=T[0],k=T[1],L=n.useRef(null),A=n.useRef(new Map),M=n.useRef(null),I=n.useCallback(function(e,n){S(function(t){var r;return m(m({},t),((r={})[e]=n,r))}),O[e]&&k(function(n){var t=m({},n);return delete t[e],t})},[O]),D=n.useCallback(function(e){return E[e]},[E]),R=n.useCallback(function(e){S(function(n){return m(m({},n),e)}),Object.keys(e).forEach(function(e){O[e]&&k(function(n){var t=m({},n);return delete t[e],t})})},[O]),H=n.useCallback(function(e){return y(void 0,void 0,void 0,function(){var n,t,r,i,a,o,l,s;return x(this,function(c){switch(c.label){case 0:if(!(n=A.current.get(e)))return[2];if(t=n.rules,r=E[e],!t||0===t.length)return[2];i=function(n){var t,i,a,o,l,s,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 m(m({},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 m(m({},n),((t={})[e]=i,t))}),[2,{value:i}];if(n.type){switch(a=!0,n.type){case"email":a=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r);break;case"url":a=/^https?:\/\/.+$/.test(r);break;case"number":a=!isNaN(Number(r));break;case"integer":a=Number.isInteger(Number(r));break;case"float":a=!isNaN(parseFloat(r))&&isFinite(r);break;case"string":a="string"==typeof r;break;case"boolean":a="boolean"==typeof r;break;case"array":a=Array.isArray(r);break;case"object":a="object"==typeof r&&null!==r&&!Array.isArray(r)}if(!a)return o=n.message||"".concat(e," must be a ").concat(n.type),k(function(n){var t;return m(m({},n),((t={})[e]=o,t))}),[2,{value:o}]}if(void 0!==n.min&&r.length<n.min)return l=n.message||"".concat(e," must be at least ").concat(n.min," characters"),k(function(n){var t;return m(m({},n),((t={})[e]=l,t))}),[2,{value:l}];if(void 0!==n.max&&r.length>n.max)return s=n.message||"".concat(e," must be at most ").concat(n.max," characters"),k(function(n){var t;return m(m({},n),((t={})[e]=s,t))}),[2,{value:s}];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 m(m({},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 m(m({},n),((t={})[e]=u,t))}),[2,{value:u}];case 4:return[2]}})},a=0,o=t,c.label=1;case 1:return a<o.length?(l=o[a],[5,i(l)]):[3,4];case 2:if("object"==typeof(s=c.sent()))return[2,s.value];c.label=3;case 3:return a++,[3,1];case 4:return k(function(n){var t=m({},n);return delete t[e],t}),[2,null]}})})},[E]),P=n.useCallback(function(e){return y(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(A.current.keys()),[4,Promise.all(n.map(function(e){return H(e)}))];case 1:if(t=r.sent(),t.some(function(e){return null!==e}))throw new Error("Validation failed");return[2,E]}})})},[H,E]),V=n.useCallback(function(e){if(e){var n=m({},E);e.forEach(function(e){n[e]=f[e]||void 0}),S(n)}else S(f);k({})},[E,f]),B={getFieldValue:D,getFieldsValue:function(e){if(!e)return E;var n={};return e.forEach(function(e){n[e]=E[e]}),n},setFieldValue:I,setFieldsValue:R,setFields:function(e){var n=m({},E),t=m({},O);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]}),S(n),k(t)},resetFields:V,validateFields:P,submit:function(){P().then(function(){var e=document.querySelector("form");e&&e.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))})},destroy:function(){S({}),k({}),A.current.clear(),M.current=null}};n.useEffect(function(){M.current=B,w&&(w.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,w,N]);var U=n.useCallback(function(e,n){return A.current.set(e,n),function(){A.current.delete(e)}},[]),F={layout:s,labelSpan:c,wrapperSpan:d,colon:b,requiredMark:_,values:E,errors:O,setFieldValue:I,getFieldValue:D,setFieldValueList:R,validateField:H,validateFields:P,resetFields:V};return e.jsx(fo.Provider,{value:F,children:e.jsx(oo,{ref:L,className:"form-wrapper ".concat(a),style:o,$styles:null==C?void 0:C.wrapper,onSubmit:function(e){return y(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,P()];case 2:return t.sent(),null==h||h(E),[3,4];case 3:return n=t.sent(),null==g||g({error:n,values:E}),[3,4];case 4:return[2]}})})},children:p.default.Children.map(r,function(e){return p.default.isValidElement(e)&&e.type===go?p.default.cloneElement(e,{registerItem:U}):e})})})},go=function(t){var r=t.name,i=t.label,a=t.required,o=t.rules,l=void 0===o?[]:o,s=t.className,c=void 0===s?"":s,d=t.style,u=t.help,f=t.validateStatus,h=t.colon,g=t.labelSpan,v=t.wrapperSpan,y=t.hidden,x=void 0!==y&&y,b=t.extra,j=t.styles,_=t.registerItem,C=t.children,w=n.useContext(fo),N=n.useState(r&&(null==w?void 0:w.values[r])?w.values[r]:""),z=N[0],E=N[1];n.useEffect(function(){if(_&&r)return _(r,{rules:l})},[_,r,l]),n.useEffect(function(){w&&r&&E(w.values[r])},[w,r,null==w?void 0:w.values]);var S=a||l.some(function(e){return e.required}),T=w&&r?w.errors[r]:"",O=!!T||"error"===f,k=void 0!==g?g:null==w?void 0:w.labelSpan,L=void 0!==v?v:null==w?void 0:w.wrapperSpan,A=k?k/24*100:void 0,M=void 0;if(void 0!==k){var I=24-k,D=void 0!==L?L:I;D>I&&(D=I),D<1&&(D=1),M=D/24*100}return x?null:e.jsxs(lo,{className:"form-item ".concat(c),style:d,$layout:(null==w?void 0:w.layout)||"horizontal",$styles:null==j?void 0:j.wrapper,children:[i&&e.jsx(so,{className:"form-label",$required:S,$colon:void 0!==h?h:null==w?void 0:w.colon,$styles:m(m({},null==j?void 0:j.label),void 0!==A?{width:"".concat(A,"%")}:{}),children:i}),e.jsxs(co,{className:"form-control",$styles:m(m({},null==j?void 0:j.input),void 0!==M?{width:"".concat(M,"%")}:{}),children:[p.default.Children.map(p.default.Children.toArray(C).filter(function(e){return p.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 p.default.cloneElement(e,{value:z,onChange:function(e){var t,i;!function(e){E(e),r&&(null==w||w.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:O||void 0,autoComplete:t})}),O&&e.jsx(uo,{className:"form-error ".concat(O?"form-error-visible":""),$styles:null==j?void 0:j.error,children:T}),u&&!O&&e.jsx(po,{className:"form-help",$styles:null==j?void 0:j.help,children:u}),b&&!O&&e.jsx(po,{className:"form-help",$styles:null==j?void 0:j.help,children:b})]})]})};ho.Item=go;var mo,vo,yo,xo=ho,bo=h.default.div.withConfig({shouldForwardProp:function(e){return!["width","height","gap","padding","backgroundColor"].includes(e)}})(mo||(mo=j(["\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"}),jo=h.default.div.withConfig({shouldForwardProp:function(e){return!["span","rowGap","align","justify","wrap"].includes(e)}})(vo||(vo=j(["\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"}),_o=h.default.div.withConfig({shouldForwardProp:function(e){return!["span","offset","push","pull","order","gap"].includes(e)}})(yo||(yo=j(["\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"}),Co=n.createContext({}),wo=n.createContext({}),No=p.default.forwardRef(function(t,r){var i=t.children,a=t.className,o=t.style,l=t.span,s=t.offset,c=t.push,d=t.pull,u=t.order,p=t.gap,h=n.useContext(wo),g=null==h?void 0:h.gap,m=void 0!==p?p:g;return e.jsx(_o,{ref:r,className:f.default("zjpcy-grid-col",a),style:o,span:l,offset:s,push:c,pull:d,order:u,gap:m,children:i})});No.displayName="Grid.Col";var zo=p.default.forwardRef(function(t,r){var i=t.children,a=t.className,o=t.style,l=t.span,s=t.gap,c=t.rowGap,d=t.align,u=t.justify,p=t.wrap,h=void 0===p||p,g=n.useContext(Co),m=null==g?void 0:g.gap,v=void 0!==s?s:m;return e.jsx(wo.Provider,{value:{gap:v},children:e.jsx(jo,{ref:r,className:f.default("zjpcy-grid-row",a),style:o,span:l,rowGap:c,align:d,justify:u,wrap:h,children:i})})});zo.displayName="Grid.Row";var Eo=Object.assign(zo,{Col:No}),So=p.default.forwardRef(function(n,t){var r=n.children,i=n.className,a=n.style,o=n.width,l=n.height,s=n.gap,c=n.padding,d=n.backgroundColor;return e.jsx(Co.Provider,{value:{gap:s},children:e.jsx(bo,{ref:t,className:f.default("zjpcy-grid",i),style:a,width:o,height:l,gap:s,padding:c,backgroundColor:d,children:r})})});So.displayName="Grid";var To=Object.assign(So,{Row:Eo,Col:No}),Oo=function(t){var r=t.open,i=t.title,a=t.width,l=void 0===a?460:a,s=t.height,c=void 0===s?300:s,d=t.placement,u=void 0===d?"right":d,p=t.maskClosable,h=void 0===p||p,g=t.mask,v=void 0===g||g,y=t.onClose,x=t.children,b=t.className,j=t.style,_=t.maskStyle,C=t.maskClassName,w=t.contentClassName,N=t.contentStyle,z=t.header,E=t.headerClassName,S=t.headerStyle,T=t.footer,O=t.footerClassName,k=t.footerStyle,L=t.getContainer,A=void 0!==L&&L,M=t.destroyOnClose,I=void 0!==M&&M,D=t.closable,R=void 0===D||D,H=t.zIndex,P=void 0===H?1e3:H,V=t.loading,U=void 0!==V&&V,F=t.loadingIcon,Y=t.resizable,G=void 0!==Y&&Y,$=t.resizeHandleSize,W=void 0===$?8:$,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],ae=n.useState(!1),oe=ae[0],le=ae[1],se=window.innerWidth,ce=window.innerHeight,de=n.useState("number"==typeof l?l:460),ue=de[0],fe=de[1],he=n.useState("number"==typeof c?c:300),ge=he[0],me=he[1],ve=n.useState(!1),ye=ve[0],xe=ve[1],be=n.useRef(null),je=n.useRef({x:0,y:0}),_e=n.useRef({width:0,height:0}),Ce=n.useRef({width:ue,height:ge}),we=n.useRef({placement:u,minWidth:Z,maxWidth:se,minHeight:q,maxHeight:ce,onChange:J});n.useEffect(function(){Ce.current={width:ue,height:ge}},[ue,ge]),n.useEffect(function(){we.current={placement:u,minWidth:Z,maxWidth:se,minHeight:q,maxHeight:ce,onChange:J}},[u,Z,se,q,ce,J]),n.useEffect(function(){"number"==typeof l&&fe(l)},[l]),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&&y()},ze=function(){y()},Ee=function(e){return"number"==typeof e?"".concat(e,"px"):e},Se=function(){var e=m(m({},j),{zIndex:P}),n=G?{width:ue,height:ge}:{width:l,height:c};switch(u){case"left":case"right":e.width=Ee(n.width),e.height="100%";break;case"top":case"bottom":e.height=Ee(n.height),e.width="100%"}return ye&&(e.transition="none"),e},Te=G&&ee,Oe=function(){switch(u){case"left":return"zjpcy-drawer-resize-handle--right";case"right":return"zjpcy-drawer-resize-handle--left";case"top":return"zjpcy-drawer-resize-handle--bottom";case"bottom":return"zjpcy-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"}},Le=n.useCallback(function(e){e.preventDefault(),e.stopPropagation();var n=Ce.current.width,t=Ce.current.height;if(be.current){var r=we.current;"left"===r.placement||"right"===r.placement?be.current.style.width="".concat(n,"px"):be.current.style.height="".concat(t,"px")}xe(!0),je.current={x:e.clientX,y:e.clientY},_e.current={width:n,height:t}},[]),Ae=n.useCallback(function(e){var n,t=we.current,r=e.clientX-je.current.x,i=e.clientY-je.current.y,a=_e.current.width,o=_e.current.height;if("left"===t.placement){var l=_e.current.width+r;(a=Math.max(t.minWidth,Math.min(t.maxWidth,l)))!==l&&(je.current.x=e.clientX,_e.current.width=a)}else if("right"===t.placement){l=_e.current.width-r;(a=Math.max(t.minWidth,Math.min(t.maxWidth,l)))!==l&&(je.current.x=e.clientX,_e.current.width=a)}else if("top"===t.placement){var s=_e.current.height+i;(o=Math.max(t.minHeight,Math.min(t.maxHeight,s)))!==s&&(je.current.y=e.clientY,_e.current.height=o)}else if("bottom"===t.placement){s=_e.current.height-i;(o=Math.max(t.minHeight,Math.min(t.maxHeight,s)))!==s&&(je.current.y=e.clientY,_e.current.height=o)}Ce.current={width:a,height:o},fe(a),me(o),null===(n=t.onChange)||void 0===n||n.call(t,{width:a,height:o})},[]),Me=n.useCallback(function(){xe(!1)},[]);n.useEffect(function(){return ye?(document.addEventListener("mousemove",Ae),document.addEventListener("mouseup",Me)):(document.removeEventListener("mousemove",Ae),document.removeEventListener("mouseup",Me)),function(){document.removeEventListener("mousemove",Ae),document.removeEventListener("mouseup",Me)}},[ye,Ae,Me]);var Ie=function(){return U?F?e.jsx("div",{className:"zjpcy-drawer-loading",children:e.jsx("div",{className:"zjpcy-drawer-loading-content",children:F})}):e.jsx("div",{className:"zjpcy-drawer-loading",children:e.jsx("div",{className:"zjpcy-drawer-loading-content",children:e.jsx("div",{className:"zjpcy-drawer-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"zjpcy-drawer-loading-icon",children:[e.jsx("circle",{className:"zjpcy-drawer-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"zjpcy-drawer-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})})})}):null},De=function(){return!1===z?null:z?e.jsx("div",{className:f.default("zjpcy-drawer-header",E),style:S,children:z}):i||R?e.jsxs("div",{className:f.default("zjpcy-drawer-header",E),style:S,children:[e.jsx("div",{className:"zjpcy-drawer-header__title",children:i}),R&&e.jsx("button",{className:"zjpcy-drawer-header__close",onClick:ze,type:"button","aria-label":"Close",children:e.jsx(B,{type:"close",size:20})})]}):null},Re=function(){var n;return Te?e.jsx("div",{className:f.default("zjpcy-drawer-resize-handle",Oe()),style:(n={cursor:ke()},n["left"===u||"right"===u?"width":"height"]=W,n),onMouseDown:Le}):null},He=function(){if(!ee&&!oe)return null;var n=e.jsx("div",{className:f.default("zjpcy-drawer-overlay",{"zjpcy-drawer-overlay--visible":re&&!oe,"zjpcy-drawer-overlay--closing":oe,"zjpcy-drawer-overlay--resizing":ye},C),style:m({zIndex:P},_),onClick:Ne,children:e.jsxs("div",{ref:be,className:f.default("zjpcy-drawer","zjpcy-drawer--".concat(u),{"zjpcy-drawer--visible":re&&!oe,"zjpcy-drawer--closing":oe,"zjpcy-drawer--no-mask":!v,"zjpcy-drawer--resizing":ye},b),style:Se(),onClick:function(e){return e.stopPropagation()},children:[Ie(),De(),e.jsx("div",{className:f.default("zjpcy-drawer-content",w),style:N,children:I&&oe?null:x}),!1!==T&&e.jsx("div",{className:f.default("zjpcy-drawer-footer",O),style:k,children:T||e.jsxs(e.Fragment,{children:[e.jsx(pe,{onClick:ze,type:"button",children:"取消"}),e.jsx(pe,{variant:"primary",onClick:ze,type:"button",children:"确认"})]})}),Re()]})});return v?n:e.jsx("div",{className:f.default("zjpcy-drawer-wrapper",{"zjpcy-drawer-wrapper--visible":re&&!oe,"zjpcy-drawer-wrapper--closing":oe,"zjpcy-drawer-wrapper--no-mask":!v}),style:{zIndex:P},children:e.jsxs("div",{ref:be,className:f.default("zjpcy-drawer","zjpcy-drawer--".concat(u),{"zjpcy-drawer--visible":re&&!oe,"zjpcy-drawer--closing":oe,"zjpcy-drawer--no-mask":!v,"zjpcy-drawer--resizing":ye},b),style:Se(),children:[Ie(),De(),e.jsx("div",{className:f.default("zjpcy-drawer-content",w),style:N,children:I&&oe?null:x}),!1!==T&&e.jsx("div",{className:f.default("zjpcy-drawer-footer",O),style:k,children:T||e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:ze,type:"button",children:"取消"}),e.jsx("button",{onClick:ze,type:"button",children:"确认"})]})}),Re()]})})}();if(!He)return null;if(!1===A)return He;var Pe="function"==typeof A?A():A;return Pe?o.createPortal(He,Pe):He},ko=p.default.forwardRef(function(t,r){var i=t.children,a=t.className,o=t.style,l=t.size,s=void 0===l?"medium":l,c=t.backgroundColor,d=t.color,u=t.icon,p=t.closable,h=void 0!==p&&p,g=t.onClose,y=t.onClick,x=v(t,["children","className","style","size","backgroundColor","color","icon","closable","onClose","onClick"]),b=n.useState(!0),j=b[0],_=b[1];if(!j)return null;var C=f.default("zjpcy-tag","zjpcy-tag--".concat(s),{"zjpcy-tag--clickable":y,"zjpcy-tag--closable":h},a),w=m({backgroundColor:c,color:d},o);return e.jsxs("span",m({ref:r,className:C,style:w,onClick:y},x,{children:[u?"string"==typeof u?e.jsx("span",{className:"zjpcy-tag__icon",children:e.jsx(B,{type:u})}):e.jsx("span",{className:"zjpcy-tag__icon",children:u}):null,e.jsx("span",{className:"zjpcy-tag__content",children:i}),h&&e.jsx("span",{className:"zjpcy-tag__close",onClick:function(e){e.stopPropagation(),null==g||g(e),_(!1)},role:"button",tabIndex:0,"aria-label":"close",children:e.jsx(B,{type:"close"})})]}))});ko.displayName="Tag";var Lo=ko,Ao=function(t){var r=t.title,i=void 0===r?"确认删除吗?":r,a=t.description,l=t.okText,s=void 0===l?"确定":l,c=t.cancelText,d=void 0===c?"取消":c,u=t.okButtonProps,p=void 0===u?{}:u,h=t.cancelButtonProps,g=void 0===h?{}:h,v=t.onConfirm,b=t.onCancel,j=t.disabled,_=void 0!==j&&j,C=t.icon,w=t.type,N=void 0===w?"warning":w,z=t.placement,E=void 0===z?"top":z,S=t.showCancel,T=void 0===S||S,O=t.getContainer,k=void 0===O?function(){return document.body}:O,L=t.className,A=t.style,M=t.children,I=n.useState(!1),D=I[0],R=I[1],H=n.useState(!1),P=H[0],V=H[1],U=n.useState({top:0,left:0}),F=U[0],Y=U[1],G=n.useRef(null),$=n.useRef(null),W={top:"zjpcy-popconfirm-top",bottom:"zjpcy-popconfirm-bottom",left:"zjpcy-popconfirm-left",right:"zjpcy-popconfirm-right",topLeft:"zjpcy-popconfirm-topLeft",topRight:"zjpcy-popconfirm-topRight",bottomLeft:"zjpcy-popconfirm-bottomLeft",bottomRight:"zjpcy-popconfirm-bottomRight",leftTop:"zjpcy-popconfirm-leftTop",leftBottom:"zjpcy-popconfirm-leftBottom",rightTop:"zjpcy-popconfirm-rightTop",rightBottom:"zjpcy-popconfirm-rightBottom"},K=function(){if(G.current&&$.current){var e=G.current.getBoundingClientRect(),n=$.current.getBoundingClientRect(),t=0,r=0;switch(E){case"top":case"topLeft":case"topRight":t=e.top-n.height-8,r=e.left+(e.width-n.width)/2,"topLeft"===E?r=e.left:"topRight"===E&&(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"===E?r=e.left:"bottomRight"===E&&(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"===E?t=e.top:"leftBottom"===E&&(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"===E?t=e.top:"rightBottom"===E&&(t=e.bottom-n.height)}var i=window.innerWidth,a=window.innerHeight;r<10&&(r=10),r+n.width>i-10&&(r=i-n.width-10),t<10&&(t=10),t+n.height>a-10&&(t=a-n.height-10),Y({top:t,left:r})}},Z=function(e){_||(e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),R(!0))},X=function(){return y(void 0,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:if(!v)return[3,5];V(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,v()];case 2:return e.sent(),R(!1),[3,4];case 3:return V(!1),[7];case 4:return[3,6];case 5:R(!1),e.label=6;case 6:return[2]}})})},q=function(){b&&b(),R(!1)},J=function(e){$.current&&!$.current.contains(e.target)&&G.current&&!G.current.contains(e.target)&&R(!1)};n.useEffect(function(){if(D){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)}}},[D,E]);var Q,ee;return e.jsxs(e.Fragment,{children:[(Q=M,ee=Q.props||{},e.jsx("span",{ref:G,style:{display:"inline-block"},children:n.cloneElement(Q,m(m({},ee),{onClick:Z}))})),function(){if(!D)return null;var n,t=e.jsxs("div",{ref:$,className:f.default("zjpcy-popconfirm","zjpcy-popconfirm-visible",W[E],"zjpcy-popconfirm--".concat(N),L),style:m({position:"fixed",top:"".concat(F.top,"px"),left:"".concat(F.left,"px")},A),children:[e.jsx("div",{className:"zjpcy-popconfirm-arrow"}),e.jsxs("div",{className:"zjpcy-popconfirm-inner",children:[e.jsxs("div",{className:"zjpcy-popconfirm-header",children:[e.jsx("span",{style:{display:C?"inline-block":"none"},className:"zjpcy-popconfirm-icon",children:C||(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(B,{type:n.type,size:18,color:n.color}))}),e.jsx("span",{className:"zjpcy-popconfirm-title",children:i})]}),a&&e.jsx("div",{className:"zjpcy-popconfirm-description",children:a}),e.jsxs("div",{className:"zjpcy-popconfirm-actions",children:[T&&e.jsx(pe,{variant:g.variant||"secondary",onClick:q,disabled:g.disabled||P,size:"small",children:d}),e.jsx(pe,{variant:p.variant||"primary",onClick:X,loading:p.loading||P,disabled:p.disabled,size:"small",children:s})]})]})]});if(!1===k)return t;var r="function"==typeof k?k():k;return r?o.createPortal(t,r):t}()]})},Mo=function(n){var t,r,i,a=n.percent,o=void 0===a?0:a,l=n.type,s=void 0===l?"line":l,c=n.status,d=n.showInfo,u=void 0===d||d,p=n.format,h=n.strokeColor,g=void 0===h?"#1890ff":h,v=n.trailColor,y=void 0===v?"gainsboro":v,x=n.strokeWidth,b=n.size,j=void 0===b?"default":b,_=n.transition,C=void 0===_||_,w=n.steps,N=n.segments,z=n.icon,E=n.prefix,S=n.suffix,T=n.children,O=n.className,k=n.style,L=c||(o>=100?"success":o<0?"exception":"normal"),A=function(){return p?p(o):"".concat(Math.floor(o),"%")},M=function(e){return"object"==typeof e&&"from"in e&&"to"in e},I=function(){return"success"===L?"#52c41a":"exception"===L?"#ff4d4f":M(g)?g.from:g},D=function(){return z||("success"===L?e.jsx(B,{type:"check-circle",style:{color:"#52c41a"}}):"exception"===L?e.jsx(B,{type:"close-circle",style:{color:"#ff4d4f"}}):null)};if("circle"===s||"dashboard"===s){var R=50-(x||6),H=2*Math.PI*R,P=H-o/100*H,V="success"===L?"#52c41a":"exception"===L?"#ff4d4f":g,U=M(V)?(r=(t=V).from,i=t.to,"from-".concat(r.replace("#",""),"-to-").concat(i.replace("#",""))):null;return e.jsxs("div",{className:f.default("zjpcy-progress","zjpcy-progress-circle",O),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:V.from}),e.jsx("stop",{offset:"100%",stopColor:V.to})]})}),e.jsx("circle",{cx:60,cy:60,r:R,stroke:y,strokeWidth:x||6,fill:"none"}),e.jsx("circle",{cx:60,cy:60,r:R,stroke:U?"url(#".concat(U,")"):I(),strokeWidth:x||6,fill:"none",strokeDasharray:H,strokeDashoffset:P,strokeLinecap:"round",style:{transition:C?"stroke-dashoffset 0.3s cubic-bezier(0.34, 0.69, 0.1, 1)":"none"}})]}),u&&e.jsx("div",{className:"zjpcy-progress-info",children:T||e.jsxs(e.Fragment,{children:[D(),E,A(),S]})})]})}var F=function(e){var n=e.color;if(M(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:f.default("zjpcy-progress","zjpcy-progress-".concat(j),"zjpcy-progress-line",{"zjpcy-progress-success":"success"===L},{"zjpcy-progress-exception":"exception"===L},{"zjpcy-progress-steps":w&&w>0},{"zjpcy-progress-has-segments":N&&N.length>0},O),style:k,children:[e.jsx("div",{className:"zjpcy-progress-wrapper",children:e.jsx("div",{className:"zjpcy-progress-outer",children:w&&w>0?function(){if(!w||w<=0)return null;var n=o/100,t=Math.min(1,Math.max(0,n)),r=Array.from({length:w},function(n,r){var i=r/w,a=(r+1)/w,o=t>=a,l=t>i&&t<a,s=t<=i,c=t>=1;return e.jsx("div",{className:f.default("zjpcy-progress-step",{"zjpcy-progress-step--completed":o,"zjpcy-progress-step--current":l,"zjpcy-progress-step--pending":s,"zjpcy-progress-step--success":c}),style:{transition:C?"all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function)":"none"}},r)});return e.jsx("div",{className:"zjpcy-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===o||0===o?n:o,r=n>0?t/n:t/100,i=Math.min(1,Math.max(0,r)),a=0,l=N.map(function(t,r){var o=t.percent,l=a/n,s=(a+o)/n;a+=o;var c=i>=s,d=i>l&&i<s,u=i<=l;return e.jsx("div",{className:f.default("zjpcy-progress-segment",{"zjpcy-progress-segment--completed":c,"zjpcy-progress-segment--current":d,"zjpcy-progress-segment--pending":u}),style:m(m({width:"".concat(o,"%")},u?{}:F(t)),{transition:C?"all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function)":"none"})},r)}),s=100-n;return s>0&&l.push(e.jsx("div",{className:"zjpcy-progress-segment zjpcy-progress-segment--remaining",style:{width:"".concat(s,"%"),backgroundColor:"gainsboro",transition:C?"all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function)":"none"}},"remaining")),e.jsx("div",{className:"zjpcy-progress-segments",children:l})}():e.jsx("div",{className:"zjpcy-progress-inner",style:{background:y},children:e.jsx("div",{className:f.default("zjpcy-progress-bg",{"zjpcy-progress-bg--success":"success"===L,"zjpcy-progress-bg--exception":"exception"===L,"zjpcy-progress-bg--animated":function(){var e="success"===L?"#52c41a":"exception"===L?"#ff4d4f":g;return M(e)&&!0===e.animated}()}),style:m(m({width:"".concat(Math.min(100,Math.max(0,o)),"%"),backgroundColor:M(g)?void 0:I()},function(){var e="success"===L?"#52c41a":"exception"===L?"#ff4d4f":g;if(M(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:C?"width 0.3s cubic-bezier(0.34, 0.69, 0.1, 1)":"none"})})})})}),u&&e.jsxs("div",{className:"zjpcy-progress-info",children:[D()&&e.jsx("span",{className:"zjpcy-progress-icon",children:D()}),E&&e.jsx("span",{className:"zjpcy-progress-prefix",children:E}),e.jsx("span",{children:A()}),S&&e.jsx("span",{className:"zjpcy-progress-suffix",children:S})]})]})},Io=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))},Do=function(n){var t=n.options,r=n.value,i=n.onChange,a=n.unit,o=p.default.useRef(null),l=p.default.useRef(null);return p.default.useEffect(function(){if(l.current&&o.current){var e=o.current,n=l.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:a}),e.jsx("div",{className:"time-picker-column-list",ref:o,children:t.map(function(n){return e.jsx("div",{ref:r===n?l:null,className:f.default("time-picker-option",{"is-selected":r===n}),onClick:function(){return null==i?void 0:i(n)},children:n.toString().padStart(2,"0")},n)})})]})},Ro=function(t){var r,i,a,o=t.value,l=t.onChange,s=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,y=void 0===v||v,x=t.showOk,b=void 0===x||x,j=t.onNow,_=t.onOk,C=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}}(o),w=n.useState(null!==(r=null==C?void 0:C.hour)&&void 0!==r?r:0),N=w[0],z=w[1],E=n.useState(null!==(i=null==C?void 0:C.minute)&&void 0!==i?i:0),S=E[0],T=E[1],O=n.useState(null!==(a=null==C?void 0:C.second)&&void 0!==a?a:0),k=O[0],L=O[1];n.useEffect(function(){if(C)z(C.hour),T(C.minute),L(C.second);else{var e=new Date;z(e.getHours()),T(e.getMinutes()),L(e.getSeconds())}},[o,C]);var A=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},M=n.useMemo(function(){return(null==p?void 0:p())||[]},[p]),I=n.useMemo(function(){return(null==f?void 0:f(N))||[]},[f,N]),D=n.useMemo(function(){return(null==h?void 0:h(N,S))||[]},[h,N,S]),R=n.useMemo(function(){return A(24,c,M)},[c,M,m]),H=n.useMemo(function(){return A(60,d,I)},[d,I,m]),P=n.useMemo(function(){return A(60,u,D)},[u,D,m]),V=s.includes("ss");return e.jsxs("div",{className:"time-picker-panel-container",children:[e.jsxs("div",{className:"time-picker-panel",children:[e.jsx(Do,{unit:"时",options:R,value:N,onChange:function(e){z(e),null==l||l(Io(e,S,k,s))}}),e.jsx(Do,{unit:"分",options:H,value:S,onChange:function(e){T(e),null==l||l(Io(N,e,k,s))}}),V&&e.jsx(Do,{unit:"秒",options:P,value:k,onChange:function(e){L(e),null==l||l(Io(N,S,e,s))}})]}),(y||b)&&e.jsxs("div",{className:"time-picker-footer",children:[y&&e.jsx("button",{className:"time-picker-now-btn",onClick:j,children:"此刻"}),b&&e.jsx("button",{className:"time-picker-ok-btn",onClick:function(){return null==_?void 0:_(Io(N,S,k,s))},children:"确定"})]})]})},Ho=function(t){var r,i=t.size,a=void 0===i?"middle":i,o=t.value,l=t.defaultValue,s=t.onChange,c=t.placeholder,d=void 0===c?"请选择时间":c,u=t.disabled,p=void 0!==u&&u,h=t.readOnly,v=void 0!==h&&h,y=t.className,x=void 0===y?"":y,b=t.style,j=t.width,_=void 0===j?120:j,C=t.format,w=void 0===C?"HH:mm:ss":C,N=t.allowClear,z=void 0===N||N,E=t.hourStep,S=void 0===E?1:E,T=t.minuteStep,O=void 0===T?1:T,k=t.secondStep,L=void 0===k?1:k,A=t.disabledHours,M=t.disabledMinutes,I=t.disabledSeconds,D=t.hideDisabledOptions,R=void 0!==D&&D,H=t.label,P=t.labelGap,V=void 0===P?8:P,U=t.labelClassName,F=void 0===U?"":U,Y=t.labelStyle,G=t.onOpenChange,$=t.open,W=t.showNow,K=void 0===W||W,Z=t.showOk,X=void 0===Z||Z,q=n.useState(l),J=q[0],Q=q[1],ee=n.useState(!1),ne=ee[0],te=ee[1],re=n.useState(!1),ie=re[0],ae=re[1],oe=n.useState({top:0,left:0,width:0}),le=oe[0],se=oe[1],ce=n.useState(!1),de=ce[0],ue=ce[1],pe=n.useRef(null),fe=n.useRef(null),he=void 0!==o,ge=he?o:J,me=void 0!==$?$: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 a=window.innerWidth;i+n>a&&(i=a-n-16),se({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;se(function(e){return m(m({},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===$&&te(!1),null==G||G(!1),ae(!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 ye=n.useCallback(function(e){he||Q(e),null==s||s(e)},[he,s]),xe=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(),w);ye(n)},be=m({width:"number"==typeof _?"".concat(_,"px"):_},b),je=m({marginRight:"number"==typeof V?"".concat(V,"px"):V},Y),_e=e.jsxs("div",{ref:pe,className:f.default("time-picker-trigger",(r={"is-focused":ie,"is-disabled":p},r["size-".concat(a)]=a,r)),onClick:function(){if(!p&&!v){var e=!me;void 0===$&&te(e),null==G||G(e),ae(e)}},children:[e.jsx("span",{className:f.default("time-picker-value",{"is-placeholder":!ge}),children:ge||d}),e.jsxs("span",{className:"time-picker-suffix",children:[z&&ge&&!p&&!v&&e.jsx("span",{className:"time-picker-clear",onClick:function(e){e.stopPropagation(),he||Q(void 0),null==s||s("")},children:e.jsx(B,{type:"close",size:"small"})}),e.jsx(B,{type:"clock",size:"small",className:f.default("time-picker-icon",{"is-open":me,"has-clear":z&&ge&&!p&&!v})})]})]});return e.jsxs("div",{className:f.default("time-picker",x,{"time-picker-with-label":H}),style:be,children:[H&&e.jsx("span",{className:f.default("time-picker-label",F),style:je,children:H}),_e,function(){if(!me)return null;var n=e.jsx("div",{ref:fe,className:"time-picker-dropdown",style:{position:"fixed",top:le.top,left:le.left,minWidth:le.width||("number"==typeof _?_:parseInt(_,10)),zIndex:999,opacity:de?1:0,transition:"opacity 0.15s ease"},children:e.jsx(Ro,{value:ge,onChange:ye,format:w,hourStep:S,minuteStep:O,secondStep:L,disabledHours:A,disabledMinutes:M,disabledSeconds:I,hideDisabledOptions:R,showNow:K,showOk:X,onNow:xe,onOk:function(e){return function(e){e&&!ge&&ye(e),void 0===$&&te(!1),null==G||G(!1),ae(!1)}(e)}})});return g.default.createPortal(n,document.body)}()]})};Ho.RangePicker=function(t){var r,i=t.size,a=void 0===i?"middle":i,o=t.value,l=t.defaultValue,s=t.onChange,c=t.placeholder,d=void 0===c?["开始时间","结束时间"]:c,u=t.disabled,p=void 0!==u&&u,h=t.readOnly,v=void 0!==h&&h,y=t.className,x=void 0===y?"":y,b=t.style,j=t.width,_=void 0===j?"auto":j,C=t.format,w=void 0===C?"HH:mm:ss":C,N=t.allowClear,z=void 0===N||N,E=t.hourStep,S=void 0===E?1:E,T=t.minuteStep,O=void 0===T?1:T,k=t.secondStep,L=void 0===k?1:k,A=t.disabledHours,M=t.disabledMinutes,I=t.disabledSeconds,D=t.hideDisabledOptions,R=void 0!==D&&D,H=t.label,P=t.labelGap,V=void 0===P?8:P,U=t.labelClassName,F=void 0===U?"":U,Y=t.labelStyle,G=t.onOpenChange,$=t.open,W=t.separator,K=n.useState(l),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],ae=re[1],oe=n.useState({top:0,left:0,width:0}),le=oe[0],se=oe[1],ce=n.useState(!1),de=ce[0],ue=ce[1],pe=n.useRef(null),fe=n.useRef(null),he=void 0!==o,ge=he?o:Z,me=void 0!==$?$:J,ve=(null==ge?void 0:ge[0])||"",ye=(null==ge?void 0:ge[1])||"",xe=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 a=window.innerWidth;i+n>a&&(i=a-n-16),se({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;se(function(e){return m(m({},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===$&&Q(!1),null==G||G(!1),ae(!1))};return me&&(document.addEventListener("mousedown",e),xe(),window.addEventListener("scroll",xe,!0),window.addEventListener("resize",xe)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",xe,!0),window.removeEventListener("resize",xe)}},[me,$,G,xe]);var be=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==s||s(t)},[he,s,ge]),je=function(e){p||v||(te(e),void 0===$&&Q(!0),null==G||G(!0),ae(!0))},_e=function(){void 0===$&&Q(!1),null==G||G(!1),ae(!1)},Ce=m({width:"number"==typeof _?"".concat(_,"px"):_},b),we=m({marginRight:"number"==typeof V?"".concat(V,"px"):V},Y),Ne=ve||ye;return e.jsxs("div",{className:f.default("time-picker time-range-picker",x,{"time-picker-with-label":H}),style:Ce,children:[H&&e.jsx("span",{className:f.default("time-picker-label",F),style:we,children:H}),e.jsxs("div",{ref:pe,className:f.default("time-range-picker-trigger",(r={"is-focused":ie,"is-disabled":p},r["size-".concat(a)]=a,r)),children:[e.jsx("div",{className:f.default("time-range-picker-input",{"is-active":"start"===ne&&me}),onClick:function(){return je("start")},children:e.jsx("span",{className:f.default("time-range-picker-value",{"is-placeholder":!ve}),children:ve||d[0]})}),e.jsx("span",{className:"time-range-picker-separator",children:W||e.jsx(B,{type:"arrow-right",size:"small"})}),e.jsx("div",{className:f.default("time-range-picker-input",{"is-active":"end"===ne&&me}),onClick:function(){return je("end")},children:e.jsx("span",{className:f.default("time-range-picker-value",{"is-placeholder":!ye}),children:ye||d[1]})}),e.jsxs("span",{className:"time-picker-suffix time-range-picker-suffix",children:[z&&Ne&&!p&&!v&&e.jsx("span",{className:"time-picker-clear",onClick:function(e){e.stopPropagation(),he||X(void 0),null==s||s(["",""])},children:e.jsx(B,{type:"close",size:"small"})}),e.jsx(B,{type:"clock",size:"small",className:f.default("time-picker-icon",{"has-clear":z&&Ne&&!p&&!v})})]})]}),function(){if(!me)return null;var n="start"===ne?ve:ye,t=e.jsx("div",{ref:fe,className:"time-picker-dropdown time-range-picker-dropdown",style:{position:"fixed",top:le.top,left:le.left,minWidth:le.width||("number"==typeof _?_:parseInt(_,10)),zIndex:999,opacity:de?1:0,transition:"opacity 0.15s ease"},children:e.jsx(Ro,{value:n,onChange:function(e){return be("start"===ne?0:1,e)},format:w,hourStep:S,minuteStep:O,secondStep:L,disabledHours:A,disabledMinutes:M,disabledSeconds:I,hideDisabledOptions:R,showNow:!1,showOk:!0,onOk:_e})});return g.default.createPortal(t,document.body)}()]})};var Po=Ho,Vo=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)}},Bo=function(e,n){var t,r,i,a,o,l,s;if(!e)return null;try{switch(n){case"YYYY/MM/DD":o=(t=e.split("/").map(Number))[0],l=t[1],s=t[2];break;case"DD-MM-YYYY":s=(r=e.split("-").map(Number))[0],l=r[1],o=r[2];break;case"MM/DD/YYYY":l=(i=e.split("/").map(Number))[0],s=i[1],o=i[2];break;default:o=(a=e.split("-").map(Number))[0],l=a[1],s=a[2]}if(isNaN(o)||isNaN(l)||isNaN(s))return null;var c=new Date(o,l-1,s);return c.getFullYear()!==o||c.getMonth()!==l-1||c.getDate()!==s?null:c}catch(e){return null}},Uo=function(e,n){return new Date(e,n+1,0).getDate()},Fo=function(e,n){return!(!e||!n)&&(e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate())},Yo=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()},Go=function(t){var r=t.size,i=void 0===r?"middle":r,a=t.value,o=t.defaultValue,l=t.onChange,s=t.placeholder,c=void 0===s?["开始日期","结束日期"]:s,d=t.disabled,u=void 0!==d&&d,p=t.readOnly,h=void 0!==p&&p,v=t.className,y=void 0===v?"":v,x=t.style,b=t.width,j=void 0===b?"auto":b,_=t.format,C=void 0===_?"YYYY-MM-DD":_,w=t.allowClear,N=void 0===w||w,z=t.disabledDate,E=t.disabledDates,S=t.label,T=t.labelGap,O=void 0===T?8:T,k=t.labelClassName,L=void 0===k?"":k,A=t.labelStyle,M=t.onOpenChange,I=t.open,D=t.showOk,R=void 0===D||D,H=t.separator,P=n.useState(o),V=P[0],U=P[1],F=n.useState(!1),Y=F[0],G=F[1],$=n.useState("start"),W=$[0],K=$[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),ae=n.useRef(null),oe=void 0!==a,le=oe?a:V,se=void 0!==I?I:Y,ce=(null==le?void 0:le[0])||"",de=(null==le?void 0:le[1])||"",ue=n.useMemo(function(){return Bo(ce,C)},[ce,C]),pe=n.useMemo(function(){return Bo(de,C)},[de,C]),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],ye=me[1];n.useEffect(function(){ue&&ge(ue),pe&&ye(pe)},[ue,pe]);var xe=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 a=window.innerWidth;i+n>a&&(i=a-n-16),ee({top:r,left:i,width:n})}},[]);n.useEffect(function(){if(se&&ae.current&&ie.current){return re(!1),requestAnimationFrame(function(){var e=ie.current.getBoundingClientRect(),n=ae.current.offsetHeight;if(window.innerHeight-e.bottom<360&&e.top>360){var t=e.top+window.scrollY-n-4;ee(function(e){return m(m({},e),{top:t})})}re(!0)}),function(){re(!1)}}},[se]),n.useEffect(function(){var e=function(e){ie.current&&!ie.current.contains(e.target)&&ae.current&&!ae.current.contains(e.target)&&(void 0===I&&G(!1),null==M||M(!1),q(!1))};return se&&(document.addEventListener("mousedown",e),xe(),window.addEventListener("scroll",xe,!0),window.addEventListener("resize",xe)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",xe,!0),window.removeEventListener("resize",xe)}},[se,I,M,xe]);var be=n.useCallback(function(e,n){var t=[0===e?n:(null==le?void 0:le[0])||"",1===e?n:(null==le?void 0:le[1])||""];oe||U(t),null==l||l(t)},[oe,l,le]),je=function(e){u||h||(K(e),void 0===I&&G(!0),null==M||M(!0),q(!0))},_e=function(){void 0===I&&G(!1),null==M||M(!1),q(!1)},Ce=n.useCallback(function(e){if(z&&z(e))return!0;if(E&&E.length>0){var n=Vo(e,C);return E.includes(n)}return!1},[z,E,C]),we=function(e){for(var n=e.getFullYear(),t=e.getMonth(),r=Uo(n,t),i=function(e,n){return new Date(e,n,1).getDay()}(n,t),a=Uo(n,t-1),o=[],l=i-1;l>=0;l--)o.push({date:new Date(n,t-1,a-l),isCurrentMonth:!1});for(l=1;l<=r;l++)o.push({date:new Date(n,t,l),isCurrentMonth:!0});var s=42-o.length;for(l=1;l<=s;l++)o.push({date:new Date(n,t+1,l),isCurrentMonth:!1});return o},Ne=function(n){var t=n.viewDate,r=n.onPrevMonth,i=n.onNextMonth,a=n.label,o=t.getFullYear(),l=t.getMonth();return e.jsxs("div",{className:"zjpcy-datepicker-range-calendar-header",children:[e.jsx("div",{className:"zjpcy-datepicker-range-header-left",children:e.jsx("button",{className:"zjpcy-datepicker-range-header-btn",onClick:r,title:"上个月",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsxs("div",{className:"zjpcy-datepicker-range-header-center",children:[e.jsxs("span",{children:[o,"年 ",["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"][l]]}),e.jsx("span",{className:"zjpcy-datepicker-range-header-label",children:a})]}),e.jsx("div",{className:"zjpcy-datepicker-range-header-right",children:e.jsx("button",{className:"zjpcy-datepicker-range-header-btn",onClick:i,title:"下个月",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]})},ze=function(t){var r=t.viewDate,i=t.onPrevMonth,a=t.onNextMonth,o=t.label,l=n.useMemo(function(){return we(r)},[r]);return e.jsxs("div",{className:"zjpcy-datepicker-range-calendar",children:[e.jsx(Ne,{viewDate:r,onPrevMonth:i,onNextMonth:a,label:o}),e.jsxs("div",{className:"zjpcy-datepicker-range-calendar-body",children:[e.jsx("div",{className:"zjpcy-datepicker-range-week-header",children:["日","一","二","三","四","五","六"].map(function(n){return e.jsx("div",{className:"zjpcy-datepicker-range-week-day",children:n},n)})}),e.jsx("div",{className:"zjpcy-datepicker-range-date-grid",children:l.map(function(n,t){var r=n.date,i=n.isCurrentMonth,a=Fo(r,"start"===W?ue:pe),o=function(e){var n=new Date;return Fo(e,n)}(r),l=Ce(r),s=function(e){return!(!ue||!pe)&&Yo(ue,e)&&Yo(e,pe)}(r),c=function(e){return Fo(e,ue)}(r),d=function(e){return Fo(e,pe)}(r);return e.jsx("div",{className:f.default("zjpcy-datepicker-range-date-cell",{"zjpcy-datepicker-range-date-cell--selected":a,"zjpcy-datepicker-range-date-cell--today":o&&!a,"zjpcy-datepicker-range-date-cell--disabled":l,"zjpcy-datepicker-range-date-cell--other-month":!i,"zjpcy-datepicker-range-date-cell--in-range":s&&!c&&!d,"zjpcy-datepicker-range-date-cell--range-start":c,"zjpcy-datepicker-range-date-cell--range-end":d}),onClick:function(){return function(e){if(!Ce(e)){var n=Vo(e,C);"start"===W?(be(0,n),pe&&Yo(pe,e)&&be(1,""),K("end")):(ue&&Yo(e,ue)?(be(0,n),be(1,ce)):be(1,n),R||_e())}}(r)},children:r.getDate()},t)})})]})]})},Ee=m({width:"number"==typeof j?"".concat(j,"px"):j},x),Se=m({marginRight:"number"==typeof O?"".concat(O,"px"):O},A),Te=ce||de,Oe={"zjpcy-datepicker-range-picker-trigger--small":"small"===i,"zjpcy-datepicker-range-picker-trigger--middle":"middle"===i,"zjpcy-datepicker-range-picker-trigger--large":"large"===i};return e.jsxs("div",{className:f.default("zjpcy-datepicker-range-picker",y,{"zjpcy-datepicker-range-picker-with-label":S}),style:Ee,children:[S&&e.jsx("span",{className:f.default("zjpcy-datepicker-range-picker-label",L),style:Se,children:S}),e.jsxs("div",{ref:ie,className:f.default("zjpcy-datepicker-range-picker-trigger",Oe,{"zjpcy-datepicker-range-picker-trigger--focused":X,"zjpcy-datepicker-range-picker-trigger--disabled":u}),children:[e.jsx("div",{className:f.default("zjpcy-datepicker-range-picker-input",{"zjpcy-datepicker-range-picker-input--active":"start"===W&&se}),onClick:function(){return je("start")},children:e.jsx("span",{className:f.default("zjpcy-datepicker-range-picker-value",{"zjpcy-datepicker-range-picker-value--placeholder":!ce}),children:ce||c[0]})}),e.jsx("span",{className:"zjpcy-datepicker-range-picker-separator",children:H||e.jsx(B,{type:"arrow-right",size:"small"})}),e.jsx("div",{className:f.default("zjpcy-datepicker-range-picker-input",{"zjpcy-datepicker-range-picker-input--active":"end"===W&&se}),onClick:function(){return je("end")},children:e.jsx("span",{className:f.default("zjpcy-datepicker-range-picker-value",{"zjpcy-datepicker-range-picker-value--placeholder":!de}),children:de||c[1]})}),e.jsxs("span",{className:"zjpcy-datepicker-range-picker-suffix",children:[N&&Te&&!u&&!h&&e.jsx("span",{className:"zjpcy-datepicker-range-picker-clear",onClick:function(e){e.stopPropagation(),oe||U(void 0),null==l||l(["",""])},children:e.jsx(B,{type:"close",size:"small"})}),e.jsx(B,{type:"calendar",size:"small",className:f.default("zjpcy-datepicker-range-picker-icon",{"zjpcy-datepicker-range-picker-icon--has-clear":N&&Te&&!u&&!h})})]})]}),function(){if(!se)return null;var n=e.jsxs("div",{ref:ae,className:"zjpcy-datepicker-range-dropdown",style:{position:"fixed",top:Q.top,left:Q.left,minWidth:Q.width||("number"==typeof j?j:parseInt(j,10)||280),zIndex:999,opacity:te?1:0,transition:"opacity 0.15s ease"},children:[e.jsxs("div",{className:"zjpcy-datepicker-range-panels",children:[e.jsx(ze,{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(ze,{viewDate:ve,onPrevMonth:function(){var e=new Date(ve);e.setMonth(e.getMonth()-1),ye(e)},onNextMonth:function(){var e=new Date(ve);e.setMonth(e.getMonth()+1),ye(e)},label:"结束日期"})]}),R&&e.jsxs("div",{className:"zjpcy-datepicker-range-footer",children:[e.jsx("div",{className:"zjpcy-datepicker-range-footer-spacer"}),e.jsx("div",{className:"zjpcy-datepicker-range-footer-actions",children:e.jsx("button",{className:"zjpcy-datepicker-range-btn zjpcy-datepicker-range-btn--primary",onClick:_e,children:"确定"})})]})]});return g.default.createPortal(n,document.body)}()]})},$o=h.default.div.withConfig({shouldForwardProp:function(e){return!["width","minWidth"].includes(e)}})(al||(al=j(["\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"}),Wo=h.default.div.withConfig({shouldForwardProp:function(e){return!["focused"].includes(e)}})(ol||(ol=j(["\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(--zjpcy-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--zjpcy-primary-color);\n box-shadow: var(--zjpcy-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(--zjpcy-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--zjpcy-primary-color);\n box-shadow: var(--zjpcy-input-box-shadow-focus);\n }\n"])),function(e){switch(e.size){case"small":return"24px";case"large":return"40px";default:return"34px"}},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(--zjpcy-border-color-extra-light)":e.focused?"var(--zjpcy-primary-color)":"var(--zjpcy-border-color-extra-light)"},function(e){return e.disabled?"var(--zjpcy-bg-color-light)":"var(--zjpcy-bg-color-white)"},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"var(--zjpcy-border-color-extra-light)":"var(--zjpcy-primary-color)"}),Ko=h.default.span.withConfig({shouldForwardProp:function(e){return!["isPlaceholder"].includes(e)}})(ll||(ll=j(["\n flex: 1;\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 14px;\n\n /* 多选模式下的 tags 布局 */\n &.zjpcy-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 &.zjpcy-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(--zjpcy-text-color-tertiary)":e.isPlaceholder?"var(--zjpcy-text-color-light)":"var(--zjpcy-text-color)"}),Zo=h.default.span(sl||(sl=j(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--zjpcy-text-color-light);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-text-color-light);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"]))),Xo=h.default.span(cl||(cl=j(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--zjpcy-text-color);\n background-color: var(--zjpcy-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(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--zjpcy-text-color);\n background-color: var(--zjpcy-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]))),qo=h.default.span(dl||(dl=j(["\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(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"]))),Jo=h.default.div.withConfig({shouldForwardProp:function(e){return!["top","left","minWidth"].includes(e)}})(ul||(ul=j(["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n box-shadow: var(--zjpcy-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(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n box-shadow: var(--zjpcy-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"}),Qo=h.default.div(pl||(pl=j(["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n"],["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n"]))),el=h.default.div(fl||(fl=j(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n border-bottom: 1px solid var(--zjpcy-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(--zjpcy-border-color-light);\n"]))),nl=h.default.div(hl||(hl=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),tl=h.default.div(gl||(gl=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n"]))),rl=h.default.div(ml||(ml=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),il=h.default.button(vl||(vl=j(["\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(--zjpcy-border-radius-sm);\n color: var(--zjpcy-text-color-secondary);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--zjpcy-bg-color-light);\n color: var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: var(--zjpcy-text-color-secondary);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--zjpcy-bg-color-light);\n color: var(--zjpcy-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])));h.default.select(yl||(yl=j(["\n border: none;\n background-color: transparent;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n cursor: pointer;\n padding: 2px 4px;\n border-radius: var(--zjpcy-border-radius-sm);\n\n &:hover {\n background-color: var(--zjpcy-bg-color-light);\n }\n\n &:focus {\n outline: none;\n background-color: var(--zjpcy-bg-color-light);\n }\n"],["\n border: none;\n background-color: transparent;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n cursor: pointer;\n padding: 2px 4px;\n border-radius: var(--zjpcy-border-radius-sm);\n\n &:hover {\n background-color: var(--zjpcy-bg-color-light);\n }\n\n &:focus {\n outline: none;\n background-color: var(--zjpcy-bg-color-light);\n }\n"])));var al,ol,ll,sl,cl,dl,ul,pl,fl,hl,gl,ml,vl,yl,xl,bl,jl,_l,Cl,wl,Nl,zl,El,Sl,Tl,Ol,kl,Ll,Al,Ml,Il,Dl,Rl,Hl,Pl,Vl,Bl,Ul,Fl,Yl,Gl,$l,Wl,Kl,Zl,Xl,ql,Jl,Ql,es,ns,ts,rs,is,as,os,ls,ss,cs,ds,us,ps,fs=h.default.div(xl||(xl=j(["\n padding: 12px 16px;\n"],["\n padding: 12px 16px;\n"]))),hs=h.default.div(bl||(bl=j(["\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"]))),gs=h.default.div(jl||(jl=j(["\n text-align: center;\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n padding: 8px 0;\n font-weight: 500;\n"],["\n text-align: center;\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n padding: 8px 0;\n font-weight: 500;\n"]))),ms=h.default.div(_l||(_l=j(["\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"]))),vs=h.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isToday","isCurrentMonth"].includes(e)}})(Cl||(Cl=j(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n font-size: 13px;\n cursor: ",";\n border-radius: var(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-text-color-light)":e.isSelected?"#fff":e.isInSelectedSet||e.isToday?"var(--zjpcy-primary-color)":e.isCurrentMonth?"var(--zjpcy-text-color)":"var(--zjpcy-text-color-light)"},function(e){return e.isSelected?"var(--zjpcy-primary-color)":e.isInSelectedSet?"var(--zjpcy-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(--zjpcy-primary-hover-color)":e.isInSelectedSet?"var(--zjpcy-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--zjpcy-bg-color-light)"},function(e){return e.isToday&&!e.isSelected&&"\n border: 1px solid var(--zjpcy-primary-color);\n "}),ys=h.default.div(wl||(wl=j(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px;\n border-top: 1px solid var(--zjpcy-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(--zjpcy-border-color-light);\n gap: 8px;\n"]))),xs=h.default.div(Nl||(Nl=j(["\n flex: 1;\n"],["\n flex: 1;\n"]))),bs=h.default.div(zl||(zl=j(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),js=h.default.button.withConfig({shouldForwardProp:function(e){return!["variant"].includes(e)}})(El||(El=j(["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--zjpcy-border-radius-sm);\n cursor: pointer;\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--zjpcy-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(--zjpcy-border-radius-sm);\n cursor: pointer;\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--zjpcy-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])),function(e){return"primary"===e.variant?"var(--zjpcy-primary-color)":"var(--zjpcy-border-color-extra-light)"},function(e){return"primary"===e.variant?"var(--zjpcy-primary-color)":"var(--zjpcy-bg-color-white)"},function(e){return"primary"===e.variant?"#fff":"var(--zjpcy-text-color)"},function(e){return"primary"===e.variant?"background-color: var(--zjpcy-primary-hover-color);":"color: var(--zjpcy-primary-color);"}),_s=h.default.div.withConfig({shouldForwardProp:function(e){return!["gap"].includes(e)}})(Sl||(Sl=j(["\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"}),Cs=h.default.label(Tl||(Tl=j(["\n font-size: 14px;\n color: var(--zjpcy-text-color);\n white-space: nowrap;\n user-select: none;\n"],["\n font-size: 14px;\n color: var(--zjpcy-text-color);\n white-space: nowrap;\n user-select: none;\n"]))),ws=h.default.div(Ol||(Ol=j(["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"]))),Ns=h.default.div(kl||(kl=j(["\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"]))),zs=h.default.div(Ll||(Ll=j(["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"]))),Es=h.default.div(Al||(Al=j(["\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"]))),Ss=h.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentMonth"].includes(e)}})(Ml||(Ml=j(["\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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-primary-color)":"var(--zjpcy-text-color)"},function(e){return e.isSelected?"var(--zjpcy-primary-color)":e.isInSelectedSet?"var(--zjpcy-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(--zjpcy-primary-hover-color)":e.isInSelectedSet?"var(--zjpcy-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--zjpcy-bg-color-light)"},function(e){return e.isCurrentMonth&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--zjpcy-primary-color);\n "}),Ts=h.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentYear"].includes(e)}})(Il||(Il=j(["\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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-primary-color)":"var(--zjpcy-text-color)"},function(e){return e.isSelected?"var(--zjpcy-primary-color)":e.isInSelectedSet?"var(--zjpcy-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(--zjpcy-primary-hover-color)":e.isInSelectedSet?"var(--zjpcy-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--zjpcy-bg-color-light)"},function(e){return e.isCurrentYear&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--zjpcy-primary-color);\n "}),Os=h.default.div(Dl||(Dl=j(["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n min-width: 280px;\n"]))),ks=h.default.div(Rl||(Rl=j(["\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"]))),Ls=h.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentQuarter"].includes(e)}})(Hl||(Hl=j(["\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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-primary-color)":"var(--zjpcy-text-color)"},function(e){return e.isSelected?"var(--zjpcy-primary-color)":e.isInSelectedSet?"var(--zjpcy-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(--zjpcy-primary-hover-color)":e.isInSelectedSet?"var(--zjpcy-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--zjpcy-bg-color-light)"},function(e){return e.isCurrentQuarter&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--zjpcy-primary-color);\n "});h.default.div(Pl||(Pl=j(["\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"}),h.default.div.withConfig({shouldForwardProp:function(e){return!["focused","size","disabled"].includes(e)}})(Vl||(Vl=j(["\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(--zjpcy-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--zjpcy-primary-color);\n box-shadow: var(--zjpcy-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(--zjpcy-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--zjpcy-primary-color);\n box-shadow: var(--zjpcy-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(--zjpcy-border-color-extra-light)":e.focused?"var(--zjpcy-primary-color)":"var(--zjpcy-border-color-extra-light)"},function(e){return e.disabled?"var(--zjpcy-bg-color-light)":"var(--zjpcy-bg-color-white)"},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"var(--zjpcy-border-color-extra-light)":"var(--zjpcy-primary-color)"}),h.default.div.withConfig({shouldForwardProp:function(e){return!["active"].includes(e)}})(Bl||(Bl=j(["\n flex: 1;\n padding: 4px 8px;\n text-align: center;\n cursor: pointer;\n border-radius: var(--zjpcy-border-radius-sm);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n ","\n\n &:hover {\n background-color: var(--zjpcy-bg-color-light);\n }\n"],["\n flex: 1;\n padding: 4px 8px;\n text-align: center;\n cursor: pointer;\n border-radius: var(--zjpcy-border-radius-sm);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n ","\n\n &:hover {\n background-color: var(--zjpcy-bg-color-light);\n }\n"])),function(e){return e.active&&"\n background-color: var(--zjpcy-primary-light-color, rgba(24, 100, 240, 0.1));\n "}),h.default.span.withConfig({shouldForwardProp:function(e){return!["isPlaceholder"].includes(e)}})(Ul||(Ul=j(["\n color: ",";\n font-size: 14px;\n"],["\n color: ",";\n font-size: 14px;\n"])),function(e){return e.isPlaceholder?"var(--zjpcy-text-color-light)":"var(--zjpcy-text-color)"}),h.default.span(Fl||(Fl=j(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 8px;\n color: var(--zjpcy-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(--zjpcy-text-color-light);\n font-size: 14px;\n"]))),h.default.span(Yl||(Yl=j(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--zjpcy-text-color-light);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-text-color-light);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"]))),h.default.span(Gl||(Gl=j(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--zjpcy-text-color);\n background-color: var(--zjpcy-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(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--zjpcy-text-color);\n background-color: var(--zjpcy-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]))),h.default.span($l||($l=j(["\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(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"]))),h.default.div.withConfig({shouldForwardProp:function(e){return!["top","left"].includes(e)}})(Wl||(Wl=j(["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n box-shadow: var(--zjpcy-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(--zjpcy-bg-color-white);\n border-radius: var(--zjpcy-border-radius-md);\n box-shadow: var(--zjpcy-shadow-lg);\n overflow: hidden;\n min-width: 560px;\n"])),function(e){return e.top},function(e){return e.left}),h.default.div(Kl||(Kl=j(["\n display: flex;\n gap: 16px;\n padding: 16px;\n"],["\n display: flex;\n gap: 16px;\n padding: 16px;\n"]))),h.default.div(Zl||(Zl=j(["\n flex: 1;\n min-width: 252px;\n"],["\n flex: 1;\n min-width: 252px;\n"]))),h.default.div(Xl||(Xl=j(["\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"]))),h.default.div(ql||(ql=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),h.default.div(Jl||(Jl=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--zjpcy-text-color);\n"]))),h.default.div(Ql||(Ql=j(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),h.default.button(es||(es=j(["\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(--zjpcy-border-radius-sm);\n color: var(--zjpcy-text-color-secondary);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--zjpcy-bg-color-light);\n color: var(--zjpcy-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(--zjpcy-border-radius-sm);\n color: var(--zjpcy-text-color-secondary);\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--zjpcy-bg-color-light);\n color: var(--zjpcy-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"]))),h.default.span(ns||(ns=j(["\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n margin-left: 8px;\n"],["\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n margin-left: 8px;\n"]))),h.default.div(ts||(ts=j(["\n padding: 8px 0;\n"],["\n padding: 8px 0;\n"]))),h.default.div(rs||(rs=j(["\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"]))),h.default.div(is||(is=j(["\n text-align: center;\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n padding: 4px 0;\n font-weight: 500;\n"],["\n text-align: center;\n font-size: 12px;\n color: var(--zjpcy-text-color-tertiary);\n padding: 4px 0;\n font-weight: 500;\n"]))),h.default.div(as||(as=j(["\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"]))),h.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isToday","isCurrentMonth","isInRange","isRangeStart","isRangeEnd","disabled"].includes(e)}})(os||(os=j(["\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(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-border-radius-sm)"},function(e){return e.disabled?"var(--zjpcy-text-color-light)":e.isSelected?"#fff":e.isCurrentMonth?"var(--zjpcy-text-color)":"var(--zjpcy-text-color-light)"},function(e){return e.isSelected?"var(--zjpcy-primary-color)":e.isInRange?"var(--zjpcy-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(--zjpcy-primary-hover-color)":"var(--zjpcy-bg-color-light)"},function(e){return e.isToday&&!e.isSelected&&!e.isInRange&&"\n border: 1px solid var(--zjpcy-primary-color);\n "}),h.default.div(ls||(ls=j(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n border-top: 1px solid var(--zjpcy-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(--zjpcy-border-color-light);\n gap: 8px;\n"]))),h.default.div(ss||(ss=j(["\n flex: 1;\n"],["\n flex: 1;\n"]))),h.default.div(cs||(cs=j(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),h.default.button.withConfig({shouldForwardProp:function(e){return!["variant"].includes(e)}})(ds||(ds=j(["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--zjpcy-border-radius-sm);\n cursor: pointer;\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--zjpcy-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(--zjpcy-border-radius-sm);\n cursor: pointer;\n transition: all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--zjpcy-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])),function(e){return"primary"===e.variant?"var(--zjpcy-primary-color)":"var(--zjpcy-border-color-extra-light)"},function(e){return"primary"===e.variant?"var(--zjpcy-primary-color)":"var(--zjpcy-bg-color-white)"},function(e){return"primary"===e.variant?"#fff":"var(--zjpcy-text-color)"},function(e){return"primary"===e.variant?"background-color: var(--zjpcy-primary-hover-color);":"color: var(--zjpcy-primary-color);"}),h.default.div.withConfig({shouldForwardProp:function(e){return!["gap"].includes(e)}})(us||(us=j(["\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"}),h.default.label(ps||(ps=j(["\n font-size: 14px;\n color: var(--zjpcy-text-color);\n white-space: nowrap;\n user-select: none;\n"],["\n font-size: 14px;\n color: var(--zjpcy-text-color);\n white-space: nowrap;\n user-select: none;\n"])));var As=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)}},Ms=function(e,n){return new Date(e,n+1,0).getDate()},Is=function(e,n){return!(!e||!n)&&(e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate())},Ds=function(t){var r=t.currentYear,i=t.startYear,a=t.onYearSelect,o=t.onBack,l=t.onPrevPage,s=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(ws,{children:[e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:l,title:"上一页",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsx(tl,{children:e.jsxs("span",{style:{cursor:"pointer"},onClick:o,children:[i," - ",u]})}),e.jsx(rl,{children:e.jsx(il,{onClick:s,title:"下一页",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]}),e.jsx(Ns,{children:c.map(function(n){return e.jsx(Ts,{isSelected:n===r,isCurrentYear:n===d,onClick:function(){return a(n)},children:n},n)})})]})},Rs=function(t){var r=t.currentMonth,i=t.onMonthSelect,a=t.onBack,o=n.useMemo(function(){return["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},[]),l=(new Date).getMonth();return e.jsxs(zs,{children:[e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:a,title:"返回",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsx(tl,{children:e.jsx("span",{style:{cursor:"pointer"},onClick:a,children:"选择月份"})}),e.jsx(rl,{})]}),e.jsx(Es,{children:o.map(function(n,t){return e.jsx(Ss,{isSelected:t===r,isCurrentMonth:t===l,onClick:function(){return i(t)},children:n},t)})})]})},Hs=function(n){var t=n.currentMonth,r=n.onPrevMonth,i=n.onNextMonth,a=n.onYearClick,o=n.onMonthClick,l=t.getFullYear(),s=t.getMonth();return e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:r,title:"上个月",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsxs(tl,{children:[e.jsxs("span",{style:{cursor:"pointer",fontWeight:500},onClick:a,children:[l,"年"]}),e.jsx("span",{style:{cursor:"pointer",fontWeight:500},onClick:o,children:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"][s]})]}),e.jsx(rl,{children:e.jsx(il,{onClick:i,title:"下个月",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]})},Ps=function(t){var r=t.value,i=t.selectedValues,a=void 0===i?[]:i,o=t.onChange,l=t.format,s=t.disabledDate,c=t.disabledDates,d=t.showToday,u=void 0===d||d,p=t.showOk,h=void 0===p||p,g=t.onToday,m=t.onOk,v=t.showTime,y=t.onHasSelectedDateChange,x=n.useMemo(function(){return function(e,n){var t,r,i,a;if(!e)return null;var o,l,s,c=e.split(" ")[0];try{switch(n){case"YYYY/MM/DD":o=(t=c.split("/").map(Number))[0],l=t[1],s=t[2];break;case"DD-MM-YYYY":s=(r=c.split("-").map(Number))[0],l=r[1],o=r[2];break;case"MM/DD/YYYY":l=(i=c.split("/").map(Number))[0],s=i[1],o=i[2];break;default:o=(a=c.split("-").map(Number))[0],l=a[1],s=a[2]}if(isNaN(o)||isNaN(l)||isNaN(s))return null;var d=new Date(o,l-1,s);return d.getFullYear()!==o||d.getMonth()!==l-1||d.getDate()!==s?null:d}catch(e){return null}}(r,l)},[r,l]),b=n.useMemo(function(){return new Set(a)},[a]),j=n.useState(x||new Date),_=j[0],C=j[1],w=n.useState("calendar"),N=w[0],z=w[1],E=function(e){return 12*Math.floor(e/12)},S=n.useState(E((x||new Date).getFullYear())),T=S[0],O=S[1];n.useEffect(function(){x&&C(x)},[x]);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}},L=k(r),A=n.useState(L),M=A[0],I=A[1];n.useEffect(function(){I(k(r))},[r]);var D=n.useMemo(function(){for(var e=_.getFullYear(),n=_.getMonth(),t=Ms(e,n),r=function(e,n){return new Date(e,n,1).getDay()}(e,n),i=Ms(e,n-1),a=[],o=r-1;o>=0;o--)a.push({date:new Date(e,n-1,i-o),isCurrentMonth:!1});for(o=1;o<=t;o++)a.push({date:new Date(e,n,o),isCurrentMonth:!0});var l=42-a.length;for(o=1;o<=l;o++)a.push({date:new Date(e,n+1,o),isCurrentMonth:!1});return a},[_]),R=n.useCallback(function(e){if(s&&s(e))return!0;if(c&&c.length>0){var n=As(e,l);return c.includes(n)}return!1},[s,c,l]),H=!!x;n.useEffect(function(){null==y||y(H)},[H,y]);return"year"===N?e.jsx(Ds,{currentYear:_.getFullYear(),startYear:T,onYearSelect:function(e){var n=new Date(_);n.setFullYear(e),C(n),z("month")},onBack:function(){return z("calendar")},onPrevPage:function(){return O(function(e){return e-12})},onNextPage:function(){return O(function(e){return e+12})}}):"month"===N?e.jsx(Rs,{currentMonth:_.getMonth(),onMonthSelect:function(e){var n=new Date(_);n.setMonth(e),C(n),z("calendar")},onBack:function(){return z("calendar")}}):e.jsxs(Qo,{children:[e.jsxs("div",{className:f.default("zjpcy-datepicker-content",{"zjpcy-datepicker-content-with-time":v&&H}),children:[e.jsxs("div",{className:"zjpcy-datepicker-calendar-section",children:[e.jsx(Hs,{currentMonth:_,onPrevMonth:function(){var e=new Date(_);e.setMonth(e.getMonth()-1),C(e)},onNextMonth:function(){var e=new Date(_);e.setMonth(e.getMonth()+1),C(e)},onYearClick:function(){O(E(_.getFullYear())),z("year")},onMonthClick:function(){z("month")}}),e.jsxs(fs,{children:[e.jsx(hs,{children:["日","一","二","三","四","五","六"].map(function(n){return e.jsx(gs,{children:n},n)})}),e.jsx(ms,{children:D.map(function(n,t){var r=n.date,i=n.isCurrentMonth,a=As(r,l),s=Is(r,x),c=b.has(a),d=function(e){var n=new Date;return Is(e,n)}(r),u=R(r);return e.jsx(vs,{isSelected:s,isInSelectedSet:c,isToday:d,disabled:u,isCurrentMonth:i,onClick:function(){return function(e){if(!R(e)){var n=As(e,l);if(v){var t=H?"".concat(String(M.hour).padStart(2,"0"),":").concat(String(M.minute).padStart(2,"0"),":").concat(String(M.second).padStart(2,"0")):"00:00:00";null==o||o("".concat(n," ").concat(t))}else null==o||o(n)}}(r)},children:r.getDate()},t)})})]})]}),v&&H&&e.jsxs("div",{className:"zjpcy-datepicker-time-section",children:[e.jsxs("div",{className:"zjpcy-datepicker-time-header",children:[String(M.hour).padStart(2,"0"),":",String(M.minute).padStart(2,"0"),":",String(M.second).padStart(2,"0")]}),e.jsx(Ro,{value:"".concat(String(M.hour).padStart(2,"0"),":").concat(String(M.minute).padStart(2,"0"),":").concat(String(M.second).padStart(2,"0")),onChange:function(e){if(x){var n=e.split(":").map(Number),t=n[0],r=n[1],i=n[2];I({hour:t,minute:r,second:i});var a=As(x,l);null==o||o("".concat(a," ").concat(e))}},format:"HH:mm:ss",hourStep:1,minuteStep:1,secondStep:1,showNow:!1,showOk:!1})]})]}),(u||h)&&e.jsxs(ys,{children:[u?e.jsx(js,{onClick:function(){var e=new Date;if(C(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==o||o("".concat(As(e,l)," ").concat(n))}else null==o||o(As(e,l));null==g||g()},children:"今天"}):e.jsx(xs,{}),h&&e.jsx(bs,{children:e.jsx(js,{variant:"primary",onClick:m,children:"确定"})})]})]})},Vs=function(t){var r=t.size,i=void 0===r?"middle":r,a=t.value,o=t.defaultValue,l=t.onChange,s=t.placeholder,c=void 0===s?"请选择日期":s,d=t.disabled,u=void 0!==d&&d,p=t.readOnly,h=void 0!==p&&p,v=t.className,y=void 0===v?"":v,x=t.style,j=t.width,_=void 0===j?160:j,C=t.format,w=void 0===C?"YYYY-MM-DD":C,N=t.allowClear,z=void 0===N||N,E=t.disabledDate,S=t.disabledDates,T=t.label,O=t.labelGap,k=void 0===O?8:O,L=t.labelClassName,A=void 0===L?"":L,M=t.labelStyle,I=t.onOpenChange,D=t.open,R=t.showToday,H=void 0===R||R,P=t.showOk,V=void 0===P||P,U=t.picker,F=void 0===U?"date":U,Y=t.multiple,G=void 0!==Y&&Y,$=t.maxTagCount,W=t.maxTagDisplayCount,K=t.separator,Z=void 0===K?",":K,X=t.showTime,q=void 0!==X&&X,J=n.useState(o),Q=J[0],ee=J[1],ne=n.useState(!1),te=ne[0],re=ne[1],ie=n.useState(!1),ae=ie[0],oe=ie[1],le=n.useState({top:0,left:0,width:0}),se=le[0],ce=le[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),ye=void 0!==a,xe=ye?a:Q,be=n.useMemo(function(){return xe?xe.split(Z).filter(function(e){return e.trim()}):[]},[xe,Z]),je=n.useCallback(function(e){return be.includes(e)},[be]),_e=n.useCallback(function(e){return je(e)?be.filter(function(n){return n!==e}).join(Z):void 0!==$&&be.length>=$?be.join(Z):b(b([],be,!0),[e],!1).join(Z)},[be,je,Z,$]),Ce=void 0!==D?D:te,we=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,a=e.left+window.scrollX;r<360&&e.top>360&&(i=e.top+window.scrollY-360-4);var o=window.innerWidth;a+t>o&&(a=o-t-16),ce({top:i,left:a,width:t})}},[q,he]);n.useEffect(function(){if(Ce&&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 m(m({},e),{top:t})})}pe(!0)}),function(){pe(!1)}}},[Ce]),n.useEffect(function(){var e=function(e){me.current&&!me.current.contains(e.target)&&ve.current&&!ve.current.contains(e.target)&&(void 0===D&&re(!1),null==I||I(!1),oe(!1))};return Ce&&(document.addEventListener("mousedown",e),we(),window.addEventListener("scroll",we,!0),window.addEventListener("resize",we)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",we,!0),window.removeEventListener("resize",we)}},[Ce,D,I,we]);var Ne=function(){if(!u&&!h){var e=!Ce;void 0===D&&re(e),null==I||I(e),oe(e)}},ze=function(e){var n;n=G?_e(e):e,ye||ee(n),null==l||l(n),G||V||(void 0===D&&re(!1),null==I||I(!1),oe(!1))},Ee=function(e){e.stopPropagation(),ye||ee(void 0),null==l||l("")},Se=function(){void 0===D&&re(!1),null==I||I(!1),oe(!1)},Te=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}(xe),a=new Date,o=n.useState(null!==(t=null==i?void 0:i.year)&&void 0!==t?t:a.getFullYear()),s=o[0],c=o[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=a.getMonth(),f=a.getFullYear(),h=n.useMemo(function(){return G?new Set(be.filter(function(e){return e.match(/^\d{4}-\d{2}$/)})):new Set},[be,G]),g=function(e){var n="".concat(s,"-").concat(String(e+1).padStart(2,"0"));return h.has(n)};return e.jsxs(zs,{children:[e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:function(){return c(function(e){return e-1})},title:"上一年",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsx(tl,{children:e.jsxs("span",{children:[s,"年"]})}),e.jsx(rl,{children:e.jsx(il,{onClick:function(){return c(function(e){return e+1})},title:"下一年",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]}),e.jsx(Es,{children:u.map(function(n,t){var r=G?g(t):t===d&&s===(null==i?void 0:i.year),a=G&&g(t)&&!(t===d&&s===(null==i?void 0:i.year));return e.jsx(Ss,{isSelected:r,isInSelectedSet:a,isCurrentMonth:t===p&&s===f,onClick:function(){return function(e){var n="".concat(s,"-").concat(String(e+1).padStart(2,"0"));if(G){var t=_e(n);ye||ee(t),null==l||l(t)}else ye||ee(n),null==l||l(n),V||Se()}(t)},children:n},t)})}),V&&e.jsxs(ys,{children:[e.jsx(xs,{}),e.jsx(bs,{children:e.jsx(js,{variant:"primary",onClick:Se,children:"确定"})})]})]})},Oe=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}(xe),a=new Date,o=n.useState(null!==(t=null==i?void 0:i.year)&&void 0!==t?t:a.getFullYear()),s=o[0],c=o[1],d=null!==(r=null==i?void 0:i.quarter)&&void 0!==r?r:null,u=a.getMonth(),p=Math.floor(u/3)+1,f=a.getFullYear(),h=n.useMemo(function(){return G?new Set(be.filter(function(e){return e.match(/^\d{4}-Q\d$/)})):new Set},[be,G]),g=function(e){var n="".concat(s,"-Q").concat(e);return h.has(n)};return e.jsxs(Os,{children:[e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:function(){return c(function(e){return e-1})},title:"上一年",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsx(tl,{children:e.jsxs("span",{children:[s,"年"]})}),e.jsx(rl,{children:e.jsx(il,{onClick:function(){return c(function(e){return e+1})},title:"下一年",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]}),e.jsx(ks,{children:["Q1","Q2","Q3","Q4"].map(function(n,t){var r=t+1,a=s===f&&r===p,o=G?g(r):r===d&&s===(null==i?void 0:i.year),c=G&&g(r)&&!(r===d&&s===(null==i?void 0:i.year));return e.jsx(Ls,{isSelected:o,isInSelectedSet:c,isCurrentQuarter:a,onClick:function(){return function(e,n){var t="".concat(e,"-Q").concat(n);if(G){var r=_e(t);ye||ee(r),null==l||l(r)}else ye||ee(t),null==l||l(t),V||Se()}(s,r)},children:n},n)})}),V&&e.jsxs(ys,{children:[e.jsx(xs,{}),e.jsx(bs,{children:e.jsx(js,{variant:"primary",onClick:Se,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}(xe),i=(new Date).getFullYear(),a=n.useState((t=null!=r?r:i,12*Math.floor(t/12))),o=a[0],s=a[1],c=n.useMemo(function(){for(var e=[],n=0;n<12;n++)e.push(o+n);return e},[o]),d=n.useMemo(function(){return G?new Set(be.filter(function(e){return e.match(/^\d{4}$/)})):new Set},[be,G]);return e.jsxs(ws,{children:[e.jsxs(el,{children:[e.jsx(nl,{children:e.jsx(il,{onClick:function(){return s(function(e){return e-12})},title:"上一页",children:e.jsx(B,{type:"arrowLeft",size:14,color:"var(--zjpcy-text-color-secondary)"})})}),e.jsx(tl,{children:e.jsxs("span",{children:[o," - ",o+11]})}),e.jsx(rl,{children:e.jsx(il,{onClick:function(){return s(function(e){return e+12})},title:"下一页",children:e.jsx(B,{type:"arrowRight",size:14,color:"var(--zjpcy-text-color-secondary)"})})})]}),e.jsx(Ns,{children:c.map(function(n){var t=G?d.has(String(n)):n===r,a=G&&d.has(String(n))&&n!==r;return e.jsx(Ts,{isSelected:t,isInSelectedSet:a,isCurrentYear:n===i,onClick:function(){return function(e){var n=String(e);if(G){var t=_e(n);ye||ee(t),null==l||l(t)}else ye||ee(n),null==l||l(n),V||Se()}(n)},children:n},n)})}),V&&e.jsxs(ys,{children:[e.jsx(xs,{}),e.jsx(bs,{children:e.jsx(js,{variant:"primary",onClick:Se,children:"确定"})})]})]})},Le=n.useCallback(function(e){return function(n){n.stopPropagation();var t=be.filter(function(n){return n!==e}).join(Z);ye||ee(t||void 0),null==l||l(t)}},[be,Z,ye,l]),Ae=function(){var t,r,a,o=n.useMemo(function(){return xe||""},[xe]);return e.jsxs(Wo,{ref:me,focused:ae,disabled:u,size:i,className:f.default("zjpcy-datepicker-trigger","zjpcy-datepicker-trigger--".concat(i),{"zjpcy-datepicker-trigger--disabled":u,"zjpcy-datepicker-trigger--focused":ae,"zjpcy-datepicker-trigger--multiple":G},y),style:x,onClick:Ne,children:[G&&be.length>0?e.jsx(Ko,{isPlaceholder:!1,disabled:u,className:f.default("zjpcy-datepicker-value","zjpcy-datepicker-value--tags",{"zjpcy-datepicker-value--disabled":u}),children:(t=void 0!==W&&W>0,r=t?be.slice(0,W):be,a=t?be.length-W:0,e.jsxs(e.Fragment,{children:[r.map(function(n,t){return e.jsx(Lo,{size:"small",closable:!u,onClose:Le(n),className:"zjpcy-datepicker-tag",children:n},"".concat(n,"-").concat(t))}),a>0&&e.jsxs(Lo,{size:"small",className:"zjpcy-datepicker-tag zjpcy-datepicker-tag--more",children:["...+",a]},"more")]}))}):e.jsx(Ko,{isPlaceholder:!xe,disabled:u,className:f.default("zjpcy-datepicker-value",{"zjpcy-datepicker-value--placeholder":!xe,"zjpcy-datepicker-value--disabled":u}),children:o||c}),e.jsxs(Zo,{className:"zjpcy-datepicker-suffix",children:[z&&xe&&!u&&e.jsx(Xo,{className:"zjpcy-datepicker-clear",onClick:Ee,children:e.jsx(B,{type:"close",style:{fontSize:10}})}),e.jsx(qo,{className:f.default("zjpcy-datepicker-icon",{"has-clear":z&&xe&&!u}),children:e.jsx(B,{type:"calendar",style:{fontSize:14}})})]})]})},Me=function(){switch(F){case"month":return e.jsx(Te,{});case"quarter":return e.jsx(Oe,{});case"year":return e.jsx(ke,{});default:return e.jsx(Ps,{value:xe,selectedValues:be,onChange:ze,format:w,disabledDate:E,disabledDates:S,showToday:H,showOk:V,showTime:q,onToday:function(){V||Se()},onOk:Se,onHasSelectedDateChange:ge})}},Ie=function(){if(!Ce)return null;var n=e.jsx(Jo,{ref:ve,top:se.top,left:se.left,minWidth:se.width||(q&&he?480:280),className:"zjpcy-datepicker-dropdown",style:{opacity:ue?1:0,transition:"opacity 0.15s ease"},children:Me()});return g.default.createPortal(n,document.body)},De=G?"auto":_;return T?e.jsxs(_s,{gap:k,className:"zjpcy-datepicker-with-label",children:["string"==typeof T?e.jsx(Cs,{className:f.default("zjpcy-datepicker-label",A),style:M,children:T}):T,e.jsxs($o,{width:De,minWidth:G?_:void 0,className:"zjpcy-datepicker",children:[Ae(),Ie()]})]}):e.jsxs($o,{width:De,minWidth:G?_:void 0,className:"zjpcy-datepicker",children:[Ae(),Ie()]})};Vs.RangePicker=Go;var Bs=Vs,Us=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"})})})},Fs=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"})})},Ys=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"})})},Gs=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"})]})},$s=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"})})},Ws=function(e,n){return e.children&&0!==e.children.length?e.children.every(function(e){return Ws(e,n)}):n.includes(e.key)},Ks=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:Ws(e,n),someChecked:Ks(e,n)}}),r=t.some(function(e){return e.allChecked||e.someChecked}),i=t.every(function(e){return e.allChecked});return r&&!i},Zs=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 a=Zs(i.children,n);if(a)return a}}return null},Xs=function(e){return e.reduce(function(e,n){return e.push(n.key),n.children&&e.push.apply(e,Xs(n.children)),e},[])},qs=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 a=qs(i.children,n);if(a)return a}}return null},Js=function(e,n,t){var r;if(null===n)return e.push.apply(e,t),!0;for(var i=0,a=e;i<a.length;i++){var o=a[i];if(o.key===n)return o.children||(o.children=[]),(r=o.children).push.apply(r,t),!0;if(o.children)if(Js(o.children,n,t))return!0}return!1},Qs=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 a=i[r];if(a.children)if(Qs(a.children,n))return!0}return!1},ec=function(e,n,t){for(var r=0,i=e;r<i.length;r++){var a=i[r];if(a.key===n)return Object.assign(a,t),!0;if(a.children)if(ec(a.children,n,t))return!0}return!1},nc=function(e,n,t){return e.reduce(function(e,r){var i=t(n,r),a=r.children?nc(r.children,n,t):[];return(i||a.length>0)&&e.push(m(m({},r),{children:a.length>0?a:void 0})),e},[])},tc=n.memo(function(t){var r=t.node,i=t.level,a=t.expanded,o=t.selected,l=t.checked,s=t.halfChecked,c=t.loading,d=t.isLeaf,u=t.showIcon,p=t.showLine,h=t.checkable,g=t.draggable,v=t.checkStrictly,y=t.expandedKeys,x=t.selectedKeys,b=t.checkedKeys,j=t.motionDuration,_=t.prefixCls,C=t.renderNode,w=t.addable,N=t.removable,z=t.editable,E=t.actionDisplayMode,S=t.onAddNode,T=t.onRemoveNode,O=t.onEditNode,k=t.editingNodeKey,L=t.editValue,A=t.onEditChange,M=t.onEditConfirm,I=t.onEditCancel,D=t.onExpand,R=t.onSelect,H=t.onCheck,P=t.onNodeMount,V=t.onDrop,B=t.dragEndCounter,U=t.tooltip,F=n.useState(!1),Y=F[0],G=F[1],$=n.useState(null),W=$[0],K=$[1],Z=n.useState(!1),X=Z[0],q=Z[1],J=n.useRef(null),Q=n.useRef(null);n.useEffect(function(){void 0!==B&&B>0&&(G(!1),K(null))},[B]);var ee=n.useCallback(function(e){J.current=e,P&&P(r.key,e)},[P,r.key]),ne=Boolean(r.children&&r.children.length>0),te=void 0!==r.children,re=y.includes(r.key),ie=r.disabled,ae=g&&!ie,oe=void 0!==r.isLeaf?r.isLeaf:!te,le=n.useCallback(function(e){e.stopPropagation(),oe||c||D(r.key,e)},[oe,c,r.key,D]),se=n.useCallback(function(e){e.stopPropagation(),ie||r.disableCheckbox||H(r.key,e)},[ie,r.disableCheckbox,r.key,H]),ce=n.useCallback(function(e){ie||(h?se(e):R(r.key,e))},[ie,h,r.key,R,se]),de=n.useCallback(function(e){if(ae){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)}},[ae,r.key,r.title]),ue=n.useCallback(function(){G(!1),K(null)},[]),pe=n.useCallback(function(e){var n;if(ae){e.preventDefault(),e.dataTransfer.dropEffect="move";var t=e.target,r=J.current;if(r&&t&&r.contains(t)){var i=r.querySelector(".".concat(_,"-child-tree"));if(i&&i.contains(t))return}var a=null===(n=J.current)||void 0===n?void 0:n.getBoundingClientRect();if(a){var o=e.clientY-a.top,l=a.height;K(oe?o<l/2?"before":"after":o<l/3?"before":o>2*l/3?"after":"inside"),G(!0)}}},[ae,oe,_]),fe=n.useCallback(function(){G(!1),K(null)},[]),he=n.useCallback(function(e){e.preventDefault(),e.stopPropagation(),G(!1),K(null);var n=e.dataTransfer.getData("text/plain");n&&n!==String(r.key)&&V&&W&&V(n,r.key,W)},[r.key,W,V]),ge=k===r.key,me=["".concat(_,"-treenode"),"".concat(_,"-treenode-ellipsis"),o&&"".concat(_,"-node-selected"),ie&&"".concat(_,"-treenode-disabled"),ae&&"".concat(_,"-treenode-draggable"),Y&&"".concat(_,"-treenode-drag-over"),Y&&W&&"".concat(_,"-treenode-drop-target"),oe&&"".concat(_,"-treenode-leaf"),p&&"".concat(_,"-line")].filter(Boolean).join(" "),ve=["".concat(_,"-node-content-wrapper"),o&&"".concat(_,"-node-selected")].filter(Boolean).join(" ");return e.jsxs("div",{ref:ee,className:me,draggable:ae,onDragStart:de,onDragEnd:ue,onDragOver:pe,onDragLeave:fe,onDrop:he,"data-drop-position":W,children:[function(){if(0===i)return null;for(var n=[],t=0;t<i;t++)n.push(e.jsx("span",{className:"".concat(_,"-indent")},t));return n}(),p&&i>0&&e.jsx("span",{className:"".concat(_,"-line-point")}),function(){if(c)return e.jsx("span",{className:"".concat(_,"-switcher"),children:e.jsx(Us,{className:"".concat(_,"-loading-icon")})});if(oe)return e.jsx("span",{className:"".concat(_,"-switcher ").concat(_,"-switcher-spaced"),style:{visibility:"hidden"}});var n=["".concat(_,"-switcher"),"".concat(_,re?"-switcher-open":"-switcher-close")].join(" ");return e.jsx("span",{className:n,onClick:le,children:e.jsx(Fs,{})})}(),function(){var n;if(!h)return null;var t=f.default("".concat(_,"-checkbox"),((n={})["".concat(_,"-checkbox-checked")]=l&&!s,n["".concat(_,"-checkbox-indeterminate")]=s,n["".concat(_,"-checkbox-disabled")]=ie||r.disableCheckbox,n["".concat(_,"-checkbox-disabled-checked")]=(ie||r.disableCheckbox)&&l&&!s,n["".concat(_,"-checkbox-disabled-indeterminate")]=(ie||r.disableCheckbox)&&s,n));return e.jsx("span",{className:t,onClick:se})}(),!u||C?null:r.icon?e.jsx("span",{className:"".concat(_,"-icon"),children:r.icon}):e.jsx("span",{className:"".concat(_,"-icon"),children:d?e.jsx(Gs,{}):e.jsx(Ys,{expanded:re})}),e.jsx("span",{className:ve,onClick:ce,children:function(){var n,t="".concat(_,"-title"),i=void 0!==r.tooltip?"boolean"==typeof r.tooltip?r.tooltip?{title:r.title}:null:m(m({},r.tooltip),{title:r.tooltip.title||r.title}):void 0!==U?"boolean"==typeof U?U?{title:r.title}:null:m(m({},U),{title:U.title||r.title}):null,a=C?e.jsx("span",{className:t,children:C(r)}):ge?e.jsx("span",{className:t,children:e.jsx("input",{type:"text",value:L||"",onChange:function(e){return null==A?void 0:A(e.target.value)},onKeyDown:function(e){"Enter"===e.key?null==M||M():"Escape"===e.key&&(null==I||I())},onBlur:function(){return null==M?void 0:M()},autoFocus:!0,className:"".concat(_,"-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&&!ge?e.jsx(St,{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:a}):a}()}),function(){if(!w&&!N&&!z)return null;if(ge)return null;var n="dropdown"===E,t=function(e){null==e||e.stopPropagation(),null==S||S(r),n&&q(!1)},i=function(e){null==e||e.stopPropagation(),null==T||T(r),n&&q(!1)},a=function(e){null==e||e.stopPropagation(),null==O||O(r),n&&q(!1)};if(n)return e.jsxs("span",{className:"".concat(_,"-actions ").concat(_,"-actions-dropdown"),ref:Q,onMouseEnter:function(){return q(!0)},onMouseLeave:function(){return q(!1)},children:[e.jsx("button",{className:"".concat(_,"-action-trigger"),title:"操作",onClick:function(e){return e.stopPropagation()},children:"⋮"}),X&&e.jsxs("div",{className:"".concat(_,"-action-menu"),children:[w&&e.jsxs("div",{className:f.default("".concat(_,"-action-menu-item"),"".concat(_,"-action-menu-add")),onClick:t,children:[e.jsx("span",{className:"".concat(_,"-action-menu-icon"),children:"+"}),e.jsx("span",{children:"添加子节点"})]}),z&&e.jsxs("div",{className:f.default("".concat(_,"-action-menu-item"),"".concat(_,"-action-menu-edit")),onClick:a,children:[e.jsx("span",{className:"".concat(_,"-action-menu-icon"),children:"✎"}),e.jsx("span",{children:"编辑"})]}),N&&e.jsxs("div",{className:f.default("".concat(_,"-action-menu-item"),"".concat(_,"-action-menu-remove")),onClick:i,children:[e.jsx("span",{className:"".concat(_,"-action-menu-icon"),children:"×"}),e.jsx("span",{children:"删除"})]})]})]});var o={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(_,"-actions"),style:{marginLeft:"auto",display:"flex",alignItems:"center"},children:[w&&e.jsx("button",{onClick:t,style:o,title:"添加子节点",className:"".concat(_,"-action-btn ").concat(_,"-action-add"),children:"+"}),z&&e.jsx("button",{onClick:a,style:o,title:"编辑",className:"".concat(_,"-action-btn ").concat(_,"-action-edit"),children:"✎"}),N&&e.jsx("button",{onClick:i,style:m(m({},o),{color:"#ff4d4f"}),title:"删除",className:"".concat(_,"-action-btn ").concat(_,"-action-remove"),children:"×"})]})}(),!oe&&e.jsx("div",{className:["".concat(_,"-child-tree"),re&&"".concat(_,"-child-tree-expand")].filter(Boolean).join(" "),children:e.jsx("div",{children:ne?r.children.map(function(n,t){return e.jsx(tc,{node:n,level:i+1,expanded:a,selected:x.includes(n.key),checked:b.includes(n.key),halfChecked:Ks(n,b),loading:n.loading||!1,isLeaf:!n.children||0===n.children.length,showIcon:u,showLine:p,checkable:h,draggable:g,checkStrictly:v,expandedKeys:y,selectedKeys:x,checkedKeys:b,motionDuration:j,prefixCls:_,renderNode:C,addable:w,removable:N,editable:z,actionDisplayMode:E,onAddNode:S,onRemoveNode:T,onEditNode:O,editingNodeKey:k,editValue:L,onEditChange:A,onEditConfirm:M,onEditCancel:I,onExpand:D,onSelect:R,onCheck:H,onNodeMount:P,onDrop:V,dragEndCounter:B,tooltip:U},"".concat(n.key,"-").concat(t))}):e.jsx("div",{className:"".concat(_,"-empty-drop-zone"),style:{minHeight:"4px",width:"100%"}})})})]})});tc.displayName="TreeNodeComponent";var rc=n.forwardRef(function(t,r){var i=t.treeData,a=void 0===i?[]:i,o=t.defaultExpandedKeys,l=void 0===o?[]:o,s=t.expandedKeys,c=t.onExpand,d=t.defaultSelectedKeys,u=void 0===d?[]:d,p=t.selectedKeys,f=t.onSelect,h=t.defaultCheckedKeys,g=void 0===h?[]:h,v=t.checkedKeys,y=t.onCheck,x=t.checkable,j=void 0!==x&&x,_=t.checkStrictly,C=void 0!==_&&_,w=t.multiple,N=void 0!==w&&w,z=t.showSearch,E=void 0!==z&&z,S=t.filterOption,T=t.showLine,O=void 0!==T&&T,k=t.showIndent,L=void 0!==k&&k,A=t.showIcon,M=void 0===A||A,I=t.loadData,D=t.motionDuration,R=void 0===D?200:D,H=t.draggable,P=void 0!==H&&H,V=t.renderNode,B=t.addable,U=void 0!==B&&B,F=t.removable,Y=void 0!==F&&F,G=t.editable,$=void 0!==G&&G,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?"zjpcy-tree":J,ee=t.className,ne=void 0===ee?"":ee,te=t.style,re=void 0===te?{}:te,ie=t.disabled,ae=void 0!==ie&&ie,oe=t.defaultExpandAll,le=void 0!==oe&&oe,se=t.tooltip,ce=t.onDrop,de=n.useState(a),ue=de[0],pe=de[1],fe=n.useRef(a);n.useEffect(function(){fe.current!==a&&(fe.current=a,pe(a))},[a]);var he=n.useState(function(){if(le){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(a)}return l}),ge=he[0],me=he[1],ve=n.useState(u),ye=ve[0],xe=ve[1],be=n.useState(g),je=be[0],_e=be[1],Ce=n.useState([]),we=Ce[0],Ne=Ce[1],ze=n.useState(""),Ee=ze[0],Se=ze[1],Te=n.useState(null),Oe=Te[0],ke=Te[1],Le=n.useState(""),Ae=Le[0],Me=Le[1],Ie=n.useState(0),De=Ie[0],Re=Ie[1],He=n.useRef(new Map),Pe=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 Js(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 Qs(t,e.key),me(function(n){return n.filter(function(n){return n!==e.key})}),xe(function(n){return n.filter(function(n){return n!==e.key})}),_e(function(n){return n.filter(function(n){return n!==e.key})}),He.current.delete(e.key),t}):pe(function(n){var t=b([],n,!0);return Qs(t,e.key),me(function(n){return n.filter(function(n){return n!==e.key})}),xe(function(n){return n.filter(function(n){return n!==e.key})}),_e(function(n){return n.filter(function(n){return n!==e.key})}),He.current.delete(e.key),t})},[X]),Ue=n.useCallback(function(e){ke(e.key),Me(String(e.title||""))},[]),Fe=n.useCallback(function(e){Me(e)},[]),Ye=n.useCallback(function(){if(null!==Oe){if(q){var e=Zs(ue,Oe);if(e){var n=q(e,Ae),t=void 0!==n?n:Ae;pe(function(e){var n=b([],e,!0);return ec(n,Oe,{title:t}),n})}}else pe(function(e){var n=b([],e,!0);return ec(n,Oe,{title:Ae}),n});ke(null),Me("")}},[Oe,Ae,q,ue]),Ge=n.useCallback(function(){ke(null),Me("")},[]);n.useImperativeHandle(r,function(){return{scrollTo:function(e){var n=He.current.get(e);n&&Pe.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 Js(r,e,i),r})},removeNode:function(e){var n=!1;return pe(function(t){var r=b([],t,!0);return(n=Qs(r,e))&&(me(function(n){return n.filter(function(n){return n!==e})}),xe(function(n){return n.filter(function(n){return n!==e})}),_e(function(n){return n.filter(function(n){return n!==e})}),He.current.delete(e)),r}),n},updateNode:function(e,n){var t=!1;return pe(function(r){var i=b([],r,!0);return t=ec(i,e,n),i}),t}}});var $e=n.useCallback(function(e,n){n?He.current.set(e,n):He.current.delete(e)},[]),We=void 0!==s,Ke=void 0!==p,Ze=void 0!==v,Xe=We?s:ge,qe=Ke?p:ye,Je=Ze?v:je,Qe=n.useCallback(function(e,n){if(!ae){var t=Xe.includes(e),r=t?Xe.filter(function(n){return n!==e}):b(b([],Xe,!0),[e],!1);if(!t&&I){var i=Zs(ue,e);!i||i.children&&0!==i.children.length||(Ne(function(n){return b(b([],n,!0),[e],!1)}),I(i).finally(function(){Ne(function(n){return n.filter(function(n){return n!==e})})}))}We||me(r),null==c||c(r,{expanded:!t,node:Zs(ue,e),nativeEvent:n})}},[ae,Xe,We,c,ue,I]),en=n.useCallback(function(e,n){if(!ae){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||xe(t),null==f||f(t,{selected:!r,node:Zs(ue,e),nativeEvent:n})}},[ae,qe,Ke,N,f,ue]),nn=n.useCallback(function(e,n){if(!ae){var t,r,i=Je.includes(e);if(i){if(t=Je.filter(function(n){return n!==e}),!C)if(null==(r=Zs(ue,e))?void 0:r.children){var a=Xs(r.children);t=t.filter(function(e){return!a.includes(e)})}}else if(t=b(b([],Je,!0),[e],!1),!C)if(null==(r=Zs(ue,e))?void 0:r.children){var o=Xs(r.children);t=t.concat(o.filter(function(e){return-1===t.indexOf(e)}))}Ze||_e(t),null==y||y(t,{checked:!i,node:Zs(ue,e),nativeEvent:n})}},[ae,Je,Ze,C,y,ue]),tn=n.useCallback(function(e,n,t){if(e!==n){var r=Zs(ue,e),i=Zs(ue,n);if(r&&i){var a=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(a(i,n))return!0}return!1};if(!a(r,n)){var o=void 0!==i.isLeaf?i.isLeaf:void 0===i.children,l=function(e){return m(m({},e),{children:e.children?e.children.map(l):void 0})};pe(function(i){var a=i.map(l);Qs(a,e);var s=l(r),c="inside"===t&&o?"after":t;if("inside"===c)Js(a,n,[s]),ge.includes(n)||me(function(e){return b(b([],e,!0),[n],!1)});else{var d=qs(a,n),u=d?d.children||[]:a,p=u.findIndex(function(e){return e.key===n});if(-1!==p){var f="before"===c?p:p+1;u.splice(f,0,s)}}return a}),null==ce||ce({event:{},node:i,dragNode:r,dragPosition:t}),Re(function(e){return e+1})}}}},[ue,ge,ce]),rn=n.useMemo(function(){return E&&Ee&&S?nc(ue,Ee,S):ue},[ue,E,Ee,S]),an=[Q,O&&"".concat(Q,"-show-line"),ne].filter(Boolean).join(" ");return e.jsxs("div",{ref:Pe,className:an,style:re,children:[E?e.jsx("div",{className:"".concat(Q,"-search-wrapper"),children:e.jsx("input",{type:"text",className:"".concat(Q,"-search-input"),placeholder:"Search...",value:Ee,onChange:function(e){return Se(e.target.value)}})}):null,e.jsxs("div",{className:"".concat(Q,"-node-list"),children:[rn.map(function(n){return e.jsx(tc,{node:n,level:0,expanded:Xe.includes(n.key),selected:qe.includes(n.key),checked:Je.includes(n.key),halfChecked:Ks(n,Je),loading:we.includes(n.key),isLeaf:void 0!==n.isLeaf?n.isLeaf:void 0===n.children,showIcon:M,showLine:O,showIndent:L,checkable:j,draggable:P,checkStrictly:C,expandedKeys:Xe,selectedKeys:qe,checkedKeys:Je,motionDuration:R,prefixCls:Q,renderNode:V,addable:U,removable:Y,editable:$,actionDisplayMode:K,onAddNode:Ve,onRemoveNode:Be,onEditNode:Ue,editingNodeKey:Oe,editValue:Ae,onEditChange:Fe,onEditConfirm:Ye,onEditCancel:Ge,onExpand:Qe,onSelect:en,onCheck:nn,onNodeMount:$e,onDrop:tn,dragEndCounter:De,tooltip:se},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($s,{})}),e.jsx("div",{children:"No Data"})]})]})]})});rc.displayName="Tree";var ic=rc,ac=function(n){var t=n.fileList,r=n.onRemove,i=n.showUploadList;if(!i||0===t.length)return null;var a="boolean"==typeof i?i:!1!==i.showRemoveIcon,o=function(n){switch(n){case"uploading":return e.jsx(B,{type:"loading",spin:!0});case"success":return e.jsx(B,{type:"check-circle",style:{color:"var(--success-color, #52c41a)"}});case"error":return e.jsx(B,{type:"close-circle",style:{color:"var(--error-color, #ff4d4f)"}});default:return e.jsx(B,{type:"file"})}},l=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:"zjpcy-upload__list",children:t.map(function(n){return e.jsxs("div",{className:f.default("zjpcy-upload__list-item",{"zjpcy-upload__list-item-error":"error"===n.status,"zjpcy-upload__list-item-success":"success"===n.status}),children:[e.jsxs("div",{className:"zjpcy-upload__list-item-info",children:[e.jsx("span",{className:"zjpcy-upload__list-item-icon",children:o(n.status)}),e.jsxs("span",{className:"zjpcy-upload__list-item-name",title:n.name,children:[n.name,e.jsxs("span",{style:{color:"var(--text-secondary, #999)",marginLeft:8,fontSize:12},children:["(",l(n.size),")"]})]})]}),a&&e.jsx("span",{className:"zjpcy-upload__list-item-actions",children:e.jsx("button",{className:"zjpcy-upload__list-item-action",onClick:function(){return r(n)},title:"删除",children:e.jsx(B,{type:"trash"})})}),e.jsx("div",{className:f.default("zjpcy-upload__progress-wrapper",{"zjpcy-upload__progress-wrapper-visible":"uploading"===n.status}),children:e.jsx(Mo,{percent:n.percent||0,size:"small",showInfo:!1})})]},n.uid)})})},oc=function(t){var r=t.disabled,i=t.onFileDrop,a=t.children,o=t.accept,l=t.multiple,s=n.useState(!1),c=s[0],d=s[1],u=n.useRef(null),p=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",o&&(e.accept=o),l&&(e.multiple=!0),e.onchange=function(e){var n=e.target.files;n&&i(n)},e.click()}},[o,l,r,i]);return e.jsx("div",{ref:u,className:f.default("zjpcy-upload__drag",{"zjpcy-upload__drag-over":c,"zjpcy-upload__drag-disabled":r}),onDragOver:p,onDragLeave:h,onDrop:g,onClick:m,children:a||e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"zjpcy-upload__drag-icon",children:e.jsx(B,{type:"upload",style:{fontSize:48}})}),e.jsx("div",{className:"zjpcy-upload__drag-text",children:"点击或拖拽文件到此区域上传"}),e.jsx("div",{className:"zjpcy-upload__drag-hint",children:"支持单次或批量上传"})]})})},lc=function(t){var r=t.action,i=t.defaultFileList,a=void 0===i?[]:i,o=t.fileList,l=t.onChange,s=t.beforeUpload,c=t.onProgress,d=t.onSuccess,u=t.onError,p=t.onRemove,h=t.headers,g=t.name,v=void 0===g?"file":g,j=t.data,_=t.withCredentials,C=void 0!==_&&_,w=t.accept,N=t.multiple,z=void 0!==N&&N,E=t.disabled,S=void 0!==E&&E,T=t.drag,O=void 0!==T&&T,k=t.style,L=t.className,A=t.customRequest,M=t.showUploadList,I=void 0===M||M,D=t.method,R=void 0===D?"POST":D,H=t.children,P=t.maxCount,V=n.useState(a),U=V[0],F=V[1],Y=n.useRef(null),G=void 0!==o,$=G?o:U,W=n.useCallback(function(e){G||F(e),l&&l(e)},[G,l]),K=n.useCallback(function(e,n){var t=$.map(function(t){return t.uid===e?m(m({},t),n):t});W(t)},[$,W]),Z=n.useCallback(function(e){return y(void 0,void 0,void 0,function(){var n,t,i;return x(this,function(a){return r||A?(n=e.raw)?(K(e.uid,{status:"uploading",percent:0}),t="function"==typeof j?j(n):j,i={action:r||"",filename:v,file:n,data:t,headers:h,withCredentials:C,method:R.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)}},A?A(i):function(e){var n=e.action,t=e.filename,r=e.file,i=e.data,a=e.headers,o=e.withCredentials,l=e.onProgress,s=e.onSuccess,c=e.onError,d=e.method,u=new XMLHttpRequest;l&&u.upload&&(u.upload.onprogress=function(e){if(e.total>0){var n=Math.round(e.loaded/e.total*100);l(n)}}),u.onerror=function(){c(new Error("Upload failed"))},u.onload=function(){u.status>=200&&u.status<300?s(u.response):c(new Error("Upload failed with status ".concat(u.status)))},u.open(d,n,!0),o&&(u.withCredentials=!0),a&&Object.keys(a).forEach(function(e){u.setRequestHeader(e,a[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,A,v,j,h,C,R,c,d,u,K]),X=n.useCallback(function(e){return y(void 0,void 0,void 0,function(){var n,t,i,a,o;return x(this,function(l){switch(l.label){case 0:if(!e||0===e.length)return[2];if(n=Array.from(e),void 0!==P&&$.length+n.length>P)return console.warn("Upload: Maximum file count is ".concat(P)),[2];t=function(e){var t,i,a;return x(this,function(o){switch(o.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},!s)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,s(e,n)];case 2:return!1===(i=o.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 o.sent(),[2,"continue"];case 4:return(r||A)&&(t.status="uploading"),a=b(b([],$,!0),[t],!1),W(a),(r||A)&&setTimeout(function(){return Z(t)},0),[2]}})},i=0,a=n,l.label=1;case 1:return i<a.length?(o=a[i],[5,t(o)]):[3,4];case 2:l.sent(),l.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},[$,P,s,r,A,Z,W]),q=n.useCallback(function(e){X(e.target.files),Y.current&&(Y.current.value="")},[X]),J=n.useCallback(function(){!S&&Y.current&&Y.current.click()},[S]),Q=n.useCallback(function(e){return y(void 0,void 0,void 0,function(){var n;return x(this,function(t){switch(t.label){case 0:return p?[4,p(e)]:[3,2];case 1:if(!1===t.sent())return[2];t.label=2;case 2:return n=$.filter(function(n){return n.uid!==e.uid}),W(n),[2]}})})},[$,p,W]),ee=n.useCallback(function(e){X(e)},[X]);return e.jsxs("div",{className:f.default("zjpcy-upload",L,{"zjpcy-upload--disabled":S}),style:k,children:[e.jsx("input",{ref:Y,type:"file",className:"zjpcy-upload__input",accept:w,multiple:z,onChange:q}),O?e.jsx(oc,{disabled:S,onFileDrop:ee,accept:w,multiple:z,children:H}):e.jsx("div",{className:"zjpcy-upload__trigger",onClick:J,children:H||e.jsxs("button",{className:"zjpcy-btn zjpcy-btn--primary",disabled:S,children:[e.jsx(B,{type:"upload",style:{marginRight:4}}),"点击上传"]})}),I&&e.jsx(ac,{fileList:$,onRemove:Q,showUploadList:I})]})},sc=function(e,n){return m({display:"flex",flexDirection:"horizontal"===e?"row":"column",alignItems:"stretch",width:"100%",height:"100%",overflow:"hidden",background:"var(--zjpcy-splitter-panel-bg)",borderRadius:"var(--zjpcy-splitter-panel-radius)"},n)},cc=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(--zjpcy-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(--zjpcy-splitter-panel-shadow)":"var(--zjpcy-splitter-panel-shadow-vertical)",i.zIndex=r-t),i},dc=function(e,n,t,r){void 0===r&&(r=0);var i={position:"relative",flexShrink:0,background:t?"var(--zjpcy-bg-color-light)":"var(--zjpcy-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(--zjpcy-splitter-shadow-sm)",transition:"all var(--zjpcy-transition-duration) var(--zjpcy-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(--zjpcy-opacity-disabled)"),i},uc=function(e,n,t,r,i){void 0===i&&(i=!1);var a={borderRadius:"var(--zjpcy-border-radius-sm)",transition:"all var(--zjpcy-transition-duration) var(--zjpcy-transition-timing-function)"};return"horizontal"===e?(a.width=n?"2px":"var(--zjpcy-splitter-line-width)",a.height=n?"32px":"var(--zjpcy-splitter-line-length)",a.minHeight="var(--zjpcy-splitter-line-min-length)"):(a.width=n?"32px":"var(--zjpcy-splitter-line-length)",a.minWidth="var(--zjpcy-splitter-line-min-length)",a.height=n?"2px":"var(--zjpcy-splitter-line-width)"),i&&r&&t?(a.backgroundColor=t,a.boxShadow="var(--zjpcy-splitter-shadow-active)"):r&&t?(a.backgroundColor=t,a.boxShadow="var(--zjpcy-splitter-shadow-md)"):n?a.backgroundColor=n:a.background="var(--zjpcy-splitter-line-bg)",a},pc=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)},fc=function(t){var r=t.layout,i=void 0===r?"horizontal":r,a=t.panels,o=t.defaultSize,l=void 0===o?"50%":o,s=t.minSize,c=void 0===s?50:s,d=t.maxSize,u=void 0===d?1/0:d,f=t.splitterSize,h=t.lineColor,g=t.lineHoverColor,m=t.disabled,v=void 0!==m&&m,y=t.onResize,x=t.onResizeEnd,j=t.className,_=void 0===j?"":j,C=t.style,w=t.left,N=t.right,z=t.top,E=t.bottom,S=t.children,T=n.useRef(null),O=n.useState([]),k=O[0],L=O[1],A=n.useState(!1),M=A[0],I=A[1],D=n.useState(-1),R=D[0],H=D[1],P=n.useRef({isDragging:!1,startPosition:0,startSizes:[],containerSize:0,splitterIndex:-1}),V=n.useMemo(function(){if(a&&a.length>0)return a.map(function(e){return e.content});if("vertical"===i){if(z&&E)return[z,E]}else if(w&&N)return[w,N];return S&&Array.isArray(S)?S:[]},[a,i,w,N,z,E,S]),B=V.length,U=n.useCallback(function(e){return a&&a[e]?a[e]:{}},[a]),F=n.useCallback(function(){if(!T.current)return 0;var e=T.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("--zjpcy-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 a=b([],e,!0);a.length<n;)a.push(null!==(r=a[a.length-1])&&void 0!==r?r:t);return a.slice(0,n)}return new Array(n).fill(e)}(l,B,"".concat(100/B,"%")),i=pc(c,B,50),o=pc(u,B,1/0),s=a?a.map(function(e){var n;return null!==(n=e.defaultSize)&&void 0!==n?n:r[a.indexOf(e)]}):r,d=a?a.map(function(e){var n;return null!==(n=e.minSize)&&void 0!==n?n:i[a.indexOf(e)]}):i,p=a?a.map(function(e){var n;return null!==(n=e.maxSize)&&void 0!==n?n:o[a.indexOf(e)]}):o,f=s.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(p[n],e))}),L(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;L(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 G=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 a="touches"in n?n.touches[0].clientX:n.clientX,o="touches"in n?n.touches[0].clientY:n.clientY,l="horizontal"===i?a:o,s=F();P.current={isDragging:!0,startPosition:l,startSizes:b([],k,!0),containerSize:s,splitterIndex:e},I(!0),H(e)}}}},[v,i,k,F,U]),$=n.useCallback(function(e){if(P.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)-P.current.startPosition,o=P.current.splitterIndex,l=P.current.startSizes,s=pc(c,B,50),d=pc(u,B,1/0),p=a?a.map(function(e,n){var t;return null!==(t=e.minSize)&&void 0!==t?t:s[n]}):s,f=a?a.map(function(e,n){var t;return null!==(t=e.maxSize)&&void 0!==t?t:d[n]}):d,h=p[o],g=f[o],m=p[o+1],x=f[o+1],j=l[o],_=l[o+1],C=j+r,w=_-r;C<h?(C=h,w=j+_-h):C>g&&(C=g,w=j+_-g),w<m?(w=m,C=j+_-m):w>x&&(w=x,C=j+_-x);var N=b([],k,!0);N[o]=C,N[o+1]=w,L(N),null==y||y(N,o)}},[v,i,k,B,c,u,a,y]),W=n.useCallback(function(){P.current.isDragging&&(P.current.isDragging=!1,I(!1),H(-1),null==x||x(k))},[k,x]);if(n.useEffect(function(){if(M)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",W),document.addEventListener("touchmove",$,{passive:!1}),document.addEventListener("touchend",W),function(){document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",W),document.removeEventListener("touchmove",$),document.removeEventListener("touchend",W)}},[M,$,W]),B<2)return console.warn("Splitter requires at least 2 panels"),null;var K=["zjpcy-splitter","zjpcy-splitter-".concat(i),M?"zjpcy-splitter-dragging":"",_].filter(Boolean).join(" ");return e.jsx("div",{ref:T,className:K,style:sc(i,C),children:V.map(function(n,t){var r=k[t]||0,a=t===B-1;return e.jsxs(p.default.Fragment,{children:[e.jsx("div",{className:"zjpcy-splitter__panel",style:cc(r,i,t,B),children:n}),!a&&e.jsx("div",{className:["zjpcy-splitter__bar",R===t?"zjpcy-splitter__bar-dragging":"",v||U(t).disabled||U(t+1).disabled?"zjpcy-splitter__bar-disabled":""].filter(Boolean).join(" "),style:dc(i,f,v,t),onMouseDown:G(t),onTouchStart:G(t),children:e.jsx("div",{className:"zjpcy-splitter__line",style:uc(i,h,g,M,R===t)})})]},t)})})},hc=function(e){var n=d.Solar.fromYmd(e.getFullYear(),e.getMonth()+1,e.getDate()),t=n.getLunar(),r=t.getJieQi(),i=[],a=t.getFestivals();a&&i.push.apply(i,a);var o=t.getOtherFestivals();o&&i.push.apply(i,o);var l=t.getDay(),s={0:"建",1:"除",2:"满",3:"平",4:"定",5:"执",6:"破",7:"危",8:"成",9:"收",10:"开",11:"闭"}[l%12],c={0:{name:"青龙",luck:"吉"},1:{name:"明堂",luck:"吉"},2:{name:"天刑",luck:"凶"},3:{name:"朱雀",luck:"凶"},4:{name:"金匮",luck:"吉"},5:{name:"天德",luck:"吉"},6:{name:"白虎",luck:"凶"},7:{name:"玉堂",luck:"吉"},8:{name:"天牢",luck:"凶"},9:{name:"玄武",luck:"凶"},10:{name:"司命",luck:"吉"},11:{name:"勾陈",luck:"凶"}}[l%12],u=t.getBaZi(),p=[],f=[];"开"!==s&&"成"!==s&&"满"!==s&&"定"!==s||p.push("天德","月德","三合","六合"),"除"!==s&&"执"!==s&&"收"!==s||p.push("天恩","母仓","不将"),r&&p.push("节气","天赦"),"破"!==s&&"危"!==s&&"闭"!==s||f.push("月破","大耗","四击"),"凶"===c.luck&&f.push(c.name);var h=t.getXiu(),g=t.getXiuLuck(),m=t.getXiuSong(),v=t.getDayInGanZhi().charAt(0);return{year:t.getYear(),month:t.getMonth(),day:t.getDay(),monthName:t.getMonthInChinese(),dayName:t.getDayInChinese(),yearName:t.getYearInChinese(),isLeap:!1,julianDay:n.getJulianDay(),week:t.getWeekInChinese(),zodiac:t.getYearShengXiao(),ganZhiYear:t.getYearInGanZhi(),ganZhiMonth:t.getMonthInGanZhi(),ganZhiDay:t.getDayInGanZhi(),term:r||void 0,festivals:i,isTermDay:!!r,pengZuDay:t.getPengZuGan()+" "+t.getPengZuZhi(),pengZuHour:"",yi:"破"===s||"危"===s?["祭祀","沐浴","扫舍"]:["祭祀","祈福","嫁娶","出行","开市"],ji:"破"===s||"危"===s?["嫁娶","安葬","开市"]:["动土","开仓","纳采"],jiShen:p,xiongSha:f,xiGod:{name:{"甲":"东北","乙":"东北","丙":"西南","丁":"西南","戊":"东南","己":"东南","庚":"西北","辛":"西北","壬":"正南","癸":"正南"}[v]||"正南",description:"喜神方位"},fuGod:{name:"正东",description:"福神方位"},caiGod:{name:t.getDayPositionCai(),description:"财神方位"},yangGuiGod:{name:t.getDayPositionYangGui(),description:"阳贵神方位"},yinGuiGod:{name:t.getDayPositionYinGui(),description:"阴贵神方位"},taiShen:t.getDayPositionTai(),chongSha:t.getDayChongDesc(),sha:t.getDaySha(),naYin:"",yearNaYin:t.getYearNaYin(),monthNaYin:t.getMonthNaYin(),dayNaYin:t.getDayNaYin(),xiu:h||"",xiuAnimal:t.getAnimal()||"",xiuLuck:g||"",xiuSong:m||"",baZiYear:u[0]||"",baZiMonth:u[1]||"",baZiDay:u[2]||"",baZiHour:u[3]||"",baZi:u.join(" ")||"",yearWuXing:"",monthWuXing:"",dayWuXing:"",hourWuXing:"",yearShiShen:"",monthShiShen:"",hourShiShen:"",zhiXing:s,zhiXingDesc:{"建":"宜:出行、上任、会友、上书、见工。忌:动土、开仓、婚嫁、纳采。","除":"宜:除服、疗病、出行、拆卸、入宅。忌:求官、上任、开张、搬家。","满":"宜:修造、嫁娶、移徙、开市、交易。忌:栽种、下葬、求医、赴任。","平":"宜:修饰垣墙、平治道涂。忌:诸事不宜。","定":"宜:嫁娶、纳采、祭祀、祈福、出行。忌:求医、诉讼、赴任、出行。","执":"宜:祭祀、祈福、纳表、进章、捕捉。忌:开市、交易、纳财、出行。","破":"宜:破屋、求医、治病、坏垣。忌:嫁娶、安葬、纳采、出行。","危":"宜:祭祀、祈福、斋醮、酬神。忌:嫁娶、开市、安葬。","成":"宜:嫁娶、纳采、祭祀、祈福、开市。忌:安葬、出行、赴任。","收":"宜:祭祀、祈福、纳采、嫁娶、出行。忌:开市、动土、安葬。","开":"宜:嫁娶、纳采、开市、出行、动土。忌:安葬、祭祀、入殓。","闭":"宜:安葬、祭祀、祈福、纳采、嫁娶。忌:出行、动土、开市。"}[s]||"",shiErShen:c.name,shiErShenLuck:c.luck,isHuangDao:"吉"===c.luck,huangDaoName:c.name}},gc=function(e){if(e.term)return e.term;var n=e.dayName;return"初一"===n?e.isLeap?"闰".concat(e.monthName):e.monthName:n},mc=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],vc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],yc=["日","一","二","三","四","五","六"],xc={fields:[{name:"title",label:"标题",type:"text",placeholder:"请输入标题",required:!0},{name:"content",label:"内容",type:"textarea",placeholder:"请输入内容"}],submitText:"保存",cancelText:"取消"},bc=function(e,n){return new Date(e,n+1,0).getDate()},jc=function(e,n){return e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate()},_c=function(e,n){return n.some(function(n){return jc(n,e)})},Cc=function(e){var n=e.getFullYear(),t=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(n,"-").concat(t,"-").concat(r)},wc=function(e,n,t){for(var r=[],i=bc(e,n),a=function(e,n){return new Date(e,n,1).getDay()}(e,n),o=a>=t?a-t:7-(t-a),l=0===n?11:n-1,s=0===n?e-1:e,c=bc(s,l),d=o-1;d>=0;d--)r.push(new Date(s,l,c-d));for(d=1;d<=i;d++)r.push(new Date(e,n,d));var u=42-r.length,p=11===n?0:n+1,f=11===n?e+1:e;for(d=1;d<=u;d++)r.push(new Date(f,p,d));return r},Nc=function(t){var r=t.selectionMode,i=void 0===r?"single":r,a=t.value,o=t.defaultValue,l=t.onChange,s=t.dateCellRender,c=t.monthCellRender,d=t.disabledDate,u=t.headerRender,h=t.mode,g=t.onPanelChange,v=t.fullscreen,y=void 0===v||v,x=t.size,j=void 0===x?"default":x,_=t.layout,C=void 0===_?"horizontal":_,w=t.className,N=t.style,z=t.firstDayOfWeek,E=void 0===z?0:z,S=t.showWeekend,T=void 0===S||S,O=t.editable,k=void 0!==O&&O,L=t.dateInfo,A=void 0===L?{}:L,M=t.onDateInfoChange,I=t.panelFormConfig,D=void 0===I?xc:I,R=t.showLunar,H=void 0!==R&&R,P=t.lunarRender,V=t.enableLunarDetail,U=void 0!==V&&V,F=n.useState(function(){return"multiple"===i?o?Array.isArray(o)?o:[o]:[]:o||new Date}),Y=F[0],G=F[1],$=n.useState("month"),W=$[0],K=$[1],Z=n.useState(!1),X=Z[0],q=Z[1],J=n.useState(null),Q=J[0],ee=J[1],ne=n.useState({}),te=ne[0],re=ne[1],ie=n.useState(null),ae=ie[0],oe=ie[1],le=n.useState(!1),se=le[0],ce=le[1],de=n.useState(null),ue=de[0],fe=de[1],he=void 0!==a?a:Y,ge=void 0!==h?h:W,me=n.useMemo(function(){return"multiple"===i?Array.isArray(he)&&he.length>0?he[0]:new Date:he},[i,he]),ve=n.useState(function(){return me}),ye=ve[0],xe=ve[1];p.default.useEffect(function(){xe(function(e){return jc(e,me)?e:me})},[me]);var be=ye.getFullYear(),je=ye.getMonth(),_e=n.useMemo(function(){return function(e){var n=yc.map(function(e,n){return{label:e,index:n,isWeekend:0===n||6===n}});return 0===e?n:b(b([],n.slice(e),!0),n.slice(0,e),!0)}(E)},[E]),Ce=n.useMemo(function(){return wc(be,je,E)},[be,je,E]),we=n.useCallback(function(e){var n=Cc(e);return A[n]||[]},[A]),Ne=n.useCallback(function(e){if("multiple"===i){var n=Array.isArray(he)?he:[];return _c(e,n)}return jc(e,he)},[i,he]),ze=n.useCallback(function(e){if(!(null==d?void 0:d(e)))if("multiple"===i){var n=Array.isArray(he)?he:[],t=void 0;t=_c(e,n)?function(e,n){return n.filter(function(n){return!jc(n,e)})}(e,n):function(e,n){return _c(e,n)?n:b(b([],n,!0),[e],!1)}(e,n),void 0===a&&G(t),null==l||l(t)}else void 0===a&&G(e),null==l||l(e),k&&(ee(e),oe(null),re({}),q(!0))},[d,l,a,k,i,he]),Ee=n.useCallback(function(e){var n=new Date(ye);n.setMonth(e),void 0===a&&G(n),null==l||l(n),xe(n),K("month")},[ye,a,l]),Se=n.useCallback(function(e){K(e),null==g||g(ye,e)},[ye,g]),Te=n.useCallback(function(e){var n=new Date(ye);n.setFullYear(n.getFullYear()+e),xe(n),null==g||g(n,ge)},[ye,ge,g]),Oe=n.useCallback(function(e){var n=new Date(ye);n.setMonth(n.getMonth()+e),xe(n),null==g||g(n,ge)},[ye,ge,g]),ke=n.useCallback(function(){q(!1),ee(null),re({}),oe(null)},[]),Le=n.useCallback(function(e){fe(e),ce(!0)},[]),Ae=n.useCallback(function(){ce(!1),fe(null)},[]),Me=n.useCallback(function(e,n){re(function(t){var r;return m(m({},t),((r={})[e]=n,r))})},[]),Ie=n.useCallback(function(){var e;if(Q){for(var n=0,t=D.fields.filter(function(e){return e.required});n<t.length;n++){var r=t[n];if(!(null===(e=te[r.name])||void 0===e?void 0:e.trim()))return}var i,a=Cc(Q),o=A[a]||[];null!==ae?(i=b([],o,!0))[ae]={title:te.title||"",content:te.content||"",color:te.color||"#1890ff"}:i=b(b([],o,!0),[{title:te.title||"",content:te.content||"",color:te.color||"#1890ff"}],!1),null==M||M(Q,i),ke()}},[Q,te,ae,A,M,D.fields,ke]),De=n.useCallback(function(e,n){oe(e),re({title:n.title,content:n.content||"",color:n.color||"#1890ff"})},[]),Re=n.useCallback(function(e){if(Q){var n=Cc(Q),t=(A[n]||[]).filter(function(n,t){return t!==e});null==M||M(Q,t),ae===e&&(oe(null),re({}))}},[Q,A,M,ae]),He=function(n,t){var r=t.slice(0,2),i=t.length-2;return e.jsxs("div",{className:"zjpcy-calendar__date-info-list",children:[r.map(function(n,t){return e.jsxs("div",{className:"zjpcy-calendar__date-info-item",style:{color:n.color||"#1890ff"},children:[e.jsx("span",{className:"zjpcy-calendar__date-info-dot",style:{backgroundColor:n.color||"#1890ff"}}),e.jsx("span",{className:"zjpcy-calendar__date-info-text",children:n.title})]},t)}),i>0&&e.jsxs("div",{className:"zjpcy-calendar__date-info-more",children:["+",i," 更多"]})]})},Pe=function(n){return e.jsx("div",{className:"zjpcy-calendar__info-tooltip",children:n.map(function(n,t){return e.jsxs("div",{className:"zjpcy-calendar__info-tooltip-item",children:[e.jsxs("div",{className:"zjpcy-calendar__info-tooltip-title",style:{color:n.color||"#1890ff"},children:[e.jsx("span",{className:"zjpcy-calendar__info-tooltip-dot",style:{backgroundColor:n.color||"#1890ff"}}),n.title]}),n.content&&e.jsx("div",{className:"zjpcy-calendar__info-tooltip-content",children:n.content})]},t)})})},Ve=f.default("zjpcy-calendar",{"zjpcy-calendar--fullscreen":y,"zjpcy-calendar--small":"small"===j,"zjpcy-calendar--layout-vertical":"vertical"===C,"zjpcy-calendar--small-vertical":"small"===j&&"vertical"===C},w);return e.jsxs("div",{className:Ve,style:N,children:[u?u({value:ye,onChange:xe,type:ge,onTypeChange:Se}):e.jsxs("div",{className:"zjpcy-calendar__header",children:[e.jsxs("div",{className:"zjpcy-calendar__header-left",children:[e.jsx(pe,{className:"zjpcy-calendar__header-btn",onClick:function(){return Te(-1)},title:"上一年",children:e.jsx(B,{type:"double-left",style:{fontSize:12}})}),"month"===ge&&e.jsx(pe,{className:"zjpcy-calendar__header-btn",onClick:function(){return Oe(-1)},title:"上个月",children:e.jsx(B,{type:"left",style:{fontSize:12}})})]}),e.jsxs("div",{className:"zjpcy-calendar__header-title",children:[e.jsxs(pe,{className:"zjpcy-calendar__header-title-btn",onClick:function(){return Se("year")},children:[be,"年"]}),"month"===ge&&e.jsx(pe,{className:"zjpcy-calendar__header-title-btn",onClick:function(){return Se("year")},children:mc[je]})]}),e.jsxs("div",{className:"zjpcy-calendar__header-right",children:["month"===ge&&e.jsx(pe,{className:"zjpcy-calendar__header-btn",onClick:function(){return Oe(1)},title:"下个月",children:e.jsx(B,{type:"right",style:{fontSize:12}})}),e.jsx(pe,{className:"zjpcy-calendar__header-btn",onClick:function(){return Te(1)},title:"下一年",children:e.jsx(B,{type:"double-right",style:{fontSize:12}})})]})]}),e.jsx("div",{className:"zjpcy-calendar__body",children:"month"===ge?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"zjpcy-calendar__weekday-header",children:_e.map(function(n){var t=n.label,r=n.index,i=n.isWeekend;return e.jsx("div",{className:f.default("zjpcy-calendar__weekday-cell",{"zjpcy-calendar__weekday-cell--weekend":i}),children:t},r)})}),e.jsx("div",{className:"zjpcy-calendar__date-grid",children:Ce.map(function(n,t){var r=n.getMonth()===je,i=function(e){return jc(e,new Date)}(n),a=Ne(n),o=(null==d?void 0:d(n))||!1,l=0===n.getDay()||6===n.getDay(),c=!T&&l,u=we(n),p=u.length>0,h=H?hc(n):null,g=void 0!==(null==h?void 0:h.term)&&""!==h.term,m=e.jsxs("div",{className:f.default("zjpcy-calendar__date-cell",{"zjpcy-calendar__date-cell--other-month":!r,"zjpcy-calendar__date-cell--today":i,"zjpcy-calendar__date-cell--selected":a,"zjpcy-calendar__date-cell--disabled":o,"zjpcy-calendar__date-cell--hidden":c,"zjpcy-calendar__date-cell--has-info":p,"zjpcy-calendar__date-cell--show-lunar":H&&h}),onClick:function(){return ze(n)},onDoubleClick:function(){return U&&H&&h&&Le(n)},children:[e.jsxs("div",{className:"zjpcy-calendar__date-cell-header",children:[e.jsx("span",{className:f.default("zjpcy-calendar__date-number",{"zjpcy-calendar__date-number--today":i}),children:n.getDate()}),H&&h&&e.jsx("span",{className:f.default("zjpcy-calendar__lunar-text",{"zjpcy-calendar__lunar-text--term":g}),title:"".concat(h.ganZhiYear," ").concat(h.zodiac,"年 ").concat(h.monthName).concat(h.dayName),children:P?P(h):gc(h)})]}),s&&e.jsx("div",{className:"zjpcy-calendar__date-content",children:s(n,h||void 0)}),p&&He(0,u)]},t);return p&&u.length>2?e.jsx(St,{title:Pe(u),placement:"top",delay:200,children:m},t):m})})]}):e.jsx("div",{className:"zjpcy-calendar__month-grid",children:mc.map(function(n,t){var r=new Date(be,t,1),a=function(){if("multiple"===i)return(Array.isArray(he)?he:[]).some(function(e){return e.getMonth()===t&&e.getFullYear()===be});var e=he;return e.getMonth()===t&&e.getFullYear()===be}();return e.jsx("div",{className:f.default("zjpcy-calendar__month-cell",{"zjpcy-calendar__month-cell--selected":a}),onClick:function(){return Ee(t)},children:c?c(r):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"zjpcy-calendar__month-name",children:n}),e.jsx("span",{className:"zjpcy-calendar__month-subtitle",children:vc[t]})]})},t)})})}),function(){if(!X||!Q)return null;var n=Cc(Q),t=A[n]||[],r=D,i=e.jsxs(e.Fragment,{children:[null!==ae&&e.jsx(pe,{className:"zjpcy-calendar__panel-btn is-secondary",onClick:function(){oe(null),re({})},children:"取消编辑"}),e.jsx(pe,{className:"zjpcy-calendar__panel-btn is-secondary",onClick:ke,children:r.cancelText||"取消"}),e.jsx(pe,{className:"zjpcy-calendar__panel-btn is-primary",onClick:Ie,children:null!==ae?"保存修改":r.submitText||"保存"})]});return e.jsx(Nn,{visible:X,title:"".concat(Q.toLocaleDateString("zh-CN")," 信息编辑"),width:480,onCancel:ke,onOk:Ie,footer:i,children:e.jsxs("div",{className:"zjpcy-calendar__panel-body",children:[t.length>0&&e.jsxs("div",{className:"zjpcy-calendar__panel-list",children:[e.jsx("h4",{className:"zjpcy-calendar__panel-section-title",children:"已有信息"}),t.map(function(n,t){return e.jsxs("div",{className:f.default("zjpcy-calendar__panel-list-item",{"is-editing":ae===t}),children:[e.jsxs("div",{className:"zjpcy-calendar__panel-list-content",children:[e.jsx("span",{className:"zjpcy-calendar__panel-list-dot",style:{backgroundColor:n.color||"#1890ff"}}),e.jsxs("div",{className:"zjpcy-calendar__panel-list-text",children:[e.jsx("div",{className:"zjpcy-calendar__panel-list-title",children:n.title}),n.content&&e.jsx("div",{className:"zjpcy-calendar__panel-list-desc",children:n.content})]})]}),e.jsxs("div",{className:"zjpcy-calendar__panel-list-actions",children:[e.jsx(pe,{className:"zjpcy-calendar__panel-list-btn",onClick:function(){return De(t,n)},children:"编辑"}),e.jsx(pe,{className:"zjpcy-calendar__panel-list-btn is-danger",onClick:function(){return Re(t)},children:"删除"})]})]},t)})]}),e.jsxs("div",{className:"zjpcy-calendar__panel-form",children:[e.jsx("h4",{className:"zjpcy-calendar__panel-section-title",children:null!==ae?"编辑信息":"添加新信息"}),r.fields.map(function(n){return e.jsxs("div",{className:"zjpcy-calendar__panel-field",children:[e.jsxs("label",{className:"zjpcy-calendar__panel-label",children:[n.label,n.required&&e.jsx("span",{className:"zjpcy-calendar__panel-required",children:"*"})]}),"textarea"===n.type?e.jsx(en,{className:"zjpcy-calendar__panel-textarea",value:te[n.name]||"",onChange:function(e){return Me(n.name,e.target.value)},placeholder:n.placeholder,rows:3}):e.jsx(rn,{className:"zjpcy-calendar__panel-input",value:te[n.name]||"",onChange:function(e){return Me(n.name,e.target.value)},placeholder:n.placeholder})]},n.name)}),e.jsxs("div",{className:"zjpcy-calendar__panel-color",children:[e.jsx("label",{className:"zjpcy-calendar__panel-label",children:"颜色标记"}),e.jsx("div",{className:"zjpcy-calendar__panel-color-picker",children:["#1890ff","#52c41a","#faad14","#f5222d","#722ed1","#13c2c2"].map(function(n){return e.jsx("button",{className:f.default("zjpcy-calendar__panel-color-option",{"is-active":te.color===n||!te.color&&"#1890ff"===n}),style:{backgroundColor:n},onClick:function(){return Me("color",n)}},n)})})]})]})]})})}(),function(){if(!se||!ue)return null;var n=hc(ue),t=ue.toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric",weekday:"long"});return e.jsx("div",{className:"zjpcy-calendar__lunar-overlay",onClick:Ae,children:e.jsxs("div",{className:"zjpcy-calendar__lunar-panel",onClick:function(e){return e.stopPropagation()},children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-header",children:[e.jsxs("h3",{className:"zjpcy-calendar__lunar-title",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-date",children:t}),e.jsxs("span",{className:"zjpcy-calendar__lunar-tag",children:[n.ganZhiYear," ",n.zodiac,"年"]})]}),e.jsx(pe,{className:"zjpcy-calendar__lunar-close",onClick:Ae,children:e.jsx(B,{type:"close",size:16})})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-body",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"农历信息"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-grid",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"农历日期"}),e.jsxs("span",{className:"zjpcy-calendar__lunar-value",children:[n.yearName," ",n.monthName,n.dayName]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"星期"}),e.jsxs("span",{className:"zjpcy-calendar__lunar-value",children:["星期",n.week]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"儒略日"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.julianDay})]}),n.term&&e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"节气"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value zjpcy-calendar__lunar-value--highlight",children:n.term})]}),n.festivals.length>0&&e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"节日"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value zjpcy-calendar__lunar-value--highlight",children:n.festivals.join("、")})]})]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"八字信息"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-bazi",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-bazi-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-label",children:"年柱"}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-value",children:n.baZiYear}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazy-na",children:n.yearNaYin})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-bazi-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-label",children:"月柱"}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-value",children:n.baZiMonth}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazy-na",children:n.monthNaYin})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-bazi-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-label",children:"日柱"}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-value",children:n.baZiDay}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazy-na",children:n.dayNaYin})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-bazi-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-label",children:"时柱"}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazi-value",children:n.baZiHour||"待定"}),e.jsx("span",{className:"zjpcy-calendar__lunar-bazy-na",children:"-"})]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",style:{marginTop:12},children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"完整八字"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.baZi||"待定"})]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"二十八宿"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-grid",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"星宿"}),e.jsxs("span",{className:"zjpcy-calendar__lunar-value",children:[n.xiu," ",n.xiuAnimal]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"星宿吉凶"}),e.jsx("span",{className:f.default("zjpcy-calendar__lunar-value",{"zjpcy-calendar__lunar-value--good":"吉"===n.xiuLuck,"zjpcy-calendar__lunar-value--bad":"凶"===n.xiuLuck}),children:n.xiuLuck})]})]}),n.xiuSong&&e.jsx("div",{className:"zjpcy-calendar__lunar-song",children:n.xiuSong})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"黄道日"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-grid",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"十二值星"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.zhiXing})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"十二神"}),e.jsxs("span",{className:f.default("zjpcy-calendar__lunar-value",{"zjpcy-calendar__lunar-value--good":"吉"===n.shiErShenLuck,"zjpcy-calendar__lunar-value--bad":"凶"===n.shiErShenLuck}),children:[n.shiErShen,"(",n.shiErShenLuck,")"]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"黄道吉日"}),e.jsx("span",{className:f.default("zjpcy-calendar__lunar-value",{"zjpcy-calendar__lunar-value--good":n.isHuangDao,"zjpcy-calendar__lunar-value--bad":!n.isHuangDao}),children:n.isHuangDao?"是":"否"})]})]}),n.zhiXingDesc&&e.jsx("div",{className:"zjpcy-calendar__lunar-desc",children:n.zhiXingDesc})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"彭祖百忌"}),e.jsx("div",{className:"zjpcy-calendar__lunar-text-content",children:e.jsx("p",{children:n.pengZuDay})})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section zjpcy-calendar__lunar-section--yiji",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-yi",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"宜"}),e.jsx("div",{className:"zjpcy-calendar__lunar-yiji-content",children:n.yi.length>0?n.yi.map(function(n,t){return e.jsx("span",{className:"zjpcy-calendar__lunar-yiji-item",children:n},t)}):e.jsx("span",{className:"zjpcy-calendar__lunar-yiji-empty",children:"诸事不宜"})})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-ji",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"忌"}),e.jsx("div",{className:"zjpcy-calendar__lunar-yiji-content",children:n.ji.length>0?n.ji.map(function(n,t){return e.jsx("span",{className:"zjpcy-calendar__lunar-yiji-item",children:n},t)}):e.jsx("span",{className:"zjpcy-calendar__lunar-yiji-empty",children:"无"})})]})]}),(n.jiShen.length>0||n.xiongSha.length>0)&&e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"神煞"}),n.jiShen.length>0&&e.jsxs("div",{className:"zjpcy-calendar__lunar-shensha",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-shensha-label",children:"吉神:"}),e.jsx("span",{className:"zjpcy-calendar__lunar-shensha-value zjpcy-calendar__lunar-shensha-value--good",children:n.jiShen.join("、")})]}),n.xiongSha.length>0&&e.jsxs("div",{className:"zjpcy-calendar__lunar-shensha",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-shensha-label",children:"凶煞:"}),e.jsx("span",{className:"zjpcy-calendar__lunar-shensha-value zjpcy-calendar__lunar-shensha-value--bad",children:n.xiongSha.join("、")})]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"方位"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-grid zjpcy-calendar__lunar-grid--4",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"喜神"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.xiGod.name})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"福神"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.fuGod.name})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"财神"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.caiGod.name})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"阳贵"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.yangGuiGod.name})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"阴贵"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.yinGuiGod.name})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"胎神"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.taiShen})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"冲煞"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.chongSha})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"煞方"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.sha})]})]})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-section",children:[e.jsx("h4",{className:"zjpcy-calendar__lunar-section-title",children:"五行"}),e.jsxs("div",{className:"zjpcy-calendar__lunar-grid",children:[e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"年五行"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.yearWuXing})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"月五行"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.monthWuXing})]}),e.jsxs("div",{className:"zjpcy-calendar__lunar-item",children:[e.jsx("span",{className:"zjpcy-calendar__lunar-label",children:"日五行"}),e.jsx("span",{className:"zjpcy-calendar__lunar-value",children:n.dayWuXing})]})]})]})]}),e.jsx("div",{className:"zjpcy-calendar__lunar-footer",children:e.jsx(pe,{className:"zjpcy-calendar__lunar-btn",onClick:Ae,children:"关闭"})})]})})}()]})};Nc.displayName="Calendar";var zc=Nc;exports.Anchor=Bt,exports.Breadcrumb=Ut,exports.Button=pe,exports.Calendar=zc,exports.Carousel=me,exports.Cascader=ye,exports.Checkbox=kt,exports.Col=No,exports.ColorPicker=Ye,exports.CopyToClipboard=We,exports.DatePicker=Bs,exports.Divider=Ze,exports.Drawer=Oo,exports.Dropdown=oi,exports.Empty=ve,exports.Flex=Xe,exports.Form=xo,exports.Grid=To,exports.I18nProvider=ai,exports.Icon=B,exports.Input=rn,exports.Label=Na,exports.Layout=ro,exports.Marquee=vn,exports.Masonry=Rt,exports.Menu=Ii,exports.Message=yn,exports.MessageProvider=function(t){var r=t.children,i=n.useState([]),a=i[0],o=i[1],l=n.useState(0),s=l[0],c=l[1],d=n.useCallback(function(e,n,t){void 0===t&&(t=3e3);var r=s;c(function(e){return e+1}),o(function(i){return b(b([],i,!0),[{id:r,type:e,content:n,duration:t}],!1)});var i=setTimeout(function(){a(r)},t),a=function(e){o(function(n){return n.filter(function(n){return n.id!==e})})};return{close:function(){clearTimeout(i),a(r)}}},[s]),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 o([])}};return e.jsxs(wn.Provider,{value:{message:u},children:[r,a.map(function(n){return e.jsx(yn,{type:n.type,content:n.content,duration:n.duration,onClose:function(){return o(function(e){return e.filter(function(e){return e.id!==n.id})})}},n.id)})]})},exports.Modal=Nn,exports.Notice=Ln,exports.Notification=Mn,exports.Pagination=Et,exports.Popconfirm=Ao,exports.Progress=Mo,exports.Radio=rt,exports.Rate=Di,exports.Row=Eo,exports.Select=Nt,exports.Slider=Ri,exports.Space=Ht,exports.Spin=ge,exports.Splitter=fc,exports.Steps=Bi,exports.Switch=Zi,exports.Table=At,exports.Tabs=qi,exports.Tag=Lo,exports.Textarea=en,exports.TimePicker=Po,exports.Tooltip=St,exports.Top=It,exports.Transfer=Ca,exports.Tree=ic,exports.TreeSelect=Fe,exports.Typography=Dt,exports.Upload=lc,exports.i18n=Lr,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,a=r;if(r.language)i=r.language,r.translation&&"object"==typeof r.translation&&(a=r.translation);else if(r.locale)i=r.locale,r.translation&&"object"==typeof r.translation&&(a=r.translation);else if(1===Object.keys(r).length){var o=Object.keys(r)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(o)&&(i=o,a=r[o])}else if(r.translation&&"object"==typeof r.translation&&1===Object.keys(r.translation).length){o=Object.keys(r.translation)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(o)&&(i=o,a=r.translation[o])}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]={}),a.translation&&"object"==typeof a.translation?n[i].translation=m(m({},n[i].translation),a.translation):n[i].translation=m(m({},n[i].translation),a)}}),n},exports.message=Cn,exports.useCopy=Ke,exports.useI18n=function(){return ni()},exports.useMessage=function(){var e=n.useContext(wn);return(null==e?void 0:e.message)?e.message:Cn};
|