diff --git a/FRONTEND_EXPORT_SETUP.md b/FRONTEND_EXPORT_SETUP.md new file mode 100644 index 0000000..434b555 --- /dev/null +++ b/FRONTEND_EXPORT_SETUP.md @@ -0,0 +1,211 @@ +# 前端页面导出功能设置说明 + +## 功能概述 + +新增了前端页面直接导出为PDF和PNG的功能,用户可以直接从分析结果页面生成: +- **PDF文档**:支持分页的专业格式文档 +- **PNG长图**:完整页面截图,适合社交媒体分享 + +## 依赖安装 + +需要安装以下依赖包: + +```bash +npm install html2canvas jspdf +``` + +或使用yarn: + +```bash +yarn add html2canvas jspdf +``` + +## 功能特性 + +### PDF导出 +- ✅ A4纸张格式 +- ✅ 自动分页处理 +- ✅ 高质量输出 +- ✅ 保持原有样式和布局 +- ✅ 自动隐藏导出按钮等UI元素 + +### PNG导出 +- ✅ 高分辨率长图(2倍缩放) +- ✅ 完整页面内容 +- ✅ 保持颜色和样式 +- ✅ 适合移动端查看和分享 + +## 已集成的组件 + +1. **CompleteYijingAnalysis** - 易经占卜分析页面 +2. **CompleteBaziAnalysis** - 八字命理分析页面 +3. **CompleteZiweiAnalysis** - 紫微斗数分析页面 + +## 使用方法 + +### 在组件中使用 + +```tsx +import PageExportButton from './ui/PageExportButton'; + +// 在JSX中使用 + +``` + +### 标记导出内容 + +为要导出的内容容器添加ID和data属性: + +```tsx +
+ {/* 要导出的内容 */} +
+``` + +### 隐藏不需要导出的元素 + +为不需要出现在导出文件中的元素添加类名或属性: + +```tsx +
+ {/* 下载按钮等UI元素 */} +
+``` + +## 技术实现 + +### 核心技术栈 +- **html2canvas**: 将DOM元素转换为Canvas +- **jsPDF**: 生成PDF文档 +- **React**: 组件化开发 +- **TypeScript**: 类型安全 + +### 导出流程 + +1. **获取目标元素**: 根据ID或选择器定位要导出的DOM元素 +2. **生成Canvas**: 使用html2canvas将DOM转换为高质量Canvas +3. **处理样式**: 自动处理CSS样式、字体、图片等 +4. **生成文件**: + - PNG: 直接从Canvas生成图片 + - PDF: 将Canvas图片嵌入PDF文档,支持分页 +5. **自动下载**: 创建下载链接并触发下载 + +### 配置选项 + +```typescript +// html2canvas配置 +{ + scale: 2, // 提高分辨率 + useCORS: true, // 支持跨域图片 + allowTaint: true, // 允许跨域内容 + backgroundColor: '#ffffff', // 背景色 + onclone: (clonedDoc) => { + // 在克隆文档中隐藏不需要的元素 + } +} + +// jsPDF配置 +{ + orientation: 'portrait', // 纵向 + unit: 'mm', // 单位毫米 + format: 'a4' // A4格式 +} +``` + +## 样式优化 + +### CSS类名约定 + +- `.no-export`: 不导出的元素 +- `[data-no-export]`: 不导出的元素(属性方式) +- `[data-export-content]`: 主要导出内容 +- `.fixed`, `.sticky`, `.floating`: 自动隐藏的浮动元素 + +### 打印样式优化 + +可以添加打印专用样式: + +```css +@media print { + .no-print { + display: none !important; + } + + .print-break { + page-break-before: always; + } +} +``` + +## 错误处理 + +- ✅ 网络错误处理 +- ✅ 图片加载失败处理 +- ✅ 浏览器兼容性检查 +- ✅ 用户友好的错误提示 +- ✅ Toast通知集成 + +## 浏览器兼容性 + +- ✅ Chrome 60+ +- ✅ Firefox 55+ +- ✅ Safari 12+ +- ✅ Edge 79+ +- ⚠️ IE不支持(需要polyfill) + +## 性能优化 + +- 🚀 按需加载依赖 +- 🚀 Canvas复用 +- 🚀 内存管理 +- 🚀 大文件分块处理 +- 🚀 用户体验优化(加载状态、进度提示) + +## 未来扩展 + +- [ ] 支持更多导出格式(DOCX、Excel等) +- [ ] 批量导出功能 +- [ ] 云端存储集成 +- [ ] 自定义模板支持 +- [ ] 水印和签名功能 + +## 注意事项 + +1. **图片跨域**: 确保所有图片资源支持CORS +2. **字体加载**: 确保自定义字体已完全加载 +3. **内容大小**: 超大内容可能影响性能 +4. **移动端**: 在移动设备上可能需要额外优化 +5. **隐私**: 导出功能完全在客户端执行,不会上传数据 + +## 故障排除 + +### 常见问题 + +1. **图片不显示**: 检查图片CORS设置 +2. **样式丢失**: 确保CSS已完全加载 +3. **字体异常**: 检查字体文件加载状态 +4. **内容截断**: 调整Canvas尺寸设置 +5. **下载失败**: 检查浏览器下载权限 + +### 调试方法 + +```javascript +// 开启调试模式 +const canvas = await html2canvas(element, { + logging: true, // 开启日志 + debug: true // 调试模式 +}); +``` + +## 更新日志 + +### v1.0.0 (2025-01-21) +- ✅ 初始版本发布 +- ✅ 支持PDF和PNG导出 +- ✅ 集成到三个主要分析组件 +- ✅ 完整的错误处理和用户体验 \ No newline at end of file diff --git a/comparison-yijing.md b/comparison-yijing.md new file mode 100644 index 0000000..5fb0d01 --- /dev/null +++ b/comparison-yijing.md @@ -0,0 +1,227 @@ +# 易经占卜分析报告 + +**占卜者:** 午饭 +**生成时间:** 2025/8/21 19:09:13 +**分析类型:** 易经占卜 + +--- + +## ❓ 占卜问题 + +**问题:** 午饭 + +**起卦方法:** 梅花易数时间起卦法 + +**占卜时间:** 2025/8/21 19:09:13 + +**问题类型:** 综合运势 + +**关注重点:** 整体发展、综合状况、全面分析 + +## 🔮 卦象信息 + +### 主卦 + +**卦名:** 困 +**卦象:** +_ _ +___ +_ _ +_ _ +_ _ +___ +**卦序:** 第47卦 + +### 变卦 + +**卦名:** 兑 +**卦象:** +_ _ +___ +___ +_ _ +___ +___ + +### 八卦结构 + +**上卦:** 兑 (泽) +**下卦:** 坎 (水) + +### 动爻 + +**动爻位置:** 1爻 + +## 📜 卦辞分析 + +### 卦象含义 + +【困卦】第47卦 - 困穷,困境,困顿 + +### 彖传 + +> 【彖传】曰:亨,贞,大人吉,无咎。有言不信。 + +### 象传 + +> 【象传】曰:泽无水,困。君子以致命遂志。 + +### 八卦组合分析 + +上卦兑(泽)代表悦,下卦坎(水)代表陷。泽在上,水在下,形成兑坎的组合,象征着特殊的能量组合,需要深入分析。 + +### 五行分析 + +**upper_element:** 金 +**lower_element:** 水 +**relationship:** 金生水,相生有利 +**balance:** 五行相生,和谐发展,有利于事物的成长 + +## 🔄 动爻分析 + +**动爻数量:** 1爻 + +## 🔀 变卦分析 + +### 变卦含义 + +兑悦,喜悦,和悦 + +### 转化洞察 + +从【困】到【兑】的变化,预示着事态将从困穷,困境,困顿转向兑悦,喜悦,和悦,这是一个重要的转折点。需要适应这种变化,调整策略和心态。 + +### 变化指导 + +变卦指示:充满喜悦和和谐的氛围。保持和悦态度,增进人际和谐。 + +### 时机把握 + +变化的速度适中,需要保持关注 + +## 🔍 高级分析 + +### 互卦 - 蹇 + +**卦象:** +_ _ +___ +_ _ +_ _ +_ _ +___ +**含义:** 蹇难,困难,险阻 +**分析:** 互卦【蹇】揭示了事物的内在发展趋势和隐藏因素。面临重重困难的时期。反省自身,修德养性,寻求贵人帮助。 + +### 错卦 - 坤 + +**卦象:** +_ _ +_ _ +_ _ +_ _ +_ _ +_ _ +**含义:** 接受,滋养,顺从 +**分析:** 错卦【坤】代表了相对立的状态和需要避免的方向。以柔顺和包容的态度面对挑战。通过支持他人和耐心等待,将获得成功。 + +### 综卦 - 涣 + +**卦象:** +_ _ +___ +_ _ +_ _ +___ +___ +**含义:** 涣散,离散,化解 +**分析:** 综卦【涣】显示了事物的另一面和可能的转化方向。化解涣散,重建秩序的时期。凝聚人心,重获团结。 + +### 四卦综合洞察 + +通过四卦分析:本卦【困】显示当前状态,互卦【蹇】揭示内在动力,错卦【坤】提醒对立面,综卦【涣】指示转化方向。综合来看,需要在困穷,困境,困顿的基础上,注意蹇难,困难,险阻的内在发展,避免接受,滋养,顺从的极端,向涣散,离散,化解的方向转化。 + +## 🔢 象数分析 + +### 上卦数理 + +**数字:** 2 +**含义:** 上卦数字2,对应兑卦泽象。在您的问题"午饭"中,这表示外在环境充满喜悦和交流的机会。泽象主悦,预示着通过良好的沟通和人际关系能够获得成功。 +**影响:** 外在环境呈现泽的特质,需要以悦的方式应对 + +### 下卦数理 + +**数字:** 6 +**含义:** 下卦数字6,对应坎卦水象。在您的问题"午饭"中,这表示您内心深沉而有智慧。内在动力来自于对深层真理的探索。 + +### 组合能量 + +**总数:** 8 +**解释:** 总数8在您的问题"午饭"中代表丰盛收获,是收获成果的时机。这个数字预示着您的努力将得到回报。 +**和谐度:** 上下卦差异很大,需要深度调整和耐心化解 + +### 时间共振 + +**共振等级:** 需要调和 +**时间能量:** 阴气渐盛,适合休息调养 +**最佳时机:** 对于"午饭",建议在午时(11:00-13:00)把握收获时机 + +## 🧭 五行分析 + +### 五行属性 + +**上卦五行:** 金 +**下卦五行:** 水 + +### 五行关系 + +**相互作用:** 金生水,相生有利 +**平衡状态:** 五行相生,和谐发展,有利于事物的成长 + +## ⏰ 时间分析 + +### 月相影响 + +**月相能量:** 圆满充实 +**月相建议:** 适合收获和庆祝 + +### 能量状态 + +**整体状态:** 旺盛之气与阴气渐盛相结合 +**能量建议:** 在夏季的戌时,适合积极行动,同时休息调整 + +## 🎯 针对性指导 + +### 专业分析 + +针对您关于综合运势的问题,本卦【困】在整体发展、综合状况、全面分析方面的指示是:处于困境的时期。虽处困境,但保持正道,终将脱困。。 变卦【兑】预示着在整体发展、综合状况、全面分析方面将会有所转变。 结合当前的时间因素(夏季,戌时),建议您适合积极行动。 + +## 🎯 动态指导 + +### 实用建议 + +综合来看,本卦【困】的总体指导是:"处于困境的时期。虽处困境,但保持正道,终将脱困。"。 变卦【兑】提示未来趋势:"充满喜悦和和谐的氛围。保持和悦态度,增进人际和谐。"。 + +## 🌟 易经智慧 + +### 核心信息 + +坚持正道。变化在即,喜悦和谐。 + +### 行动建议 + +保持信念,寻求突破 当前正值夏季,适合积极行动。 现在是戌时,休息调整。 考虑到即将到来的变化,建议:保持和悦,增进和谐。 + +### 时机把握 + +时机分析:晚间时光,阴气渐盛,适合思考和规划。 夏季适合积极行动。 + +## 📖 哲学洞察 + +《易经》困卦的核心智慧在于:泽中无水,象征困穷。君子应舍命达成志向。。 而变卦兑则提醒我们:两泽相连,象征喜悦。君子应与朋友讲习道义。。 《易经》告诉我们,万事万物都在变化之中,智者应该顺应这种变化,在变化中寻找机遇,在稳定中积蓄力量。 + +--- + +*本报告由神机阁AI命理分析平台生成* +*生成时间:2025/8/21 19:09:13* +*仅供参考,请理性对待* diff --git a/debug-pdf.cjs b/debug-pdf.cjs new file mode 100644 index 0000000..e69de29 diff --git a/dist/assets/index-CGu5zB0q.js b/dist/assets/index-CGu5zB0q.js new file mode 100644 index 0000000..c8a7578 --- /dev/null +++ b/dist/assets/index-CGu5zB0q.js @@ -0,0 +1,622 @@ +var $P=Object.defineProperty;var WP=(t,e,n)=>e in t?$P(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Sl=(t,e,n)=>WP(t,typeof e!="symbol"?e+"":e,n);function VP(t,e){for(var n=0;na[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();var K2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var G0={exports:{}},Nu={},_0={exports:{}},tn={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ZB;function XP(){if(ZB)return tn;ZB=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),u=Symbol.iterator;function x(J){return J===null||typeof J!="object"?null:(J=u&&J[u]||J["@@iterator"],typeof J=="function"?J:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function v(J,E,z){this.props=J,this.context=E,this.refs=b,this.updater=z||h}v.prototype.isReactComponent={},v.prototype.setState=function(J,E){if(typeof J!="object"&&typeof J!="function"&&J!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,J,E,"setState")},v.prototype.forceUpdate=function(J){this.updater.enqueueForceUpdate(this,J,"forceUpdate")};function B(){}B.prototype=v.prototype;function U(J,E,z){this.props=J,this.context=E,this.refs=b,this.updater=z||h}var G=U.prototype=new B;G.constructor=U,w(G,v.prototype),G.isPureReactComponent=!0;var Q=Array.isArray,_=Object.prototype.hasOwnProperty,S={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function O(J,E,z){var W,te={},me=null,pe=null;if(E!=null)for(W in E.ref!==void 0&&(pe=E.ref),E.key!==void 0&&(me=""+E.key),E)_.call(E,W)&&!F.hasOwnProperty(W)&&(te[W]=E[W]);var Ce=arguments.length-2;if(Ce===1)te.children=z;else if(1>>1,E=X[J];if(0>>1;Jo(te,se))meo(pe,te)?(X[J]=pe,X[me]=se,J=me):(X[J]=te,X[W]=se,J=W);else if(meo(pe,se))X[J]=pe,X[me]=se,J=me;else break e}}return ee}function o(X,ee){var se=X.sortIndex-ee.sortIndex;return se!==0?se:X.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;t.unstable_now=function(){return r.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],A=[],p=1,u=null,x=3,h=!1,w=!1,b=!1,v=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(X){for(var ee=n(A);ee!==null;){if(ee.callback===null)a(A);else if(ee.startTime<=X)a(A),ee.sortIndex=ee.expirationTime,e(l,ee);else break;ee=n(A)}}function Q(X){if(b=!1,G(X),!w)if(n(l)!==null)w=!0,ae(_);else{var ee=n(A);ee!==null&&ie(Q,ee.startTime-X)}}function _(X,ee){w=!1,b&&(b=!1,B(O),O=-1),h=!0;var se=x;try{for(G(ee),u=n(l);u!==null&&(!(u.expirationTime>ee)||X&&!L());){var J=u.callback;if(typeof J=="function"){u.callback=null,x=u.priorityLevel;var E=J(u.expirationTime<=ee);ee=t.unstable_now(),typeof E=="function"?u.callback=E:u===n(l)&&a(l),G(ee)}else a(l);u=n(l)}if(u!==null)var z=!0;else{var W=n(A);W!==null&&ie(Q,W.startTime-ee),z=!1}return z}finally{u=null,x=se,h=!1}}var S=!1,F=null,O=-1,R=5,oe=-1;function L(){return!(t.unstable_now()-oeX||125J?(X.sortIndex=se,e(A,X),n(l)===null&&X===n(A)&&(b?(B(O),O=-1):b=!0,ie(Q,se-J))):(X.sortIndex=E,e(l,X),w||h||(w=!0,ae(_))),X},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(X){var ee=x;return function(){var se=x;x=ee;try{return X.apply(this,arguments)}finally{x=se}}}})(S0)),S0}var WB;function nS(){return WB||(WB=1,P0.exports=tS()),P0.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var VB;function aS(){if(VB)return yr;VB=1;var t=B3(),e=nS();function n(i){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+i,f=1;f"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,A=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},u={};function x(i){return l.call(u,i)?!0:l.call(p,i)?!1:A.test(i)?u[i]=!0:(p[i]=!0,!1)}function h(i,m,f,y){if(f!==null&&f.type===0)return!1;switch(typeof m){case"function":case"symbol":return!0;case"boolean":return y?!1:f!==null?!f.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function w(i,m,f,y){if(m===null||typeof m>"u"||h(i,m,f,y))return!0;if(y)return!1;if(f!==null)switch(f.type){case 3:return!m;case 4:return m===!1;case 5:return isNaN(m);case 6:return isNaN(m)||1>m}return!1}function b(i,m,f,y,H,j,Y){this.acceptsBooleans=m===2||m===3||m===4,this.attributeName=y,this.attributeNamespace=H,this.mustUseProperty=f,this.propertyName=i,this.type=m,this.sanitizeURL=j,this.removeEmptyString=Y}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){v[i]=new b(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var m=i[0];v[m]=new b(m,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){v[i]=new b(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){v[i]=new b(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){v[i]=new b(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){v[i]=new b(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){v[i]=new b(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){v[i]=new b(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){v[i]=new b(i,5,!1,i.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function U(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var m=i.replace(B,U);v[m]=new b(m,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var m=i.replace(B,U);v[m]=new b(m,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var m=i.replace(B,U);v[m]=new b(m,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){v[i]=new b(i,1,!1,i.toLowerCase(),null,!1,!1)}),v.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){v[i]=new b(i,1,!1,i.toLowerCase(),null,!0,!0)});function G(i,m,f,y){var H=v.hasOwnProperty(m)?v[m]:null;(H!==null?H.type!==0:y||!(2Ae||H[Y]!==j[Ae]){var he=` +`+H[Y].replace(" at new "," at ");return i.displayName&&he.includes("")&&(he=he.replace("",i.displayName)),he}while(1<=Y&&0<=Ae);break}}}finally{z=!1,Error.prepareStackTrace=f}return(i=i?i.displayName||i.name:"")?E(i):""}function te(i){switch(i.tag){case 5:return E(i.type);case 16:return E("Lazy");case 13:return E("Suspense");case 19:return E("SuspenseList");case 0:case 2:case 15:return i=W(i.type,!1),i;case 11:return i=W(i.type.render,!1),i;case 1:return i=W(i.type,!0),i;default:return""}}function me(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case F:return"Fragment";case S:return"Portal";case R:return"Profiler";case O:return"StrictMode";case M:return"Suspense";case K:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case L:return(i.displayName||"Context")+".Consumer";case oe:return(i._context.displayName||"Context")+".Provider";case I:var m=i.render;return i=i.displayName,i||(i=m.displayName||m.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case re:return m=i.displayName||null,m!==null?m:me(i.type)||"Memo";case ae:m=i._payload,i=i._init;try{return me(i(m))}catch{}}return null}function pe(i){var m=i.type;switch(i.tag){case 24:return"Cache";case 9:return(m.displayName||"Context")+".Consumer";case 10:return(m._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=m.render,i=i.displayName||i.name||"",m.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return m;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(m);case 8:return m===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m}return null}function Ce(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function de(i){var m=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function Ge(i){var m=de(i)?"checked":"value",f=Object.getOwnPropertyDescriptor(i.constructor.prototype,m),y=""+i[m];if(!i.hasOwnProperty(m)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var H=f.get,j=f.set;return Object.defineProperty(i,m,{configurable:!0,get:function(){return H.call(this)},set:function(Y){y=""+Y,j.call(this,Y)}}),Object.defineProperty(i,m,{enumerable:f.enumerable}),{getValue:function(){return y},setValue:function(Y){y=""+Y},stopTracking:function(){i._valueTracker=null,delete i[m]}}}}function Ee(i){i._valueTracker||(i._valueTracker=Ge(i))}function Be(i){if(!i)return!1;var m=i._valueTracker;if(!m)return!0;var f=m.getValue(),y="";return i&&(y=de(i)?i.checked?"true":"false":i.value),i=y,i!==f?(m.setValue(i),!0):!1}function Re(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Ve(i,m){var f=m.checked;return se({},m,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??i._wrapperState.initialChecked})}function je(i,m){var f=m.defaultValue==null?"":m.defaultValue,y=m.checked!=null?m.checked:m.defaultChecked;f=Ce(m.value!=null?m.value:f),i._wrapperState={initialChecked:y,initialValue:f,controlled:m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null}}function ce(i,m){m=m.checked,m!=null&&G(i,"checked",m,!1)}function dt(i,m){ce(i,m);var f=Ce(m.value),y=m.type;if(f!=null)y==="number"?(f===0&&i.value===""||i.value!=f)&&(i.value=""+f):i.value!==""+f&&(i.value=""+f);else if(y==="submit"||y==="reset"){i.removeAttribute("value");return}m.hasOwnProperty("value")?ze(i,m.type,f):m.hasOwnProperty("defaultValue")&&ze(i,m.type,Ce(m.defaultValue)),m.checked==null&&m.defaultChecked!=null&&(i.defaultChecked=!!m.defaultChecked)}function ot(i,m,f){if(m.hasOwnProperty("value")||m.hasOwnProperty("defaultValue")){var y=m.type;if(!(y!=="submit"&&y!=="reset"||m.value!==void 0&&m.value!==null))return;m=""+i._wrapperState.initialValue,f||m===i.value||(i.value=m),i.defaultValue=m}f=i.name,f!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,f!==""&&(i.name=f)}function ze(i,m,f){(m!=="number"||Re(i.ownerDocument)!==i)&&(f==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+f&&(i.defaultValue=""+f))}var Ke=Array.isArray;function qe(i,m,f,y){if(i=i.options,m){m={};for(var H=0;H"+m.valueOf().toString()+"",m=kt.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;m.firstChild;)i.appendChild(m.firstChild)}});function gt(i,m){if(m){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=m;return}}i.textContent=m}var Je={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},En=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(i){En.forEach(function(m){m=m+i.charAt(0).toUpperCase()+i.substring(1),Je[m]=Je[i]})});function zt(i,m,f){return m==null||typeof m=="boolean"||m===""?"":f||typeof m!="number"||m===0||Je.hasOwnProperty(i)&&Je[i]?(""+m).trim():m+"px"}function aa(i,m){i=i.style;for(var f in m)if(m.hasOwnProperty(f)){var y=f.indexOf("--")===0,H=zt(f,m[f],y);f==="float"&&(f="cssFloat"),y?i.setProperty(f,H):i[f]=H}}var sn=se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function en(i,m){if(m){if(sn[i]&&(m.children!=null||m.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(m.dangerouslySetInnerHTML!=null){if(m.children!=null)throw Error(n(60));if(typeof m.dangerouslySetInnerHTML!="object"||!("__html"in m.dangerouslySetInnerHTML))throw Error(n(61))}if(m.style!=null&&typeof m.style!="object")throw Error(n(62))}}function Oa(i,m){if(i.indexOf("-")===-1)return typeof m.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jt=null;function lo(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var fn=null,la=null,ma=null;function tt(i){if(i=yl(i)){if(typeof fn!="function")throw Error(n(280));var m=i.stateNode;m&&(m=jm(m),fn(i.stateNode,i.type,m))}}function Fe(i){la?ma?ma.push(i):ma=[i]:la=i}function We(){if(la){var i=la,m=ma;if(ma=la=null,tt(i),m)for(i=0;i>>=0,i===0?32:31-(Aa(i)/hd|0)|0}var Mi=64,ei=4194304;function zi(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function wo(i,m){var f=i.pendingLanes;if(f===0)return 0;var y=0,H=i.suspendedLanes,j=i.pingedLanes,Y=f&268435455;if(Y!==0){var Ae=Y&~H;Ae!==0?y=zi(Ae):(j&=Y,j!==0&&(y=zi(j)))}else Y=f&~H,Y!==0?y=zi(Y):j!==0&&(y=zi(j));if(y===0)return 0;if(m!==0&&m!==y&&(m&H)===0&&(H=y&-y,j=m&-m,H>=j||H===16&&(j&4194240)!==0))return m;if((y&4)!==0&&(y|=f&16),m=i.entangledLanes,m!==0)for(i=i.entanglements,m&=y;0f;f++)m.push(i);return m}function ti(i,m,f){i.pendingLanes|=m,m!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,m=31-Yo(m),i[m]=f}function cu(i,m){var f=i.pendingLanes&~m;i.pendingLanes=m,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=m,i.mutableReadLanes&=m,i.entangledLanes&=m,m=i.entanglements;var y=i.eventTimes;for(i=i.expirationTimes;0=li),Ji=" ",rl=!1;function sl(i,m){switch(i){case"keyup":return qo.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ec(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ra=!1;function il(i,m){switch(i){case"compositionend":return ec(m);case"keypress":return m.which!==32?null:(rl=!0,Ji);case"textInput":return i=m.data,i===Ji&&rl?null:i;default:return null}}function cl(i,m){if(ra)return i==="compositionend"||!lr&&sl(i,m)?(i=vd(),cr=ir=_r=null,ra=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1=m)return{node:f,offset:m-i};i=y}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=Ja(f)}}function nc(i,m){return i&&m?i===m?!0:i&&i.nodeType===3?!1:m&&m.nodeType===3?nc(i,m.parentNode):"contains"in i?i.contains(m):i.compareDocumentPosition?!!(i.compareDocumentPosition(m)&16):!1:!1}function bm(){for(var i=window,m=Re();m instanceof i.HTMLIFrameElement;){try{var f=typeof m.contentWindow.location.href=="string"}catch{f=!1}if(f)i=m.contentWindow;else break;m=Re(i.document)}return m}function ac(i){var m=i&&i.nodeName&&i.nodeName.toLowerCase();return m&&(m==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||m==="textarea"||i.contentEditable==="true")}function oc(i){var m=bm(),f=i.focusedElem,y=i.selectionRange;if(m!==f&&f&&f.ownerDocument&&nc(f.ownerDocument.documentElement,f)){if(y!==null&&ac(f)){if(m=y.start,i=y.end,i===void 0&&(i=m),"selectionStart"in f)f.selectionStart=m,f.selectionEnd=Math.min(i,f.value.length);else if(i=(m=f.ownerDocument||document)&&m.defaultView||window,i.getSelection){i=i.getSelection();var H=f.textContent.length,j=Math.min(y.start,H);y=y.end===void 0?j:Math.min(y.end,H),!i.extend&&j>y&&(H=y,y=j,j=H),H=$o(f,j);var Y=$o(f,y);H&&Y&&(i.rangeCount!==1||i.anchorNode!==H.node||i.anchorOffset!==H.offset||i.focusNode!==Y.node||i.focusOffset!==Y.offset)&&(m=m.createRange(),m.setStart(H.node,H.offset),i.removeAllRanges(),j>y?(i.addRange(m),i.extend(Y.node,Y.offset)):(m.setEnd(Y.node,Y.offset),i.addRange(m)))}}for(m=[],i=f;i=i.parentNode;)i.nodeType===1&&m.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f=document.documentMode,Wo=null,Ds=null,Wr=null,Us=!1;function Hs(i,m,f){var y=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Us||Wo==null||Wo!==Re(y)||(y=Wo,"selectionStart"in y&&ac(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Wr&&Bs(Wr,y)||(Wr=y,y=Hd(Ds,"onSelect"),0Ns||(i.current=pu[Ns],pu[Ns]=null,Ns--)}function Bn(i,m){Ns++,pu[Ns]=i.current,i.current=m}var fi={},Ra=Sr(fi),jo=Sr(!1),dc=fi;function Cl(i,m){var f=i.type.contextTypes;if(!f)return fi;var y=i.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===m)return y.__reactInternalMemoizedMaskedChildContext;var H={},j;for(j in f)H[j]=m[j];return y&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=m,i.__reactInternalMemoizedMaskedChildContext=H),H}function Go(i){return i=i.childContextTypes,i!=null}function jd(){bn(jo),bn(Ra)}function x2(i,m,f){if(Ra.current!==fi)throw Error(n(168));Bn(Ra,m),Bn(jo,f)}function fu(i,m,f){var y=i.stateNode;if(m=m.childContextTypes,typeof y.getChildContext!="function")return f;y=y.getChildContext();for(var H in y)if(!(H in m))throw Error(n(108,pe(i)||"Unknown",H));return se({},f,y)}function Ac(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||fi,dc=Ra.current,Bn(Ra,i),Bn(jo,jo.current),!0}function y2(i,m,f){var y=i.stateNode;if(!y)throw Error(n(169));f?(i=fu(i,m,dc),y.__reactInternalMemoizedMergedChildContext=i,bn(jo),bn(Ra),Bn(Ra,i)):bn(jo),Bn(jo,f)}var js=null,Gm=!1,g=!1;function C(i){js===null?js=[i]:js.push(i)}function N(i){Gm=!0,C(i)}function P(){if(!g&&js!==null){g=!0;var i=0,m=dn;try{var f=js;for(dn=1;i>=Y,H-=Y,Ue=1<<32-Yo(m)+H|f<Tt?(oo=Pt,Pt=null):oo=Pt.sibling;var xn=Ye(Ne,Pt,_e[Tt],nt);if(xn===null){Pt===null&&(Pt=oo);break}i&&Pt&&xn.alternate===null&&m(Ne,Pt),ve=j(xn,ve,Tt),Et===null?Ut=xn:Et.sibling=xn,Et=xn,Pt=oo}if(Tt===_e.length)return f(Ne,Pt),Ie&&we(Ne,Tt),Ut;if(Pt===null){for(;Tt<_e.length;Tt++)Pt=Xe(Ne,_e[Tt],nt),Pt!==null&&(ve=j(Pt,ve,Tt),Et===null?Ut=Pt:Et.sibling=Pt,Et=Pt);return Ie&&we(Ne,Tt),Ut}for(Pt=y(Ne,Pt);Tt<_e.length;Tt++)oo=pt(Pt,Ne,Tt,_e[Tt],nt),oo!==null&&(i&&oo.alternate!==null&&Pt.delete(oo.key===null?Tt:oo.key),ve=j(oo,ve,Tt),Et===null?Ut=oo:Et.sibling=oo,Et=oo);return i&&Pt.forEach(function(Pl){return m(Ne,Pl)}),Ie&&we(Ne,Tt),Ut}function Dt(Ne,ve,_e,nt){var Ut=ee(_e);if(typeof Ut!="function")throw Error(n(150));if(_e=Ut.call(_e),_e==null)throw Error(n(151));for(var Et=Ut=null,Pt=ve,Tt=ve=0,oo=null,xn=_e.next();Pt!==null&&!xn.done;Tt++,xn=_e.next()){Pt.index>Tt?(oo=Pt,Pt=null):oo=Pt.sibling;var Pl=Ye(Ne,Pt,xn.value,nt);if(Pl===null){Pt===null&&(Pt=oo);break}i&&Pt&&Pl.alternate===null&&m(Ne,Pt),ve=j(Pl,ve,Tt),Et===null?Ut=Pl:Et.sibling=Pl,Et=Pl,Pt=oo}if(xn.done)return f(Ne,Pt),Ie&&we(Ne,Tt),Ut;if(Pt===null){for(;!xn.done;Tt++,xn=_e.next())xn=Xe(Ne,xn.value,nt),xn!==null&&(ve=j(xn,ve,Tt),Et===null?Ut=xn:Et.sibling=xn,Et=xn);return Ie&&we(Ne,Tt),Ut}for(Pt=y(Ne,Pt);!xn.done;Tt++,xn=_e.next())xn=pt(Pt,Ne,Tt,xn.value,nt),xn!==null&&(i&&xn.alternate!==null&&Pt.delete(xn.key===null?Tt:xn.key),ve=j(xn,ve,Tt),Et===null?Ut=xn:Et.sibling=xn,Et=xn);return i&&Pt.forEach(function(qP){return m(Ne,qP)}),Ie&&we(Ne,Tt),Ut}function Na(Ne,ve,_e,nt){if(typeof _e=="object"&&_e!==null&&_e.type===F&&_e.key===null&&(_e=_e.props.children),typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case _:e:{for(var Ut=_e.key,Et=ve;Et!==null;){if(Et.key===Ut){if(Ut=_e.type,Ut===F){if(Et.tag===7){f(Ne,Et.sibling),ve=H(Et,_e.props.children),ve.return=Ne,Ne=ve;break e}}else if(Et.elementType===Ut||typeof Ut=="object"&&Ut!==null&&Ut.$$typeof===ae&&go(Ut)===Et.type){f(Ne,Et.sibling),ve=H(Et,_e.props),ve.ref=Ot(Ne,Et,_e),ve.return=Ne,Ne=ve;break e}f(Ne,Et);break}else m(Ne,Et);Et=Et.sibling}_e.type===F?(ve=Im(_e.props.children,Ne.mode,nt,_e.key),ve.return=Ne,Ne=ve):(nt=O2(_e.type,_e.key,_e.props,null,Ne.mode,nt),nt.ref=Ot(Ne,ve,_e),nt.return=Ne,Ne=nt)}return Y(Ne);case S:e:{for(Et=_e.key;ve!==null;){if(ve.key===Et)if(ve.tag===4&&ve.stateNode.containerInfo===_e.containerInfo&&ve.stateNode.implementation===_e.implementation){f(Ne,ve.sibling),ve=H(ve,_e.children||[]),ve.return=Ne,Ne=ve;break e}else{f(Ne,ve);break}else m(Ne,ve);ve=ve.sibling}ve=D0(_e,Ne.mode,nt),ve.return=Ne,Ne=ve}return Y(Ne);case ae:return Et=_e._init,Na(Ne,ve,Et(_e._payload),nt)}if(Ke(_e))return bt(Ne,ve,_e,nt);if(ee(_e))return Dt(Ne,ve,_e,nt);Vn(Ne,_e)}return typeof _e=="string"&&_e!==""||typeof _e=="number"?(_e=""+_e,ve!==null&&ve.tag===6?(f(Ne,ve.sibling),ve=H(ve,_e),ve.return=Ne,Ne=ve):(f(Ne,ve),ve=B0(_e,Ne.mode,nt),ve.return=Ne,Ne=ve),Y(Ne)):f(Ne,ve)}return Na}var Da=ua(!0),gn=ua(!1),to=Sr(null),no=null,Xn=null,Ua=null;function Ma(){Ua=Xn=no=null}function _o(i){var m=to.current;bn(to),i._currentValue=m}function Ar(i,m,f){for(;i!==null;){var y=i.alternate;if((i.childLanes&m)!==m?(i.childLanes|=m,y!==null&&(y.childLanes|=m)):y!==null&&(y.childLanes&m)!==m&&(y.childLanes|=m),i===f)break;i=i.return}}function Jn(i,m){no=i,Ua=Xn=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&m)!==0&&(gr=!0),i.firstContext=null)}function ya(i){var m=i._currentValue;if(Ua!==i)if(i={context:i,memoizedValue:m,next:null},Xn===null){if(no===null)throw Error(n(308));Xn=i,no.dependencies={lanes:0,firstContext:i}}else Xn=Xn.next=i;return m}var Vo=null;function gi(i){Vo===null?Vo=[i]:Vo.push(i)}function Gs(i,m,f,y){var H=m.interleaved;return H===null?(f.next=f,gi(m)):(f.next=H.next,H.next=f),m.interleaved=f,hn(i,y)}function hn(i,m){i.lanes|=m;var f=i.alternate;for(f!==null&&(f.lanes|=m),f=i,i=i.return;i!==null;)i.childLanes|=m,f=i.alternate,f!==null&&(f.childLanes|=m),f=i,i=i.return;return f.tag===3?f.stateNode:null}var es=!1;function Gd(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gu(i,m){i=i.updateQueue,m.updateQueue===i&&(m.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function ur(i,m){return{eventTime:i,lane:m,tag:0,payload:null,callback:null,next:null}}function pr(i,m,f){var y=i.updateQueue;if(y===null)return null;if(y=y.shared,(un&2)!==0){var H=y.pending;return H===null?m.next=m:(m.next=H.next,H.next=m),y.pending=m,hn(i,f)}return H=y.interleaved,H===null?(m.next=m,gi(y)):(m.next=H.next,H.next=m),y.interleaved=m,hn(i,f)}function uc(i,m,f){if(m=m.updateQueue,m!==null&&(m=m.shared,(f&4194240)!==0)){var y=m.lanes;y&=i.pendingLanes,f|=y,m.lanes=f,Kc(i,f)}}function fr(i,m){var f=i.updateQueue,y=i.alternate;if(y!==null&&(y=y.updateQueue,f===y)){var H=null,j=null;if(f=f.firstBaseUpdate,f!==null){do{var Y={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};j===null?H=j=Y:j=j.next=Y,f=f.next}while(f!==null);j===null?H=j=m:j=j.next=m}else H=j=m;f={baseState:y.baseState,firstBaseUpdate:H,lastBaseUpdate:j,shared:y.shared,effects:y.effects},i.updateQueue=f;return}i=f.lastBaseUpdate,i===null?f.firstBaseUpdate=m:i.next=m,f.lastBaseUpdate=m}function _s(i,m,f,y){var H=i.updateQueue;es=!1;var j=H.firstBaseUpdate,Y=H.lastBaseUpdate,Ae=H.shared.pending;if(Ae!==null){H.shared.pending=null;var he=Ae,Pe=he.next;he.next=null,Y===null?j=Pe:Y.next=Pe,Y=he;var $e=i.alternate;$e!==null&&($e=$e.updateQueue,Ae=$e.lastBaseUpdate,Ae!==Y&&(Ae===null?$e.firstBaseUpdate=Pe:Ae.next=Pe,$e.lastBaseUpdate=he))}if(j!==null){var Xe=H.baseState;Y=0,$e=Pe=he=null,Ae=j;do{var Ye=Ae.lane,pt=Ae.eventTime;if((y&Ye)===Ye){$e!==null&&($e=$e.next={eventTime:pt,lane:0,tag:Ae.tag,payload:Ae.payload,callback:Ae.callback,next:null});e:{var bt=i,Dt=Ae;switch(Ye=m,pt=f,Dt.tag){case 1:if(bt=Dt.payload,typeof bt=="function"){Xe=bt.call(pt,Xe,Ye);break e}Xe=bt;break e;case 3:bt.flags=bt.flags&-65537|128;case 0:if(bt=Dt.payload,Ye=typeof bt=="function"?bt.call(pt,Xe,Ye):bt,Ye==null)break e;Xe=se({},Xe,Ye);break e;case 2:es=!0}}Ae.callback!==null&&Ae.lane!==0&&(i.flags|=64,Ye=H.effects,Ye===null?H.effects=[Ae]:Ye.push(Ae))}else pt={eventTime:pt,lane:Ye,tag:Ae.tag,payload:Ae.payload,callback:Ae.callback,next:null},$e===null?(Pe=$e=pt,he=Xe):$e=$e.next=pt,Y|=Ye;if(Ae=Ae.next,Ae===null){if(Ae=H.shared.pending,Ae===null)break;Ye=Ae,Ae=Ye.next,Ye.next=null,H.lastBaseUpdate=Ye,H.shared.pending=null}}while(!0);if($e===null&&(he=Xe),H.baseState=he,H.firstBaseUpdate=Pe,H.lastBaseUpdate=$e,m=H.shared.interleaved,m!==null){H=m;do Y|=H.lane,H=H.next;while(H!==m)}else j===null&&(H.shared.lanes=0);Sm|=Y,i.lanes=Y,i.memoizedState=Xe}}function pc(i,m,f){if(i=m.effects,m.effects=null,i!==null)for(m=0;mf?f:4,i(!0);var y=Ed.transition;Ed.transition={};try{i(!1),m()}finally{dn=f,Ed.transition=y}}function Kw(){return Jo().memoizedState}function xP(i,m,f){var y=Gl(i);if(f={lane:y,action:f,hasEagerState:!1,eagerState:null,next:null},qw(i))$w(m,f);else if(f=Gs(i,m,f,y),f!==null){var H=nr();Is(f,i,y,H),Ww(f,m,y)}}function yP(i,m,f){var y=Gl(i),H={lane:y,action:f,hasEagerState:!1,eagerState:null,next:null};if(qw(i))$w(m,H);else{var j=i.alternate;if(i.lanes===0&&(j===null||j.lanes===0)&&(j=m.lastRenderedReducer,j!==null))try{var Y=m.lastRenderedState,Ae=j(Y,f);if(H.hasEagerState=!0,H.eagerState=Ae,An(Ae,Y)){var he=m.interleaved;he===null?(H.next=H,gi(m)):(H.next=he.next,he.next=H),m.interleaved=H;return}}catch{}finally{}f=Gs(i,m,H,y),f!==null&&(H=nr(),Is(f,i,y,H),Ww(f,m,y))}}function qw(i){var m=i.alternate;return i===kn||m!==null&&m===kn}function $w(i,m){Ps=Bl=!0;var f=i.pending;f===null?m.next=m:(m.next=f.next,f.next=m),i.pending=m}function Ww(i,m,f){if((f&4194240)!==0){var y=m.lanes;y&=i.pendingLanes,f|=y,m.lanes=f,Kc(i,f)}}var D2={readContext:ya,useCallback:Ha,useContext:Ha,useEffect:Ha,useImperativeHandle:Ha,useInsertionEffect:Ha,useLayoutEffect:Ha,useMemo:Ha,useReducer:Ha,useRef:Ha,useState:Ha,useDebugValue:Ha,useDeferredValue:Ha,useTransition:Ha,useMutableSource:Ha,useSyncExternalStore:Ha,useId:Ha,unstable_isNewReconciler:!1},CP={readContext:ya,useCallback:function(i,m){return Lr().memoizedState=[i,m===void 0?null:m],i},useContext:ya,useEffect:Ld,useImperativeHandle:function(i,m,f){return f=f!=null?f.concat([i]):null,Qr(4194308,4,Od.bind(null,m,i),f)},useLayoutEffect:function(i,m){return Qr(4194308,4,i,m)},useInsertionEffect:function(i,m){return Qr(4,2,i,m)},useMemo:function(i,m){var f=Lr();return m=m===void 0?null:m,i=i(),f.memoizedState=[i,m],i},useReducer:function(i,m,f){var y=Lr();return m=f!==void 0?f(m):m,y.memoizedState=y.baseState=m,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:m},y.queue=i,i=i.dispatch=xP.bind(null,kn,i),[y.memoizedState,i]},useRef:function(i){var m=Lr();return i={current:i},m.memoizedState=i},useState:Pm,useDebugValue:Vh,useDeferredValue:function(i){return Lr().memoizedState=i},useTransition:function(){var i=Pm(!1),m=i[0];return i=hP.bind(null,i[1]),Lr().memoizedState=i,[m,i]},useMutableSource:function(){},useSyncExternalStore:function(i,m,f){var y=kn,H=Lr();if(Ie){if(f===void 0)throw Error(n(407));f=f()}else{if(f=m(),ao===null)throw Error(n(349));(ns&30)!==0||v2(y,m,f)}H.memoizedState=f;var j={value:f,getSnapshot:m};return H.queue=j,Ld(w2.bind(null,y,j,i),[i]),y.flags|=2048,er(9,bu.bind(null,y,j,f,m),void 0,null),f},useId:function(){var i=Lr(),m=ao.identifierPrefix;if(Ie){var f=He,y=Ue;f=(y&~(1<<32-Yo(y)-1)).toString(32)+f,m=":"+m+"R"+f,f=Dl++,0<\/script>",i=i.removeChild(i.firstChild)):typeof y.is=="string"?i=Y.createElement(f,{is:y.is}):(i=Y.createElement(f),f==="select"&&(Y=i,y.multiple?Y.multiple=!0:y.size&&(Y.size=y.size))):i=Y.createElementNS(i,f),i[Jr]=m,i[xl]=y,gB(i,m,!1,!1),m.stateNode=i;e:{switch(Y=Oa(f,y),f){case"dialog":Gn("cancel",i),Gn("close",i),H=y;break;case"iframe":case"object":case"embed":Gn("load",i),H=y;break;case"video":case"audio":for(H=0;HMd&&(m.flags|=128,y=!0,vu(j,!1),m.lanes=4194304)}else{if(!y)if(i=Fr(Y),i!==null){if(m.flags|=128,y=!0,f=i.updateQueue,f!==null&&(m.updateQueue=f,m.flags|=4),vu(j,!0),j.tail===null&&j.tailMode==="hidden"&&!Y.alternate&&!Ie)return Eo(m),null}else 2*qn()-j.renderingStartTime>Md&&f!==1073741824&&(m.flags|=128,y=!0,vu(j,!1),m.lanes=4194304);j.isBackwards?(Y.sibling=m.child,m.child=Y):(f=j.last,f!==null?f.sibling=Y:m.child=Y,j.last=Y)}return j.tail!==null?(m=j.tail,j.rendering=m,j.tail=m.sibling,j.renderingStartTime=qn(),m.sibling=null,f=In.current,Bn(In,y?f&1|2:f&1),m):(Eo(m),null);case 22:case 23:return b0(),y=m.memoizedState!==null,i!==null&&i.memoizedState!==null!==y&&(m.flags|=8192),y&&(m.mode&1)!==0?(Ir&1073741824)!==0&&(Eo(m),m.subtreeFlags&6&&(m.flags|=8192)):Eo(m),null;case 24:return null;case 25:return null}throw Error(n(156,m.tag))}function NP(i,m){switch(xe(m),m.tag){case 1:return Go(m.type)&&jd(),i=m.flags,i&65536?(m.flags=i&-65537|128,m):null;case 3:return ts(),bn(jo),bn(Ra),yu(),i=m.flags,(i&65536)!==0&&(i&128)===0?(m.flags=i&-65537|128,m):null;case 5:return hu(m),null;case 13:if(bn(In),i=m.memoizedState,i!==null&&i.dehydrated!==null){if(m.alternate===null)throw Error(n(340));$t()}return i=m.flags,i&65536?(m.flags=i&-65537|128,m):null;case 19:return bn(In),null;case 4:return ts(),null;case 10:return _o(m.type._context),null;case 22:case 23:return b0(),null;case 24:return null;default:return null}}var j2=!1,Po=!1,jP=typeof WeakSet=="function"?WeakSet:Set,ht=null;function kd(i,m){var f=i.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(y){ba(i,m,y)}else f.current=null}function l0(i,m,f){try{f()}catch(y){ba(i,m,y)}}var yB=!1;function GP(i,m){if(Nm=Xc,i=bm(),ac(i)){if("selectionStart"in i)var f={start:i.selectionStart,end:i.selectionEnd};else e:{f=(f=i.ownerDocument)&&f.defaultView||window;var y=f.getSelection&&f.getSelection();if(y&&y.rangeCount!==0){f=y.anchorNode;var H=y.anchorOffset,j=y.focusNode;y=y.focusOffset;try{f.nodeType,j.nodeType}catch{f=null;break e}var Y=0,Ae=-1,he=-1,Pe=0,$e=0,Xe=i,Ye=null;t:for(;;){for(var pt;Xe!==f||H!==0&&Xe.nodeType!==3||(Ae=Y+H),Xe!==j||y!==0&&Xe.nodeType!==3||(he=Y+y),Xe.nodeType===3&&(Y+=Xe.nodeValue.length),(pt=Xe.firstChild)!==null;)Ye=Xe,Xe=pt;for(;;){if(Xe===i)break t;if(Ye===f&&++Pe===H&&(Ae=Y),Ye===j&&++$e===y&&(he=Y),(pt=Xe.nextSibling)!==null)break;Xe=Ye,Ye=Xe.parentNode}Xe=pt}f=Ae===-1||he===-1?null:{start:Ae,end:he}}else f=null}f=f||{start:0,end:0}}else f=null;for(lc={focusedElem:i,selectionRange:f},Xc=!1,ht=m;ht!==null;)if(m=ht,i=m.child,(m.subtreeFlags&1028)!==0&&i!==null)i.return=m,ht=i;else for(;ht!==null;){m=ht;try{var bt=m.alternate;if((m.flags&1024)!==0)switch(m.tag){case 0:case 11:case 15:break;case 1:if(bt!==null){var Dt=bt.memoizedProps,Na=bt.memoizedState,Ne=m.stateNode,ve=Ne.getSnapshotBeforeUpdate(m.elementType===m.type?Dt:Fs(m.type,Dt),Na);Ne.__reactInternalSnapshotBeforeUpdate=ve}break;case 3:var _e=m.stateNode.containerInfo;_e.nodeType===1?_e.textContent="":_e.nodeType===9&&_e.documentElement&&_e.removeChild(_e.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(nt){ba(m,m.return,nt)}if(i=m.sibling,i!==null){i.return=m.return,ht=i;break}ht=m.return}return bt=yB,yB=!1,bt}function wu(i,m,f){var y=m.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var H=y=y.next;do{if((H.tag&i)===i){var j=H.destroy;H.destroy=void 0,j!==void 0&&l0(m,f,j)}H=H.next}while(H!==y)}}function G2(i,m){if(m=m.updateQueue,m=m!==null?m.lastEffect:null,m!==null){var f=m=m.next;do{if((f.tag&i)===i){var y=f.create;f.destroy=y()}f=f.next}while(f!==m)}}function m0(i){var m=i.ref;if(m!==null){var f=i.stateNode;switch(i.tag){case 5:i=f;break;default:i=f}typeof m=="function"?m(i):m.current=i}}function CB(i){var m=i.alternate;m!==null&&(i.alternate=null,CB(m)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(m=i.stateNode,m!==null&&(delete m[Jr],delete m[xl],delete m[No],delete m[qh],delete m[$h])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function bB(i){return i.tag===5||i.tag===3||i.tag===4}function vB(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||bB(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function d0(i,m,f){var y=i.tag;if(y===5||y===6)i=i.stateNode,m?f.nodeType===8?f.parentNode.insertBefore(i,m):f.insertBefore(i,m):(f.nodeType===8?(m=f.parentNode,m.insertBefore(i,f)):(m=f,m.appendChild(i)),f=f._reactRootContainer,f!=null||m.onclick!==null||(m.onclick=hl));else if(y!==4&&(i=i.child,i!==null))for(d0(i,m,f),i=i.sibling;i!==null;)d0(i,m,f),i=i.sibling}function A0(i,m,f){var y=i.tag;if(y===5||y===6)i=i.stateNode,m?f.insertBefore(i,m):f.appendChild(i);else if(y!==4&&(i=i.child,i!==null))for(A0(i,m,f),i=i.sibling;i!==null;)A0(i,m,f),i=i.sibling}var ho=null,Ls=!1;function Hl(i,m,f){for(f=f.child;f!==null;)wB(i,m,f),f=f.sibling}function wB(i,m,f){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(Ri,f)}catch{}switch(f.tag){case 5:Po||kd(f,m);case 6:var y=ho,H=Ls;ho=null,Hl(i,m,f),ho=y,Ls=H,ho!==null&&(Ls?(i=ho,f=f.stateNode,i.nodeType===8?i.parentNode.removeChild(f):i.removeChild(f)):ho.removeChild(f.stateNode));break;case 18:ho!==null&&(Ls?(i=ho,f=f.stateNode,i.nodeType===8?uu(i.parentNode,f):i.nodeType===1&&uu(i,f),Gr(i)):uu(ho,f.stateNode));break;case 4:y=ho,H=Ls,ho=f.stateNode.containerInfo,Ls=!0,Hl(i,m,f),ho=y,Ls=H;break;case 0:case 11:case 14:case 15:if(!Po&&(y=f.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){H=y=y.next;do{var j=H,Y=j.destroy;j=j.tag,Y!==void 0&&((j&2)!==0||(j&4)!==0)&&l0(f,m,Y),H=H.next}while(H!==y)}Hl(i,m,f);break;case 1:if(!Po&&(kd(f,m),y=f.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=f.memoizedProps,y.state=f.memoizedState,y.componentWillUnmount()}catch(Ae){ba(f,m,Ae)}Hl(i,m,f);break;case 21:Hl(i,m,f);break;case 22:f.mode&1?(Po=(y=Po)||f.memoizedState!==null,Hl(i,m,f),Po=y):Hl(i,m,f);break;default:Hl(i,m,f)}}function BB(i){var m=i.updateQueue;if(m!==null){i.updateQueue=null;var f=i.stateNode;f===null&&(f=i.stateNode=new jP),m.forEach(function(y){var H=OP.bind(null,i,y);f.has(y)||(f.add(y),y.then(H,H))})}}function Qs(i,m){var f=m.deletions;if(f!==null)for(var y=0;yH&&(H=Y),y&=~j}if(y=H,y=qn()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*EP(y/1960))-y,10i?16:i,jl===null)var y=!1;else{if(i=jl,jl=null,F2=0,(un&6)!==0)throw Error(n(331));var H=un;for(un|=4,ht=i.current;ht!==null;){var j=ht,Y=j.child;if((ht.flags&16)!==0){var Ae=j.deletions;if(Ae!==null){for(var he=0;heqn()-f0?Lm(i,0):p0|=f),xr(i,m)}function QB(i,m){m===0&&((i.mode&1)===0?m=1:(m=ei,ei<<=1,(ei&130023424)===0&&(ei=4194304)));var f=nr();i=hn(i,m),i!==null&&(ti(i,m,f),xr(i,f))}function IP(i){var m=i.memoizedState,f=0;m!==null&&(f=m.retryLane),QB(i,f)}function OP(i,m){var f=0;switch(i.tag){case 13:var y=i.stateNode,H=i.memoizedState;H!==null&&(f=H.retryLane);break;case 19:y=i.stateNode;break;default:throw Error(n(314))}y!==null&&y.delete(m),QB(i,f)}var IB;IB=function(i,m,f){if(i!==null)if(i.memoizedProps!==m.pendingProps||jo.current)gr=!0;else{if((i.lanes&f)===0&&(m.flags&128)===0)return gr=!1,UP(i,m,f);gr=(i.flags&131072)!==0}else gr=!1,Ie&&(m.flags&1048576)!==0&&Me(m,$,m.index);switch(m.lanes=0,m.tag){case 2:var y=m.type;N2(i,m),i=m.pendingProps;var H=Cl(m,Ra.current);Jn(m,f),H=_m(null,m,y,i,H,f);var j=as();return m.flags|=1,typeof H=="object"&&H!==null&&typeof H.render=="function"&&H.$$typeof===void 0?(m.tag=1,m.memoizedState=null,m.updateQueue=null,Go(y)?(j=!0,Ac(m)):j=!1,m.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,Gd(m),H.updater=U2,m.stateNode=H,H._reactInternals=m,Jh(m,y,i,f),m=a0(null,m,y,!0,j,f)):(m.tag=0,Ie&&j&&Le(m),tr(null,m,H,f),m=m.child),m;case 16:y=m.elementType;e:{switch(N2(i,m),i=m.pendingProps,H=y._init,y=H(y._payload),m.type=y,H=m.tag=kP(y),i=Fs(y,i),H){case 0:m=n0(null,m,y,i,f);break e;case 1:m=mB(null,m,y,i,f);break e;case 11:m=rB(null,m,y,i,f);break e;case 14:m=sB(null,m,y,Fs(y.type,i),f);break e}throw Error(n(306,y,""))}return m;case 0:return y=m.type,H=m.pendingProps,H=m.elementType===y?H:Fs(y,H),n0(i,m,y,H,f);case 1:return y=m.type,H=m.pendingProps,H=m.elementType===y?H:Fs(y,H),mB(i,m,y,H,f);case 3:e:{if(dB(m),i===null)throw Error(n(387));y=m.pendingProps,j=m.memoizedState,H=j.element,gu(i,m),_s(m,y,null,f);var Y=m.memoizedState;if(y=Y.element,j.isDehydrated)if(j={element:y,isDehydrated:!1,cache:Y.cache,pendingSuspenseBoundaries:Y.pendingSuspenseBoundaries,transitions:Y.transitions},m.updateQueue.baseState=j,m.memoizedState=j,m.flags&256){H=Td(Error(n(423)),m),m=AB(i,m,y,f,H);break e}else if(y!==H){H=Td(Error(n(424)),m),m=AB(i,m,y,f,H);break e}else for(Oe=fo(m.stateNode.containerInfo.firstChild),ye=m,Ie=!0,Te=null,f=gn(m,null,y,f),m.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if($t(),y===H){m=gc(i,m,f);break e}tr(i,m,y,f)}m=m.child}return m;case 5:return C2(m),i===null&&st(m),y=m.type,H=m.pendingProps,j=i!==null?i.memoizedProps:null,Y=H.children,du(y,H)?Y=null:j!==null&&du(y,j)&&(m.flags|=32),lB(i,m),tr(i,m,Y,f),m.child;case 6:return i===null&&st(m),null;case 13:return uB(i,m,f);case 4:return wl(m,m.stateNode.containerInfo),y=m.pendingProps,i===null?m.child=Da(m,null,y,f):tr(i,m,y,f),m.child;case 11:return y=m.type,H=m.pendingProps,H=m.elementType===y?H:Fs(y,H),rB(i,m,y,H,f);case 7:return tr(i,m,m.pendingProps,f),m.child;case 8:return tr(i,m,m.pendingProps.children,f),m.child;case 12:return tr(i,m,m.pendingProps.children,f),m.child;case 10:e:{if(y=m.type._context,H=m.pendingProps,j=m.memoizedProps,Y=H.value,Bn(to,y._currentValue),y._currentValue=Y,j!==null)if(An(j.value,Y)){if(j.children===H.children&&!jo.current){m=gc(i,m,f);break e}}else for(j=m.child,j!==null&&(j.return=m);j!==null;){var Ae=j.dependencies;if(Ae!==null){Y=j.child;for(var he=Ae.firstContext;he!==null;){if(he.context===y){if(j.tag===1){he=ur(-1,f&-f),he.tag=2;var Pe=j.updateQueue;if(Pe!==null){Pe=Pe.shared;var $e=Pe.pending;$e===null?he.next=he:(he.next=$e.next,$e.next=he),Pe.pending=he}}j.lanes|=f,he=j.alternate,he!==null&&(he.lanes|=f),Ar(j.return,f,m),Ae.lanes|=f;break}he=he.next}}else if(j.tag===10)Y=j.type===m.type?null:j.child;else if(j.tag===18){if(Y=j.return,Y===null)throw Error(n(341));Y.lanes|=f,Ae=Y.alternate,Ae!==null&&(Ae.lanes|=f),Ar(Y,f,m),Y=j.sibling}else Y=j.child;if(Y!==null)Y.return=j;else for(Y=j;Y!==null;){if(Y===m){Y=null;break}if(j=Y.sibling,j!==null){j.return=Y.return,Y=j;break}Y=Y.return}j=Y}tr(i,m,H.children,f),m=m.child}return m;case 9:return H=m.type,y=m.pendingProps.children,Jn(m,f),H=ya(H),y=y(H),m.flags|=1,tr(i,m,y,f),m.child;case 14:return y=m.type,H=Fs(y,m.pendingProps),H=Fs(y.type,H),sB(i,m,y,H,f);case 15:return iB(i,m,m.type,m.pendingProps,f);case 17:return y=m.type,H=m.pendingProps,H=m.elementType===y?H:Fs(y,H),N2(i,m),m.tag=1,Go(y)?(i=!0,Ac(m)):i=!1,Jn(m,f),Xw(m,y,H),Jh(m,y,H,f),a0(null,m,y,!0,i,f);case 19:return fB(i,m,f);case 22:return cB(i,m,f)}throw Error(n(156,m.tag))};function OB(i,m){return Ti(i,m)}function TP(i,m,f,y){this.tag=i,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rs(i,m,f,y){return new TP(i,m,f,y)}function w0(i){return i=i.prototype,!(!i||!i.isReactComponent)}function kP(i){if(typeof i=="function")return w0(i)?1:0;if(i!=null){if(i=i.$$typeof,i===I)return 11;if(i===re)return 14}return 2}function El(i,m){var f=i.alternate;return f===null?(f=rs(i.tag,m,i.key,i.mode),f.elementType=i.elementType,f.type=i.type,f.stateNode=i.stateNode,f.alternate=i,i.alternate=f):(f.pendingProps=m,f.type=i.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=i.flags&14680064,f.childLanes=i.childLanes,f.lanes=i.lanes,f.child=i.child,f.memoizedProps=i.memoizedProps,f.memoizedState=i.memoizedState,f.updateQueue=i.updateQueue,m=i.dependencies,f.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},f.sibling=i.sibling,f.index=i.index,f.ref=i.ref,f}function O2(i,m,f,y,H,j){var Y=2;if(y=i,typeof i=="function")w0(i)&&(Y=1);else if(typeof i=="string")Y=5;else e:switch(i){case F:return Im(f.children,H,j,m);case O:Y=8,H|=8;break;case R:return i=rs(12,f,m,H|2),i.elementType=R,i.lanes=j,i;case M:return i=rs(13,f,m,H),i.elementType=M,i.lanes=j,i;case K:return i=rs(19,f,m,H),i.elementType=K,i.lanes=j,i;case ie:return T2(f,H,j,m);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case oe:Y=10;break e;case L:Y=9;break e;case I:Y=11;break e;case re:Y=14;break e;case ae:Y=16,y=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return m=rs(Y,f,m,H),m.elementType=i,m.type=y,m.lanes=j,m}function Im(i,m,f,y){return i=rs(7,i,y,m),i.lanes=f,i}function T2(i,m,f,y){return i=rs(22,i,y,m),i.elementType=ie,i.lanes=f,i.stateNode={isHidden:!1},i}function B0(i,m,f){return i=rs(6,i,null,m),i.lanes=f,i}function D0(i,m,f){return m=rs(4,i.children!==null?i.children:[],i.key,m),m.lanes=f,m.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},m}function RP(i,m,f,y,H){this.tag=m,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dm(0),this.expirationTimes=dm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dm(0),this.identifierPrefix=y,this.onRecoverableError=H,this.mutableSourceEagerHydrationData=null}function U0(i,m,f,y,H,j,Y,Ae,he){return i=new RP(i,m,f,Ae,he),m===1?(m=1,j===!0&&(m|=8)):m=0,j=rs(3,null,null,m),i.current=j,j.stateNode=i,j.memoizedState={element:y,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gd(j),i}function MP(i,m,f){var y=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),E0.exports=aS(),E0.exports}var JB;function oS(){if(JB)return q2;JB=1;var t=Cj();return q2.createRoot=t.createRoot,q2.hydrateRoot=t.hydrateRoot,q2}var rS=oS(),be=B3();const ue=Qn(be),sS=VP({__proto__:null,default:ue},[be]),iS=t=>t instanceof Error?t.message+` +`+t.stack:JSON.stringify(t,null,2);class bj extends ue.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){return this.state.hasError?d.jsxs("div",{className:"p-4 border border-red-500 rounded","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx:26:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx","data-component-line":"26","data-component-file":"ErrorBoundary.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22p-4%20border%20border-red-500%20rounded%22%7D",children:[d.jsx("h2",{className:"text-red-500","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx:27:10","data-matrix-name":"h2","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx","data-component-line":"27","data-component-file":"ErrorBoundary.tsx","data-component-name":"h2","data-component-content":"%7B%22className%22%3A%22text-red-500%22%7D",children:"Something went wrong."}),d.jsx("pre",{className:"mt-2 text-sm","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx:28:10","data-matrix-name":"pre","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx","data-component-line":"28","data-component-file":"ErrorBoundary.tsx","data-component-name":"pre","data-component-content":"%7B%22className%22%3A%22mt-2%20text-sm%22%7D",children:iS(this.state.error)})]}):this.props.children}}var vj=Cj();const cS=Qn(vj);/** + * @remix-run/router v1.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fp(){return fp=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function wj(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function mS(){return Math.random().toString(36).substr(2,8)}function tD(t,e){return{usr:t.state,key:t.key,idx:e}}function x1(t,e,n,a){return n===void 0&&(n=null),fp({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?YA(e):e,{state:n,key:e&&e.key||a||mS()})}function qf(t){let{pathname:e="/",search:n="",hash:a=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function YA(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let a=t.indexOf("?");a>=0&&(e.search=t.substr(a),t=t.substr(0,a)),t&&(e.pathname=t)}return e}function dS(t,e,n,a){a===void 0&&(a={});let{window:o=document.defaultView,v5Compat:r=!1}=a,s=o.history,c=Ml.Pop,l=null,A=p();A==null&&(A=0,s.replaceState(fp({},s.state,{idx:A}),""));function p(){return(s.state||{idx:null}).idx}function u(){c=Ml.Pop;let v=p(),B=v==null?null:v-A;A=v,l&&l({action:c,location:b.location,delta:B})}function x(v,B){c=Ml.Push;let U=x1(b.location,v,B);A=p()+1;let G=tD(U,A),Q=b.createHref(U);try{s.pushState(G,"",Q)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(Q)}r&&l&&l({action:c,location:b.location,delta:1})}function h(v,B){c=Ml.Replace;let U=x1(b.location,v,B);A=p();let G=tD(U,A),Q=b.createHref(U);s.replaceState(G,"",Q),r&&l&&l({action:c,location:b.location,delta:0})}function w(v){let B=o.location.origin!=="null"?o.location.origin:o.location.href,U=typeof v=="string"?v:qf(v);return U=U.replace(/ $/,"%20"),Sa(B,"No window.location.(origin|href) available to create URL for href: "+U),new URL(U,B)}let b={get action(){return c},get location(){return t(o,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(eD,u),l=v,()=>{o.removeEventListener(eD,u),l=null}},createHref(v){return e(o,v)},createURL:w,encodeLocation(v){let B=w(v);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:x,replace:h,go(v){return s.go(v)}};return b}var nD;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(nD||(nD={}));function AS(t,e,n){return n===void 0&&(n="/"),uS(t,e,n)}function uS(t,e,n,a){let o=typeof e=="string"?YA(e):e,r=D3(o.pathname||"/",n);if(r==null)return null;let s=Bj(t);pS(s);let c=null;for(let l=0;c==null&&l{let l={relativePath:c===void 0?r.path||"":c,caseSensitive:r.caseSensitive===!0,childrenIndex:s,route:r};l.relativePath.startsWith("/")&&(Sa(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(a.length));let A=$l([a,l.relativePath]),p=n.concat(l);r.children&&r.children.length>0&&(Sa(r.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+A+'".')),Bj(r.children,e,p,A)),!(r.path==null&&!r.index)&&e.push({path:A,score:bS(A,r.index),routesMeta:p})};return t.forEach((r,s)=>{var c;if(r.path===""||!((c=r.path)!=null&&c.includes("?")))o(r,s);else for(let l of Dj(r.path))o(r,s,l)}),e}function Dj(t){let e=t.split("/");if(e.length===0)return[];let[n,...a]=e,o=n.endsWith("?"),r=n.replace(/\?$/,"");if(a.length===0)return o?[r,""]:[r];let s=Dj(a.join("/")),c=[];return c.push(...s.map(l=>l===""?r:[r,l].join("/"))),o&&c.push(...s),c.map(l=>t.startsWith("/")&&l===""?"/":l)}function pS(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:vS(e.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}const fS=/^:[\w-]+$/,gS=3,hS=2,xS=1,yS=10,CS=-2,aD=t=>t==="*";function bS(t,e){let n=t.split("/"),a=n.length;return n.some(aD)&&(a+=CS),e&&(a+=hS),n.filter(o=>!aD(o)).reduce((o,r)=>o+(fS.test(r)?gS:r===""?xS:yS),a)}function vS(t,e){return t.length===e.length&&t.slice(0,-1).every((a,o)=>a===e[o])?t[t.length-1]-e[e.length-1]:0}function wS(t,e,n){let{routesMeta:a}=t,o={},r="/",s=[];for(let c=0;c{let{paramName:x,isOptional:h}=p;if(x==="*"){let b=c[u]||"";s=r.slice(0,r.length-b.length).replace(/(.)\/+$/,"$1")}const w=c[u];return h&&!w?A[x]=void 0:A[x]=(w||"").replace(/%2F/g,"/"),A},{}),pathname:r,pathnameBase:s,pattern:t}}function DS(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),wj(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let a=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,l)=>(a.push({paramName:c,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(a.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),a]}function US(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return wj(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function D3(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,a=t.charAt(n);return a&&a!=="/"?null:t.slice(n)||"/"}function HS(t,e){e===void 0&&(e="/");let{pathname:n,search:a="",hash:o=""}=typeof t=="string"?YA(t):t;return{pathname:n?n.startsWith("/")?n:NS(n,e):e,search:_S(a),hash:ES(o)}}function NS(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function F0(t,e,n,a){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(a)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function jS(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function U3(t,e){let n=jS(t);return e?n.map((a,o)=>o===n.length-1?a.pathname:a.pathnameBase):n.map(a=>a.pathnameBase)}function H3(t,e,n,a){a===void 0&&(a=!1);let o;typeof t=="string"?o=YA(t):(o=fp({},t),Sa(!o.pathname||!o.pathname.includes("?"),F0("?","pathname","search",o)),Sa(!o.pathname||!o.pathname.includes("#"),F0("#","pathname","hash",o)),Sa(!o.search||!o.search.includes("#"),F0("#","search","hash",o)));let r=t===""||o.pathname==="",s=r?"/":o.pathname,c;if(s==null)c=n;else{let u=e.length-1;if(!a&&s.startsWith("..")){let x=s.split("/");for(;x[0]==="..";)x.shift(),u-=1;o.pathname=x.join("/")}c=u>=0?e[u]:"/"}let l=HS(o,c),A=s&&s!=="/"&&s.endsWith("/"),p=(r||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(A||p)&&(l.pathname+="/"),l}const $l=t=>t.join("/").replace(/\/\/+/g,"/"),GS=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),_S=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,ES=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function PS(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Uj=["post","put","patch","delete"];new Set(Uj);const SS=["get",...Uj];new Set(SS);/** + * React Router v6.30.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function gp(){return gp=Object.assign?Object.assign.bind():function(t){for(var e=1;e{c.current=!0}),be.useCallback(function(A,p){if(p===void 0&&(p={}),!c.current)return;if(typeof A=="number"){a.go(A);return}let u=H3(A,JSON.parse(s),r,p.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:$l([e,u.pathname])),(p.replace?a.replace:a.push)(u,p.state,p)},[e,a,s,r,t])}function jj(t,e){let{relative:n}=e===void 0?{}:e,{future:a}=be.useContext(nm),{matches:o}=be.useContext(am),{pathname:r}=qA(),s=JSON.stringify(U3(o,a.v7_relativeSplatPath));return be.useMemo(()=>H3(t,JSON.parse(s),r,n==="path"),[t,s,r,n])}function IS(t,e){return OS(t,e)}function OS(t,e,n,a){KA()||Sa(!1);let{navigator:o}=be.useContext(nm),{matches:r}=be.useContext(am),s=r[r.length-1],c=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let A=qA(),p;if(e){var u;let v=typeof e=="string"?YA(e):e;l==="/"||(u=v.pathname)!=null&&u.startsWith(l)||Sa(!1),p=v}else p=A;let x=p.pathname||"/",h=x;if(l!=="/"){let v=l.replace(/^\//,"").split("/");h="/"+x.replace(/^\//,"").split("/").slice(v.length).join("/")}let w=AS(t,{pathname:h}),b=zS(w&&w.map(v=>Object.assign({},v,{params:Object.assign({},c,v.params),pathname:$l([l,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:$l([l,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),r,n,a);return e&&b?be.createElement(qg.Provider,{value:{location:gp({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:Ml.Pop}},b):b}function TS(){let t=qS(),e=PS(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return be.createElement(be.Fragment,null,be.createElement("h2",null,"Unexpected Application Error!"),be.createElement("h3",{style:{fontStyle:"italic"}},e),n?be.createElement("pre",{style:o},n):null,null)}const kS=be.createElement(TS,null);class RS extends be.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?be.createElement(am.Provider,{value:this.props.routeContext},be.createElement(Hj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function MS(t){let{routeContext:e,match:n,children:a}=t,o=be.useContext(N3);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),be.createElement(am.Provider,{value:e},a)}function zS(t,e,n,a){var o;if(e===void 0&&(e=[]),n===void 0&&(n=null),a===void 0&&(a=null),t==null){var r;if(!n)return null;if(n.errors)t=n.matches;else if((r=a)!=null&&r.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let s=t,c=(o=n)==null?void 0:o.errors;if(c!=null){let p=s.findIndex(u=>u.route.id&&(c==null?void 0:c[u.route.id])!==void 0);p>=0||Sa(!1),s=s.slice(0,Math.min(s.length,p+1))}let l=!1,A=-1;if(n&&a&&a.v7_partialHydration)for(let p=0;p=0?s=s.slice(0,A+1):s=[s[0]];break}}}return s.reduceRight((p,u,x)=>{let h,w=!1,b=null,v=null;n&&(h=c&&u.route.id?c[u.route.id]:void 0,b=u.route.errorElement||kS,l&&(A<0&&x===0?(WS("route-fallback"),w=!0,v=null):A===x&&(w=!0,v=u.route.hydrateFallbackElement||null)));let B=e.concat(s.slice(0,x+1)),U=()=>{let G;return h?G=b:w?G=v:u.route.Component?G=be.createElement(u.route.Component,null):u.route.element?G=u.route.element:G=p,be.createElement(MS,{match:u,routeContext:{outlet:p,matches:B,isDataRoute:n!=null},children:G})};return n&&(u.route.ErrorBoundary||u.route.errorElement||x===0)?be.createElement(RS,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:U(),routeContext:{outlet:null,matches:B,isDataRoute:!0}}):U()},null)}var Gj=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(Gj||{}),_j=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(_j||{});function ZS(t){let e=be.useContext(N3);return e||Sa(!1),e}function YS(t){let e=be.useContext(FS);return e||Sa(!1),e}function KS(t){let e=be.useContext(am);return e||Sa(!1),e}function Ej(t){let e=KS(),n=e.matches[e.matches.length-1];return n.route.id||Sa(!1),n.route.id}function qS(){var t;let e=be.useContext(Hj),n=YS(),a=Ej();return e!==void 0?e:(t=n.errors)==null?void 0:t[a]}function $S(){let{router:t}=ZS(Gj.UseNavigateStable),e=Ej(_j.UseNavigateStable),n=be.useRef(!1);return Nj(()=>{n.current=!0}),be.useCallback(function(o,r){r===void 0&&(r={}),n.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,gp({fromRouteId:e},r)))},[t,e])}const oD={};function WS(t,e,n){oD[t]||(oD[t]=!0)}function VS(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function XS(t){let{to:e,replace:n,state:a,relative:o}=t;KA()||Sa(!1);let{future:r,static:s}=be.useContext(nm),{matches:c}=be.useContext(am),{pathname:l}=qA(),A=$A(),p=H3(e,U3(c,r.v7_relativeSplatPath),l,o==="path"),u=JSON.stringify(p);return be.useEffect(()=>A(JSON.parse(u),{replace:n,state:a,relative:o}),[A,u,o,n,a]),null}function bi(t){Sa(!1)}function JS(t){let{basename:e="/",children:n=null,location:a,navigationType:o=Ml.Pop,navigator:r,static:s=!1,future:c}=t;KA()&&Sa(!1);let l=e.replace(/^\/*/,"/"),A=be.useMemo(()=>({basename:l,navigator:r,static:s,future:gp({v7_relativeSplatPath:!1},c)}),[l,c,r,s]);typeof a=="string"&&(a=YA(a));let{pathname:p="/",search:u="",hash:x="",state:h=null,key:w="default"}=a,b=be.useMemo(()=>{let v=D3(p,l);return v==null?null:{location:{pathname:v,search:u,hash:x,state:h,key:w},navigationType:o}},[l,p,u,x,h,w,o]);return b==null?null:be.createElement(nm.Provider,{value:A},be.createElement(qg.Provider,{children:n,value:b}))}function eF(t){let{children:e,location:n}=t;return IS(y1(e),n)}new Promise(()=>{});function y1(t,e){e===void 0&&(e=[]);let n=[];return be.Children.forEach(t,(a,o)=>{if(!be.isValidElement(a))return;let r=[...e,o];if(a.type===be.Fragment){n.push.apply(n,y1(a.props.children,r));return}a.type!==bi&&Sa(!1),!a.props.index||!a.props.children||Sa(!1);let s={id:a.props.id||r.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(s.children=y1(a.props.children,r)),n.push(s)}),n}/** + * React Router DOM v6.30.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function C1(){return C1=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[o]=t[o]);return n}function nF(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function aF(t,e){return t.button===0&&(!e||e==="_self")&&!nF(t)}const oF=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rF="6";try{window.__reactRouterVersion=rF}catch{}const sF="startTransition",rD=sS[sF];function iF(t){let{basename:e,children:n,future:a,window:o}=t,r=be.useRef();r.current==null&&(r.current=lS({window:o,v5Compat:!0}));let s=r.current,[c,l]=be.useState({action:s.action,location:s.location}),{v7_startTransition:A}=a||{},p=be.useCallback(u=>{A&&rD?rD(()=>l(u)):l(u)},[l,A]);return be.useLayoutEffect(()=>s.listen(p),[s,p]),be.useEffect(()=>VS(a),[a]),be.createElement(JS,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:s,future:a})}const cF=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Oo=be.forwardRef(function(e,n){let{onClick:a,relative:o,reloadDocument:r,replace:s,state:c,target:l,to:A,preventScrollReset:p,viewTransition:u}=e,x=tF(e,oF),{basename:h}=be.useContext(nm),w,b=!1;if(typeof A=="string"&&lF.test(A)&&(w=A,cF))try{let G=new URL(window.location.href),Q=A.startsWith("//")?new URL(G.protocol+A):new URL(A),_=D3(Q.pathname,h);Q.origin===G.origin&&_!=null?A=_+Q.search+Q.hash:b=!0}catch{}let v=LS(A,{relative:o}),B=mF(A,{replace:s,state:c,target:l,preventScrollReset:p,relative:o,viewTransition:u});function U(G){a&&a(G),G.defaultPrevented||B(G)}return be.createElement("a",C1({},x,{href:w||v,onClick:b||r?a:U,ref:n,target:l}))});var sD;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(sD||(sD={}));var iD;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(iD||(iD={}));function mF(t,e){let{target:n,replace:a,state:o,preventScrollReset:r,relative:s,viewTransition:c}=e===void 0?{}:e,l=$A(),A=qA(),p=jj(t,{relative:s});return be.useCallback(u=>{if(aF(u,n)){u.preventDefault();let x=a!==void 0?a:qf(A)===qf(p);l(t,{replace:x,state:o,preventScrollReset:r,relative:s,viewTransition:c})}},[A,l,p,a,o,n,t,r,s,c])}const Pj="http://localhost:3001/api";console.log("API_BASE_URL:",Pj);console.log("import.meta.env.DEV:",!1);console.log("import.meta.env.PROD:",!0);class dF{constructor(){Sl(this,"token",null);Sl(this,"pendingRequests",new Map);Sl(this,"auth",{signUp:async(e,n,a)=>{const o=await this.request("/auth/register",{method:"POST",body:JSON.stringify({email:e,password:n,full_name:a})});return o.data&&this.setToken(o.data.token),o},signInWithPassword:async({email:e,password:n})=>{const a=await this.request("/auth/login",{method:"POST",body:JSON.stringify({email:e,password:n})});return a.data&&this.setToken(a.data.token),a},getUser:async()=>this.request("/auth/me"),signOut:async()=>{const e=await this.request("/auth/logout",{method:"POST"});return this.setToken(null),e},verify:async()=>this.request("/auth/verify"),changePassword:async(e,n)=>this.request("/auth/change-password",{method:"POST",body:JSON.stringify({current_password:e,new_password:n})})});Sl(this,"profiles",{get:async()=>this.request("/profile"),update:async e=>this.request("/profile",{method:"PUT",body:JSON.stringify(e)}),uploadAvatar:async e=>this.request("/profile/avatar",{method:"POST",body:JSON.stringify({avatar_url:e})})});Sl(this,"analysis",{bazi:async e=>this.requestWithDeduplication("/analysis/bazi",{method:"POST",body:JSON.stringify({birth_data:e})},e),ziwei:async e=>this.requestWithDeduplication("/analysis/ziwei",{method:"POST",body:JSON.stringify({birth_data:e})},e),yijing:async e=>this.requestWithDeduplication("/analysis/yijing",{method:"POST",body:JSON.stringify(e)},e),comprehensive:async(e,n)=>this.request("/analysis/comprehensive",{method:"POST",body:JSON.stringify({birth_data:e,include_types:n})}),getTypes:async()=>this.request("/analysis/types"),validate:async(e,n)=>this.request("/analysis/validate",{method:"POST",body:JSON.stringify({birth_data:e,analysis_type:n})}),saveHistory:async(e,n,a)=>this.request("/analysis/save-history",{method:"POST",body:JSON.stringify({analysis_type:e,analysis_data:n,input_data:a})})});Sl(this,"history",{getAll:async e=>{const n=new URLSearchParams;e!=null&&e.page&&n.set("page",e.page.toString()),e!=null&&e.limit&&n.set("limit",e.limit.toString()),e!=null&&e.reading_type&&n.set("reading_type",e.reading_type);const a=n.toString(),o=a?`/history?${a}`:"/history";return this.request(o)},getById:async e=>this.request(`/history/${e}`),delete:async e=>this.request(`/history/${e}`,{method:"DELETE"}),deleteBatch:async e=>this.request("/history",{method:"DELETE",body:JSON.stringify({ids:e})}),getStats:async()=>this.request("/history/stats/summary"),search:async(e,n)=>{const a=new URLSearchParams;n!=null&&n.page&&a.set("page",n.page.toString()),n!=null&&n.limit&&a.set("limit",n.limit.toString());const o=a.toString(),r=o?`/history/search/${encodeURIComponent(e)}?${o}`:`/history/search/${encodeURIComponent(e)}`;return this.request(r)}});Sl(this,"functions",{invoke:async(e,n)=>{const o={"bazi-analyzer":"/analysis/bazi","ziwei-analyzer":"/analysis/ziwei","yijing-analyzer":"/analysis/yijing","bazi-details":"/analysis/bazi-details","bazi-wuxing-analysis":"/analysis/bazi-wuxing","reading-history":"/history"}[e.replace(/\?.*$/,"")]||`/functions/${e}`;if(e.includes("reading-history")){const{action:r,...s}=n.body;switch(r){case"get_history":return this.history.getAll();case"delete_reading":return this.history.delete(s.reading_id);default:return{error:{code:"UNKNOWN_ACTION",message:`Unknown action: ${r}`}}}}return this.request(o,{method:"POST",body:JSON.stringify(n.body)})}});this.token=localStorage.getItem("auth_token")}setToken(e){this.token=e,e?localStorage.setItem("auth_token",e):localStorage.removeItem("auth_token")}getAuthHeaders(){const e={"Content-Type":"application/json"};return this.token&&(e.Authorization=`Bearer ${this.token}`),e}async request(e,n={}){try{const a=`${Pj}${e}`,o=await fetch(a,{...n,headers:{...this.getAuthHeaders(),...n.headers}}),r=o.headers.get("content-type");if(!r||!r.includes("application/json"))return o.ok?{data:{}}:{error:{code:"HTTP_ERROR",message:`HTTP ${o.status}: ${o.statusText}`}};let s;try{s=await o.json()}catch{return{error:{code:"JSON_PARSE_ERROR",message:"服务器返回了无效的JSON格式"}}}return o.ok?{data:s.data||s}:{error:s.error||{code:"HTTP_ERROR",message:`HTTP ${o.status}: ${o.statusText}`}}}catch(a){return console.error("API请求错误:",a),{error:{code:"NETWORK_ERROR",message:a instanceof Error?a.message:"网络请求失败"}}}}generateRequestKey(e,n){return`${e}:${JSON.stringify(n)}`}async requestWithDeduplication(e,n,a){const o=this.generateRequestKey(e,a);if(this.pendingRequests.has(o))return this.pendingRequests.get(o);const r=this.request(e,n).finally(()=>{this.pendingRequests.delete(o)});return this.pendingRequests.set(o,r),r}}const bo=new dF,Sj=be.createContext(void 0);function AF({children:t}){const[e,n]=be.useState(null),[a,o]=be.useState(!0);be.useEffect(()=>{async function l(){o(!0);try{const A=await bo.auth.getUser();A.data?n(A.data.user):n(null)}catch(A){console.error("加载用户信息失败:",A),n(null)}finally{o(!1)}}l()},[]);async function r(l,A){try{const p=await bo.auth.signInWithPassword({email:l,password:A});return p.data?(n(p.data.user),{data:p.data,error:null}):{data:null,error:p.error}}catch{return{data:null,error:{message:"登录失败"}}}}async function s(l,A,p){try{const u=await bo.auth.signUp(l,A,p);return u.data?(n(u.data.user),{data:u.data,error:null}):{data:null,error:u.error}}catch{return{data:null,error:{message:"注册失败"}}}}async function c(){try{const l=await bo.auth.signOut();return n(null),{error:null}}catch{return{error:{message:"登出失败"}}}}return d.jsx(Sj.Provider,{value:{user:e,loading:a,signIn:r,signUp:s,signOut:c},"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/contexts/AuthContext.tsx:83:4","data-matrix-name":"AuthContext.Provider","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/contexts/AuthContext.tsx","data-component-line":"83","data-component-file":"AuthContext.tsx","data-component-name":"AuthContext.Provider","data-component-content":"%7B%22value%22%3A%7B%22user%22%3A%22%5Bvar%3Auser%5D%22%2C%22loading%22%3A%22%5Bvar%3Aloading%5D%22%2C%22signIn%22%3A%22%5Bvar%3AsignIn%5D%22%2C%22signUp%22%3A%22%5Bvar%3AsignUp%5D%22%2C%22signOut%22%3A%22%5Bvar%3AsignOut%5D%22%7D%7D",children:t})}function Pi(){const t=be.useContext(Sj);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var uF={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pF=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ft=(t,e)=>{const n=be.forwardRef(({color:a="currentColor",size:o=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:c="",children:l,...A},p)=>be.createElement("svg",{ref:p,...uF,width:o,height:o,stroke:a,strokeWidth:s?Number(r)*24/Number(o):r,className:["lucide",`lucide-${pF(t)}`,c].join(" "),...A},[...e.map(([u,x])=>be.createElement(u,x)),...Array.isArray(l)?l:[l]]));return n.displayName=`${t}`,n};/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fj=Ft("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cD=Ft("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fF=Ft("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $g=Ft("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cd=Ft("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lD=Ft("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jc=Ft("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gF=Ft("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lj=Ft("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hF=Ft("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xF=Ft("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bA=Ft("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ed=Ft("Compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76",key:"m9r19z"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L0=Ft("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Of=Ft("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yF=Ft("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qj=Ft("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const CF=Ft("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bF=Ft("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vF=Ft("FileX",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wF=Ft("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b1=Ft("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $m=Ft("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mD=Ft("Hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v1=Ft("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const BF=Ft("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const DF=Ft("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const UF=Ft("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vA=Ft("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const w1=Ft("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const HF=Ft("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const dD=Ft("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ij=Ft("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Oj=Ft("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const NF=Ft("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Tj=Ft("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jF=Ft("Printer",[["polyline",{points:"6 9 6 2 18 2 18 9",key:"1306q4"}],["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["rect",{width:"12",height:"8",x:"6",y:"14",key:"5ipwut"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const GF=Ft("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _F=Ft("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const EF=Ft("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const PF=Ft("Shuffle",[["path",{d:"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22",key:"1wmou1"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 6h1.9c1.5 0 2.9.9 3.6 2.2",key:"10bdb2"}],["path",{d:"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8",key:"vgxac0"}],["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fa=Ft("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Uc=Ft("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B1=Ft("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ap=Ft("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const SF=Ft("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t2=Ft("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const FF=Ft("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ys=Ft("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const LF=Ft("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** + * @license lucide-react v0.364.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const n2=Ft("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function kj(t){var e,n,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e{const e=OF(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:s=>{const c=s.split(j3);return c[0]===""&&c.length!==1&&c.shift(),Rj(c,e)||IF(s)},getConflictingClassGroupIds:(s,c)=>{const l=n[s]||[];return c&&a[s]?[...l,...a[s]]:l}}},Rj=(t,e)=>{var s;if(t.length===0)return e.classGroupId;const n=t[0],a=e.nextPart.get(n),o=a?Rj(t.slice(1),a):void 0;if(o)return o;if(e.validators.length===0)return;const r=t.join(j3);return(s=e.validators.find(({validator:c})=>c(r)))==null?void 0:s.classGroupId},AD=/^\[(.+)\]$/,IF=t=>{if(AD.test(t)){const e=AD.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},OF=t=>{const{theme:e,prefix:n}=t,a={nextPart:new Map,validators:[]};return kF(Object.entries(t.classGroups),n).forEach(([r,s])=>{D1(s,a,r,e)}),a},D1=(t,e,n,a)=>{t.forEach(o=>{if(typeof o=="string"){const r=o===""?e:uD(e,o);r.classGroupId=n;return}if(typeof o=="function"){if(TF(o)){D1(o(a),e,n,a);return}e.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([r,s])=>{D1(s,uD(e,r),n,a)})})},uD=(t,e)=>{let n=t;return e.split(j3).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n},TF=t=>t.isThemeGetter,kF=(t,e)=>e?t.map(([n,a])=>{const o=a.map(r=>typeof r=="string"?e+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([s,c])=>[e+s,c])):r);return[n,o]}):t,RF=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,a=new Map;const o=(r,s)=>{n.set(r,s),e++,e>t&&(e=0,a=n,n=new Map)};return{get(r){let s=n.get(r);if(s!==void 0)return s;if((s=a.get(r))!==void 0)return o(r,s),s},set(r,s){n.has(r)?n.set(r,s):o(r,s)}}},Mj="!",MF=t=>{const{separator:e,experimentalParseClassName:n}=t,a=e.length===1,o=e[0],r=e.length,s=c=>{const l=[];let A=0,p=0,u;for(let v=0;vp?u-p:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:b}};return n?c=>n({className:c,parseClassName:s}):s},zF=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(a=>{a[0]==="["?(e.push(...n.sort(),a),n=[]):n.push(a)}),e.push(...n.sort()),e},ZF=t=>({cache:RF(t.cacheSize),parseClassName:MF(t),...QF(t)}),YF=/\s+/,KF=(t,e)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:o}=e,r=[],s=t.trim().split(YF);let c="";for(let l=s.length-1;l>=0;l-=1){const A=s[l],{modifiers:p,hasImportantModifier:u,baseClassName:x,maybePostfixModifierPosition:h}=n(A);let w=!!h,b=a(w?x.substring(0,h):x);if(!b){if(!w){c=A+(c.length>0?" "+c:c);continue}if(b=a(x),!b){c=A+(c.length>0?" "+c:c);continue}w=!1}const v=zF(p).join(":"),B=u?v+Mj:v,U=B+b;if(r.includes(U))continue;r.push(U);const G=o(b,w);for(let Q=0;Q0?" "+c:c)}return c};function qF(){let t=0,e,n,a="";for(;t{if(typeof t=="string")return t;let e,n="";for(let a=0;au(p),t());return n=ZF(A),a=n.cache.get,o=n.cache.set,r=c,c(l)}function c(l){const A=a(l);if(A)return A;const p=KF(l,n);return o(l,p),p}return function(){return r(qF.apply(null,arguments))}}const ea=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Zj=/^\[(?:([a-z-]+):)?(.+)\]$/i,WF=/^\d+\/\d+$/,VF=new Set(["px","full","screen"]),XF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,JF=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xc=t=>AA(t)||VF.has(t)||WF.test(t),Fl=t=>WA(t,"length",mL),AA=t=>!!t&&!Number.isNaN(Number(t)),Q0=t=>WA(t,"number",AA),ju=t=>!!t&&Number.isInteger(Number(t)),aL=t=>t.endsWith("%")&&AA(t.slice(0,-1)),Vt=t=>Zj.test(t),Ll=t=>XF.test(t),oL=new Set(["length","size","percentage"]),rL=t=>WA(t,oL,Yj),sL=t=>WA(t,"position",Yj),iL=new Set(["image","url"]),cL=t=>WA(t,iL,AL),lL=t=>WA(t,"",dL),Gu=()=>!0,WA=(t,e,n)=>{const a=Zj.exec(t);return a?a[1]?typeof e=="string"?a[1]===e:e.has(a[1]):n(a[2]):!1},mL=t=>JF.test(t)&&!eL.test(t),Yj=()=>!1,dL=t=>tL.test(t),AL=t=>nL.test(t),uL=()=>{const t=ea("colors"),e=ea("spacing"),n=ea("blur"),a=ea("brightness"),o=ea("borderColor"),r=ea("borderRadius"),s=ea("borderSpacing"),c=ea("borderWidth"),l=ea("contrast"),A=ea("grayscale"),p=ea("hueRotate"),u=ea("invert"),x=ea("gap"),h=ea("gradientColorStops"),w=ea("gradientColorStopPositions"),b=ea("inset"),v=ea("margin"),B=ea("opacity"),U=ea("padding"),G=ea("saturate"),Q=ea("scale"),_=ea("sepia"),S=ea("skew"),F=ea("space"),O=ea("translate"),R=()=>["auto","contain","none"],oe=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",Vt,e],I=()=>[Vt,e],M=()=>["",xc,Fl],K=()=>["auto",AA,Vt],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",Vt],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[AA,Vt];return{cacheSize:500,separator:":",theme:{colors:[Gu],spacing:[xc,Fl],blur:["none","",Ll,Vt],brightness:J(),borderColor:[t],borderRadius:["none","","full",Ll,Vt],borderSpacing:I(),borderWidth:M(),contrast:J(),grayscale:ee(),hueRotate:J(),invert:ee(),gap:I(),gradientColorStops:[t],gradientColorStopPositions:[aL,Fl],inset:L(),margin:L(),opacity:J(),padding:I(),saturate:J(),scale:J(),sepia:ee(),skew:J(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",Vt]}],container:["container"],columns:[{columns:[Ll]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...re(),Vt]}],overflow:[{overflow:oe()}],"overflow-x":[{"overflow-x":oe()}],"overflow-y":[{"overflow-y":oe()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ju,Vt]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Vt]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",ju,Vt]}],"grid-cols":[{"grid-cols":[Gu]}],"col-start-end":[{col:["auto",{span:["full",ju,Vt]},Vt]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[Gu]}],"row-start-end":[{row:["auto",{span:[ju,Vt]},Vt]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Vt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Vt]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[U]}],px:[{px:[U]}],py:[{py:[U]}],ps:[{ps:[U]}],pe:[{pe:[U]}],pt:[{pt:[U]}],pr:[{pr:[U]}],pb:[{pb:[U]}],pl:[{pl:[U]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Vt,e]}],"min-w":[{"min-w":[Vt,e,"min","max","fit"]}],"max-w":[{"max-w":[Vt,e,"none","full","min","max","fit","prose",{screen:[Ll]},Ll]}],h:[{h:[Vt,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Vt,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Vt,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Vt,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Ll,Fl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Q0]}],"font-family":[{font:[Gu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Vt]}],"line-clamp":[{"line-clamp":["none",AA,Q0]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xc,Vt]}],"list-image":[{"list-image":["none",Vt]}],"list-style-type":[{list:["none","disc","decimal",Vt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[B]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[B]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xc,Fl]}],"underline-offset":[{"underline-offset":["auto",xc,Vt]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[B]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),sL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cL]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[B]}],"border-style":[{border:[...ae(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[B]}],"divide-style":[{divide:ae()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...ae()]}],"outline-offset":[{"outline-offset":[xc,Vt]}],"outline-w":[{outline:[xc,Fl]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[B]}],"ring-offset-w":[{"ring-offset":[xc,Fl]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Ll,lL]}],"shadow-color":[{shadow:[Gu]}],opacity:[{opacity:[B]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ll,Vt]}],grayscale:[{grayscale:[A]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[u]}],saturate:[{saturate:[G]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[B]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Vt]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",Vt]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",Vt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Q]}],"scale-x":[{"scale-x":[Q]}],"scale-y":[{"scale-y":[Q]}],rotate:[{rotate:[ju,Vt]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Vt]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Vt]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Vt]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[xc,Fl,Q0]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},pL=$F(uL);function Mt(...t){return pL(pn(t))}const ga=ue.forwardRef(({className:t,variant:e="primary",size:n="md",children:a,...o},r)=>{const s=["inline-flex items-center justify-center","font-chinese font-medium","transition-all duration-200 ease-in-out","focus:outline-none focus:ring-2 focus:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed","relative overflow-hidden","active:scale-95 hover-lift"],c={primary:["bg-gradient-to-r from-red-600 to-red-700 !text-white","border border-red-600","shadow-lg hover:shadow-xl","hover:scale-105 active:scale-95 hover:!text-white","focus:ring-red-500","relative overflow-hidden","before:absolute before:inset-0","before:bg-gradient-to-r before:from-transparent before:via-white/20 before:to-transparent","before:translate-x-[-100%] hover:before:translate-x-[100%]","before:transition-transform before:duration-700"],secondary:["bg-gradient-to-r from-yellow-400 to-yellow-500 text-gray-900","border border-yellow-500","shadow-lg hover:shadow-xl","hover:scale-105 active:scale-95","focus:ring-yellow-500"],outline:["bg-transparent text-red-600","border-2 border-red-600","hover:bg-red-600 hover:text-white","focus:ring-red-500"],ghost:["bg-transparent text-gray-700","hover:bg-gray-100 hover:text-red-600","focus:ring-gray-500"]},l={sm:["px-3 py-1.5 text-button-sm rounded-md","min-h-[36px]"],md:["px-6 py-2.5 text-button-md rounded-lg","min-h-[44px]"],lg:["px-8 py-3 text-button-lg rounded-xl","min-h-[52px]"]},A=["md:hover:scale-105","active:scale-95","touch-manipulation"];return d.jsx("button",{className:Mt(s,c[e],l[n],A,t),ref:r,...o,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseButton.tsx:78:6","data-matrix-name":"button","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseButton.tsx","data-component-line":"78","data-component-file":"ChineseButton.tsx","data-component-name":"button","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%2C%22...spread%22%3Atrue%7D",children:a})});ga.displayName="ChineseButton";var fL=t=>{switch(t){case"success":return xL;case"info":return CL;case"warning":return yL;case"error":return bL;default:return null}},gL=Array(12).fill(0),hL=({visible:t,className:e})=>ue.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},ue.createElement("div",{className:"sonner-spinner"},gL.map((n,a)=>ue.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),xL=ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ue.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),yL=ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ue.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),CL=ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ue.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),bL=ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ue.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),vL=ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ue.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ue.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),wL=()=>{let[t,e]=ue.useState(document.hidden);return ue.useEffect(()=>{let n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},U1=1,BL=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)}),this.publish=e=>{this.subscribers.forEach(n=>n(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var n;let{message:a,...o}=e,r=typeof(e==null?void 0:e.id)=="number"||((n=e.id)==null?void 0:n.length)>0?e.id:U1++,s=this.toasts.find(l=>l.id===r),c=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),s?this.toasts=this.toasts.map(l=>l.id===r?(this.publish({...l,...e,id:r,title:a}),{...l,...e,id:r,dismissible:c,title:a}):l):this.addToast({title:a,...o,dismissible:c,id:r}),r},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(n=>{this.subscribers.forEach(a=>a({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:e,dismiss:!0})),e),this.message=(e,n)=>this.create({...n,message:e}),this.error=(e,n)=>this.create({...n,message:e,type:"error"}),this.success=(e,n)=>this.create({...n,type:"success",message:e}),this.info=(e,n)=>this.create({...n,type:"info",message:e}),this.warning=(e,n)=>this.create({...n,type:"warning",message:e}),this.loading=(e,n)=>this.create({...n,type:"loading",message:e}),this.promise=(e,n)=>{if(!n)return;let a;n.loading!==void 0&&(a=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));let o=e instanceof Promise?e:e(),r=a!==void 0,s,c=o.then(async A=>{if(s=["resolve",A],ue.isValidElement(A))r=!1,this.create({id:a,type:"default",message:A});else if(UL(A)&&!A.ok){r=!1;let p=typeof n.error=="function"?await n.error(`HTTP error! status: ${A.status}`):n.error,u=typeof n.description=="function"?await n.description(`HTTP error! status: ${A.status}`):n.description;this.create({id:a,type:"error",message:p,description:u})}else if(n.success!==void 0){r=!1;let p=typeof n.success=="function"?await n.success(A):n.success,u=typeof n.description=="function"?await n.description(A):n.description;this.create({id:a,type:"success",message:p,description:u})}}).catch(async A=>{if(s=["reject",A],n.error!==void 0){r=!1;let p=typeof n.error=="function"?await n.error(A):n.error,u=typeof n.description=="function"?await n.description(A):n.description;this.create({id:a,type:"error",message:p,description:u})}}).finally(()=>{var A;r&&(this.dismiss(a),a=void 0),(A=n.finally)==null||A.call(n)}),l=()=>new Promise((A,p)=>c.then(()=>s[0]==="reject"?p(s[1]):A(s[1])).catch(p));return typeof a!="string"&&typeof a!="number"?{unwrap:l}:Object.assign(a,{unwrap:l})},this.custom=(e,n)=>{let a=(n==null?void 0:n.id)||U1++;return this.create({jsx:e(a),id:a,...n}),a},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Cr=new BL,DL=(t,e)=>{let n=(e==null?void 0:e.id)||U1++;return Cr.addToast({title:t,...e,id:n}),n},UL=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",HL=DL,NL=()=>Cr.toasts,jL=()=>Cr.getActiveToasts(),zn=Object.assign(HL,{success:Cr.success,info:Cr.info,warning:Cr.warning,error:Cr.error,custom:Cr.custom,message:Cr.message,promise:Cr.promise,dismiss:Cr.dismiss,loading:Cr.loading},{getHistory:NL,getToasts:jL});function GL(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}GL(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} +`);function $2(t){return t.label!==void 0}var _L=3,EL="32px",PL="16px",pD=4e3,SL=356,FL=14,LL=20,QL=200;function Os(...t){return t.filter(Boolean).join(" ")}function IL(t){let[e,n]=t.split("-"),a=[];return e&&a.push(e),n&&a.push(n),a}var OL=t=>{var e,n,a,o,r,s,c,l,A,p,u;let{invert:x,toast:h,unstyled:w,interacting:b,setHeights:v,visibleToasts:B,heights:U,index:G,toasts:Q,expanded:_,removeToast:S,defaultRichColors:F,closeButton:O,style:R,cancelButtonStyle:oe,actionButtonStyle:L,className:I="",descriptionClassName:M="",duration:K,position:re,gap:ae,loadingIcon:ie,expandByDefault:X,classNames:ee,icons:se,closeButtonAriaLabel:J="Close toast",pauseWhenPageIsHidden:E}=t,[z,W]=ue.useState(null),[te,me]=ue.useState(null),[pe,Ce]=ue.useState(!1),[de,Ge]=ue.useState(!1),[Ee,Be]=ue.useState(!1),[Re,Ve]=ue.useState(!1),[je,ce]=ue.useState(!1),[dt,ot]=ue.useState(0),[ze,Ke]=ue.useState(0),qe=ue.useRef(h.duration||K||pD),Se=ue.useRef(null),et=ue.useRef(null),lt=G===0,it=G+1<=B,ct=h.type,Ct=h.dismissible!==!1,kt=h.className||"",at=h.descriptionClassName||"",gt=ue.useMemo(()=>U.findIndex(We=>We.toastId===h.id)||0,[U,h.id]),Je=ue.useMemo(()=>{var We;return(We=h.closeButton)!=null?We:O},[h.closeButton,O]),En=ue.useMemo(()=>h.duration||K||pD,[h.duration,K]),zt=ue.useRef(0),aa=ue.useRef(0),sn=ue.useRef(0),en=ue.useRef(null),[Oa,Jt]=re.split("-"),lo=ue.useMemo(()=>U.reduce((We,_t,Bt)=>Bt>=gt?We:We+_t.height,0),[U,gt]),fn=wL(),la=h.invert||x,ma=ct==="loading";aa.current=ue.useMemo(()=>gt*ae+lo,[gt,lo]),ue.useEffect(()=>{qe.current=En},[En]),ue.useEffect(()=>{Ce(!0)},[]),ue.useEffect(()=>{let We=et.current;if(We){let _t=We.getBoundingClientRect().height;return Ke(_t),v(Bt=>[{toastId:h.id,height:_t,position:h.position},...Bt]),()=>v(Bt=>Bt.filter(Wt=>Wt.toastId!==h.id))}},[v,h.id]),ue.useLayoutEffect(()=>{if(!pe)return;let We=et.current,_t=We.style.height;We.style.height="auto";let Bt=We.getBoundingClientRect().height;We.style.height=_t,Ke(Bt),v(Wt=>Wt.find(cn=>cn.toastId===h.id)?Wt.map(cn=>cn.toastId===h.id?{...cn,height:Bt}:cn):[{toastId:h.id,height:Bt,position:h.position},...Wt])},[pe,h.title,h.description,v,h.id]);let tt=ue.useCallback(()=>{Ge(!0),ot(aa.current),v(We=>We.filter(_t=>_t.toastId!==h.id)),setTimeout(()=>{S(h)},QL)},[h,S,v,aa]);ue.useEffect(()=>{if(h.promise&&ct==="loading"||h.duration===1/0||h.type==="loading")return;let We;return _||b||E&&fn?(()=>{if(sn.current{var _t;(_t=h.onAutoClose)==null||_t.call(h,h),tt()},qe.current)),()=>clearTimeout(We)},[_,b,h,ct,E,fn,tt]),ue.useEffect(()=>{h.delete&&tt()},[tt,h.delete]);function Fe(){var We,_t,Bt;return se!=null&&se.loading?ue.createElement("div",{className:Os(ee==null?void 0:ee.loader,(We=h==null?void 0:h.classNames)==null?void 0:We.loader,"sonner-loader"),"data-visible":ct==="loading"},se.loading):ie?ue.createElement("div",{className:Os(ee==null?void 0:ee.loader,(_t=h==null?void 0:h.classNames)==null?void 0:_t.loader,"sonner-loader"),"data-visible":ct==="loading"},ie):ue.createElement(hL,{className:Os(ee==null?void 0:ee.loader,(Bt=h==null?void 0:h.classNames)==null?void 0:Bt.loader),visible:ct==="loading"})}return ue.createElement("li",{tabIndex:0,ref:et,className:Os(I,kt,ee==null?void 0:ee.toast,(e=h==null?void 0:h.classNames)==null?void 0:e.toast,ee==null?void 0:ee.default,ee==null?void 0:ee[ct],(n=h==null?void 0:h.classNames)==null?void 0:n[ct]),"data-sonner-toast":"","data-rich-colors":(a=h.richColors)!=null?a:F,"data-styled":!(h.jsx||h.unstyled||w),"data-mounted":pe,"data-promise":!!h.promise,"data-swiped":je,"data-removed":de,"data-visible":it,"data-y-position":Oa,"data-x-position":Jt,"data-index":G,"data-front":lt,"data-swiping":Ee,"data-dismissible":Ct,"data-type":ct,"data-invert":la,"data-swipe-out":Re,"data-swipe-direction":te,"data-expanded":!!(_||X&&pe),style:{"--index":G,"--toasts-before":G,"--z-index":Q.length-G,"--offset":`${de?dt:aa.current}px`,"--initial-height":X?"auto":`${ze}px`,...R,...h.style},onDragEnd:()=>{Be(!1),W(null),en.current=null},onPointerDown:We=>{ma||!Ct||(Se.current=new Date,ot(aa.current),We.target.setPointerCapture(We.pointerId),We.target.tagName!=="BUTTON"&&(Be(!0),en.current={x:We.clientX,y:We.clientY}))},onPointerUp:()=>{var We,_t,Bt,Wt;if(Re||!Ct)return;en.current=null;let cn=Number(((We=et.current)==null?void 0:We.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),yt=Number(((_t=et.current)==null?void 0:_t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),da=new Date().getTime()-((Bt=Se.current)==null?void 0:Bt.getTime()),Pn=z==="x"?cn:yt,Zn=Math.abs(Pn)/da;if(Math.abs(Pn)>=LL||Zn>.11){ot(aa.current),(Wt=h.onDismiss)==null||Wt.call(h,h),me(z==="x"?cn>0?"right":"left":yt>0?"down":"up"),tt(),Ve(!0),ce(!1);return}Be(!1),W(null)},onPointerMove:We=>{var _t,Bt,Wt,cn;if(!en.current||!Ct||((_t=window.getSelection())==null?void 0:_t.toString().length)>0)return;let yt=We.clientY-en.current.y,da=We.clientX-en.current.x,Pn=(Bt=t.swipeDirections)!=null?Bt:IL(re);!z&&(Math.abs(da)>1||Math.abs(yt)>1)&&W(Math.abs(da)>Math.abs(yt)?"x":"y");let Zn={x:0,y:0};z==="y"?(Pn.includes("top")||Pn.includes("bottom"))&&(Pn.includes("top")&&yt<0||Pn.includes("bottom")&&yt>0)&&(Zn.y=yt):z==="x"&&(Pn.includes("left")||Pn.includes("right"))&&(Pn.includes("left")&&da<0||Pn.includes("right")&&da>0)&&(Zn.x=da),(Math.abs(Zn.x)>0||Math.abs(Zn.y)>0)&&ce(!0),(Wt=et.current)==null||Wt.style.setProperty("--swipe-amount-x",`${Zn.x}px`),(cn=et.current)==null||cn.style.setProperty("--swipe-amount-y",`${Zn.y}px`)}},Je&&!h.jsx?ue.createElement("button",{"aria-label":J,"data-disabled":ma,"data-close-button":!0,onClick:ma||!Ct?()=>{}:()=>{var We;tt(),(We=h.onDismiss)==null||We.call(h,h)},className:Os(ee==null?void 0:ee.closeButton,(o=h==null?void 0:h.classNames)==null?void 0:o.closeButton)},(r=se==null?void 0:se.close)!=null?r:vL):null,h.jsx||be.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:ue.createElement(ue.Fragment,null,ct||h.icon||h.promise?ue.createElement("div",{"data-icon":"",className:Os(ee==null?void 0:ee.icon,(s=h==null?void 0:h.classNames)==null?void 0:s.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Fe():null,h.type!=="loading"?h.icon||(se==null?void 0:se[ct])||fL(ct):null):null,ue.createElement("div",{"data-content":"",className:Os(ee==null?void 0:ee.content,(c=h==null?void 0:h.classNames)==null?void 0:c.content)},ue.createElement("div",{"data-title":"",className:Os(ee==null?void 0:ee.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?ue.createElement("div",{"data-description":"",className:Os(M,at,ee==null?void 0:ee.description,(A=h==null?void 0:h.classNames)==null?void 0:A.description)},typeof h.description=="function"?h.description():h.description):null),be.isValidElement(h.cancel)?h.cancel:h.cancel&&$2(h.cancel)?ue.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||oe,onClick:We=>{var _t,Bt;$2(h.cancel)&&Ct&&((Bt=(_t=h.cancel).onClick)==null||Bt.call(_t,We),tt())},className:Os(ee==null?void 0:ee.cancelButton,(p=h==null?void 0:h.classNames)==null?void 0:p.cancelButton)},h.cancel.label):null,be.isValidElement(h.action)?h.action:h.action&&$2(h.action)?ue.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||L,onClick:We=>{var _t,Bt;$2(h.action)&&((Bt=(_t=h.action).onClick)==null||Bt.call(_t,We),!We.defaultPrevented&&tt())},className:Os(ee==null?void 0:ee.actionButton,(u=h==null?void 0:h.classNames)==null?void 0:u.actionButton)},h.action.label):null))};function fD(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function TL(t,e){let n={};return[t,e].forEach((a,o)=>{let r=o===1,s=r?"--mobile-offset":"--offset",c=r?PL:EL;function l(A){["top","right","bottom","left"].forEach(p=>{n[`${s}-${p}`]=typeof A=="number"?`${A}px`:A})}typeof a=="number"||typeof a=="string"?l(a):typeof a=="object"?["top","right","bottom","left"].forEach(A=>{a[A]===void 0?n[`${s}-${A}`]=c:n[`${s}-${A}`]=typeof a[A]=="number"?`${a[A]}px`:a[A]}):l(c)}),n}var kL=be.forwardRef(function(t,e){let{invert:n,position:a="bottom-right",hotkey:o=["altKey","KeyT"],expand:r,closeButton:s,className:c,offset:l,mobileOffset:A,theme:p="light",richColors:u,duration:x,style:h,visibleToasts:w=_L,toastOptions:b,dir:v=fD(),gap:B=FL,loadingIcon:U,icons:G,containerAriaLabel:Q="Notifications",pauseWhenPageIsHidden:_}=t,[S,F]=ue.useState([]),O=ue.useMemo(()=>Array.from(new Set([a].concat(S.filter(E=>E.position).map(E=>E.position)))),[S,a]),[R,oe]=ue.useState([]),[L,I]=ue.useState(!1),[M,K]=ue.useState(!1),[re,ae]=ue.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ie=ue.useRef(null),X=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),ee=ue.useRef(null),se=ue.useRef(!1),J=ue.useCallback(E=>{F(z=>{var W;return(W=z.find(te=>te.id===E.id))!=null&&W.delete||Cr.dismiss(E.id),z.filter(({id:te})=>te!==E.id)})},[]);return ue.useEffect(()=>Cr.subscribe(E=>{if(E.dismiss){F(z=>z.map(W=>W.id===E.id?{...W,delete:!0}:W));return}setTimeout(()=>{cS.flushSync(()=>{F(z=>{let W=z.findIndex(te=>te.id===E.id);return W!==-1?[...z.slice(0,W),{...z[W],...E},...z.slice(W+1)]:[E,...z]})})})}),[]),ue.useEffect(()=>{if(p!=="system"){ae(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ae("dark"):ae("light")),typeof window>"u")return;let E=window.matchMedia("(prefers-color-scheme: dark)");try{E.addEventListener("change",({matches:z})=>{ae(z?"dark":"light")})}catch{E.addListener(({matches:W})=>{try{ae(W?"dark":"light")}catch(te){console.error(te)}})}},[p]),ue.useEffect(()=>{S.length<=1&&I(!1)},[S]),ue.useEffect(()=>{let E=z=>{var W,te;o.every(me=>z[me]||z.code===me)&&(I(!0),(W=ie.current)==null||W.focus()),z.code==="Escape"&&(document.activeElement===ie.current||(te=ie.current)!=null&&te.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[o]),ue.useEffect(()=>{if(ie.current)return()=>{ee.current&&(ee.current.focus({preventScroll:!0}),ee.current=null,se.current=!1)}},[ie.current]),ue.createElement("section",{ref:e,"aria-label":`${Q} ${X}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},O.map((E,z)=>{var W;let[te,me]=E.split("-");return S.length?ue.createElement("ol",{key:E,dir:v==="auto"?fD():v,tabIndex:-1,ref:ie,className:c,"data-sonner-toaster":!0,"data-theme":re,"data-y-position":te,"data-lifted":L&&S.length>1&&!r,"data-x-position":me,style:{"--front-toast-height":`${((W=R[0])==null?void 0:W.height)||0}px`,"--width":`${SL}px`,"--gap":`${B}px`,...h,...TL(l,A)},onBlur:pe=>{se.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(se.current=!1,ee.current&&(ee.current.focus({preventScroll:!0}),ee.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||se.current||(se.current=!0,ee.current=pe.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{M||I(!1)},onDragEnd:()=>I(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||K(!0)},onPointerUp:()=>K(!1)},S.filter(pe=>!pe.position&&z===0||pe.position===E).map((pe,Ce)=>{var de,Ge;return ue.createElement(OL,{key:pe.id,icons:G,index:Ce,toast:pe,defaultRichColors:u,duration:(de=b==null?void 0:b.duration)!=null?de:x,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:n,visibleToasts:w,closeButton:(Ge=b==null?void 0:b.closeButton)!=null?Ge:s,interacting:M,position:E,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,removeToast:J,toasts:S.filter(Ee=>Ee.position==pe.position),heights:R.filter(Ee=>Ee.position==pe.position),setHeights:oe,expandByDefault:r,gap:B,loadingIcon:U,expanded:L,pauseWhenPageIsHidden:_,swipeDirections:t.swipeDirections})})):null}))});const RL=({children:t})=>{const{user:e,signOut:n}=Pi(),a=qA(),[o,r]=be.useState(!1),s=async()=>{try{await n(),zn.success("登出成功"),r(!1)}catch{zn.error("登出失败")}},c=[{path:"/",label:"首页",icon:BF},{path:"/analysis",label:"分析",icon:fa,requireAuth:!0},{path:"/history",label:"历史",icon:v1,requireAuth:!0},{path:"/profile",label:"档案",icon:Ys,requireAuth:!0}],l=()=>{console.log("Toggle mobile menu:",!o),r(!o)},A=()=>{r(!1)};return d.jsxs("div",{className:"min-h-screen relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:45:4","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"45","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22min-h-screen%20relative%22%7D",children:[d.jsxs("nav",{className:"bg-gradient-to-r from-red-600 to-red-700 shadow-xl border-b-2 border-yellow-500 relative overflow-hidden z-[9998]","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:47:6","data-matrix-name":"nav","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"47","data-component-file":"Layout.tsx","data-component-name":"nav","data-component-content":"%7B%22className%22%3A%22bg-gradient-to-r%20from-red-600%20to-red-700%20shadow-xl%20border-b-2%20border-yellow-500%20relative%20overflow-hidden%20z-%5B9998%5D%22%7D",children:[d.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:48:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"48","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22max-w-7xl%20mx-auto%20px-4%20sm%3Apx-6%20lg%3Apx-8%20relative%20z-10%22%7D",children:d.jsxs("div",{className:"flex justify-between items-center h-16","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:49:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"49","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20justify-between%20items-center%20h-16%22%7D",children:[d.jsx("div",{className:"flex items-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:51:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"51","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-center%22%7D",children:d.jsxs(Oo,{to:"/",className:"flex items-center space-x-2 group",onClick:A,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:52:14","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"52","data-component-file":"Layout.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2F%22%2C%22className%22%3A%22flex%20items-center%20space-x-2%20group%22%2C%22onClick%22%3A%22%5BIdentifier%5D%22%7D",children:[d.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-yellow-400 to-yellow-600 rounded-full flex items-center justify-center shadow-lg border-2 border-yellow-600 group-hover:scale-110 transition-transform duration-300","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:53:16","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"53","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-10%20h-10%20bg-gradient-to-br%20from-yellow-400%20to-yellow-600%20rounded-full%20flex%20items-center%20justify-center%20shadow-lg%20border-2%20border-yellow-600%20group-hover%3Ascale-110%20transition-transform%20duration-300%22%7D",children:d.jsx("img",{src:"/traditional_chinese_gold_red_dragon_symbol.jpg",alt:"神机阁",className:"w-7 h-7 rounded-full object-cover","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:54:18","data-matrix-name":"img","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"54","data-component-file":"Layout.tsx","data-component-name":"img","data-component-content":"%7B%22src%22%3A%22%2Ftraditional_chinese_gold_red_dragon_symbol.jpg%22%2C%22alt%22%3A%22%E7%A5%9E%E6%9C%BA%E9%98%81%22%2C%22className%22%3A%22w-7%20h-7%20rounded-full%20object-cover%22%7D"})}),d.jsx("span",{className:"text-xl md:text-2xl font-bold text-white font-chinese group-hover:text-gold-100 transition-colors duration-300","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:60:16","data-matrix-name":"span","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"60","data-component-file":"Layout.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22text-xl%20md%3Atext-2xl%20font-bold%20text-white%20font-chinese%20group-hover%3Atext-gold-100%20transition-colors%20duration-300%22%7D",children:"神机阁"})]})}),d.jsxs("div",{className:"hidden md:flex items-center space-x-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:67:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"67","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22hidden%20md%3Aflex%20items-center%20space-x-4%22%7D",children:[c.map(p=>{if(p.requireAuth&&!e)return null;const u=p.icon,x=a.pathname===p.path;return d.jsxs(Oo,{to:p.path,className:Mt("flex items-center space-x-1.5 px-3 py-2 rounded-lg font-medium transition-all duration-300 text-sm","border border-transparent hover:border-yellow-400",x?"text-yellow-100 bg-white/10 border-yellow-400 shadow-lg":"text-white hover:text-yellow-100 hover:bg-white/10"),"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:75:18","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"75","data-component-file":"Layout.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%5BMemberExpression%5D%22%2C%22className%22%3A%22%5BCallExpression%5D%22%7D",children:[d.jsx(u,{className:"h-4 w-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:86:20","data-matrix-name":"Icon","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"86","data-component-file":"Layout.tsx","data-component-name":"Icon","data-component-content":"%7B%22className%22%3A%22h-4%20w-4%22%7D"}),d.jsx("span",{className:"whitespace-nowrap","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:87:20","data-matrix-name":"span","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"87","data-component-file":"Layout.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22whitespace-nowrap%22%7D",children:p.label})]},p.path)}),d.jsxs("a",{href:"https://github.com/patdelphi/suanming",target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-1.5 px-3 py-2 rounded-lg font-medium transition-all duration-300 text-sm border border-transparent hover:border-yellow-400 text-white hover:text-yellow-100 hover:bg-white/10",title:"查看GitHub源码","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:93:14","data-matrix-name":"a","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"93","data-component-file":"Layout.tsx","data-component-name":"a","data-component-content":"%7B%22href%22%3A%22https%3A%2F%2Fgithub.com%2Fpatdelphi%2Fsuanming%22%2C%22target%22%3A%22_blank%22%2C%22rel%22%3A%22noopener%20noreferrer%22%2C%22className%22%3A%22flex%20items-center%20space-x-1.5%20px-3%20py-2%20rounded-lg%20font-medium%20transition-all%20duration-300%20text-sm%20border%20border-transparent%20hover%3Aborder-yellow-400%20text-white%20hover%3Atext-yellow-100%20hover%3Abg-white%2F10%22%2C%22title%22%3A%22%E6%9F%A5%E7%9C%8BGitHub%E6%BA%90%E7%A0%81%22%7D",children:[d.jsx(b1,{className:"h-4 w-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:100:16","data-matrix-name":"Github","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"100","data-component-file":"Layout.tsx","data-component-name":"Github","data-component-content":"%7B%22className%22%3A%22h-4%20w-4%22%7D"}),d.jsx("span",{className:"whitespace-nowrap","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:101:16","data-matrix-name":"span","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"101","data-component-file":"Layout.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22whitespace-nowrap%22%7D",children:"GitHub"})]}),e?d.jsxs(ga,{onClick:s,variant:"outline",size:"sm",className:"text-white border-white hover:bg-white hover:text-red-600","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:105:16","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"105","data-component-file":"Layout.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22onClick%22%3A%22%5BIdentifier%5D%22%2C%22variant%22%3A%22outline%22%2C%22size%22%3A%22sm%22%2C%22className%22%3A%22text-white%20border-white%20hover%3Abg-white%20hover%3Atext-red-600%22%7D",children:[d.jsx(dD,{className:"h-4 w-4 mr-1","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:111:18","data-matrix-name":"LogOut","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"111","data-component-file":"Layout.tsx","data-component-name":"LogOut","data-component-content":"%7B%22className%22%3A%22h-4%20w-4%20mr-1%22%7D"}),d.jsx("span",{className:"hidden lg:inline","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:112:18","data-matrix-name":"span","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"112","data-component-file":"Layout.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22hidden%20lg%3Ainline%22%7D",children:"登出"})]}):d.jsxs("div",{className:"flex items-center space-x-2","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:115:16","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"115","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-center%20space-x-2%22%7D",children:[d.jsx(Oo,{to:"/login","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:116:18","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"116","data-component-file":"Layout.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Flogin%22%7D",children:d.jsx(ga,{variant:"outline",size:"sm",className:"text-white border-white hover:bg-white hover:text-red-600","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:117:20","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"117","data-component-file":"Layout.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22variant%22%3A%22outline%22%2C%22size%22%3A%22sm%22%2C%22className%22%3A%22text-white%20border-white%20hover%3Abg-white%20hover%3Atext-red-600%22%7D",children:"登录"})}),d.jsx(Oo,{to:"/register","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:121:18","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"121","data-component-file":"Layout.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Fregister%22%7D",children:d.jsx(ga,{variant:"secondary",size:"sm","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:122:20","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"122","data-component-file":"Layout.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22variant%22%3A%22secondary%22%2C%22size%22%3A%22sm%22%7D",children:"注册"})})]})]}),d.jsx("div",{className:"md:hidden","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:131:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"131","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22md%3Ahidden%22%7D",children:d.jsx("button",{onClick:l,className:"p-2 rounded-lg text-white hover:bg-white/10 transition-colors duration-200","aria-label":"切换菜单","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:132:14","data-matrix-name":"button","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"132","data-component-file":"Layout.tsx","data-component-name":"button","data-component-content":"%7B%22onClick%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22p-2%20rounded-lg%20text-white%20hover%3Abg-white%2F10%20transition-colors%20duration-200%22%7D",children:o?d.jsx(LF,{className:"h-6 w-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:138:18","data-matrix-name":"X","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"138","data-component-file":"Layout.tsx","data-component-name":"X","data-component-content":"%7B%22className%22%3A%22h-6%20w-6%22%7D"}):d.jsx(NF,{className:"h-6 w-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:140:18","data-matrix-name":"Menu","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"140","data-component-file":"Layout.tsx","data-component-name":"Menu","data-component-content":"%7B%22className%22%3A%22h-6%20w-6%22%7D"})})})]})}),d.jsx("div",{className:Mt("md:hidden fixed top-16 left-0 right-0 z-[9999]","bg-red-600/95 backdrop-blur-md border-t border-yellow-500/30","transform transition-all duration-300 ease-in-out",o?"translate-y-0 opacity-100 visible":"-translate-y-2 opacity-0 invisible"),"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:148:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"148","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%7D",children:d.jsxs("div",{className:"px-4 py-4 space-y-2","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:156:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"156","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22px-4%20py-4%20space-y-2%22%7D",children:[c.map(p=>{if(p.requireAuth&&!e)return null;const u=p.icon,x=a.pathname===p.path;return d.jsxs(Oo,{to:p.path,onClick:A,className:Mt("flex items-center space-x-3 px-4 py-3 rounded-lg font-medium transition-all duration-200","border border-transparent",x?"text-yellow-100 bg-white/15 border-yellow-400/50":"text-white hover:text-yellow-100 hover:bg-white/10"),"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:164:16","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"164","data-component-file":"Layout.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%5BMemberExpression%5D%22%2C%22onClick%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22%5BCallExpression%5D%22%7D",children:[d.jsx(u,{className:"h-5 w-5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:176:18","data-matrix-name":"Icon","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"176","data-component-file":"Layout.tsx","data-component-name":"Icon","data-component-content":"%7B%22className%22%3A%22h-5%20w-5%22%7D"}),d.jsx("span",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:177:18","data-matrix-name":"span","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"177","data-component-file":"Layout.tsx","data-component-name":"span",children:p.label})]},p.path)}),d.jsxs("a",{href:"https://github.com/patdelphi/suanming",target:"_blank",rel:"noopener noreferrer",onClick:A,className:"flex items-center space-x-3 px-4 py-3 rounded-lg font-medium transition-all duration-200 border border-transparent text-white hover:text-yellow-100 hover:bg-white/10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:183:12","data-matrix-name":"a","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"183","data-component-file":"Layout.tsx","data-component-name":"a","data-component-content":"%7B%22href%22%3A%22https%3A%2F%2Fgithub.com%2Fpatdelphi%2Fsuanming%22%2C%22target%22%3A%22_blank%22%2C%22rel%22%3A%22noopener%20noreferrer%22%2C%22onClick%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22flex%20items-center%20space-x-3%20px-4%20py-3%20rounded-lg%20font-medium%20transition-all%20duration-200%20border%20border-transparent%20text-white%20hover%3Atext-yellow-100%20hover%3Abg-white%2F10%22%7D",children:[d.jsx(b1,{className:"h-5 w-5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:190:14","data-matrix-name":"Github","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"190","data-component-file":"Layout.tsx","data-component-name":"Github","data-component-content":"%7B%22className%22%3A%22h-5%20w-5%22%7D"}),d.jsx("span",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:191:14","data-matrix-name":"span","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"191","data-component-file":"Layout.tsx","data-component-name":"span",children:"GitHub"})]}),d.jsx("div",{className:"pt-4 border-t border-white/20","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:194:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"194","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22pt-4%20border-t%20border-white%2F20%22%7D",children:e?d.jsxs(ga,{onClick:s,variant:"outline",className:"w-full text-white border-white hover:bg-white hover:text-red-600","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:196:16","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"196","data-component-file":"Layout.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22onClick%22%3A%22%5BIdentifier%5D%22%2C%22variant%22%3A%22outline%22%2C%22className%22%3A%22w-full%20text-white%20border-white%20hover%3Abg-white%20hover%3Atext-red-600%22%7D",children:[d.jsx(dD,{className:"h-5 w-5 mr-2","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:201:18","data-matrix-name":"LogOut","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"201","data-component-file":"Layout.tsx","data-component-name":"LogOut","data-component-content":"%7B%22className%22%3A%22h-5%20w-5%20mr-2%22%7D"}),"登出"]}):d.jsxs("div",{className:"space-y-2","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:205:16","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"205","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22space-y-2%22%7D",children:[d.jsx(Oo,{to:"/login",onClick:A,className:"block","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:206:18","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"206","data-component-file":"Layout.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Flogin%22%2C%22onClick%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22block%22%7D",children:d.jsx(ga,{variant:"outline",className:"w-full text-white border-white hover:bg-white hover:text-red-600","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:207:20","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"207","data-component-file":"Layout.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22variant%22%3A%22outline%22%2C%22className%22%3A%22w-full%20text-white%20border-white%20hover%3Abg-white%20hover%3Atext-red-600%22%7D",children:"登录"})}),d.jsx(Oo,{to:"/register",onClick:A,className:"block","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:211:18","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"211","data-component-file":"Layout.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Fregister%22%2C%22onClick%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22block%22%7D",children:d.jsx(ga,{variant:"secondary",className:"w-full","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:212:20","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"212","data-component-file":"Layout.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22variant%22%3A%22secondary%22%2C%22className%22%3A%22w-full%22%7D",children:"注册"})})]})})]})})]}),d.jsxs("main",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8 relative min-h-[calc(100vh-200px)]","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:224:6","data-matrix-name":"main","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"224","data-component-file":"Layout.tsx","data-component-name":"main","data-component-content":"%7B%22className%22%3A%22max-w-7xl%20mx-auto%20px-4%20sm%3Apx-6%20lg%3Apx-8%20py-6%20md%3Apy-8%20relative%20min-h-%5Bcalc(100vh-200px)%5D%22%7D",children:[d.jsx("div",{className:"hidden lg:block absolute top-0 left-0 w-20 h-20 opacity-10 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:226:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"226","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22hidden%20lg%3Ablock%20absolute%20top-0%20left-0%20w-20%20h-20%20opacity-10%20pointer-events-none%22%7D",children:d.jsx("img",{src:"/chinese_traditional_golden_ornate_frame.png",alt:"",className:"w-full h-full object-contain","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:227:10","data-matrix-name":"img","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"227","data-component-file":"Layout.tsx","data-component-name":"img","data-component-content":"%7B%22src%22%3A%22%2Fchinese_traditional_golden_ornate_frame.png%22%2C%22alt%22%3A%22%22%2C%22className%22%3A%22w-full%20h-full%20object-contain%22%7D"})}),d.jsx("div",{className:"hidden lg:block absolute bottom-0 right-0 w-20 h-20 opacity-10 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:233:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"233","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22hidden%20lg%3Ablock%20absolute%20bottom-0%20right-0%20w-20%20h-20%20opacity-10%20pointer-events-none%22%7D",children:d.jsx("img",{src:"/chinese_traditional_golden_ornate_frame.png",alt:"",className:"w-full h-full object-contain rotate-180","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:234:10","data-matrix-name":"img","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"234","data-component-file":"Layout.tsx","data-component-name":"img","data-component-content":"%7B%22src%22%3A%22%2Fchinese_traditional_golden_ornate_frame.png%22%2C%22alt%22%3A%22%22%2C%22className%22%3A%22w-full%20h-full%20object-contain%20rotate-180%22%7D"})}),o&&d.jsx("div",{className:"fixed inset-0 bg-black/20 z-[9997] md:hidden",onClick:A,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:243:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"243","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22fixed%20inset-0%20bg-black%2F20%20z-%5B9997%5D%20md%3Ahidden%22%2C%22onClick%22%3A%22%5BIdentifier%5D%22%7D"}),d.jsx("div",{className:"relative z-10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:249:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"249","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%20z-10%22%7D",children:t})]}),d.jsx("footer",{className:"mt-auto py-6 md:py-8 border-t border-red-200 bg-gradient-to-br from-yellow-50 to-red-50","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:255:6","data-matrix-name":"footer","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"255","data-component-file":"Layout.tsx","data-component-name":"footer","data-component-content":"%7B%22className%22%3A%22mt-auto%20py-6%20md%3Apy-8%20border-t%20border-red-200%20bg-gradient-to-br%20from-yellow-50%20to-red-50%22%7D",children:d.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:256:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"256","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22max-w-7xl%20mx-auto%20px-4%20sm%3Apx-6%20lg%3Apx-8%22%7D",children:d.jsxs("div",{className:"text-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:257:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"257","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-center%22%7D",children:[d.jsx("div",{className:"w-10 h-10 md:w-12 md:h-12 mx-auto mb-3 md:mb-4 bg-gradient-to-br from-yellow-400 to-yellow-600 rounded-full flex items-center justify-center shadow-lg border-2 border-red-500","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:258:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"258","data-component-file":"Layout.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-10%20h-10%20md%3Aw-12%20md%3Ah-12%20mx-auto%20mb-3%20md%3Amb-4%20bg-gradient-to-br%20from-yellow-400%20to-yellow-600%20rounded-full%20flex%20items-center%20justify-center%20shadow-lg%20border-2%20border-red-500%22%7D",children:d.jsx("img",{src:"/traditional_chinese_gold_red_dragon_symbol.jpg",alt:"龙符",className:"w-6 h-6 md:w-8 md:h-8 rounded-full object-cover","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:259:14","data-matrix-name":"img","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"259","data-component-file":"Layout.tsx","data-component-name":"img","data-component-content":"%7B%22src%22%3A%22%2Ftraditional_chinese_gold_red_dragon_symbol.jpg%22%2C%22alt%22%3A%22%E9%BE%99%E7%AC%A6%22%2C%22className%22%3A%22w-6%20h-6%20md%3Aw-8%20md%3Ah-8%20rounded-full%20object-cover%22%7D"})}),d.jsx("p",{className:"text-red-600 font-medium font-chinese text-sm md:text-base","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:265:12","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"265","data-component-file":"Layout.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-red-600%20font-medium%20font-chinese%20text-sm%20md%3Atext-base%22%7D",children:"神机阁 - 传统智慧与现代科技的完美融合"}),d.jsx("p",{className:"text-gray-500 text-xs md:text-sm mt-1 md:mt-2","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx:268:12","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/Layout.tsx","data-component-line":"268","data-component-file":"Layout.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-gray-500%20text-xs%20md%3Atext-sm%20mt-1%20md%3Amt-2%22%7D",children:"© 2025 AI命理分析平台"})]})})})]})},Ro=ue.forwardRef(({className:t,variant:e="default",padding:n="md",children:a,...o},r)=>{const s=["relative","transition-all duration-300 ease-in-out","font-chinese hover-lift animate-fade-in-up"],c={default:["bg-white/90 backdrop-blur-sm","border border-paper-300","rounded-lg","shadow-chinese-sm hover:shadow-chinese"],elevated:["bg-white/95 backdrop-blur-md","border border-cinnabar-200","rounded-xl","shadow-chinese hover:shadow-chinese-md","hover:-translate-y-1"],bordered:["bg-paper-50/80 backdrop-blur-sm","border-2 border-cinnabar-300","rounded-lg","shadow-paper","before:absolute before:inset-2","before:border before:border-gold-300/50","before:rounded-md before:pointer-events-none"],golden:["bg-gold-gradient","border-2 border-gold-600","rounded-xl","shadow-gold hover:shadow-gold","text-ink-900","before:absolute before:inset-0","before:bg-gradient-to-br before:from-white/20 before:to-transparent","before:rounded-xl before:pointer-events-none"]},l={sm:"p-4",md:"p-6",lg:"p-8"},A=["max-md:p-4","max-md:rounded-lg"];return d.jsx("div",{className:Mt(s,c[e],l[n],A,t),ref:r,...o,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx:70:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx","data-component-line":"70","data-component-file":"ChineseCard.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%2C%22...spread%22%3Atrue%7D",children:a})});Ro.displayName="ChineseCard";const Gi=ue.forwardRef(({className:t,children:e,...n},a)=>d.jsx("div",{className:Mt("flex flex-col space-y-1.5","pb-4 mb-4","border-b border-cinnabar-200",t),ref:a,...n,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx:97:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx","data-component-line":"97","data-component-file":"ChineseCard.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%2C%22...spread%22%3Atrue%7D",children:e}));Gi.displayName="ChineseCardHeader";const _i=ue.forwardRef(({className:t,children:e,...n},a)=>d.jsx("h3",{className:Mt("text-heading-md font-semibold leading-none tracking-tight","text-cinnabar-500",t),ref:a,...n,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx:123:6","data-matrix-name":"h3","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx","data-component-line":"123","data-component-file":"ChineseCard.tsx","data-component-name":"h3","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%2C%22...spread%22%3Atrue%7D",children:e}));_i.displayName="ChineseCardTitle";const ML=ue.forwardRef(({className:t,children:e,...n},a)=>d.jsx("p",{className:Mt("text-body-md text-ink-500","font-chinese","leading-relaxed",t),ref:a,...n,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx:148:6","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx","data-component-line":"148","data-component-file":"ChineseCard.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%2C%22...spread%22%3Atrue%7D",children:e}));ML.displayName="ChineseCardDescription";const wr=ue.forwardRef(({className:t,children:e,...n},a)=>d.jsx("div",{className:Mt("text-ink-900","leading-relaxed",t),ref:a,...n,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx:174:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx","data-component-line":"174","data-component-file":"ChineseCard.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%2C%22...spread%22%3Atrue%7D",children:e}));wr.displayName="ChineseCardContent";const zL=ue.forwardRef(({className:t,children:e,...n},a)=>d.jsx("div",{className:Mt("flex items-center","pt-4 mt-4","border-t border-paper-300",t),ref:a,...n,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx:199:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseCard.tsx","data-component-line":"199","data-component-file":"ChineseCard.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%2C%22...spread%22%3Atrue%7D",children:e}));zL.displayName="ChineseCardFooter";const ZL=()=>{const{user:t}=Pi(),e=[{icon:fa,title:"八字命理",description:"基于传统八字学说,深度分析您的五行平衡、格局特点、四柱信息和人生走向。结合精确节气计算,提供更准确的时间定位",color:"text-red-700",bgColor:"chinese-golden-glow",iconBg:"bg-gradient-to-br from-yellow-400 to-amber-500",link:"/analysis"},{icon:Uc,title:"紫微斗数",description:"通过星曜排布和十二宫位分析,揭示您的性格特质和命运走向。采用星曜亮度算法和四化飞星系统,分析更加精准",color:"text-red-700",bgColor:"chinese-golden-glow",iconBg:"bg-gradient-to-br from-yellow-400 to-amber-500",link:"/analysis"},{icon:ed,title:"易经占卜",description:"运用梅花易数起卦法,解读卦象含义,为您的人生决策提供智慧指引。使用高质量随机数生成,确保卦象的准确性",color:"text-red-700",bgColor:"chinese-golden-glow",iconBg:"bg-gradient-to-br from-yellow-400 to-amber-500",link:"/analysis"}],n=[{icon:lD,title:"AI智能分析",description:"融合人工智能技术,提供个性化推荐和智能分析,让传统命理更加精准"},{icon:EF,title:"专业可靠",description:"基于传统命理典籍,结合现代算法优化,确保分析结果的专业性和准确性"},{icon:n2,title:"高效便捷",description:"智能缓存技术,响应速度提升60-80%,为您提供流畅的使用体验"},{icon:t2,title:"趋势对比",description:"支持历史分析对比,追踪命理变化趋势,为人生规划提供数据支持"}],a=[{number:"10+",label:"核心算法模块",description:"涵盖八字、紫微、易经全方位分析"},{number:"99%",label:"计算准确率",description:"基于传统典籍和现代优化算法"},{number:"24/7",label:"全天候服务",description:"随时随地获得专业命理指导"},{number:"100%",label:"隐私保护",description:"严格保护用户个人信息安全"}];return d.jsxs("div",{className:"space-y-16 relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:72:4","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"72","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22space-y-16%20relative%22%7D",children:[d.jsx("div",{className:"absolute top-0 left-0 w-32 h-32 opacity-20 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:74:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"74","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20top-0%20left-0%20w-32%20h-32%20opacity-20%20pointer-events-none%22%7D",children:d.jsx("img",{src:"/chinese_traditional_golden_ornate_frame.png",alt:"",className:"w-full h-full object-contain","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:75:8","data-matrix-name":"img","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"75","data-component-file":"HomePage.tsx","data-component-name":"img","data-component-content":"%7B%22src%22%3A%22%2Fchinese_traditional_golden_ornate_frame.png%22%2C%22alt%22%3A%22%22%2C%22className%22%3A%22w-full%20h-full%20object-contain%22%7D"})}),d.jsx("div",{className:"absolute top-20 right-0 w-32 h-32 opacity-20 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:81:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"81","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20top-20%20right-0%20w-32%20h-32%20opacity-20%20pointer-events-none%22%7D",children:d.jsx("img",{src:"/chinese_traditional_golden_ornate_frame.png",alt:"",className:"w-full h-full object-contain rotate-90","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:82:8","data-matrix-name":"img","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"82","data-component-file":"HomePage.tsx","data-component-name":"img","data-component-content":"%7B%22src%22%3A%22%2Fchinese_traditional_golden_ornate_frame.png%22%2C%22alt%22%3A%22%22%2C%22className%22%3A%22w-full%20h-full%20object-contain%20rotate-90%22%7D"})}),d.jsxs("div",{className:"text-center space-y-6 md:space-y-8 relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:90:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"90","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-center%20space-y-6%20md%3Aspace-y-8%20relative%22%7D",children:[d.jsxs("div",{className:"relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:91:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"91","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%22%7D",children:[d.jsx("div",{className:"absolute inset-0 flex items-center justify-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:93:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"93","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20inset-0%20flex%20items-center%20justify-center%22%7D",children:d.jsx("div",{className:"w-60 h-60 md:w-80 md:h-80 bg-gradient-to-r from-red-500/30 to-red-600/30 rounded-full blur-3xl","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:94:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"94","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-60%20h-60%20md%3Aw-80%20md%3Ah-80%20bg-gradient-to-r%20from-red-500%2F30%20to-red-600%2F30%20rounded-full%20blur-3xl%22%7D"})}),d.jsx("div",{className:"absolute inset-0 flex items-center justify-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:96:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"96","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20inset-0%20flex%20items-center%20justify-center%22%7D",children:d.jsx("div",{className:"w-80 h-80 md:w-96 md:h-96 bg-gradient-to-r from-yellow-400/20 to-yellow-500/20 rounded-full blur-3xl","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:97:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"97","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-80%20h-80%20md%3Aw-96%20md%3Ah-96%20bg-gradient-to-r%20from-yellow-400%2F20%20to-yellow-500%2F20%20rounded-full%20blur-3xl%22%7D"})}),d.jsxs("div",{className:"relative z-10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:100:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"100","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%20z-10%22%7D",children:[d.jsx("div",{className:"w-12 h-12 md:w-14 md:h-14 mx-auto mb-4 md:mb-6 bg-gradient-to-br from-yellow-400 to-yellow-600 rounded-full flex items-center justify-center shadow-lg border-2 border-red-600","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:102:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"102","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-12%20h-12%20md%3Aw-14%20md%3Ah-14%20mx-auto%20mb-4%20md%3Amb-6%20bg-gradient-to-br%20from-yellow-400%20to-yellow-600%20rounded-full%20flex%20items-center%20justify-center%20shadow-lg%20border-2%20border-red-600%22%7D",children:d.jsx("img",{src:"/traditional_chinese_gold_red_dragon_symbol.jpg",alt:"神机阁",className:"w-8 h-8 md:w-10 md:h-10 rounded-full object-cover","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:103:14","data-matrix-name":"img","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"103","data-component-file":"HomePage.tsx","data-component-name":"img","data-component-content":"%7B%22src%22%3A%22%2Ftraditional_chinese_gold_red_dragon_symbol.jpg%22%2C%22alt%22%3A%22%E7%A5%9E%E6%9C%BA%E9%98%81%22%2C%22className%22%3A%22w-8%20h-8%20md%3Aw-10%20md%3Ah-10%20rounded-full%20object-cover%22%7D"})}),d.jsxs("h1",{className:"text-display-xl font-bold text-red-600 mb-4 md:mb-6 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:110:12","data-matrix-name":"h1","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"110","data-component-file":"HomePage.tsx","data-component-name":"h1","data-component-content":"%7B%22className%22%3A%22text-display-xl%20font-bold%20text-red-600%20mb-4%20md%3Amb-6%20font-chinese%22%7D",children:["神机阁",d.jsx("span",{className:"block text-display-md text-yellow-600 mt-2","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:112:14","data-matrix-name":"span","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"112","data-component-file":"HomePage.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22block%20text-display-md%20text-yellow-600%20mt-2%22%7D",children:"专业命理分析平台"})]}),d.jsx("p",{className:"text-body-xl text-gray-700 max-w-2xl lg:max-w-3xl mx-auto leading-relaxed font-chinese px-4 mb-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:116:12","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"116","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-body-xl%20text-gray-700%20max-w-2xl%20lg%3Amax-w-3xl%20mx-auto%20leading-relaxed%20font-chinese%20px-4%20mb-6%22%7D",children:"融合传统命理智慧与现代AI技术,为您提供个性化、专业化的命理解读和人生指导"}),d.jsxs("div",{className:"max-w-4xl mx-auto px-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:119:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"119","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22max-w-4xl%20mx-auto%20px-4%22%7D",children:[d.jsx("p",{className:"text-body-md text-gray-600 leading-relaxed font-chinese mb-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:120:14","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"120","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-body-md%20text-gray-600%20leading-relaxed%20font-chinese%20mb-4%22%7D",children:"神机阁是一个专业的命理分析平台,采用模块化架构设计,集成了10余个核心算法模块。 我们基于传统命理典籍,结合现代计算技术,为用户提供准确、专业的命理分析服务。"}),d.jsx("p",{className:"text-body-md text-gray-600 leading-relaxed font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:124:14","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"124","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-body-md%20text-gray-600%20leading-relaxed%20font-chinese%22%7D",children:"平台支持八字命理、紫微斗数、易经占卜三大主要分析方式, 并融入AI智能推荐、历史趋势对比等现代化功能,让古老的命理智慧焕发新的活力。"})]})]})]}),d.jsx("div",{className:"flex flex-col sm:flex-row gap-3 md:gap-4 justify-center items-center relative z-10 px-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:132:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"132","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20flex-col%20sm%3Aflex-row%20gap-3%20md%3Agap-4%20justify-center%20items-center%20relative%20z-10%20px-4%22%7D",children:t?d.jsx(Oo,{to:"/analysis",className:"w-full sm:w-auto","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:134:12","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"134","data-component-file":"HomePage.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Fanalysis%22%2C%22className%22%3A%22w-full%20sm%3Aw-auto%22%7D",children:d.jsxs(ga,{size:"lg",className:"w-full","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:135:14","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"135","data-component-file":"HomePage.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22size%22%3A%22lg%22%2C%22className%22%3A%22w-full%22%7D",children:[d.jsx(fa,{className:"mr-2 h-5 w-5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:136:16","data-matrix-name":"Sparkles","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"136","data-component-file":"HomePage.tsx","data-component-name":"Sparkles","data-component-content":"%7B%22className%22%3A%22mr-2%20h-5%20w-5%22%7D"}),"开始分析"]})}):d.jsxs(d.Fragment,{children:[d.jsx(Oo,{to:"/register",className:"w-full sm:w-auto","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:142:14","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"142","data-component-file":"HomePage.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Fregister%22%2C%22className%22%3A%22w-full%20sm%3Aw-auto%22%7D",children:d.jsxs(ga,{variant:"secondary",size:"lg",className:"w-full","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:143:16","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"143","data-component-file":"HomePage.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22variant%22%3A%22secondary%22%2C%22size%22%3A%22lg%22%2C%22className%22%3A%22w-full%22%7D",children:[d.jsx($m,{className:"mr-2 h-5 w-5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:144:18","data-matrix-name":"Heart","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"144","data-component-file":"HomePage.tsx","data-component-name":"Heart","data-component-content":"%7B%22className%22%3A%22mr-2%20h-5%20w-5%22%7D"}),"免费注册"]})}),d.jsx(Oo,{to:"/login",className:"w-full sm:w-auto","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:148:14","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"148","data-component-file":"HomePage.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Flogin%22%2C%22className%22%3A%22w-full%20sm%3Aw-auto%22%7D",children:d.jsx(ga,{variant:"outline",size:"lg",className:"w-full","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:149:16","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"149","data-component-file":"HomePage.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22variant%22%3A%22outline%22%2C%22size%22%3A%22lg%22%2C%22className%22%3A%22w-full%22%7D",children:"登录账户"})})]})})]}),d.jsxs("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6 relative max-w-6xl mx-auto px-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:159:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"159","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22grid%20sm%3Agrid-cols-2%20lg%3Agrid-cols-3%20gap-4%20md%3Agap-6%20relative%20max-w-6xl%20mx-auto%20px-4%22%7D",children:[d.jsx("div",{className:"absolute -left-12 top-1/4 w-16 h-16 opacity-15 pointer-events-none hidden xl:block","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:161:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"161","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20-left-12%20top-1%2F4%20w-16%20h-16%20opacity-15%20pointer-events-none%20hidden%20xl%3Ablock%22%7D",children:d.jsx("img",{src:"/chinese_traditional_red_gold_auspicious_cloud_pattern.jpg",alt:"",className:"w-full h-full object-cover rounded-lg","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:162:10","data-matrix-name":"img","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"162","data-component-file":"HomePage.tsx","data-component-name":"img","data-component-content":"%7B%22src%22%3A%22%2Fchinese_traditional_red_gold_auspicious_cloud_pattern.jpg%22%2C%22alt%22%3A%22%22%2C%22className%22%3A%22w-full%20h-full%20object-cover%20rounded-lg%22%7D"})}),d.jsx("div",{className:"absolute -right-12 bottom-1/4 w-16 h-16 opacity-15 pointer-events-none hidden xl:block","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:168:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"168","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20-right-12%20bottom-1%2F4%20w-16%20h-16%20opacity-15%20pointer-events-none%20hidden%20xl%3Ablock%22%7D",children:d.jsx("img",{src:"/chinese_traditional_red_gold_auspicious_cloud_pattern.jpg",alt:"",className:"w-full h-full object-cover rounded-lg","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:169:10","data-matrix-name":"img","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"169","data-component-file":"HomePage.tsx","data-component-name":"img","data-component-content":"%7B%22src%22%3A%22%2Fchinese_traditional_red_gold_auspicious_cloud_pattern.jpg%22%2C%22alt%22%3A%22%22%2C%22className%22%3A%22w-full%20h-full%20object-cover%20rounded-lg%22%7D"})}),e.map((o,r)=>{const s=o.icon;return d.jsxs(Ro,{variant:"elevated",className:"text-center sm:col-span-1 lg:col-span-1 last:sm:col-span-2 last:lg:col-span-1","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:179:12","data-matrix-name":"ChineseCard","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"179","data-component-file":"HomePage.tsx","data-component-name":"ChineseCard","data-component-content":"%7B%22variant%22%3A%22elevated%22%2C%22className%22%3A%22text-center%20sm%3Acol-span-1%20lg%3Acol-span-1%20last%3Asm%3Acol-span-2%20last%3Alg%3Acol-span-1%22%7D",children:[d.jsxs(Gi,{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:180:14","data-matrix-name":"ChineseCardHeader","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"180","data-component-file":"HomePage.tsx","data-component-name":"ChineseCardHeader",children:[d.jsx("div",{className:"w-12 h-12 md:w-14 md:h-14 bg-gradient-to-br from-yellow-400 to-yellow-600 rounded-full flex items-center justify-center mx-auto mb-3 md:mb-4 shadow-lg border-2 border-red-600","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:181:16","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"181","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-12%20h-12%20md%3Aw-14%20md%3Ah-14%20bg-gradient-to-br%20from-yellow-400%20to-yellow-600%20rounded-full%20flex%20items-center%20justify-center%20mx-auto%20mb-3%20md%3Amb-4%20shadow-lg%20border-2%20border-red-600%22%7D",children:d.jsx(s,{className:"h-6 w-6 md:h-7 md:w-7 text-red-800","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:182:18","data-matrix-name":"Icon","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"182","data-component-file":"HomePage.tsx","data-component-name":"Icon","data-component-content":"%7B%22className%22%3A%22h-6%20w-6%20md%3Ah-7%20md%3Aw-7%20text-red-800%22%7D"})}),d.jsx(_i,{className:"text-red-600 text-heading-md font-bold font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:184:16","data-matrix-name":"ChineseCardTitle","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"184","data-component-file":"HomePage.tsx","data-component-name":"ChineseCardTitle","data-component-content":"%7B%22className%22%3A%22text-red-600%20text-heading-md%20font-bold%20font-chinese%22%7D",children:o.title})]}),d.jsxs(wr,{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:186:14","data-matrix-name":"ChineseCardContent","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"186","data-component-file":"HomePage.tsx","data-component-name":"ChineseCardContent",children:[d.jsx("p",{className:"text-gray-700 leading-relaxed font-chinese mb-4 text-body-md","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:187:16","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"187","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-gray-700%20leading-relaxed%20font-chinese%20mb-4%20text-body-md%22%7D",children:o.description}),t&&d.jsx(Oo,{to:o.link,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:189:18","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"189","data-component-file":"HomePage.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%5BMemberExpression%5D%22%7D",children:d.jsx(ga,{variant:"secondary",className:"w-full","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:190:20","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"190","data-component-file":"HomePage.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22variant%22%3A%22secondary%22%2C%22className%22%3A%22w-full%22%7D",children:"立即体验"})})]})]},r)})]}),d.jsxs("div",{className:"max-w-6xl mx-auto px-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:202:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"202","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22max-w-6xl%20mx-auto%20px-4%22%7D",children:[d.jsxs("div",{className:"text-center mb-12","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:203:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"203","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-center%20mb-12%22%7D",children:[d.jsx("h2",{className:"text-display-lg font-bold text-red-600 mb-4 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:204:10","data-matrix-name":"h2","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"204","data-component-file":"HomePage.tsx","data-component-name":"h2","data-component-content":"%7B%22className%22%3A%22text-display-lg%20font-bold%20text-red-600%20mb-4%20font-chinese%22%7D",children:"平台优势"}),d.jsx("p",{className:"text-body-lg text-gray-600 max-w-2xl mx-auto font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:205:10","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"205","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-body-lg%20text-gray-600%20max-w-2xl%20mx-auto%20font-chinese%22%7D",children:"结合传统智慧与现代技术,为您提供更准确、更便捷的命理分析体验"})]}),d.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:210:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"210","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22grid%20sm%3Agrid-cols-2%20lg%3Agrid-cols-4%20gap-6%22%7D",children:n.map((o,r)=>{const s=o.icon;return d.jsx(Ro,{variant:"bordered",className:"text-center hover:shadow-lg transition-shadow","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:214:14","data-matrix-name":"ChineseCard","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"214","data-component-file":"HomePage.tsx","data-component-name":"ChineseCard","data-component-content":"%7B%22variant%22%3A%22bordered%22%2C%22className%22%3A%22text-center%20hover%3Ashadow-lg%20transition-shadow%22%7D",children:d.jsxs(wr,{className:"py-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:215:16","data-matrix-name":"ChineseCardContent","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"215","data-component-file":"HomePage.tsx","data-component-name":"ChineseCardContent","data-component-content":"%7B%22className%22%3A%22py-6%22%7D",children:[d.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-blue-600 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:216:18","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"216","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-12%20h-12%20bg-gradient-to-br%20from-blue-500%20to-blue-600%20rounded-full%20flex%20items-center%20justify-center%20mx-auto%20mb-4%20shadow-md%22%7D",children:d.jsx(s,{className:"h-6 w-6 text-white","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:217:20","data-matrix-name":"Icon","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"217","data-component-file":"HomePage.tsx","data-component-name":"Icon","data-component-content":"%7B%22className%22%3A%22h-6%20w-6%20text-white%22%7D"})}),d.jsx("h3",{className:"text-heading-sm font-bold text-gray-800 mb-2 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:219:18","data-matrix-name":"h3","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"219","data-component-file":"HomePage.tsx","data-component-name":"h3","data-component-content":"%7B%22className%22%3A%22text-heading-sm%20font-bold%20text-gray-800%20mb-2%20font-chinese%22%7D",children:o.title}),d.jsx("p",{className:"text-body-sm text-gray-600 leading-relaxed font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:220:18","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"220","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-body-sm%20text-gray-600%20leading-relaxed%20font-chinese%22%7D",children:o.description})]})},r)})})]}),d.jsx("div",{className:"bg-gradient-to-r from-red-50 to-yellow-50 py-16 mx-4 rounded-2xl border border-red-100","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:229:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"229","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22bg-gradient-to-r%20from-red-50%20to-yellow-50%20py-16%20mx-4%20rounded-2xl%20border%20border-red-100%22%7D",children:d.jsxs("div",{className:"max-w-6xl mx-auto px-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:230:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"230","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22max-w-6xl%20mx-auto%20px-4%22%7D",children:[d.jsxs("div",{className:"text-center mb-12","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:231:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"231","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-center%20mb-12%22%7D",children:[d.jsx("h2",{className:"text-display-lg font-bold text-red-600 mb-4 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:232:12","data-matrix-name":"h2","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"232","data-component-file":"HomePage.tsx","data-component-name":"h2","data-component-content":"%7B%22className%22%3A%22text-display-lg%20font-bold%20text-red-600%20mb-4%20font-chinese%22%7D",children:"平台数据"}),d.jsx("p",{className:"text-body-lg text-gray-600 max-w-2xl mx-auto font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:233:12","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"233","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-body-lg%20text-gray-600%20max-w-2xl%20mx-auto%20font-chinese%22%7D",children:"用数据说话,展现我们的专业实力和服务品质"})]}),d.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-8","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:238:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"238","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22grid%20sm%3Agrid-cols-2%20lg%3Agrid-cols-4%20gap-8%22%7D",children:a.map((o,r)=>d.jsxs("div",{className:"text-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:240:14","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"240","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-center%22%7D",children:[d.jsx("div",{className:"text-display-xl font-bold text-red-600 mb-2 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:241:16","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"241","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-display-xl%20font-bold%20text-red-600%20mb-2%20font-chinese%22%7D",children:o.number}),d.jsx("div",{className:"text-heading-sm font-semibold text-gray-800 mb-2 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:242:16","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"242","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-heading-sm%20font-semibold%20text-gray-800%20mb-2%20font-chinese%22%7D",children:o.label}),d.jsx("div",{className:"text-body-sm text-gray-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:243:16","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"243","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-body-sm%20text-gray-600%20font-chinese%22%7D",children:o.description})]},r))})]})}),d.jsxs("div",{className:"max-w-6xl mx-auto px-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:251:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"251","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22max-w-6xl%20mx-auto%20px-4%22%7D",children:[d.jsxs("div",{className:"text-center mb-12","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:252:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"252","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-center%20mb-12%22%7D",children:[d.jsx("h2",{className:"text-display-lg font-bold text-red-600 mb-4 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:253:10","data-matrix-name":"h2","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"253","data-component-file":"HomePage.tsx","data-component-name":"h2","data-component-content":"%7B%22className%22%3A%22text-display-lg%20font-bold%20text-red-600%20mb-4%20font-chinese%22%7D",children:"技术特色"}),d.jsx("p",{className:"text-body-lg text-gray-600 max-w-2xl mx-auto font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:254:10","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"254","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-body-lg%20text-gray-600%20max-w-2xl%20mx-auto%20font-chinese%22%7D",children:"采用先进的技术架构,确保分析结果的准确性和系统的稳定性"})]}),d.jsxs("div",{className:"grid md:grid-cols-2 gap-8","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:259:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"259","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22grid%20md%3Agrid-cols-2%20gap-8%22%7D",children:[d.jsx(Ro,{variant:"elevated",className:"p-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:260:10","data-matrix-name":"ChineseCard","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"260","data-component-file":"HomePage.tsx","data-component-name":"ChineseCard","data-component-content":"%7B%22variant%22%3A%22elevated%22%2C%22className%22%3A%22p-6%22%7D",children:d.jsxs("div",{className:"flex items-start space-x-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:261:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"261","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-start%20space-x-4%22%7D",children:[d.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-purple-500 to-purple-600 rounded-full flex items-center justify-center flex-shrink-0","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:262:14","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"262","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-12%20h-12%20bg-gradient-to-br%20from-purple-500%20to-purple-600%20rounded-full%20flex%20items-center%20justify-center%20flex-shrink-0%22%7D",children:d.jsx(lD,{className:"h-6 w-6 text-white","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:263:16","data-matrix-name":"Brain","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"263","data-component-file":"HomePage.tsx","data-component-name":"Brain","data-component-content":"%7B%22className%22%3A%22h-6%20w-6%20text-white%22%7D"})}),d.jsxs("div",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:265:14","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"265","data-component-file":"HomePage.tsx","data-component-name":"div",children:[d.jsx("h3",{className:"text-heading-md font-bold text-gray-800 mb-3 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:266:16","data-matrix-name":"h3","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"266","data-component-file":"HomePage.tsx","data-component-name":"h3","data-component-content":"%7B%22className%22%3A%22text-heading-md%20font-bold%20text-gray-800%20mb-3%20font-chinese%22%7D",children:"AI智能优化"}),d.jsxs("ul",{className:"space-y-2 text-body-sm text-gray-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:267:16","data-matrix-name":"ul","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"267","data-component-file":"HomePage.tsx","data-component-name":"ul","data-component-content":"%7B%22className%22%3A%22space-y-2%20text-body-sm%20text-gray-600%20font-chinese%22%7D",children:[d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:268:18","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"268","data-component-file":"HomePage.tsx","data-component-name":"li",children:"• 个性化推荐算法,根据用户行为提供定制化建议"}),d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:269:18","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"269","data-component-file":"HomePage.tsx","data-component-name":"li",children:"• 机器学习模型优化,持续提升分析准确度"}),d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:270:18","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"270","data-component-file":"HomePage.tsx","data-component-name":"li",children:"• 智能缓存机制,响应速度提升60-80%"}),d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:271:18","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"271","data-component-file":"HomePage.tsx","data-component-name":"li",children:"• 用户行为分析,提供更贴心的服务体验"})]})]})]})}),d.jsx(Ro,{variant:"elevated",className:"p-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:277:10","data-matrix-name":"ChineseCard","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"277","data-component-file":"HomePage.tsx","data-component-name":"ChineseCard","data-component-content":"%7B%22variant%22%3A%22elevated%22%2C%22className%22%3A%22p-6%22%7D",children:d.jsxs("div",{className:"flex items-start space-x-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:278:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"278","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-start%20space-x-4%22%7D",children:[d.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-green-500 to-green-600 rounded-full flex items-center justify-center flex-shrink-0","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:279:14","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"279","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-12%20h-12%20bg-gradient-to-br%20from-green-500%20to-green-600%20rounded-full%20flex%20items-center%20justify-center%20flex-shrink-0%22%7D",children:d.jsx(fF,{className:"h-6 w-6 text-white","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:280:16","data-matrix-name":"Award","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"280","data-component-file":"HomePage.tsx","data-component-name":"Award","data-component-content":"%7B%22className%22%3A%22h-6%20w-6%20text-white%22%7D"})}),d.jsxs("div",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:282:14","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"282","data-component-file":"HomePage.tsx","data-component-name":"div",children:[d.jsx("h3",{className:"text-heading-md font-bold text-gray-800 mb-3 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:283:16","data-matrix-name":"h3","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"283","data-component-file":"HomePage.tsx","data-component-name":"h3","data-component-content":"%7B%22className%22%3A%22text-heading-md%20font-bold%20text-gray-800%20mb-3%20font-chinese%22%7D",children:"算法精进"}),d.jsxs("ul",{className:"space-y-2 text-body-sm text-gray-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:284:16","data-matrix-name":"ul","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"284","data-component-file":"HomePage.tsx","data-component-name":"ul","data-component-content":"%7B%22className%22%3A%22space-y-2%20text-body-sm%20text-gray-600%20font-chinese%22%7D",children:[d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:285:18","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"285","data-component-file":"HomePage.tsx","data-component-name":"li",children:"• 精确节气计算,考虑地理位置因素"}),d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:286:18","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"286","data-component-file":"HomePage.tsx","data-component-name":"li",children:"• 星曜亮度算法,优化紫微斗数分析精度"}),d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:287:18","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"287","data-component-file":"HomePage.tsx","data-component-name":"li",children:"• 高质量随机数生成,确保易经卦象准确性"}),d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:288:18","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"288","data-component-file":"HomePage.tsx","data-component-name":"li",children:"• 历史数据对比分析,追踪命理变化趋势"})]})]})]})})]})]}),d.jsx(Ro,{variant:"golden",className:"text-center relative overflow-hidden mx-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:297:6","data-matrix-name":"ChineseCard","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"297","data-component-file":"HomePage.tsx","data-component-name":"ChineseCard","data-component-content":"%7B%22variant%22%3A%22golden%22%2C%22className%22%3A%22text-center%20relative%20overflow-hidden%20mx-4%22%7D",children:d.jsxs(wr,{className:"py-12 md:py-16 relative z-10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:298:8","data-matrix-name":"ChineseCardContent","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"298","data-component-file":"HomePage.tsx","data-component-name":"ChineseCardContent","data-component-content":"%7B%22className%22%3A%22py-12%20md%3Apy-16%20relative%20z-10%22%7D",children:[d.jsx("div",{className:"w-16 h-16 md:w-20 md:h-20 mx-auto mb-6 md:mb-8 bg-gradient-to-br from-red-600 to-red-700 rounded-full flex items-center justify-center shadow-2xl border-2 border-red-800","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:299:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"299","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-16%20h-16%20md%3Aw-20%20md%3Ah-20%20mx-auto%20mb-6%20md%3Amb-8%20bg-gradient-to-br%20from-red-600%20to-red-700%20rounded-full%20flex%20items-center%20justify-center%20shadow-2xl%20border-2%20border-red-800%22%7D",children:d.jsx(fa,{className:"w-8 h-8 md:w-10 md:h-10 text-yellow-400","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:300:12","data-matrix-name":"Sparkles","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"300","data-component-file":"HomePage.tsx","data-component-name":"Sparkles","data-component-content":"%7B%22className%22%3A%22w-8%20h-8%20md%3Aw-10%20md%3Ah-10%20text-yellow-400%22%7D"})}),d.jsx("h2",{className:"text-display-lg font-bold mb-4 md:mb-6 font-chinese text-red-800","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:303:10","data-matrix-name":"h2","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"303","data-component-file":"HomePage.tsx","data-component-name":"h2","data-component-content":"%7B%22className%22%3A%22text-display-lg%20font-bold%20mb-4%20md%3Amb-6%20font-chinese%20text-red-800%22%7D",children:"开启您的命理之旅"}),d.jsx("p",{className:"text-red-700 mb-4 text-body-lg font-chinese leading-relaxed px-4 max-w-3xl mx-auto","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:304:10","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"304","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-red-700%20mb-4%20text-body-lg%20font-chinese%20leading-relaxed%20px-4%20max-w-3xl%20mx-auto%22%7D",children:"融合千年命理智慧与现代AI技术,为您提供专业、准确、个性化的命理分析服务"}),d.jsx("p",{className:"text-red-600 mb-8 text-body-md font-chinese px-4 max-w-2xl mx-auto","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:307:10","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"307","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-red-600%20mb-8%20text-body-md%20font-chinese%20px-4%20max-w-2xl%20mx-auto%22%7D",children:"立即体验八字命理、紫微斗数、易经占卜三大分析系统,探索属于您的人生密码"}),d.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:311:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"311","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20flex-col%20sm%3Aflex-row%20gap-4%20justify-center%20items-center%22%7D",children:t?d.jsx(Oo,{to:"/analysis","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:328:14","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"328","data-component-file":"HomePage.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Fanalysis%22%7D",children:d.jsxs(ga,{variant:"primary",size:"lg",className:"shadow-xl","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:329:16","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"329","data-component-file":"HomePage.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22variant%22%3A%22primary%22%2C%22size%22%3A%22lg%22%2C%22className%22%3A%22shadow-xl%22%7D",children:[d.jsx(fa,{className:"mr-2 h-5 w-5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:330:18","data-matrix-name":"Sparkles","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"330","data-component-file":"HomePage.tsx","data-component-name":"Sparkles","data-component-content":"%7B%22className%22%3A%22mr-2%20h-5%20w-5%22%7D"}),"开始专业分析"]})}):d.jsxs(d.Fragment,{children:[d.jsx(Oo,{to:"/register","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:314:16","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"314","data-component-file":"HomePage.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Fregister%22%7D",children:d.jsxs(ga,{variant:"primary",size:"lg",className:"shadow-xl w-full sm:w-auto","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:315:18","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"315","data-component-file":"HomePage.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22variant%22%3A%22primary%22%2C%22size%22%3A%22lg%22%2C%22className%22%3A%22shadow-xl%20w-full%20sm%3Aw-auto%22%7D",children:[d.jsx($m,{className:"mr-2 h-5 w-5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:316:20","data-matrix-name":"Heart","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"316","data-component-file":"HomePage.tsx","data-component-name":"Heart","data-component-content":"%7B%22className%22%3A%22mr-2%20h-5%20w-5%22%7D"}),"免费注册体验"]})}),d.jsx(Oo,{to:"/analysis","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:320:16","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"320","data-component-file":"HomePage.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Fanalysis%22%7D",children:d.jsxs(ga,{variant:"secondary",size:"lg",className:"w-full sm:w-auto","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:321:18","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"321","data-component-file":"HomePage.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22variant%22%3A%22secondary%22%2C%22size%22%3A%22lg%22%2C%22className%22%3A%22w-full%20sm%3Aw-auto%22%7D",children:[d.jsx(cd,{className:"mr-2 h-5 w-5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:322:20","data-matrix-name":"BookOpen","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"322","data-component-file":"HomePage.tsx","data-component-name":"BookOpen","data-component-content":"%7B%22className%22%3A%22mr-2%20h-5%20w-5%22%7D"}),"了解更多"]})})]})}),d.jsxs("div",{className:"mt-8 pt-6 border-t border-red-200","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:338:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"338","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22mt-8%20pt-6%20border-t%20border-red-200%22%7D",children:[d.jsx("div",{className:"flex justify-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:339:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"339","data-component-file":"HomePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20justify-center%22%7D",children:d.jsxs("a",{href:"https://github.com/patdelphi/suanming",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center space-x-2 px-4 py-2 rounded-lg bg-gray-800 hover:bg-gray-700 text-white transition-colors duration-200 shadow-md hover:shadow-lg","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:340:14","data-matrix-name":"a","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"340","data-component-file":"HomePage.tsx","data-component-name":"a","data-component-content":"%7B%22href%22%3A%22https%3A%2F%2Fgithub.com%2Fpatdelphi%2Fsuanming%22%2C%22target%22%3A%22_blank%22%2C%22rel%22%3A%22noopener%20noreferrer%22%2C%22className%22%3A%22inline-flex%20items-center%20space-x-2%20px-4%20py-2%20rounded-lg%20bg-gray-800%20hover%3Abg-gray-700%20text-white%20transition-colors%20duration-200%20shadow-md%20hover%3Ashadow-lg%22%7D",children:[d.jsx(b1,{className:"h-5 w-5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:346:16","data-matrix-name":"Github","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"346","data-component-file":"HomePage.tsx","data-component-name":"Github","data-component-content":"%7B%22className%22%3A%22h-5%20w-5%22%7D"}),d.jsx("span",{className:"font-medium","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:347:16","data-matrix-name":"span","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"347","data-component-file":"HomePage.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22font-medium%22%7D",children:"查看GitHub源码"})]})}),d.jsx("p",{className:"text-center text-sm text-gray-600 mt-3 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx:350:12","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/HomePage.tsx","data-component-line":"350","data-component-file":"HomePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-center%20text-sm%20text-gray-600%20mt-3%20font-chinese%22%7D",children:"开源项目,欢迎贡献代码和建议"})]})]})})]})},Mo=ue.forwardRef(({className:t,label:e,error:n,helperText:a,variant:o="default",size:r="md",...s},c)=>{const l=["w-full font-chinese transition-all duration-200 ease-in-out","focus:outline-none focus:ring-2 focus:ring-offset-1","disabled:opacity-50 disabled:cursor-not-allowed","placeholder:text-gray-400"],A={default:["bg-white border border-gray-300","hover:border-red-400 focus:border-red-500 focus:ring-red-500/20",n?"border-red-500 focus:border-red-500 focus:ring-red-500/20":""],bordered:["bg-transparent border-2 border-red-300","hover:border-red-500 focus:border-red-600 focus:ring-red-500/20",n?"border-red-500 focus:border-red-600 focus:ring-red-500/20":""],filled:["bg-red-50 border border-red-200","hover:bg-red-100 hover:border-red-300","focus:bg-white focus:border-red-500 focus:ring-red-500/20",n?"bg-red-100 border-red-500 focus:border-red-500 focus:ring-red-500/20":""]},p={sm:["px-3 py-2 text-body-md rounded-md","min-h-[36px]"],md:["px-4 py-2.5 text-body-lg rounded-lg","min-h-[44px]"],lg:["px-5 py-3 text-body-xl rounded-xl","min-h-[52px]"]},u=["touch-manipulation","max-md:text-base"];return d.jsxs("div",{className:"w-full","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:62:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"62","data-component-file":"ChineseInput.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-full%22%7D",children:[e&&d.jsxs("label",{className:"block text-label-lg font-medium text-gray-700 mb-2 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:65:10","data-matrix-name":"label","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"65","data-component-file":"ChineseInput.tsx","data-component-name":"label","data-component-content":"%7B%22className%22%3A%22block%20text-label-lg%20font-medium%20text-gray-700%20mb-2%20font-chinese%22%7D",children:[e,s.required&&d.jsx("span",{className:"text-red-500 ml-1","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:67:31","data-matrix-name":"span","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"67","data-component-file":"ChineseInput.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22text-red-500%20ml-1%22%7D",children:"*"})]}),d.jsxs("div",{className:"relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:72:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"72","data-component-file":"ChineseInput.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%22%7D",children:[d.jsx("input",{className:Mt(l,A[o],p[r],u,t),ref:c,...s,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:73:10","data-matrix-name":"input","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"73","data-component-file":"ChineseInput.tsx","data-component-name":"input","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%2C%22...spread%22%3Atrue%7D"}),n&&d.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:87:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"87","data-component-file":"ChineseInput.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20inset-y-0%20right-0%20pr-3%20flex%20items-center%20pointer-events-none%22%7D",children:d.jsx("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 20 20",fill:"currentColor","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:88:14","data-matrix-name":"svg","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"88","data-component-file":"ChineseInput.tsx","data-component-name":"svg","data-component-content":"%7B%22className%22%3A%22h-5%20w-5%20text-red-500%22%2C%22viewBox%22%3A%220%200%2020%2020%22%2C%22fill%22%3A%22currentColor%22%7D",children:d.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:89:16","data-matrix-name":"path","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"89","data-component-file":"ChineseInput.tsx","data-component-name":"path","data-component-content":"%7B%22fillRule%22%3A%22evenodd%22%2C%22d%22%3A%22M18%2010a8%208%200%2011-16%200%208%208%200%200116%200zm-7%204a1%201%200%2011-2%200%201%201%200%20012%200zm-1-9a1%201%200%2000-1%201v4a1%201%200%20102%200V6a1%201%200%2000-1-1z%22%2C%22clipRule%22%3A%22evenodd%22%7D"})})})]}),(n||a)&&d.jsx("div",{className:"mt-1.5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:97:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"97","data-component-file":"ChineseInput.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22mt-1.5%22%7D",children:n?d.jsx("p",{className:"text-body-sm text-red-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:99:14","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"99","data-component-file":"ChineseInput.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-body-sm%20text-red-600%20font-chinese%22%7D",children:n}):a&&d.jsx("p",{className:"text-body-sm text-gray-500 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx:102:16","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseInput.tsx","data-component-line":"102","data-component-file":"ChineseInput.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-body-sm%20text-gray-500%20font-chinese%22%7D",children:a})})]})});Mo.displayName="ChineseInput";const YL=()=>{const[t,e]=be.useState(""),[n,a]=be.useState(""),[o,r]=be.useState(!1),{signIn:s}=Pi(),c=$A(),l=async A=>{A.preventDefault(),r(!0);try{const{error:p}=await s(t,n);p?zn.error("登录失败:"+p.message):(zn.success("登录成功!"),c("/"))}catch{zn.error("登录过程中发生错误")}finally{r(!1)}};return d.jsxs("div",{className:"min-h-[80vh] flex items-center justify-center px-4 py-8","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:37:4","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"37","data-component-file":"LoginPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22min-h-%5B80vh%5D%20flex%20items-center%20justify-center%20px-4%20py-8%22%7D",children:[d.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:39:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"39","data-component-file":"LoginPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20inset-0%20overflow-hidden%20pointer-events-none%22%7D",children:[d.jsx("div",{className:"absolute top-1/4 left-1/4 w-32 h-32 bg-gradient-to-r from-red-500/10 to-yellow-500/10 rounded-full blur-3xl","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:40:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"40","data-component-file":"LoginPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20top-1%2F4%20left-1%2F4%20w-32%20h-32%20bg-gradient-to-r%20from-red-500%2F10%20to-yellow-500%2F10%20rounded-full%20blur-3xl%22%7D"}),d.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-40 h-40 bg-gradient-to-r from-yellow-500/10 to-red-500/10 rounded-full blur-3xl","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:41:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"41","data-component-file":"LoginPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20bottom-1%2F4%20right-1%2F4%20w-40%20h-40%20bg-gradient-to-r%20from-yellow-500%2F10%20to-red-500%2F10%20rounded-full%20blur-3xl%22%7D"})]}),d.jsxs(Ro,{variant:"elevated",className:"w-full max-w-md relative z-10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:44:6","data-matrix-name":"ChineseCard","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"44","data-component-file":"LoginPage.tsx","data-component-name":"ChineseCard","data-component-content":"%7B%22variant%22%3A%22elevated%22%2C%22className%22%3A%22w-full%20max-w-md%20relative%20z-10%22%7D",children:[d.jsxs(Gi,{className:"text-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:45:8","data-matrix-name":"ChineseCardHeader","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"45","data-component-file":"LoginPage.tsx","data-component-name":"ChineseCardHeader","data-component-content":"%7B%22className%22%3A%22text-center%22%7D",children:[d.jsx("div",{className:"w-14 h-14 bg-gradient-to-br from-red-600 to-red-700 rounded-full flex items-center justify-center mx-auto mb-4 shadow-lg border-2 border-yellow-500","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:46:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"46","data-component-file":"LoginPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-14%20h-14%20bg-gradient-to-br%20from-red-600%20to-red-700%20rounded-full%20flex%20items-center%20justify-center%20mx-auto%20mb-4%20shadow-lg%20border-2%20border-yellow-500%22%7D",children:d.jsx(HF,{className:"h-7 w-7 text-yellow-400","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:47:12","data-matrix-name":"LogIn","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"47","data-component-file":"LoginPage.tsx","data-component-name":"LogIn","data-component-content":"%7B%22className%22%3A%22h-7%20w-7%20text-yellow-400%22%7D"})}),d.jsx(_i,{className:"text-2xl md:text-3xl text-red-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:49:10","data-matrix-name":"ChineseCardTitle","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"49","data-component-file":"LoginPage.tsx","data-component-name":"ChineseCardTitle","data-component-content":"%7B%22className%22%3A%22text-2xl%20md%3Atext-3xl%20text-red-600%20font-chinese%22%7D",children:"登录账户"}),d.jsx("p",{className:"text-gray-600 font-chinese mt-2","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:50:10","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"50","data-component-file":"LoginPage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-gray-600%20font-chinese%20mt-2%22%7D",children:"欢迎回到神机阁"})]}),d.jsxs(wr,{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:52:8","data-matrix-name":"ChineseCardContent","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"52","data-component-file":"LoginPage.tsx","data-component-name":"ChineseCardContent",children:[d.jsxs("form",{onSubmit:l,className:"space-y-5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:53:10","data-matrix-name":"form","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"53","data-component-file":"LoginPage.tsx","data-component-name":"form","data-component-content":"%7B%22onSubmit%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22space-y-5%22%7D",children:[d.jsxs("div",{className:"relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:54:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"54","data-component-file":"LoginPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%22%7D",children:[d.jsx(Mo,{type:"email",label:"邮箱地址",value:t,onChange:A=>e(A.target.value),required:!0,placeholder:"请输入您的邮箱",variant:"bordered",className:"pl-10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:55:14","data-matrix-name":"ChineseInput","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"55","data-component-file":"LoginPage.tsx","data-component-name":"ChineseInput","data-component-content":"%7B%22type%22%3A%22email%22%2C%22label%22%3A%22%E9%82%AE%E7%AE%B1%E5%9C%B0%E5%9D%80%22%2C%22value%22%3A%22%5BIdentifier%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22required%22%3Atrue%2C%22placeholder%22%3A%22%E8%AF%B7%E8%BE%93%E5%85%A5%E6%82%A8%E7%9A%84%E9%82%AE%E7%AE%B1%22%2C%22variant%22%3A%22bordered%22%2C%22className%22%3A%22pl-10%22%7D"}),d.jsx(Ij,{className:"absolute left-3 top-9 h-4 w-4 text-gray-400 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:65:14","data-matrix-name":"Mail","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"65","data-component-file":"LoginPage.tsx","data-component-name":"Mail","data-component-content":"%7B%22className%22%3A%22absolute%20left-3%20top-9%20h-4%20w-4%20text-gray-400%20pointer-events-none%22%7D"})]}),d.jsxs("div",{className:"relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:68:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"68","data-component-file":"LoginPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%22%7D",children:[d.jsx(Mo,{type:"password",label:"密码",value:n,onChange:A=>a(A.target.value),required:!0,placeholder:"请输入您的密码",variant:"bordered",className:"pl-10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:69:14","data-matrix-name":"ChineseInput","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"69","data-component-file":"LoginPage.tsx","data-component-name":"ChineseInput","data-component-content":"%7B%22type%22%3A%22password%22%2C%22label%22%3A%22%E5%AF%86%E7%A0%81%22%2C%22value%22%3A%22%5BIdentifier%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22required%22%3Atrue%2C%22placeholder%22%3A%22%E8%AF%B7%E8%BE%93%E5%85%A5%E6%82%A8%E7%9A%84%E5%AF%86%E7%A0%81%22%2C%22variant%22%3A%22bordered%22%2C%22className%22%3A%22pl-10%22%7D"}),d.jsx(w1,{className:"absolute left-3 top-9 h-4 w-4 text-gray-400 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:79:14","data-matrix-name":"Lock","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"79","data-component-file":"LoginPage.tsx","data-component-name":"Lock","data-component-content":"%7B%22className%22%3A%22absolute%20left-3%20top-9%20h-4%20w-4%20text-gray-400%20pointer-events-none%22%7D"})]}),d.jsx(ga,{type:"submit",size:"lg",className:"w-full mt-6",disabled:o,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:82:12","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"82","data-component-file":"LoginPage.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22type%22%3A%22submit%22%2C%22size%22%3A%22lg%22%2C%22className%22%3A%22w-full%20mt-6%22%2C%22disabled%22%3A%22%5BIdentifier%5D%22%7D",children:o?"登录中...":"登录"})]}),d.jsx("div",{className:"mt-6 text-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:92:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"92","data-component-file":"LoginPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22mt-6%20text-center%22%7D",children:d.jsxs("p",{className:"text-gray-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:93:12","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"93","data-component-file":"LoginPage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-gray-600%20font-chinese%22%7D",children:["还没有账户?",d.jsx(Oo,{to:"/register",className:"text-red-600 hover:text-red-700 font-medium ml-1 transition-colors duration-200","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx:95:14","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/LoginPage.tsx","data-component-line":"95","data-component-file":"LoginPage.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Fregister%22%2C%22className%22%3A%22text-red-600%20hover%3Atext-red-700%20font-medium%20ml-1%20transition-colors%20duration-200%22%7D",children:"立即注册"})]})})]})]})]})},KL=()=>{const[t,e]=be.useState(""),[n,a]=be.useState(""),[o,r]=be.useState(""),[s,c]=be.useState(!1),{signUp:l}=Pi(),A=$A(),p=async u=>{if(u.preventDefault(),n!==o){zn.error("两次输入的密码不一致");return}if(n.length<6){zn.error("密码长度不能少于6位");return}c(!0);try{const{error:x}=await l(t,n);x?zn.error("注册失败:"+x.message):(zn.success("注册成功!欢迎加入神机阁"),A("/profile"))}catch{zn.error("注册过程中发生错误")}finally{c(!1)}};return d.jsxs("div",{className:"min-h-[80vh] flex items-center justify-center px-4 py-8","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:49:4","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"49","data-component-file":"RegisterPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22min-h-%5B80vh%5D%20flex%20items-center%20justify-center%20px-4%20py-8%22%7D",children:[d.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:51:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"51","data-component-file":"RegisterPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20inset-0%20overflow-hidden%20pointer-events-none%22%7D",children:[d.jsx("div",{className:"absolute top-1/3 left-1/3 w-36 h-36 bg-gradient-to-r from-yellow-500/10 to-red-500/10 rounded-full blur-3xl","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:52:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"52","data-component-file":"RegisterPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20top-1%2F3%20left-1%2F3%20w-36%20h-36%20bg-gradient-to-r%20from-yellow-500%2F10%20to-red-500%2F10%20rounded-full%20blur-3xl%22%7D"}),d.jsx("div",{className:"absolute bottom-1/3 right-1/3 w-44 h-44 bg-gradient-to-r from-red-500/10 to-yellow-500/10 rounded-full blur-3xl","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:53:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"53","data-component-file":"RegisterPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20bottom-1%2F3%20right-1%2F3%20w-44%20h-44%20bg-gradient-to-r%20from-red-500%2F10%20to-yellow-500%2F10%20rounded-full%20blur-3xl%22%7D"})]}),d.jsxs(Ro,{variant:"elevated",className:"w-full max-w-md relative z-10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:56:6","data-matrix-name":"ChineseCard","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"56","data-component-file":"RegisterPage.tsx","data-component-name":"ChineseCard","data-component-content":"%7B%22variant%22%3A%22elevated%22%2C%22className%22%3A%22w-full%20max-w-md%20relative%20z-10%22%7D",children:[d.jsxs(Gi,{className:"text-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:57:8","data-matrix-name":"ChineseCardHeader","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"57","data-component-file":"RegisterPage.tsx","data-component-name":"ChineseCardHeader","data-component-content":"%7B%22className%22%3A%22text-center%22%7D",children:[d.jsx("div",{className:"w-14 h-14 bg-gradient-to-br from-yellow-500 to-yellow-600 rounded-full flex items-center justify-center mx-auto mb-4 shadow-lg border-2 border-red-600","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:58:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"58","data-component-file":"RegisterPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-14%20h-14%20bg-gradient-to-br%20from-yellow-500%20to-yellow-600%20rounded-full%20flex%20items-center%20justify-center%20mx-auto%20mb-4%20shadow-lg%20border-2%20border-red-600%22%7D",children:d.jsx(FF,{className:"h-7 w-7 text-red-800","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:59:12","data-matrix-name":"UserPlus","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"59","data-component-file":"RegisterPage.tsx","data-component-name":"UserPlus","data-component-content":"%7B%22className%22%3A%22h-7%20w-7%20text-red-800%22%7D"})}),d.jsx(_i,{className:"text-2xl md:text-3xl text-red-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:61:10","data-matrix-name":"ChineseCardTitle","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"61","data-component-file":"RegisterPage.tsx","data-component-name":"ChineseCardTitle","data-component-content":"%7B%22className%22%3A%22text-2xl%20md%3Atext-3xl%20text-red-600%20font-chinese%22%7D",children:"创建账户"}),d.jsx("p",{className:"text-gray-600 font-chinese mt-2","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:62:10","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"62","data-component-file":"RegisterPage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-gray-600%20font-chinese%20mt-2%22%7D",children:"加入神机阁,开启您的命理之旅"})]}),d.jsxs(wr,{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:64:8","data-matrix-name":"ChineseCardContent","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"64","data-component-file":"RegisterPage.tsx","data-component-name":"ChineseCardContent",children:[d.jsxs("form",{onSubmit:p,className:"space-y-5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:65:10","data-matrix-name":"form","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"65","data-component-file":"RegisterPage.tsx","data-component-name":"form","data-component-content":"%7B%22onSubmit%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22space-y-5%22%7D",children:[d.jsxs("div",{className:"relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:66:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"66","data-component-file":"RegisterPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%22%7D",children:[d.jsx(Mo,{type:"email",label:"邮箱地址",value:t,onChange:u=>e(u.target.value),required:!0,placeholder:"请输入您的邮箱",variant:"bordered",className:"pl-10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:67:14","data-matrix-name":"ChineseInput","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"67","data-component-file":"RegisterPage.tsx","data-component-name":"ChineseInput","data-component-content":"%7B%22type%22%3A%22email%22%2C%22label%22%3A%22%E9%82%AE%E7%AE%B1%E5%9C%B0%E5%9D%80%22%2C%22value%22%3A%22%5BIdentifier%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22required%22%3Atrue%2C%22placeholder%22%3A%22%E8%AF%B7%E8%BE%93%E5%85%A5%E6%82%A8%E7%9A%84%E9%82%AE%E7%AE%B1%22%2C%22variant%22%3A%22bordered%22%2C%22className%22%3A%22pl-10%22%7D"}),d.jsx(Ij,{className:"absolute left-3 top-9 h-4 w-4 text-gray-400 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:77:14","data-matrix-name":"Mail","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"77","data-component-file":"RegisterPage.tsx","data-component-name":"Mail","data-component-content":"%7B%22className%22%3A%22absolute%20left-3%20top-9%20h-4%20w-4%20text-gray-400%20pointer-events-none%22%7D"})]}),d.jsxs("div",{className:"relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:80:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"80","data-component-file":"RegisterPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%22%7D",children:[d.jsx(Mo,{type:"password",label:"密码",value:n,onChange:u=>a(u.target.value),required:!0,placeholder:"请输入您的密码(不少于6位)",variant:"bordered",className:"pl-10",helperText:"密码长度不能少于6位","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:81:14","data-matrix-name":"ChineseInput","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"81","data-component-file":"RegisterPage.tsx","data-component-name":"ChineseInput","data-component-content":"%7B%22type%22%3A%22password%22%2C%22label%22%3A%22%E5%AF%86%E7%A0%81%22%2C%22value%22%3A%22%5BIdentifier%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22required%22%3Atrue%2C%22placeholder%22%3A%22%E8%AF%B7%E8%BE%93%E5%85%A5%E6%82%A8%E7%9A%84%E5%AF%86%E7%A0%81%EF%BC%88%E4%B8%8D%E5%B0%91%E4%BA%8E6%E4%BD%8D%EF%BC%89%22%2C%22variant%22%3A%22bordered%22%2C%22className%22%3A%22pl-10%22%2C%22helperText%22%3A%22%E5%AF%86%E7%A0%81%E9%95%BF%E5%BA%A6%E4%B8%8D%E8%83%BD%E5%B0%91%E4%BA%8E6%E4%BD%8D%22%7D"}),d.jsx(w1,{className:"absolute left-3 top-9 h-4 w-4 text-gray-400 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:92:14","data-matrix-name":"Lock","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"92","data-component-file":"RegisterPage.tsx","data-component-name":"Lock","data-component-content":"%7B%22className%22%3A%22absolute%20left-3%20top-9%20h-4%20w-4%20text-gray-400%20pointer-events-none%22%7D"})]}),d.jsxs("div",{className:"relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:95:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"95","data-component-file":"RegisterPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%22%7D",children:[d.jsx(Mo,{type:"password",label:"确认密码",value:o,onChange:u=>r(u.target.value),required:!0,placeholder:"请再次输入密码",variant:"bordered",className:"pl-10",error:o&&n!==o?"两次输入的密码不一致":void 0,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:96:14","data-matrix-name":"ChineseInput","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"96","data-component-file":"RegisterPage.tsx","data-component-name":"ChineseInput","data-component-content":"%7B%22type%22%3A%22password%22%2C%22label%22%3A%22%E7%A1%AE%E8%AE%A4%E5%AF%86%E7%A0%81%22%2C%22value%22%3A%22%5BIdentifier%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22required%22%3Atrue%2C%22placeholder%22%3A%22%E8%AF%B7%E5%86%8D%E6%AC%A1%E8%BE%93%E5%85%A5%E5%AF%86%E7%A0%81%22%2C%22variant%22%3A%22bordered%22%2C%22className%22%3A%22pl-10%22%2C%22error%22%3A%22%5BConditionalExpression%5D%22%7D"}),d.jsx(w1,{className:"absolute left-3 top-9 h-4 w-4 text-gray-400 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:107:14","data-matrix-name":"Lock","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"107","data-component-file":"RegisterPage.tsx","data-component-name":"Lock","data-component-content":"%7B%22className%22%3A%22absolute%20left-3%20top-9%20h-4%20w-4%20text-gray-400%20pointer-events-none%22%7D"})]}),d.jsx(ga,{type:"submit",variant:"secondary",size:"lg",className:"w-full mt-6",disabled:s,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:110:12","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"110","data-component-file":"RegisterPage.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22type%22%3A%22submit%22%2C%22variant%22%3A%22secondary%22%2C%22size%22%3A%22lg%22%2C%22className%22%3A%22w-full%20mt-6%22%2C%22disabled%22%3A%22%5BIdentifier%5D%22%7D",children:s?"注册中...":"注册账户"})]}),d.jsx("div",{className:"mt-6 text-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:121:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"121","data-component-file":"RegisterPage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22mt-6%20text-center%22%7D",children:d.jsxs("p",{className:"text-gray-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:122:12","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"122","data-component-file":"RegisterPage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-gray-600%20font-chinese%22%7D",children:["已有账户?",d.jsx(Oo,{to:"/login",className:"text-red-600 hover:text-red-700 font-medium ml-1 transition-colors duration-200","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx:124:14","data-matrix-name":"Link","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/RegisterPage.tsx","data-component-line":"124","data-component-file":"RegisterPage.tsx","data-component-name":"Link","data-component-content":"%7B%22to%22%3A%22%2Flogin%22%2C%22className%22%3A%22text-red-600%20hover%3Atext-red-700%20font-medium%20ml-1%20transition-colors%20duration-200%22%7D",children:"立即登录"})]})})]})]})]})},G3=ue.forwardRef(({className:t,label:e,error:n,helperText:a,variant:o="default",size:r="md",options:s,placeholder:c,...l},A)=>{const p=["w-full font-chinese transition-all duration-200 ease-in-out","focus:outline-none focus:ring-2 focus:ring-offset-1","disabled:opacity-50 disabled:cursor-not-allowed","appearance-none cursor-pointer","bg-no-repeat bg-right"],u={default:["bg-white border border-gray-300","hover:border-red-400 focus:border-red-500 focus:ring-red-500/20",n?"border-red-500 focus:border-red-500 focus:ring-red-500/20":""],bordered:["bg-transparent border-2 border-red-300","hover:border-red-500 focus:border-red-600 focus:ring-red-500/20",n?"border-red-500 focus:border-red-600 focus:ring-red-500/20":""],filled:["bg-red-50 border border-red-200","hover:bg-red-100 hover:border-red-300","focus:bg-white focus:border-red-500 focus:ring-red-500/20",n?"bg-red-100 border-red-500 focus:border-red-500 focus:ring-red-500/20":""]},x={sm:["px-3 py-2 pr-8 text-sm rounded-md","min-h-[36px]"],md:["px-4 py-2.5 pr-10 text-base rounded-lg","min-h-[44px]"],lg:["px-5 py-3 pr-12 text-lg rounded-xl","min-h-[52px]"]},h=["touch-manipulation","max-md:text-base"];return d.jsxs("div",{className:"w-full","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:72:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"72","data-component-file":"ChineseSelect.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-full%22%7D",children:[e&&d.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:75:10","data-matrix-name":"label","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"75","data-component-file":"ChineseSelect.tsx","data-component-name":"label","data-component-content":"%7B%22className%22%3A%22block%20text-sm%20font-medium%20text-gray-700%20mb-2%20font-chinese%22%7D",children:[e,l.required&&d.jsx("span",{className:"text-red-500 ml-1","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:77:31","data-matrix-name":"span","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"77","data-component-file":"ChineseSelect.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22text-red-500%20ml-1%22%7D",children:"*"})]}),d.jsxs("div",{className:"relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:82:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"82","data-component-file":"ChineseSelect.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%22%7D",children:[d.jsxs("select",{className:Mt(p,u[o],x[r],h,t),ref:A,...l,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:83:10","data-matrix-name":"select","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"83","data-component-file":"ChineseSelect.tsx","data-component-name":"select","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%2C%22...spread%22%3Atrue%7D",children:[c&&d.jsx("option",{value:"",disabled:!0,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:96:14","data-matrix-name":"option","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"96","data-component-file":"ChineseSelect.tsx","data-component-name":"option","data-component-content":"%7B%22value%22%3A%22%22%2C%22disabled%22%3Atrue%7D",children:c}),s.map(w=>d.jsx("option",{value:w.value,disabled:w.disabled,className:"font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:103:14","data-matrix-name":"option","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"103","data-component-file":"ChineseSelect.tsx","data-component-name":"option","data-component-content":"%7B%22value%22%3A%22%5BMemberExpression%5D%22%2C%22disabled%22%3A%22%5BMemberExpression%5D%22%2C%22className%22%3A%22font-chinese%22%7D",children:w.label},w.value))]}),d.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:115:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"115","data-component-file":"ChineseSelect.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22absolute%20inset-y-0%20right-0%20flex%20items-center%20pointer-events-none%22%7D",children:d.jsx("div",{className:Mt("pr-2",r==="sm"?"pr-2":r==="md"?"pr-3":"pr-4"),"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:116:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"116","data-component-file":"ChineseSelect.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%7D",children:d.jsx(Lj,{className:Mt("text-gray-400",r==="sm"?"h-4 w-4":r==="md"?"h-5 w-5":"h-6 w-6"),"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:120:14","data-matrix-name":"ChevronDown","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"120","data-component-file":"ChineseSelect.tsx","data-component-name":"ChevronDown","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%7D"})})}),n&&d.jsx("div",{className:Mt("absolute inset-y-0 right-0 flex items-center pointer-events-none",r==="sm"?"pr-7":r==="md"?"pr-9":"pr-11"),"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:129:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"129","data-component-file":"ChineseSelect.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%7D",children:d.jsx("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 20 20",fill:"currentColor","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:133:14","data-matrix-name":"svg","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"133","data-component-file":"ChineseSelect.tsx","data-component-name":"svg","data-component-content":"%7B%22className%22%3A%22h-5%20w-5%20text-red-500%22%2C%22viewBox%22%3A%220%200%2020%2020%22%2C%22fill%22%3A%22currentColor%22%7D",children:d.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:134:16","data-matrix-name":"path","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"134","data-component-file":"ChineseSelect.tsx","data-component-name":"path","data-component-content":"%7B%22fillRule%22%3A%22evenodd%22%2C%22d%22%3A%22M18%2010a8%208%200%2011-16%200%208%208%200%200116%200zm-7%204a1%201%200%2011-2%200%201%201%200%20012%200zm-1-9a1%201%200%2000-1%201v4a1%201%200%20102%200V6a1%201%200%2000-1-1z%22%2C%22clipRule%22%3A%22evenodd%22%7D"})})})]}),(n||a)&&d.jsx("div",{className:"mt-1.5","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:142:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"142","data-component-file":"ChineseSelect.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22mt-1.5%22%7D",children:n?d.jsx("p",{className:"text-sm text-red-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:144:14","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"144","data-component-file":"ChineseSelect.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-sm%20text-red-600%20font-chinese%22%7D",children:n}):a&&d.jsx("p",{className:"text-sm text-gray-500 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx:147:16","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/ChineseSelect.tsx","data-component-line":"147","data-component-file":"ChineseSelect.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-sm%20text-gray-500%20font-chinese%22%7D",children:a})})]})});G3.displayName="ChineseSelect";const qL=()=>{const{user:t}=Pi(),e=$A(),[n,a]=be.useState(!1),[o,r]=be.useState(null),[s,c]=be.useState({full_name:"",birth_date:"",birth_time:"",birth_location:"",gender:"male",username:""}),l=be.useCallback(async()=>{if(t)try{const u=await bo.profiles.get();if(u.error)throw new Error(u.error.message);if(u.data&&u.data.profile){const x=u.data.profile;r(x),c({full_name:x.full_name||"",birth_date:x.birth_date||"",birth_time:x.birth_time||"",birth_location:x.birth_location||"",gender:x.gender||"male",username:x.username||""})}}catch(u){console.error("加载档案失败:",u),zn.error("加载档案失败")}},[t]);be.useEffect(()=>{l()},[t,l]);const A=async u=>{if(u.preventDefault(),!!t){a(!0);try{const x={...s},h=await bo.profiles.update(x);if(h.error)throw new Error(h.error.message);h.data&&h.data.profile&&r(h.data.profile),zn.success("档案保存成功!即将跳转到分析页面..."),setTimeout(()=>{e("/analysis")},1500)}catch(x){console.error("保存档案失败:",x),zn.error("保存档案失败:"+x.message)}finally{a(!1)}}},p=(u,x)=>{c(h=>({...h,[u]:x}))};return d.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:98:4","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"98","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22max-w-4xl%20mx-auto%20px-4%20py-6%22%7D",children:[d.jsxs("div",{className:"text-center mb-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:99:6","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"99","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-center%20mb-6%22%7D",children:[d.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-red-600 font-chinese mb-2","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:100:8","data-matrix-name":"h1","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"100","data-component-file":"ProfilePage.tsx","data-component-name":"h1","data-component-content":"%7B%22className%22%3A%22text-2xl%20md%3Atext-3xl%20font-bold%20text-red-600%20font-chinese%20mb-2%22%7D",children:"个人档案"}),d.jsx("p",{className:"text-gray-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:101:8","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"101","data-component-file":"ProfilePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-gray-600%20font-chinese%22%7D",children:"完善您的个人信息,获得更精准的命理分析"})]}),d.jsxs(Ro,{variant:"elevated","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:104:6","data-matrix-name":"ChineseCard","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"104","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseCard","data-component-content":"%7B%22variant%22%3A%22elevated%22%7D",children:[d.jsx(Gi,{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:105:8","data-matrix-name":"ChineseCardHeader","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"105","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseCardHeader",children:d.jsxs("div",{className:"flex items-center space-x-3","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:106:10","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"106","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-center%20space-x-3%22%7D",children:[d.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-full flex items-center justify-center","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:107:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"107","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22w-12%20h-12%20bg-red-100%20rounded-full%20flex%20items-center%20justify-center%22%7D",children:d.jsx(Ys,{className:"h-6 w-6 text-red-600","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:108:14","data-matrix-name":"User","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"108","data-component-file":"ProfilePage.tsx","data-component-name":"User","data-component-content":"%7B%22className%22%3A%22h-6%20w-6%20text-red-600%22%7D"})}),d.jsxs("div",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:110:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"110","data-component-file":"ProfilePage.tsx","data-component-name":"div",children:[d.jsx(_i,{className:"text-red-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:111:14","data-matrix-name":"ChineseCardTitle","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"111","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseCardTitle","data-component-content":"%7B%22className%22%3A%22text-red-600%20font-chinese%22%7D",children:"基本信息"}),d.jsx("p",{className:"text-gray-600 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:112:14","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"112","data-component-file":"ProfilePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-gray-600%20font-chinese%22%7D",children:"请填写准确的个人信息"})]})]})}),d.jsxs(wr,{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:116:8","data-matrix-name":"ChineseCardContent","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"116","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseCardContent",children:[d.jsxs("form",{onSubmit:A,className:"space-y-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:117:10","data-matrix-name":"form","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"117","data-component-file":"ProfilePage.tsx","data-component-name":"form","data-component-content":"%7B%22onSubmit%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22space-y-6%22%7D",children:[d.jsxs("div",{className:"grid md:grid-cols-2 gap-4 md:gap-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:118:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"118","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22grid%20md%3Agrid-cols-2%20gap-4%20md%3Agap-6%22%7D",children:[d.jsx(Mo,{label:"姓名",value:s.full_name,onChange:u=>p("full_name",u.target.value),required:!0,placeholder:"请输入您的真实姓名",variant:"filled","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:119:14","data-matrix-name":"ChineseInput","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"119","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseInput","data-component-content":"%7B%22label%22%3A%22%E5%A7%93%E5%90%8D%22%2C%22value%22%3A%22%5BMemberExpression%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22required%22%3Atrue%2C%22placeholder%22%3A%22%E8%AF%B7%E8%BE%93%E5%85%A5%E6%82%A8%E7%9A%84%E7%9C%9F%E5%AE%9E%E5%A7%93%E5%90%8D%22%2C%22variant%22%3A%22filled%22%7D"}),d.jsx(Mo,{label:"用户名",value:s.username,onChange:u=>p("username",u.target.value),placeholder:"请输入用户名(可选)",variant:"filled","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:128:14","data-matrix-name":"ChineseInput","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"128","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseInput","data-component-content":"%7B%22label%22%3A%22%E7%94%A8%E6%88%B7%E5%90%8D%22%2C%22value%22%3A%22%5BMemberExpression%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22placeholder%22%3A%22%E8%AF%B7%E8%BE%93%E5%85%A5%E7%94%A8%E6%88%B7%E5%90%8D%EF%BC%88%E5%8F%AF%E9%80%89%EF%BC%89%22%2C%22variant%22%3A%22filled%22%7D"})]}),d.jsxs("div",{className:"grid md:grid-cols-2 gap-4 md:gap-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:137:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"137","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22grid%20md%3Agrid-cols-2%20gap-4%20md%3Agap-6%22%7D",children:[d.jsxs("div",{className:"relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:138:14","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"138","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%22%7D",children:[d.jsx(Mo,{type:"date",label:"出生日期",value:s.birth_date,onChange:u=>p("birth_date",u.target.value),required:!0,variant:"filled",className:"pr-10","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:139:16","data-matrix-name":"ChineseInput","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"139","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseInput","data-component-content":"%7B%22type%22%3A%22date%22%2C%22label%22%3A%22%E5%87%BA%E7%94%9F%E6%97%A5%E6%9C%9F%22%2C%22value%22%3A%22%5BMemberExpression%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22required%22%3Atrue%2C%22variant%22%3A%22filled%22%2C%22className%22%3A%22pr-10%22%7D"}),d.jsx(jc,{className:"absolute right-3 top-9 h-4 w-4 text-gray-400 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:148:16","data-matrix-name":"Calendar","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"148","data-component-file":"ProfilePage.tsx","data-component-name":"Calendar","data-component-content":"%7B%22className%22%3A%22absolute%20right-3%20top-9%20h-4%20w-4%20text-gray-400%20pointer-events-none%22%7D"})]}),d.jsx(Mo,{type:"time",label:"出生时间",value:s.birth_time,onChange:u=>p("birth_time",u.target.value),helperText:"选填,但强烈建议填写以提高分析准确性",variant:"filled","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:151:14","data-matrix-name":"ChineseInput","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"151","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseInput","data-component-content":"%7B%22type%22%3A%22time%22%2C%22label%22%3A%22%E5%87%BA%E7%94%9F%E6%97%B6%E9%97%B4%22%2C%22value%22%3A%22%5BMemberExpression%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22helperText%22%3A%22%E9%80%89%E5%A1%AB%EF%BC%8C%E4%BD%86%E5%BC%BA%E7%83%88%E5%BB%BA%E8%AE%AE%E5%A1%AB%E5%86%99%E4%BB%A5%E6%8F%90%E9%AB%98%E5%88%86%E6%9E%90%E5%87%86%E7%A1%AE%E6%80%A7%22%2C%22variant%22%3A%22filled%22%7D"})]}),d.jsxs("div",{className:"grid md:grid-cols-2 gap-4 md:gap-6","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:161:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"161","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22grid%20md%3Agrid-cols-2%20gap-4%20md%3Agap-6%22%7D",children:[d.jsx(G3,{label:"性别",value:s.gender,onChange:u=>p("gender",u.target.value),options:[{value:"male",label:"男性"},{value:"female",label:"女性"}],required:!0,variant:"filled","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:162:14","data-matrix-name":"ChineseSelect","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"162","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseSelect","data-component-content":"%7B%22label%22%3A%22%E6%80%A7%E5%88%AB%22%2C%22value%22%3A%22%5BMemberExpression%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22options%22%3A%5B%22%5BObjectExpression%5D%22%2C%22%5BObjectExpression%5D%22%5D%2C%22required%22%3Atrue%2C%22variant%22%3A%22filled%22%7D"}),d.jsxs("div",{className:"relative","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:174:14","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"174","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22relative%22%7D",children:[d.jsx(Mo,{label:"出生地点",value:s.birth_location,onChange:u=>p("birth_location",u.target.value),placeholder:"如:北京市朝阳区",variant:"filled",className:"pr-10",helperText:"选填,用于更精确的地理位置分析","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:175:16","data-matrix-name":"ChineseInput","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"175","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseInput","data-component-content":"%7B%22label%22%3A%22%E5%87%BA%E7%94%9F%E5%9C%B0%E7%82%B9%22%2C%22value%22%3A%22%5BMemberExpression%5D%22%2C%22onChange%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22placeholder%22%3A%22%E5%A6%82%EF%BC%9A%E5%8C%97%E4%BA%AC%E5%B8%82%E6%9C%9D%E9%98%B3%E5%8C%BA%22%2C%22variant%22%3A%22filled%22%2C%22className%22%3A%22pr-10%22%2C%22helperText%22%3A%22%E9%80%89%E5%A1%AB%EF%BC%8C%E7%94%A8%E4%BA%8E%E6%9B%B4%E7%B2%BE%E7%A1%AE%E7%9A%84%E5%9C%B0%E7%90%86%E4%BD%8D%E7%BD%AE%E5%88%86%E6%9E%90%22%7D"}),d.jsx(Oj,{className:"absolute right-3 top-9 h-4 w-4 text-gray-400 pointer-events-none","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:184:16","data-matrix-name":"MapPin","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"184","data-component-file":"ProfilePage.tsx","data-component-name":"MapPin","data-component-content":"%7B%22className%22%3A%22absolute%20right-3%20top-9%20h-4%20w-4%20text-gray-400%20pointer-events-none%22%7D"})]})]}),d.jsxs("div",{className:"bg-red-50 p-4 rounded-lg border border-red-200","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:188:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"188","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22bg-red-50%20p-4%20rounded-lg%20border%20border-red-200%22%7D",children:[d.jsx("h4",{className:"font-semibold text-red-800 mb-2 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:189:14","data-matrix-name":"h4","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"189","data-component-file":"ProfilePage.tsx","data-component-name":"h4","data-component-content":"%7B%22className%22%3A%22font-semibold%20text-red-800%20mb-2%20font-chinese%22%7D",children:"温馨提示"}),d.jsxs("ul",{className:"text-sm text-red-700 space-y-1 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:190:14","data-matrix-name":"ul","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"190","data-component-file":"ProfilePage.tsx","data-component-name":"ul","data-component-content":"%7B%22className%22%3A%22text-sm%20text-red-700%20space-y-1%20font-chinese%22%7D",children:[d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:191:16","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"191","data-component-file":"ProfilePage.tsx","data-component-name":"li",children:"• 姓名和出生日期是必填项,对命理分析至关重要"}),d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:192:16","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"192","data-component-file":"ProfilePage.tsx","data-component-name":"li",children:"• 出生时间越精确,分析结果越准确"}),d.jsx("li",{"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:193:16","data-matrix-name":"li","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"193","data-component-file":"ProfilePage.tsx","data-component-name":"li",children:"• 出生地点有助于更精准的时间校正"})]})]}),d.jsxs(ga,{type:"submit",className:"w-full mt-6",size:"lg",disabled:n,"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:197:12","data-matrix-name":"ChineseButton","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"197","data-component-file":"ProfilePage.tsx","data-component-name":"ChineseButton","data-component-content":"%7B%22type%22%3A%22submit%22%2C%22className%22%3A%22w-full%20mt-6%22%2C%22size%22%3A%22lg%22%2C%22disabled%22%3A%22%5BIdentifier%5D%22%7D",children:[d.jsx(GF,{className:"mr-2 h-4 w-4","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:203:14","data-matrix-name":"Save","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"203","data-component-file":"ProfilePage.tsx","data-component-name":"Save","data-component-content":"%7B%22className%22%3A%22mr-2%20h-4%20w-4%22%7D"}),n?"保存中...":"保存档案"]})]}),o&&d.jsx("div",{className:"mt-6 pt-6 border-t border-gray-200","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:209:12","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"209","data-component-file":"ProfilePage.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22mt-6%20pt-6%20border-t%20border-gray-200%22%7D",children:d.jsxs("p",{className:"text-sm text-gray-500 font-chinese","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx:210:14","data-matrix-name":"p","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/pages/ProfilePage.tsx","data-component-line":"210","data-component-file":"ProfilePage.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-sm%20text-gray-500%20font-chinese%22%7D",children:["最后更新:",new Date(o.updated_at).toLocaleString("zh-CN")]})})]})]})]})};var I0,gD;function Br(){if(gD)return I0;gD=1;var t=Array.isArray;return I0=t,I0}var O0,hD;function Kj(){if(hD)return O0;hD=1;var t=typeof K2=="object"&&K2&&K2.Object===Object&&K2;return O0=t,O0}var T0,xD;function Si(){if(xD)return T0;xD=1;var t=Kj(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return T0=n,T0}var k0,yD;function a2(){if(yD)return k0;yD=1;var t=Si(),e=t.Symbol;return k0=e,k0}var R0,CD;function $L(){if(CD)return R0;CD=1;var t=a2(),e=Object.prototype,n=e.hasOwnProperty,a=e.toString,o=t?t.toStringTag:void 0;function r(s){var c=n.call(s,o),l=s[o];try{s[o]=void 0;var A=!0}catch{}var p=a.call(s);return A&&(c?s[o]=l:delete s[o]),p}return R0=r,R0}var M0,bD;function WL(){if(bD)return M0;bD=1;var t=Object.prototype,e=t.toString;function n(a){return e.call(a)}return M0=n,M0}var z0,vD;function Tc(){if(vD)return z0;vD=1;var t=a2(),e=$L(),n=WL(),a="[object Null]",o="[object Undefined]",r=t?t.toStringTag:void 0;function s(c){return c==null?c===void 0?o:a:r&&r in Object(c)?e(c):n(c)}return z0=s,z0}var Z0,wD;function kc(){if(wD)return Z0;wD=1;function t(e){return e!=null&&typeof e=="object"}return Z0=t,Z0}var Y0,BD;function VA(){if(BD)return Y0;BD=1;var t=Tc(),e=kc(),n="[object Symbol]";function a(o){return typeof o=="symbol"||e(o)&&t(o)==n}return Y0=a,Y0}var K0,DD;function _3(){if(DD)return K0;DD=1;var t=Br(),e=VA(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(r,s){if(t(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||e(r)?!0:a.test(r)||!n.test(r)||s!=null&&r in Object(s)}return K0=o,K0}var q0,UD;function om(){if(UD)return q0;UD=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return q0=t,q0}var $0,HD;function E3(){if(HD)return $0;HD=1;var t=Tc(),e=om(),n="[object AsyncFunction]",a="[object Function]",o="[object GeneratorFunction]",r="[object Proxy]";function s(c){if(!e(c))return!1;var l=t(c);return l==a||l==o||l==n||l==r}return $0=s,$0}var W0,ND;function VL(){if(ND)return W0;ND=1;var t=Si(),e=t["__core-js_shared__"];return W0=e,W0}var V0,jD;function XL(){if(jD)return V0;jD=1;var t=VL(),e=(function(){var a=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function n(a){return!!e&&e in a}return V0=n,V0}var X0,GD;function qj(){if(GD)return X0;GD=1;var t=Function.prototype,e=t.toString;function n(a){if(a!=null){try{return e.call(a)}catch{}try{return a+""}catch{}}return""}return X0=n,X0}var J0,_D;function JL(){if(_D)return J0;_D=1;var t=E3(),e=XL(),n=om(),a=qj(),o=/[\\^$.*+?()[\]{}|]/g,r=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,A=c.hasOwnProperty,p=RegExp("^"+l.call(A).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function u(x){if(!n(x)||e(x))return!1;var h=t(x)?p:r;return h.test(a(x))}return J0=u,J0}var ex,ED;function eQ(){if(ED)return ex;ED=1;function t(e,n){return e==null?void 0:e[n]}return ex=t,ex}var tx,PD;function md(){if(PD)return tx;PD=1;var t=JL(),e=eQ();function n(a,o){var r=e(a,o);return t(r)?r:void 0}return tx=n,tx}var nx,SD;function Wg(){if(SD)return nx;SD=1;var t=md(),e=t(Object,"create");return nx=e,nx}var ax,FD;function tQ(){if(FD)return ax;FD=1;var t=Wg();function e(){this.__data__=t?t(null):{},this.size=0}return ax=e,ax}var ox,LD;function nQ(){if(LD)return ox;LD=1;function t(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return ox=t,ox}var rx,QD;function aQ(){if(QD)return rx;QD=1;var t=Wg(),e="__lodash_hash_undefined__",n=Object.prototype,a=n.hasOwnProperty;function o(r){var s=this.__data__;if(t){var c=s[r];return c===e?void 0:c}return a.call(s,r)?s[r]:void 0}return rx=o,rx}var sx,ID;function oQ(){if(ID)return sx;ID=1;var t=Wg(),e=Object.prototype,n=e.hasOwnProperty;function a(o){var r=this.__data__;return t?r[o]!==void 0:n.call(r,o)}return sx=a,sx}var ix,OD;function rQ(){if(OD)return ix;OD=1;var t=Wg(),e="__lodash_hash_undefined__";function n(a,o){var r=this.__data__;return this.size+=this.has(a)?0:1,r[a]=t&&o===void 0?e:o,this}return ix=n,ix}var cx,TD;function sQ(){if(TD)return cx;TD=1;var t=tQ(),e=nQ(),n=aQ(),a=oQ(),o=rQ();function r(s){var c=-1,l=s==null?0:s.length;for(this.clear();++c-1}return px=e,px}var fx,KD;function dQ(){if(KD)return fx;KD=1;var t=Vg();function e(n,a){var o=this.__data__,r=t(o,n);return r<0?(++this.size,o.push([n,a])):o[r][1]=a,this}return fx=e,fx}var gx,qD;function Xg(){if(qD)return gx;qD=1;var t=iQ(),e=cQ(),n=lQ(),a=mQ(),o=dQ();function r(s){var c=-1,l=s==null?0:s.length;for(this.clear();++c0?1:-1},Wm=function(e){return o2(e)&&e.indexOf("%")===e.length-1},wt=function(e){return SQ(e)&&!r2(e)},Ka=function(e){return wt(e)||o2(e)},FQ=0,I3=function(e){var n=++FQ;return"".concat(e||"").concat(n)},wi=function(e,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!wt(e)&&!o2(e))return a;var r;if(Wm(e)){var s=e.indexOf("%");r=n*parseFloat(e.slice(0,s))/100}else r=+e;return r2(r)&&(r=a),o&&r>n&&(r=n),r},nA=function(e){if(!e)return null;var n=Object.keys(e);return n&&n.length?e[n[0]]:null},LQ=function(e){if(!Array.isArray(e))return!1;for(var n=e.length,a={},o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function RQ(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}var v5={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Gc=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},w5=null,Rx=null,k3=function t(e){if(e===w5&&Array.isArray(Rx))return Rx;var n=[];return be.Children.forEach(e,function(a){wn(a)||(GQ.isFragment(a)?n=n.concat(t(a.props.children)):n.push(a))}),Rx=n,w5=e,n};function _c(t,e){var n=[],a=[];return Array.isArray(e)?a=e.map(function(o){return Gc(o)}):a=[Gc(e)],k3(t).forEach(function(o){var r=Ui(o,"type.displayName")||Ui(o,"type.name");a.indexOf(r)!==-1&&n.push(o)}),n}function ms(t,e){var n=_c(t,e);return n&&n[0]}var B5=function(e){if(!e||!e.props)return!1;var n=e.props,a=n.width,o=n.height;return!(!wt(a)||a<=0||!wt(o)||o<=0)},MQ=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],zQ=function(e){return e&&e.type&&o2(e.type)&&MQ.indexOf(e.type)>=0},ZQ=function(e,n,a,o){var r,s=(r=kx==null?void 0:kx[o])!==null&&r!==void 0?r:[];return n.startsWith("data-")||!an(e)&&(o&&s.includes(n)||IQ.includes(n))||a&&O3.includes(n)},Xt=function(e,n,a){if(!e||typeof e=="function"||typeof e=="boolean")return null;var o=e;if(be.isValidElement(e)&&(o=e.props),!XA(o))return null;var r={};return Object.keys(o).forEach(function(s){var c;ZQ((c=o)===null||c===void 0?void 0:c[s],s,n,a)&&(r[s]=o[s])}),r},G1=function t(e,n){if(e===n)return!0;var a=be.Children.count(e);if(a!==be.Children.count(n))return!1;if(a===0)return!0;if(a===1)return D5(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function WQ(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}function E1(t){var e=t.children,n=t.width,a=t.height,o=t.viewBox,r=t.className,s=t.style,c=t.title,l=t.desc,A=$Q(t,qQ),p=o||{width:n,height:a,x:0,y:0},u=pn("recharts-surface",r);return ue.createElement("svg",_1({},Xt(A,!0,"svg"),{className:u,width:n,height:a,style:s,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),ue.createElement("title",null,c),ue.createElement("desc",null,l),e)}var VQ=["children","className"];function P1(){return P1=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function JQ(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}var qa=ue.forwardRef(function(t,e){var n=t.children,a=t.className,o=XQ(t,VQ),r=pn("recharts-layer",a);return ue.createElement("g",P1({className:r},Xt(o,!0),{ref:e}),n)}),td=function(e,n){for(var a=arguments.length,o=new Array(a>2?a-2:0),r=2;rr?0:r+n),a=a>r?r:a,a<0&&(a+=r),r=n>a?0:a-n>>>0,n>>>=0;for(var s=Array(r);++o=r?n:t(n,a,o)}return zx=e,zx}var Zx,j5;function e8(){if(j5)return Zx;j5=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",o=e+n+a,r="\\ufe0e\\ufe0f",s="\\u200d",c=RegExp("["+s+t+o+r+"]");function l(A){return c.test(A)}return Zx=l,Zx}var Yx,G5;function nI(){if(G5)return Yx;G5=1;function t(e){return e.split("")}return Yx=t,Yx}var Kx,_5;function aI(){if(_5)return Kx;_5=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",o=e+n+a,r="\\ufe0e\\ufe0f",s="["+t+"]",c="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",A="(?:"+c+"|"+l+")",p="[^"+t+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",w=A+"?",b="["+r+"]?",v="(?:"+h+"(?:"+[p,u,x].join("|")+")"+b+w+")*",B=b+w+v,U="(?:"+[p+c+"?",c,u,x,s].join("|")+")",G=RegExp(l+"(?="+l+")|"+U+B,"g");function Q(_){return _.match(G)||[]}return Kx=Q,Kx}var qx,E5;function oI(){if(E5)return qx;E5=1;var t=nI(),e=e8(),n=aI();function a(o){return e(o)?n(o):t(o)}return qx=a,qx}var $x,P5;function rI(){if(P5)return $x;P5=1;var t=tI(),e=e8(),n=oI(),a=Wj();function o(r){return function(s){s=a(s);var c=e(s)?n(s):void 0,l=c?c[0]:s.charAt(0),A=c?t(c,1).join(""):s.slice(1);return l[r]()+A}}return $x=o,$x}var Wx,S5;function sI(){if(S5)return Wx;S5=1;var t=rI(),e=t("toUpperCase");return Wx=e,Wx}var iI=sI();const th=Qn(iI);function Rn(t){return function(){return t}}const t8=Math.cos,Wf=Math.sin,Ks=Math.sqrt,Vf=Math.PI,nh=2*Vf,S1=Math.PI,F1=2*S1,Mm=1e-6,cI=F1-Mm;function n8(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return n8;const n=10**e;return function(a){this._+=a[0];for(let o=1,r=a.length;oMm)if(!(Math.abs(u*l-A*p)>Mm)||!r)this._append`L${this._x1=e},${this._y1=n}`;else{let h=a-s,w=o-c,b=l*l+A*A,v=h*h+w*w,B=Math.sqrt(b),U=Math.sqrt(x),G=r*Math.tan((S1-Math.acos((b+x-v)/(2*B*U)))/2),Q=G/U,_=G/B;Math.abs(Q-1)>Mm&&this._append`L${e+Q*p},${n+Q*u}`,this._append`A${r},${r},0,0,${+(u*h>p*w)},${this._x1=e+_*l},${this._y1=n+_*A}`}}arc(e,n,a,o,r,s){if(e=+e,n=+n,a=+a,s=!!s,a<0)throw new Error(`negative radius: ${a}`);let c=a*Math.cos(o),l=a*Math.sin(o),A=e+c,p=n+l,u=1^s,x=s?o-r:r-o;this._x1===null?this._append`M${A},${p}`:(Math.abs(this._x1-A)>Mm||Math.abs(this._y1-p)>Mm)&&this._append`L${A},${p}`,a&&(x<0&&(x=x%F1+F1),x>cI?this._append`A${a},${a},0,1,${u},${e-c},${n-l}A${a},${a},0,1,${u},${this._x1=A},${this._y1=p}`:x>Mm&&this._append`A${a},${a},0,${+(x>=S1)},${u},${this._x1=e+a*Math.cos(r)},${this._y1=n+a*Math.sin(r)}`)}rect(e,n,a,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${a=+a}v${+o}h${-a}Z`}toString(){return this._}}function R3(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const a=Math.floor(n);if(!(a>=0))throw new RangeError(`invalid digits: ${n}`);e=a}return t},()=>new mI(e)}function M3(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function a8(t){this._context=t}a8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function ah(t){return new a8(t)}function o8(t){return t[0]}function r8(t){return t[1]}function s8(t,e){var n=Rn(!0),a=null,o=ah,r=null,s=R3(c);t=typeof t=="function"?t:t===void 0?o8:Rn(t),e=typeof e=="function"?e:e===void 0?r8:Rn(e);function c(l){var A,p=(l=M3(l)).length,u,x=!1,h;for(a==null&&(r=o(h=s())),A=0;A<=p;++A)!(A=h;--w)c.point(G[w],Q[w]);c.lineEnd(),c.areaEnd()}B&&(G[x]=+t(v,x,u),Q[x]=+e(v,x,u),c.point(a?+a(v,x,u):G[x],n?+n(v,x,u):Q[x]))}if(U)return c=null,U+""||null}function p(){return s8().defined(o).curve(s).context(r)}return A.x=function(u){return arguments.length?(t=typeof u=="function"?u:Rn(+u),a=null,A):t},A.x0=function(u){return arguments.length?(t=typeof u=="function"?u:Rn(+u),A):t},A.x1=function(u){return arguments.length?(a=u==null?null:typeof u=="function"?u:Rn(+u),A):a},A.y=function(u){return arguments.length?(e=typeof u=="function"?u:Rn(+u),n=null,A):e},A.y0=function(u){return arguments.length?(e=typeof u=="function"?u:Rn(+u),A):e},A.y1=function(u){return arguments.length?(n=u==null?null:typeof u=="function"?u:Rn(+u),A):n},A.lineX0=A.lineY0=function(){return p().x(t).y(e)},A.lineY1=function(){return p().x(t).y(n)},A.lineX1=function(){return p().x(a).y(e)},A.defined=function(u){return arguments.length?(o=typeof u=="function"?u:Rn(!!u),A):o},A.curve=function(u){return arguments.length?(s=u,r!=null&&(c=s(r)),A):s},A.context=function(u){return arguments.length?(u==null?r=c=null:c=s(r=u),A):r},A}class i8{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}}function dI(t){return new i8(t,!0)}function AI(t){return new i8(t,!1)}const z3={draw(t,e){const n=Ks(e/Vf);t.moveTo(n,0),t.arc(0,0,n,0,nh)}},uI={draw(t,e){const n=Ks(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},c8=Ks(1/3),pI=c8*2,fI={draw(t,e){const n=Ks(e/pI),a=n*c8;t.moveTo(0,-n),t.lineTo(a,0),t.lineTo(0,n),t.lineTo(-a,0),t.closePath()}},gI={draw(t,e){const n=Ks(e),a=-n/2;t.rect(a,a,n,n)}},hI=.8908130915292852,l8=Wf(Vf/10)/Wf(7*Vf/10),xI=Wf(nh/10)*l8,yI=-t8(nh/10)*l8,CI={draw(t,e){const n=Ks(e*hI),a=xI*n,o=yI*n;t.moveTo(0,-n),t.lineTo(a,o);for(let r=1;r<5;++r){const s=nh*r/5,c=t8(s),l=Wf(s);t.lineTo(l*n,-c*n),t.lineTo(c*a-l*o,l*a+c*o)}t.closePath()}},Vx=Ks(3),bI={draw(t,e){const n=-Ks(e/(Vx*3));t.moveTo(0,n*2),t.lineTo(-Vx*n,-n),t.lineTo(Vx*n,-n),t.closePath()}},ss=-.5,is=Ks(3)/2,L1=1/Ks(12),vI=(L1/2+1)*3,wI={draw(t,e){const n=Ks(e/vI),a=n/2,o=n*L1,r=a,s=n*L1+n,c=-r,l=s;t.moveTo(a,o),t.lineTo(r,s),t.lineTo(c,l),t.lineTo(ss*a-is*o,is*a+ss*o),t.lineTo(ss*r-is*s,is*r+ss*s),t.lineTo(ss*c-is*l,is*c+ss*l),t.lineTo(ss*a+is*o,ss*o-is*a),t.lineTo(ss*r+is*s,ss*s-is*r),t.lineTo(ss*c+is*l,ss*l-is*c),t.closePath()}};function BI(t,e){let n=null,a=R3(o);t=typeof t=="function"?t:Rn(t||z3),e=typeof e=="function"?e:Rn(e===void 0?64:+e);function o(){let r;if(n||(n=r=a()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return o.type=function(r){return arguments.length?(t=typeof r=="function"?r:Rn(r),o):t},o.size=function(r){return arguments.length?(e=typeof r=="function"?r:Rn(+r),o):e},o.context=function(r){return arguments.length?(n=r??null,o):n},o}function Xf(){}function Jf(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function m8(t){this._context=t}m8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Jf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Jf(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function DI(t){return new m8(t)}function d8(t){this._context=t}d8.prototype={areaStart:Xf,areaEnd:Xf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Jf(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function UI(t){return new d8(t)}function A8(t){this._context=t}A8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 3:this._point=4;default:Jf(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function HI(t){return new A8(t)}function u8(t){this._context=t}u8.prototype={areaStart:Xf,areaEnd:Xf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function NI(t){return new u8(t)}function F5(t){return t<0?-1:1}function L5(t,e,n){var a=t._x1-t._x0,o=e-t._x1,r=(t._y1-t._y0)/(a||o<0&&-0),s=(n-t._y1)/(o||a<0&&-0),c=(r*o+s*a)/(a+o);return(F5(r)+F5(s))*Math.min(Math.abs(r),Math.abs(s),.5*Math.abs(c))||0}function Q5(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Xx(t,e,n){var a=t._x0,o=t._y0,r=t._x1,s=t._y1,c=(r-a)/3;t._context.bezierCurveTo(a+c,o+c*e,r-c,s-c*n,r,s)}function eg(t){this._context=t}eg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Xx(this,this._t0,Q5(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Xx(this,Q5(this,n=L5(this,t,e)),n);break;default:Xx(this,this._t0,n=L5(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function p8(t){this._context=new f8(t)}(p8.prototype=Object.create(eg.prototype)).point=function(t,e){eg.prototype.point.call(this,e,t)};function f8(t){this._context=t}f8.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,a,o,r){this._context.bezierCurveTo(e,t,a,n,r,o)}};function jI(t){return new eg(t)}function GI(t){return new p8(t)}function g8(t){this._context=t}g8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var a=I5(t),o=I5(e),r=0,s=1;s=0;--e)o[e]=(s[e]-o[e+1])/r[e];for(r[n-1]=(t[n]+o[n-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function EI(t){return new oh(t,.5)}function PI(t){return new oh(t,0)}function SI(t){return new oh(t,1)}function wA(t,e){if((s=t.length)>1)for(var n=1,a,o,r=t[e[0]],s,c=r.length;n=0;)n[e]=e;return n}function FI(t,e){return t[e]}function LI(t){const e=[];return e.key=t,e}function QI(){var t=Rn([]),e=Q1,n=wA,a=FI;function o(r){var s=Array.from(t.apply(this,arguments),LI),c,l=s.length,A=-1,p;for(const u of r)for(c=0,++A;c0){for(var n,a,o=0,r=t[0].length,s;o0){for(var n=0,a=t[e[0]],o,r=a.length;n0)||!((r=(o=t[e[0]]).length)>0))){for(var n=0,a=1,o,r,s;a=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function YI(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}var h8={symbolCircle:z3,symbolCross:uI,symbolDiamond:fI,symbolSquare:gI,symbolStar:CI,symbolTriangle:bI,symbolWye:wI},KI=Math.PI/180,qI=function(e){var n="symbol".concat(th(e));return h8[n]||z3},$I=function(e,n,a){if(n==="area")return e;switch(a){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var o=18*KI;return 1.25*e*e*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},WI=function(e,n){h8["symbol".concat(th(e))]=n},x8=function(e){var n=e.type,a=n===void 0?"circle":n,o=e.size,r=o===void 0?64:o,s=e.sizeType,c=s===void 0?"area":s,l=ZI(e,kI),A=T5(T5({},l),{},{type:a,size:r,sizeType:c}),p=function(){var v=qI(a),B=BI().type(v).size($I(r,c,a));return B()},u=A.className,x=A.cx,h=A.cy,w=Xt(A,!0);return x===+x&&h===+h&&r===+r?ue.createElement("path",I1({},w,{className:pn("recharts-symbols",u),transform:"translate(".concat(x,", ").concat(h,")"),d:p()})):null};x8.registerSymbol=WI;function BA(t){"@babel/helpers - typeof";return BA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BA(t)}function O1(){return O1=Object.assign?Object.assign.bind():function(t){for(var e=1;e`);var U=h.inactive?A:h.color;return ue.createElement("li",O1({className:v,style:u,key:"legend-item-".concat(w)},T3(a.props,h,w)),ue.createElement(E1,{width:s,height:s,viewBox:p,style:x},a.renderIcon(h)),ue.createElement("span",{className:"recharts-legend-item-text",style:{color:U}},b?b(B,h,w):B))})}},{key:"render",value:function(){var a=this.props,o=a.payload,r=a.layout,s=a.align;if(!o||!o.length)return null;var c={padding:0,margin:0,textAlign:r==="horizontal"?s:"left"};return ue.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(be.PureComponent);xp(Z3,"displayName","Legend");xp(Z3,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Jx,R5;function sO(){if(R5)return Jx;R5=1;var t=Xg();function e(){this.__data__=new t,this.size=0}return Jx=e,Jx}var ey,M5;function iO(){if(M5)return ey;M5=1;function t(e){var n=this.__data__,a=n.delete(e);return this.size=n.size,a}return ey=t,ey}var ty,z5;function cO(){if(z5)return ty;z5=1;function t(e){return this.__data__.get(e)}return ty=t,ty}var ny,Z5;function lO(){if(Z5)return ny;Z5=1;function t(e){return this.__data__.has(e)}return ny=t,ny}var ay,Y5;function mO(){if(Y5)return ay;Y5=1;var t=Xg(),e=S3(),n=F3(),a=200;function o(r,s){var c=this.__data__;if(c instanceof t){var l=c.__data__;if(!e||l.lengthh))return!1;var b=u.get(s),v=u.get(c);if(b&&v)return b==c&&v==s;var B=-1,U=!0,G=l&o?new t:void 0;for(u.set(s,c),u.set(c,s);++B-1&&a%1==0&&a-1&&n%1==0&&n<=t}return Dy=e,Dy}var Uy,g4;function wO(){if(g4)return Uy;g4=1;var t=Tc(),e=$3(),n=kc(),a="[object Arguments]",o="[object Array]",r="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",A="[object Map]",p="[object Number]",u="[object Object]",x="[object RegExp]",h="[object Set]",w="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",B="[object DataView]",U="[object Float32Array]",G="[object Float64Array]",Q="[object Int8Array]",_="[object Int16Array]",S="[object Int32Array]",F="[object Uint8Array]",O="[object Uint8ClampedArray]",R="[object Uint16Array]",oe="[object Uint32Array]",L={};L[U]=L[G]=L[Q]=L[_]=L[S]=L[F]=L[O]=L[R]=L[oe]=!0,L[a]=L[o]=L[v]=L[r]=L[B]=L[s]=L[c]=L[l]=L[A]=L[p]=L[u]=L[x]=L[h]=L[w]=L[b]=!1;function I(M){return n(M)&&e(M.length)&&!!L[t(M)]}return Uy=I,Uy}var Hy,h4;function N8(){if(h4)return Hy;h4=1;function t(e){return function(n){return e(n)}}return Hy=t,Hy}var Yu={exports:{}};Yu.exports;var x4;function BO(){return x4||(x4=1,(function(t,e){var n=Kj(),a=e&&!e.nodeType&&e,o=a&&!0&&t&&!t.nodeType&&t,r=o&&o.exports===a,s=r&&n.process,c=(function(){try{var l=o&&o.require&&o.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}})();t.exports=c})(Yu,Yu.exports)),Yu.exports}var Ny,y4;function j8(){if(y4)return Ny;y4=1;var t=wO(),e=N8(),n=BO(),a=n&&n.isTypedArray,o=a?e(a):t;return Ny=o,Ny}var jy,C4;function DO(){if(C4)return jy;C4=1;var t=CO(),e=K3(),n=Br(),a=H8(),o=q3(),r=j8(),s=Object.prototype,c=s.hasOwnProperty;function l(A,p){var u=n(A),x=!u&&e(A),h=!u&&!x&&a(A),w=!u&&!x&&!h&&r(A),b=u||x||h||w,v=b?t(A.length,String):[],B=v.length;for(var U in A)(p||c.call(A,U))&&!(b&&(U=="length"||h&&(U=="offset"||U=="parent")||w&&(U=="buffer"||U=="byteLength"||U=="byteOffset")||o(U,B)))&&v.push(U);return v}return jy=l,jy}var Gy,b4;function UO(){if(b4)return Gy;b4=1;var t=Object.prototype;function e(n){var a=n&&n.constructor,o=typeof a=="function"&&a.prototype||t;return n===o}return Gy=e,Gy}var _y,v4;function G8(){if(v4)return _y;v4=1;function t(e,n){return function(a){return e(n(a))}}return _y=t,_y}var Ey,w4;function HO(){if(w4)return Ey;w4=1;var t=G8(),e=t(Object.keys,Object);return Ey=e,Ey}var Py,B4;function NO(){if(B4)return Py;B4=1;var t=UO(),e=HO(),n=Object.prototype,a=n.hasOwnProperty;function o(r){if(!t(r))return e(r);var s=[];for(var c in Object(r))a.call(r,c)&&c!="constructor"&&s.push(c);return s}return Py=o,Py}var Sy,D4;function s2(){if(D4)return Sy;D4=1;var t=E3(),e=$3();function n(a){return a!=null&&e(a.length)&&!t(a)}return Sy=n,Sy}var Fy,U4;function rh(){if(U4)return Fy;U4=1;var t=DO(),e=NO(),n=s2();function a(o){return n(o)?t(o):e(o)}return Fy=a,Fy}var Ly,H4;function jO(){if(H4)return Ly;H4=1;var t=gO(),e=yO(),n=rh();function a(o){return t(o,n,e)}return Ly=a,Ly}var Qy,N4;function GO(){if(N4)return Qy;N4=1;var t=jO(),e=1,n=Object.prototype,a=n.hasOwnProperty;function o(r,s,c,l,A,p){var u=c&e,x=t(r),h=x.length,w=t(s),b=w.length;if(h!=b&&!u)return!1;for(var v=h;v--;){var B=x[v];if(!(u?B in s:a.call(s,B)))return!1}var U=p.get(r),G=p.get(s);if(U&&G)return U==s&&G==r;var Q=!0;p.set(r,s),p.set(s,r);for(var _=u;++v-1}return lC=e,lC}var mC,tU;function WO(){if(tU)return mC;tU=1;function t(e,n,a){for(var o=-1,r=e==null?0:e.length;++o=s){var B=A?null:o(l);if(B)return r(B);w=!1,x=a,v=new t}else v=A?[]:b;e:for(;++u=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function dT(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}function AT(t){return t.value}function uT(t,e){if(ue.isValidElement(t))return ue.cloneElement(t,e);if(typeof t=="function")return ue.createElement(t,e);e.ref;var n=mT(e,nT);return ue.createElement(Z3,n)}var lU=1,uA=(function(t){function e(){var n;aT(this,e);for(var a=arguments.length,o=new Array(a),r=0;rlU||Math.abs(o.height-this.lastBoundingBox.height)>lU)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,a&&a(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?yc({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var o=this.props,r=o.layout,s=o.align,c=o.verticalAlign,l=o.margin,A=o.chartWidth,p=o.chartHeight,u,x;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&r==="vertical"){var h=this.getBBoxSnapshot();u={left:((A||0)-h.width)/2}}else u=s==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(c==="middle"){var w=this.getBBoxSnapshot();x={top:((p||0)-w.height)/2}}else x=c==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return yc(yc({},u),x)}},{key:"render",value:function(){var a=this,o=this.props,r=o.content,s=o.width,c=o.height,l=o.wrapperStyle,A=o.payloadUniqBy,p=o.payload,u=yc(yc({position:"absolute",width:s||"auto",height:c||"auto"},this.getDefaultPosition(l)),l);return ue.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(h){a.wrapperNode=h}},uT(r,yc(yc({},this.props),{},{payload:F8(p,A,AT)})))}}],[{key:"getWithHeight",value:function(a,o){var r=yc(yc({},this.defaultProps),a.props),s=r.layout;return s==="vertical"&&wt(a.props.height)?{height:a.props.height}:s==="horizontal"?{width:a.props.width||o}:null}}])})(be.PureComponent);sh(uA,"displayName","Legend");sh(uA,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var fC,mU;function pT(){if(mU)return fC;mU=1;var t=a2(),e=K3(),n=Br(),a=t?t.isConcatSpreadable:void 0;function o(r){return n(r)||e(r)||!!(a&&r&&r[a])}return fC=o,fC}var gC,dU;function I8(){if(dU)return gC;dU=1;var t=U8(),e=pT();function n(a,o,r,s,c){var l=-1,A=a.length;for(r||(r=e),c||(c=[]);++l0&&r(p)?o>1?n(p,o-1,r,s,c):t(c,p):s||(c[c.length]=p)}return c}return gC=n,gC}var hC,AU;function fT(){if(AU)return hC;AU=1;function t(e){return function(n,a,o){for(var r=-1,s=Object(n),c=o(n),l=c.length;l--;){var A=c[e?l:++r];if(a(s[A],A,s)===!1)break}return n}}return hC=t,hC}var xC,uU;function gT(){if(uU)return xC;uU=1;var t=fT(),e=t();return xC=e,xC}var yC,pU;function O8(){if(pU)return yC;pU=1;var t=gT(),e=rh();function n(a,o){return a&&t(a,o,e)}return yC=n,yC}var CC,fU;function hT(){if(fU)return CC;fU=1;var t=s2();function e(n,a){return function(o,r){if(o==null)return o;if(!t(o))return n(o,r);for(var s=o.length,c=a?s:-1,l=Object(o);(a?c--:++ca||c&&l&&p&&!A&&!u||r&&l&&p||!o&&p||!s)return 1;if(!r&&!c&&!u&&n=A)return p;var u=o[r];return p*(u=="desc"?-1:1)}}return n.index-a.index}return DC=e,DC}var UC,bU;function bT(){if(bU)return UC;bU=1;var t=L3(),e=Q3(),n=Fi(),a=T8(),o=xT(),r=N8(),s=CT(),c=JA(),l=Br();function A(p,u,x){u.length?u=t(u,function(b){return l(b)?function(v){return e(v,b.length===1?b[0]:b)}:b}):u=[c];var h=-1;u=t(u,r(n));var w=a(p,function(b,v,B){var U=t(u,function(G){return G(b)});return{criteria:U,index:++h,value:b}});return o(w,function(b,v){return s(b,v,x)})}return UC=A,UC}var HC,vU;function vT(){if(vU)return HC;vU=1;function t(e,n,a){switch(a.length){case 0:return e.call(n);case 1:return e.call(n,a[0]);case 2:return e.call(n,a[0],a[1]);case 3:return e.call(n,a[0],a[1],a[2])}return e.apply(n,a)}return HC=t,HC}var NC,wU;function wT(){if(wU)return NC;wU=1;var t=vT(),e=Math.max;function n(a,o,r){return o=e(o===void 0?a.length-1:o,0),function(){for(var s=arguments,c=-1,l=e(s.length-o,0),A=Array(l);++c0){if(++r>=t)return arguments[0]}else r=0;return o.apply(void 0,arguments)}}return EC=a,EC}var PC,NU;function HT(){if(NU)return PC;NU=1;var t=DT(),e=UT(),n=e(t);return PC=n,PC}var SC,jU;function NT(){if(jU)return SC;jU=1;var t=JA(),e=wT(),n=HT();function a(o,r){return n(e(o,r,t),o+"")}return SC=a,SC}var FC,GU;function ih(){if(GU)return FC;GU=1;var t=P3(),e=s2(),n=q3(),a=om();function o(r,s,c){if(!a(c))return!1;var l=typeof s;return(l=="number"?e(c)&&n(s,c.length):l=="string"&&s in c)?t(c[s],r):!1}return FC=o,FC}var LC,_U;function jT(){if(_U)return LC;_U=1;var t=I8(),e=bT(),n=NT(),a=ih(),o=n(function(r,s){if(r==null)return[];var c=s.length;return c>1&&a(r,s[0],s[1])?s=[]:c>2&&a(s[0],s[1],s[2])&&(s=[s[0]]),e(r,t(s,1),[])});return LC=o,LC}var GT=jT();const X3=Qn(GT);function yp(t){"@babel/helpers - typeof";return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yp(t)}function R1(){return R1=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,a=new Array(e);n=e.x),"".concat(_u,"-left"),wt(n)&&e&&wt(e.x)&&n=e.y),"".concat(_u,"-top"),wt(a)&&e&&wt(e.y)&&ab?Math.max(p,l[a]):Math.max(u,l[a])}function ZT(t){var e=t.translateX,n=t.translateY,a=t.useTranslate3d;return{transform:a?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")}}function YT(t){var e=t.allowEscapeViewBox,n=t.coordinate,a=t.offsetTopLeft,o=t.position,r=t.reverseDirection,s=t.tooltipBox,c=t.useTranslate3d,l=t.viewBox,A,p,u;return s.height>0&&s.width>0&&n?(p=SU({allowEscapeViewBox:e,coordinate:n,key:"x",offsetTopLeft:a,position:o,reverseDirection:r,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),u=SU({allowEscapeViewBox:e,coordinate:n,key:"y",offsetTopLeft:a,position:o,reverseDirection:r,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),A=ZT({translateX:p,translateY:u,useTranslate3d:c})):A=MT,{cssProperties:A,cssClasses:zT({translateX:p,translateY:u,coordinate:n})}}function UA(t){"@babel/helpers - typeof";return UA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},UA(t)}function FU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function LU(t){for(var e=1;eQU||Math.abs(a.height-this.state.lastBoundingBox.height)>QU)&&this.setState({lastBoundingBox:{width:a.width,height:a.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var a,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((a=this.props.coordinate)===null||a===void 0?void 0:a.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var a=this,o=this.props,r=o.active,s=o.allowEscapeViewBox,c=o.animationDuration,l=o.animationEasing,A=o.children,p=o.coordinate,u=o.hasPayload,x=o.isAnimationActive,h=o.offset,w=o.position,b=o.reverseDirection,v=o.useTranslate3d,B=o.viewBox,U=o.wrapperStyle,G=YT({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:h,position:w,reverseDirection:b,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:B}),Q=G.cssClasses,_=G.cssProperties,S=LU(LU({transition:x&&r?"transform ".concat(c,"ms ").concat(l):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&u?"visible":"hidden",position:"absolute",top:0,left:0},U);return ue.createElement("div",{tabIndex:-1,className:Q,style:S,ref:function(O){a.wrapperNode=O}},A)}}])})(be.PureComponent),nk=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ch={isSsr:nk()};function HA(t){"@babel/helpers - typeof";return HA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HA(t)}function IU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function OU(t){for(var e=1;e0;return ue.createElement(tk,{allowEscapeViewBox:s,animationDuration:c,animationEasing:l,isAnimationActive:x,active:r,coordinate:p,hasPayload:S,offset:h,position:v,reverseDirection:B,useTranslate3d:U,viewBox:G,wrapperStyle:Q},Ak(A,OU(OU({},this.props),{},{payload:_})))}}])})(be.PureComponent);J3(wc,"displayName","Tooltip");J3(wc,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ch.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var IC,TU;function uk(){if(TU)return IC;TU=1;var t=Si(),e=function(){return t.Date.now()};return IC=e,IC}var OC,kU;function pk(){if(kU)return OC;kU=1;var t=/\s/;function e(n){for(var a=n.length;a--&&t.test(n.charAt(a)););return a}return OC=e,OC}var TC,RU;function fk(){if(RU)return TC;RU=1;var t=pk(),e=/^\s+/;function n(a){return a&&a.slice(0,t(a)+1).replace(e,"")}return TC=n,TC}var kC,MU;function Y8(){if(MU)return kC;MU=1;var t=fk(),e=om(),n=VA(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;function l(A){if(typeof A=="number")return A;if(n(A))return a;if(e(A)){var p=typeof A.valueOf=="function"?A.valueOf():A;A=e(p)?p+"":p}if(typeof A!="string")return A===0?A:+A;A=t(A);var u=r.test(A);return u||s.test(A)?c(A.slice(2),u?2:8):o.test(A)?a:+A}return kC=l,kC}var RC,zU;function gk(){if(zU)return RC;zU=1;var t=om(),e=uk(),n=Y8(),a="Expected a function",o=Math.max,r=Math.min;function s(c,l,A){var p,u,x,h,w,b,v=0,B=!1,U=!1,G=!0;if(typeof c!="function")throw new TypeError(a);l=n(l)||0,t(A)&&(B=!!A.leading,U="maxWait"in A,x=U?o(n(A.maxWait)||0,l):x,G="trailing"in A?!!A.trailing:G);function Q(M){var K=p,re=u;return p=u=void 0,v=M,h=c.apply(re,K),h}function _(M){return v=M,w=setTimeout(O,l),B?Q(M):h}function S(M){var K=M-b,re=M-v,ae=l-K;return U?r(ae,x-re):ae}function F(M){var K=M-b,re=M-v;return b===void 0||K>=l||K<0||U&&re>=x}function O(){var M=e();if(F(M))return R(M);w=setTimeout(O,S(M))}function R(M){return w=void 0,G&&p?Q(M):(p=u=void 0,h)}function oe(){w!==void 0&&clearTimeout(w),v=0,p=b=u=w=void 0}function L(){return w===void 0?h:R(e())}function I(){var M=e(),K=F(M);if(p=arguments,u=this,b=M,K){if(w===void 0)return _(b);if(U)return clearTimeout(w),w=setTimeout(O,l),Q(b)}return w===void 0&&(w=setTimeout(O,l)),h}return I.cancel=oe,I.flush=L,I}return RC=s,RC}var MC,ZU;function hk(){if(ZU)return MC;ZU=1;var t=gk(),e=om(),n="Expected a function";function a(o,r,s){var c=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return e(s)&&(c="leading"in s?!!s.leading:c,l="trailing"in s?!!s.trailing:l),t(o,r,{leading:c,maxWait:r,trailing:l})}return MC=a,MC}var xk=hk();const K8=Qn(xk);function bp(t){"@babel/helpers - typeof";return bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bp(t)}function YU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function J2(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,a=new Array(e);n0&&(M=K8(M,b,{trailing:!0,leading:!1}));var K=new ResizeObserver(M),re=_.current.getBoundingClientRect(),ae=re.width,ie=re.height;return L(ae,ie),K.observe(_.current),function(){K.disconnect()}},[L,b]);var I=be.useMemo(function(){var M=R.containerWidth,K=R.containerHeight;if(M<0||K<0)return null;td(Wm(s)||Wm(l),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,s,l),td(!n||n>0,"The aspect(%s) must be greater than zero.",n);var re=Wm(s)?M:s,ae=Wm(l)?K:l;n&&n>0&&(re?ae=re/n:ae&&(re=ae*n),x&&ae>x&&(ae=x)),td(re>0||ae>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,re,ae,s,l,p,u,n);var ie=!Array.isArray(h)&&Gc(h.type).endsWith("Chart");return ue.Children.map(h,function(X){return ue.isValidElement(X)?be.cloneElement(X,J2({width:re,height:ae},ie?{style:J2({height:"100%",width:"100%",maxHeight:ae,maxWidth:re},X.props.style)}:{})):X})},[n,h,l,x,u,p,R,s]);return ue.createElement("div",{id:v?"".concat(v):void 0,className:pn("recharts-responsive-container",B),style:J2(J2({},Q),{},{width:s,height:l,minWidth:p,minHeight:u,maxHeight:x}),ref:_},I)});function vp(t){"@babel/helpers - typeof";return vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vp(t)}function qU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function Y1(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||ch.isSsr)return{width:0,height:0};var a=Ek(n),o=JSON.stringify({text:e,copyStyle:a});if(Zd.widthCache[o])return Zd.widthCache[o];try{var r=document.getElementById($U);r||(r=document.createElement("span"),r.setAttribute("id",$U),r.setAttribute("aria-hidden","true"),document.body.appendChild(r));var s=Y1(Y1({},_k),a);Object.assign(r.style,s),r.textContent="".concat(e);var c=r.getBoundingClientRect(),l={width:c.width,height:c.height};return Zd.widthCache[o]=l,++Zd.cacheCount>Gk&&(Zd.cacheCount=0,Zd.widthCache={}),l}catch{return{width:0,height:0}}},Pk=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function wp(t){"@babel/helpers - typeof";return wp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wp(t)}function rg(t,e){return Qk(t)||Lk(t,e)||Fk(t,e)||Sk()}function Sk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fk(t,e){if(t){if(typeof t=="string")return VU(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VU(t,e)}}function VU(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Vk(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}function a7(t,e){return t9(t)||e9(t,e)||Jk(t,e)||Xk()}function Xk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jk(t,e){if(t){if(typeof t=="string")return o7(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o7(t,e)}}function o7(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n0&&arguments[0]!==void 0?arguments[0]:[];return re.reduce(function(ae,ie){var X=ie.word,ee=ie.width,se=ae[ae.length-1];if(se&&(o==null||r||se.width+ee+aie.width?ae:ie})};if(!p)return h;for(var b="…",v=function(re){var ae=u.slice(0,re),ie=X8({breakAll:A,style:l,children:ae+b}).wordsWithComputedWidth,X=x(ie),ee=X.length>s||w(X).width>Number(o);return[ee,X]},B=0,U=u.length-1,G=0,Q;B<=U&&G<=u.length-1;){var _=Math.floor((B+U)/2),S=_-1,F=v(S),O=a7(F,2),R=O[0],oe=O[1],L=v(_),I=a7(L,1),M=I[0];if(!R&&!M&&(B=_+1),R&&M&&(U=_-1),!R&&M){Q=oe;break}G++}return Q||h},r7=function(e){var n=wn(e)?[]:e.toString().split(V8);return[{words:n}]},a9=function(e){var n=e.width,a=e.scaleToFit,o=e.children,r=e.style,s=e.breakAll,c=e.maxLines;if((n||a)&&!ch.isSsr){var l,A,p=X8({breakAll:s,children:o,style:r});if(p){var u=p.wordsWithComputedWidth,x=p.spaceWidth;l=u,A=x}else return r7(o);return n9({breakAll:s,children:o,maxLines:c,style:r},l,A,n,a)}return r7(o)},s7="#808080",Bp=function(e){var n=e.x,a=n===void 0?0:n,o=e.y,r=o===void 0?0:o,s=e.lineHeight,c=s===void 0?"1em":s,l=e.capHeight,A=l===void 0?"0.71em":l,p=e.scaleToFit,u=p===void 0?!1:p,x=e.textAnchor,h=x===void 0?"start":x,w=e.verticalAnchor,b=w===void 0?"end":w,v=e.fill,B=v===void 0?s7:v,U=n7(e,$k),G=be.useMemo(function(){return a9({breakAll:U.breakAll,children:U.children,maxLines:U.maxLines,scaleToFit:u,style:U.style,width:U.width})},[U.breakAll,U.children,U.maxLines,u,U.style,U.width]),Q=U.dx,_=U.dy,S=U.angle,F=U.className,O=U.breakAll,R=n7(U,Wk);if(!Ka(a)||!Ka(r))return null;var oe=a+(wt(Q)?Q:0),L=r+(wt(_)?_:0),I;switch(b){case"start":I=zC("calc(".concat(A,")"));break;case"middle":I=zC("calc(".concat((G.length-1)/2," * -").concat(c," + (").concat(A," / 2))"));break;default:I=zC("calc(".concat(G.length-1," * -").concat(c,")"));break}var M=[];if(u){var K=G[0].width,re=U.width;M.push("scale(".concat((wt(re)?re/K:1)/K,")"))}return S&&M.push("rotate(".concat(S,", ").concat(oe,", ").concat(L,")")),M.length&&(R.transform=M.join(" ")),ue.createElement("text",K1({},Xt(R,!0),{x:oe,y:L,className:pn("recharts-text",F),textAnchor:h,fill:B.includes("url")?s7:B}),G.map(function(ae,ie){var X=ae.words.join(O?"":" ");return ue.createElement("tspan",{x:oe,dy:ie===0?I:c,key:"".concat(X,"-").concat(ie)},X)}))};function Wl(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function o9(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function ew(t){let e,n,a;t.length!==2?(e=Wl,n=(c,l)=>Wl(t(c),l),a=(c,l)=>t(c)-l):(e=t===Wl||t===o9?t:r9,n=t,a=t);function o(c,l,A=0,p=c.length){if(A>>1;n(c[u],l)<0?A=u+1:p=u}while(A>>1;n(c[u],l)<=0?A=u+1:p=u}while(AA&&a(c[u-1],l)>-a(c[u],l)?u-1:u}return{left:o,center:s,right:r}}function r9(){return 0}function J8(t){return t===null?NaN:+t}function*s9(t,e){for(let n of t)n!=null&&(n=+n)>=n&&(yield n)}const i9=ew(Wl),i2=i9.right;ew(J8).center;class i7 extends Map{constructor(e,n=m9){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[a,o]of e)this.set(a,o)}get(e){return super.get(c7(this,e))}has(e){return super.has(c7(this,e))}set(e,n){return super.set(c9(this,e),n)}delete(e){return super.delete(l9(this,e))}}function c7({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):n}function c9({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):(t.set(a,n),n)}function l9({_intern:t,_key:e},n){const a=e(n);return t.has(a)&&(n=t.get(a),t.delete(a)),n}function m9(t){return t!==null&&typeof t=="object"?t.valueOf():t}function d9(t=Wl){if(t===Wl)return eG;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const a=t(e,n);return a||a===0?a:(t(n,n)===0)-(t(e,e)===0)}}function eG(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}const A9=Math.sqrt(50),u9=Math.sqrt(10),p9=Math.sqrt(2);function sg(t,e,n){const a=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(a)),r=a/Math.pow(10,o),s=r>=A9?10:r>=u9?5:r>=p9?2:1;let c,l,A;return o<0?(A=Math.pow(10,-o)/s,c=Math.round(t*A),l=Math.round(e*A),c/Ae&&--l,A=-A):(A=Math.pow(10,o)*s,c=Math.round(t/A),l=Math.round(e/A),c*Ae&&--l),l0))return[];if(t===e)return[t];const a=e=o))return[];const c=r-o+1,l=new Array(c);if(a)if(s<0)for(let A=0;A=a)&&(n=a);return n}function m7(t,e){let n;for(const a of t)a!=null&&(n>a||n===void 0&&a>=a)&&(n=a);return n}function tG(t,e,n=0,a=1/0,o){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),a=Math.floor(Math.min(t.length-1,a)),!(n<=e&&e<=a))return t;for(o=o===void 0?eG:d9(o);a>n;){if(a-n>600){const l=a-n+1,A=e-n+1,p=Math.log(l),u=.5*Math.exp(2*p/3),x=.5*Math.sqrt(p*u*(l-u)/l)*(A-l/2<0?-1:1),h=Math.max(n,Math.floor(e-A*u/l+x)),w=Math.min(a,Math.floor(e+(l-A)*u/l+x));tG(t,e,h,w,o)}const r=t[e];let s=n,c=a;for(Eu(t,n,e),o(t[a],r)>0&&Eu(t,n,a);s0;)--c}o(t[n],r)===0?Eu(t,n,c):(++c,Eu(t,c,a)),c<=e&&(n=c+1),e<=c&&(a=c-1)}return t}function Eu(t,e,n){const a=t[e];t[e]=t[n],t[n]=a}function f9(t,e,n){if(t=Float64Array.from(s9(t)),!(!(a=t.length)||isNaN(e=+e))){if(e<=0||a<2)return m7(t);if(e>=1)return l7(t);var a,o=(a-1)*e,r=Math.floor(o),s=l7(tG(t,r).subarray(0,r+1)),c=m7(t.subarray(r+1));return s+(c-s)*(o-r)}}function g9(t,e,n=J8){if(!(!(a=t.length)||isNaN(e=+e))){if(e<=0||a<2)return+n(t[0],0,t);if(e>=1)return+n(t[a-1],a-1,t);var a,o=(a-1)*e,r=Math.floor(o),s=+n(t[r],r,t),c=+n(t[r+1],r+1,t);return s+(c-s)*(o-r)}}function h9(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var a=-1,o=Math.max(0,Math.ceil((e-t)/n))|0,r=new Array(o);++a>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?tf(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?tf(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=y9.exec(t))?new vr(e[1],e[2],e[3],1):(e=C9.exec(t))?new vr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=b9.exec(t))?tf(e[1],e[2],e[3],e[4]):(e=v9.exec(t))?tf(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=w9.exec(t))?h7(e[1],e[2]/100,e[3]/100,1):(e=B9.exec(t))?h7(e[1],e[2]/100,e[3]/100,e[4]):d7.hasOwnProperty(t)?p7(d7[t]):t==="transparent"?new vr(NaN,NaN,NaN,0):null}function p7(t){return new vr(t>>16&255,t>>8&255,t&255,1)}function tf(t,e,n,a){return a<=0&&(t=e=n=NaN),new vr(t,e,n,a)}function H9(t){return t instanceof c2||(t=Np(t)),t?(t=t.rgb(),new vr(t.r,t.g,t.b,t.opacity)):new vr}function X1(t,e,n,a){return arguments.length===1?H9(t):new vr(t,e,n,a??1)}function vr(t,e,n,a){this.r=+t,this.g=+e,this.b=+n,this.opacity=+a}nw(vr,X1,aG(c2,{brighter(t){return t=t==null?ig:Math.pow(ig,t),new vr(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Up:Math.pow(Up,t),new vr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new vr(nd(this.r),nd(this.g),nd(this.b),cg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:f7,formatHex:f7,formatHex8:N9,formatRgb:g7,toString:g7}));function f7(){return`#${Vm(this.r)}${Vm(this.g)}${Vm(this.b)}`}function N9(){return`#${Vm(this.r)}${Vm(this.g)}${Vm(this.b)}${Vm((isNaN(this.opacity)?1:this.opacity)*255)}`}function g7(){const t=cg(this.opacity);return`${t===1?"rgb(":"rgba("}${nd(this.r)}, ${nd(this.g)}, ${nd(this.b)}${t===1?")":`, ${t})`}`}function cg(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function nd(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Vm(t){return t=nd(t),(t<16?"0":"")+t.toString(16)}function h7(t,e,n,a){return a<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Zs(t,e,n,a)}function oG(t){if(t instanceof Zs)return new Zs(t.h,t.s,t.l,t.opacity);if(t instanceof c2||(t=Np(t)),!t)return new Zs;if(t instanceof Zs)return t;t=t.rgb();var e=t.r/255,n=t.g/255,a=t.b/255,o=Math.min(e,n,a),r=Math.max(e,n,a),s=NaN,c=r-o,l=(r+o)/2;return c?(e===r?s=(n-a)/c+(n0&&l<1?0:s,new Zs(s,c,l,t.opacity)}function j9(t,e,n,a){return arguments.length===1?oG(t):new Zs(t,e,n,a??1)}function Zs(t,e,n,a){this.h=+t,this.s=+e,this.l=+n,this.opacity=+a}nw(Zs,j9,aG(c2,{brighter(t){return t=t==null?ig:Math.pow(ig,t),new Zs(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Up:Math.pow(Up,t),new Zs(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*e,o=2*n-a;return new vr(ZC(t>=240?t-240:t+120,o,a),ZC(t,o,a),ZC(t<120?t+240:t-120,o,a),this.opacity)},clamp(){return new Zs(x7(this.h),nf(this.s),nf(this.l),cg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=cg(this.opacity);return`${t===1?"hsl(":"hsla("}${x7(this.h)}, ${nf(this.s)*100}%, ${nf(this.l)*100}%${t===1?")":`, ${t})`}`}}));function x7(t){return t=(t||0)%360,t<0?t+360:t}function nf(t){return Math.max(0,Math.min(1,t||0))}function ZC(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const aw=t=>()=>t;function G9(t,e){return function(n){return t+n*e}}function _9(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(a){return Math.pow(t+a*e,n)}}function E9(t){return(t=+t)==1?rG:function(e,n){return n-e?_9(e,n,t):aw(isNaN(e)?n:e)}}function rG(t,e){var n=e-t;return n?G9(t,n):aw(isNaN(t)?e:t)}const y7=(function t(e){var n=E9(e);function a(o,r){var s=n((o=X1(o)).r,(r=X1(r)).r),c=n(o.g,r.g),l=n(o.b,r.b),A=rG(o.opacity,r.opacity);return function(p){return o.r=s(p),o.g=c(p),o.b=l(p),o.opacity=A(p),o+""}}return a.gamma=t,a})(1);function P9(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,a=e.slice(),o;return function(r){for(o=0;on&&(r=e.slice(n,r),c[s]?c[s]+=r:c[++s]=r),(a=a[0])===(o=o[0])?c[s]?c[s]+=o:c[++s]=o:(c[++s]=null,l.push({i:s,x:lg(a,o)})),n=YC.lastIndex;return ne&&(n=t,t=e,e=n),function(a){return Math.max(t,Math.min(e,a))}}function z9(t,e,n){var a=t[0],o=t[1],r=e[0],s=e[1];return o2?Z9:z9,l=A=null,u}function u(x){return x==null||isNaN(x=+x)?r:(l||(l=c(t.map(a),e,n)))(a(s(x)))}return u.invert=function(x){return s(o((A||(A=c(e,t.map(a),lg)))(x)))},u.domain=function(x){return arguments.length?(t=Array.from(x,mg),p()):t.slice()},u.range=function(x){return arguments.length?(e=Array.from(x),p()):e.slice()},u.rangeRound=function(x){return e=Array.from(x),n=ow,p()},u.clamp=function(x){return arguments.length?(s=x?!0:rr,p()):s!==rr},u.interpolate=function(x){return arguments.length?(n=x,p()):n},u.unknown=function(x){return arguments.length?(r=x,u):r},function(x,h){return a=x,o=h,p()}}function rw(){return lh()(rr,rr)}function Y9(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function dg(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,a=t.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+t.slice(n+1)]}function NA(t){return t=dg(Math.abs(t)),t?t[1]:NaN}function K9(t,e){return function(n,a){for(var o=n.length,r=[],s=0,c=t[0],l=0;o>0&&c>0&&(l+c+1>a&&(c=Math.max(1,a-l)),r.push(n.substring(o-=c,o+c)),!((l+=c+1)>a));)c=t[s=(s+1)%t.length];return r.reverse().join(e)}}function q9(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var $9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jp(t){if(!(e=$9.exec(t)))throw new Error("invalid format: "+t);var e;return new sw({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}jp.prototype=sw.prototype;function sw(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}sw.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function W9(t){e:for(var e=t.length,n=1,a=-1,o;n0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(o+1):t}var sG;function V9(t,e){var n=dg(t,e);if(!n)return t+"";var a=n[0],o=n[1],r=o-(sG=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=a.length;return r===s?a:r>s?a+new Array(r-s+1).join("0"):r>0?a.slice(0,r)+"."+a.slice(r):"0."+new Array(1-r).join("0")+dg(t,Math.max(0,e+r-1))[0]}function b7(t,e){var n=dg(t,e);if(!n)return t+"";var a=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}const v7={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Y9,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>b7(t*100,e),r:b7,s:V9,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function w7(t){return t}var B7=Array.prototype.map,D7=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function X9(t){var e=t.grouping===void 0||t.thousands===void 0?w7:K9(B7.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",r=t.numerals===void 0?w7:q9(B7.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",c=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function A(u){u=jp(u);var x=u.fill,h=u.align,w=u.sign,b=u.symbol,v=u.zero,B=u.width,U=u.comma,G=u.precision,Q=u.trim,_=u.type;_==="n"?(U=!0,_="g"):v7[_]||(G===void 0&&(G=12),Q=!0,_="g"),(v||x==="0"&&h==="=")&&(v=!0,x="0",h="=");var S=b==="$"?n:b==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",F=b==="$"?a:/[%p]/.test(_)?s:"",O=v7[_],R=/[defgprs%]/.test(_);G=G===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,G)):Math.max(0,Math.min(20,G));function oe(L){var I=S,M=F,K,re,ae;if(_==="c")M=O(L)+M,L="";else{L=+L;var ie=L<0||1/L<0;if(L=isNaN(L)?l:O(Math.abs(L),G),Q&&(L=W9(L)),ie&&+L==0&&w!=="+"&&(ie=!1),I=(ie?w==="("?w:c:w==="-"||w==="("?"":w)+I,M=(_==="s"?D7[8+sG/3]:"")+M+(ie&&w==="("?")":""),R){for(K=-1,re=L.length;++Kae||ae>57){M=(ae===46?o+L.slice(K+1):L.slice(K))+M,L=L.slice(0,K);break}}}U&&!v&&(L=e(L,1/0));var X=I.length+L.length+M.length,ee=X>1)+I+L+M+ee.slice(X);break;default:L=ee+I+L+M;break}return r(L)}return oe.toString=function(){return u+""},oe}function p(u,x){var h=A((u=jp(u),u.type="f",u)),w=Math.max(-8,Math.min(8,Math.floor(NA(x)/3)))*3,b=Math.pow(10,-w),v=D7[8+w/3];return function(B){return h(b*B)+v}}return{format:A,formatPrefix:p}}var af,iw,iG;J9({thousands:",",grouping:[3],currency:["$",""]});function J9(t){return af=X9(t),iw=af.format,iG=af.formatPrefix,af}function eR(t){return Math.max(0,-NA(Math.abs(t)))}function tR(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(NA(e)/3)))*3-NA(Math.abs(t)))}function nR(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,NA(e)-NA(t))+1}function cG(t,e,n,a){var o=W1(t,e,n),r;switch(a=jp(a??",f"),a.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return a.precision==null&&!isNaN(r=tR(o,s))&&(a.precision=r),iG(a,s)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(r=nR(o,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=r-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(r=eR(o))&&(a.precision=r-(a.type==="%")*2);break}}return iw(a)}function rm(t){var e=t.domain;return t.ticks=function(n){var a=e();return q1(a[0],a[a.length-1],n??10)},t.tickFormat=function(n,a){var o=e();return cG(o[0],o[o.length-1],n??10,a)},t.nice=function(n){n==null&&(n=10);var a=e(),o=0,r=a.length-1,s=a[o],c=a[r],l,A,p=10;for(c0;){if(A=$1(s,c,n),A===l)return a[o]=s,a[r]=c,e(a);if(A>0)s=Math.floor(s/A)*A,c=Math.ceil(c/A)*A;else if(A<0)s=Math.ceil(s*A)/A,c=Math.floor(c*A)/A;else break;l=A}return t},t}function Ag(){var t=rw();return t.copy=function(){return l2(t,Ag())},gs.apply(t,arguments),rm(t)}function lG(t){var e;function n(a){return a==null||isNaN(a=+a)?e:a}return n.invert=n,n.domain=n.range=function(a){return arguments.length?(t=Array.from(a,mg),n):t.slice()},n.unknown=function(a){return arguments.length?(e=a,n):e},n.copy=function(){return lG(t).unknown(e)},t=arguments.length?Array.from(t,mg):[0,1],rm(n)}function mG(t,e){t=t.slice();var n=0,a=t.length-1,o=t[n],r=t[a],s;return rMath.pow(t,e)}function iR(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function N7(t){return(e,n)=>-t(-e,n)}function cw(t){const e=t(U7,H7),n=e.domain;let a=10,o,r;function s(){return o=iR(a),r=sR(a),n()[0]<0?(o=N7(o),r=N7(r),t(aR,oR)):t(U7,H7),e}return e.base=function(c){return arguments.length?(a=+c,s()):a},e.domain=function(c){return arguments.length?(n(c),s()):n()},e.ticks=c=>{const l=n();let A=l[0],p=l[l.length-1];const u=p0){for(;x<=h;++x)for(w=1;wp)break;B.push(b)}}else for(;x<=h;++x)for(w=a-1;w>=1;--w)if(b=x>0?w/r(-x):w*r(x),!(bp)break;B.push(b)}B.length*2{if(c==null&&(c=10),l==null&&(l=a===10?"s":","),typeof l!="function"&&(!(a%1)&&(l=jp(l)).precision==null&&(l.trim=!0),l=iw(l)),c===1/0)return l;const A=Math.max(1,a*c/e.ticks().length);return p=>{let u=p/r(Math.round(o(p)));return u*an(mG(n(),{floor:c=>r(Math.floor(o(c))),ceil:c=>r(Math.ceil(o(c)))})),e}function dG(){const t=cw(lh()).domain([1,10]);return t.copy=()=>l2(t,dG()).base(t.base()),gs.apply(t,arguments),t}function j7(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function G7(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function lw(t){var e=1,n=t(j7(e),G7(e));return n.constant=function(a){return arguments.length?t(j7(e=+a),G7(e)):e},rm(n)}function AG(){var t=lw(lh());return t.copy=function(){return l2(t,AG()).constant(t.constant())},gs.apply(t,arguments)}function _7(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function cR(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function lR(t){return t<0?-t*t:t*t}function mw(t){var e=t(rr,rr),n=1;function a(){return n===1?t(rr,rr):n===.5?t(cR,lR):t(_7(n),_7(1/n))}return e.exponent=function(o){return arguments.length?(n=+o,a()):n},rm(e)}function dw(){var t=mw(lh());return t.copy=function(){return l2(t,dw()).exponent(t.exponent())},gs.apply(t,arguments),t}function mR(){return dw.apply(null,arguments).exponent(.5)}function E7(t){return Math.sign(t)*t*t}function dR(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function uG(){var t=rw(),e=[0,1],n=!1,a;function o(r){var s=dR(t(r));return isNaN(s)?a:n?Math.round(s):s}return o.invert=function(r){return t.invert(E7(r))},o.domain=function(r){return arguments.length?(t.domain(r),o):t.domain()},o.range=function(r){return arguments.length?(t.range((e=Array.from(r,mg)).map(E7)),o):e.slice()},o.rangeRound=function(r){return o.range(r).round(!0)},o.round=function(r){return arguments.length?(n=!!r,o):n},o.clamp=function(r){return arguments.length?(t.clamp(r),o):t.clamp()},o.unknown=function(r){return arguments.length?(a=r,o):a},o.copy=function(){return uG(t.domain(),e).round(n).clamp(t.clamp()).unknown(a)},gs.apply(o,arguments),rm(o)}function pG(){var t=[],e=[],n=[],a;function o(){var s=0,c=Math.max(1,e.length);for(n=new Array(c-1);++s0?n[c-1]:t[0],c=n?[a[n-1],e]:[a[A-1],a[A]]},s.unknown=function(l){return arguments.length&&(r=l),s},s.thresholds=function(){return a.slice()},s.copy=function(){return fG().domain([t,e]).range(o).unknown(r)},gs.apply(rm(s),arguments)}function gG(){var t=[.5],e=[0,1],n,a=1;function o(r){return r!=null&&r<=r?e[i2(t,r,0,a)]:n}return o.domain=function(r){return arguments.length?(t=Array.from(r),a=Math.min(t.length,e.length-1),o):t.slice()},o.range=function(r){return arguments.length?(e=Array.from(r),a=Math.min(t.length,e.length-1),o):e.slice()},o.invertExtent=function(r){var s=e.indexOf(r);return[t[s-1],t[s]]},o.unknown=function(r){return arguments.length?(n=r,o):n},o.copy=function(){return gG().domain(t).range(e).unknown(n)},gs.apply(o,arguments)}const KC=new Date,qC=new Date;function $a(t,e,n,a){function o(r){return t(r=arguments.length===0?new Date:new Date(+r)),r}return o.floor=r=>(t(r=new Date(+r)),r),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=r=>{const s=o(r),c=o.ceil(r);return r-s(e(r=new Date(+r),s==null?1:Math.floor(s)),r),o.range=(r,s,c)=>{const l=[];if(r=o.ceil(r),c=c==null?1:Math.floor(c),!(r0))return l;let A;do l.push(A=new Date(+r)),e(r,c),t(r);while(A$a(s=>{if(s>=s)for(;t(s),!r(s);)s.setTime(s-1)},(s,c)=>{if(s>=s)if(c<0)for(;++c<=0;)for(;e(s,-1),!r(s););else for(;--c>=0;)for(;e(s,1),!r(s););}),n&&(o.count=(r,s)=>(KC.setTime(+r),qC.setTime(+s),t(KC),t(qC),Math.floor(n(KC,qC))),o.every=r=>(r=Math.floor(r),!isFinite(r)||!(r>0)?null:r>1?o.filter(a?s=>a(s)%r===0:s=>o.count(0,s)%r===0):o)),o}const ug=$a(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ug.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?$a(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):ug);ug.range;const Hc=1e3,As=Hc*60,Nc=As*60,Sc=Nc*24,Aw=Sc*7,P7=Sc*30,$C=Sc*365,Xm=$a(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Hc)},(t,e)=>(e-t)/Hc,t=>t.getUTCSeconds());Xm.range;const uw=$a(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Hc)},(t,e)=>{t.setTime(+t+e*As)},(t,e)=>(e-t)/As,t=>t.getMinutes());uw.range;const pw=$a(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*As)},(t,e)=>(e-t)/As,t=>t.getUTCMinutes());pw.range;const fw=$a(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Hc-t.getMinutes()*As)},(t,e)=>{t.setTime(+t+e*Nc)},(t,e)=>(e-t)/Nc,t=>t.getHours());fw.range;const gw=$a(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Nc)},(t,e)=>(e-t)/Nc,t=>t.getUTCHours());gw.range;const m2=$a(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*As)/Sc,t=>t.getDate()-1);m2.range;const mh=$a(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Sc,t=>t.getUTCDate()-1);mh.range;const hG=$a(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Sc,t=>Math.floor(t/Sc));hG.range;function dd(t){return $a(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*As)/Aw)}const dh=dd(0),pg=dd(1),AR=dd(2),uR=dd(3),jA=dd(4),pR=dd(5),fR=dd(6);dh.range;pg.range;AR.range;uR.range;jA.range;pR.range;fR.range;function Ad(t){return $a(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Aw)}const Ah=Ad(0),fg=Ad(1),gR=Ad(2),hR=Ad(3),GA=Ad(4),xR=Ad(5),yR=Ad(6);Ah.range;fg.range;gR.range;hR.range;GA.range;xR.range;yR.range;const hw=$a(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());hw.range;const xw=$a(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());xw.range;const Fc=$a(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Fc.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:$a(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});Fc.range;const Lc=$a(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Lc.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:$a(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});Lc.range;function xG(t,e,n,a,o,r){const s=[[Xm,1,Hc],[Xm,5,5*Hc],[Xm,15,15*Hc],[Xm,30,30*Hc],[r,1,As],[r,5,5*As],[r,15,15*As],[r,30,30*As],[o,1,Nc],[o,3,3*Nc],[o,6,6*Nc],[o,12,12*Nc],[a,1,Sc],[a,2,2*Sc],[n,1,Aw],[e,1,P7],[e,3,3*P7],[t,1,$C]];function c(A,p,u){const x=pv).right(s,x);if(h===s.length)return t.every(W1(A/$C,p/$C,u));if(h===0)return ug.every(Math.max(W1(A,p,u),1));const[w,b]=s[x/s[h-1][2]53)return null;"w"in Be||(Be.w=1),"Z"in Be?(Ve=VC(Pu(Be.y,0,1)),je=Ve.getUTCDay(),Ve=je>4||je===0?fg.ceil(Ve):fg(Ve),Ve=mh.offset(Ve,(Be.V-1)*7),Be.y=Ve.getUTCFullYear(),Be.m=Ve.getUTCMonth(),Be.d=Ve.getUTCDate()+(Be.w+6)%7):(Ve=WC(Pu(Be.y,0,1)),je=Ve.getDay(),Ve=je>4||je===0?pg.ceil(Ve):pg(Ve),Ve=m2.offset(Ve,(Be.V-1)*7),Be.y=Ve.getFullYear(),Be.m=Ve.getMonth(),Be.d=Ve.getDate()+(Be.w+6)%7)}else("W"in Be||"U"in Be)&&("w"in Be||(Be.w="u"in Be?Be.u%7:"W"in Be?1:0),je="Z"in Be?VC(Pu(Be.y,0,1)).getUTCDay():WC(Pu(Be.y,0,1)).getDay(),Be.m=0,Be.d="W"in Be?(Be.w+6)%7+Be.W*7-(je+5)%7:Be.w+Be.U*7-(je+6)%7);return"Z"in Be?(Be.H+=Be.Z/100|0,Be.M+=Be.Z%100,VC(Be)):WC(Be)}}function O(de,Ge,Ee,Be){for(var Re=0,Ve=Ge.length,je=Ee.length,ce,dt;Re=je)return-1;if(ce=Ge.charCodeAt(Re++),ce===37){if(ce=Ge.charAt(Re++),dt=_[ce in S7?Ge.charAt(Re++):ce],!dt||(Be=dt(de,Ee,Be))<0)return-1}else if(ce!=Ee.charCodeAt(Be++))return-1}return Be}function R(de,Ge,Ee){var Be=A.exec(Ge.slice(Ee));return Be?(de.p=p.get(Be[0].toLowerCase()),Ee+Be[0].length):-1}function oe(de,Ge,Ee){var Be=h.exec(Ge.slice(Ee));return Be?(de.w=w.get(Be[0].toLowerCase()),Ee+Be[0].length):-1}function L(de,Ge,Ee){var Be=u.exec(Ge.slice(Ee));return Be?(de.w=x.get(Be[0].toLowerCase()),Ee+Be[0].length):-1}function I(de,Ge,Ee){var Be=B.exec(Ge.slice(Ee));return Be?(de.m=U.get(Be[0].toLowerCase()),Ee+Be[0].length):-1}function M(de,Ge,Ee){var Be=b.exec(Ge.slice(Ee));return Be?(de.m=v.get(Be[0].toLowerCase()),Ee+Be[0].length):-1}function K(de,Ge,Ee){return O(de,e,Ge,Ee)}function re(de,Ge,Ee){return O(de,n,Ge,Ee)}function ae(de,Ge,Ee){return O(de,a,Ge,Ee)}function ie(de){return s[de.getDay()]}function X(de){return r[de.getDay()]}function ee(de){return l[de.getMonth()]}function se(de){return c[de.getMonth()]}function J(de){return o[+(de.getHours()>=12)]}function E(de){return 1+~~(de.getMonth()/3)}function z(de){return s[de.getUTCDay()]}function W(de){return r[de.getUTCDay()]}function te(de){return l[de.getUTCMonth()]}function me(de){return c[de.getUTCMonth()]}function pe(de){return o[+(de.getUTCHours()>=12)]}function Ce(de){return 1+~~(de.getUTCMonth()/3)}return{format:function(de){var Ge=S(de+="",G);return Ge.toString=function(){return de},Ge},parse:function(de){var Ge=F(de+="",!1);return Ge.toString=function(){return de},Ge},utcFormat:function(de){var Ge=S(de+="",Q);return Ge.toString=function(){return de},Ge},utcParse:function(de){var Ge=F(de+="",!0);return Ge.toString=function(){return de},Ge}}}var S7={"-":"",_:" ",0:"0"},co=/^\s*\d+/,DR=/^%/,UR=/[\\^$*+?|[\]().{}]/g;function yn(t,e,n){var a=t<0?"-":"",o=(a?-t:t)+"",r=o.length;return a+(r[e.toLowerCase(),n]))}function NR(t,e,n){var a=co.exec(e.slice(n,n+1));return a?(t.w=+a[0],n+a[0].length):-1}function jR(t,e,n){var a=co.exec(e.slice(n,n+1));return a?(t.u=+a[0],n+a[0].length):-1}function GR(t,e,n){var a=co.exec(e.slice(n,n+2));return a?(t.U=+a[0],n+a[0].length):-1}function _R(t,e,n){var a=co.exec(e.slice(n,n+2));return a?(t.V=+a[0],n+a[0].length):-1}function ER(t,e,n){var a=co.exec(e.slice(n,n+2));return a?(t.W=+a[0],n+a[0].length):-1}function F7(t,e,n){var a=co.exec(e.slice(n,n+4));return a?(t.y=+a[0],n+a[0].length):-1}function L7(t,e,n){var a=co.exec(e.slice(n,n+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),n+a[0].length):-1}function PR(t,e,n){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),n+a[0].length):-1}function SR(t,e,n){var a=co.exec(e.slice(n,n+1));return a?(t.q=a[0]*3-3,n+a[0].length):-1}function FR(t,e,n){var a=co.exec(e.slice(n,n+2));return a?(t.m=a[0]-1,n+a[0].length):-1}function Q7(t,e,n){var a=co.exec(e.slice(n,n+2));return a?(t.d=+a[0],n+a[0].length):-1}function LR(t,e,n){var a=co.exec(e.slice(n,n+3));return a?(t.m=0,t.d=+a[0],n+a[0].length):-1}function I7(t,e,n){var a=co.exec(e.slice(n,n+2));return a?(t.H=+a[0],n+a[0].length):-1}function QR(t,e,n){var a=co.exec(e.slice(n,n+2));return a?(t.M=+a[0],n+a[0].length):-1}function IR(t,e,n){var a=co.exec(e.slice(n,n+2));return a?(t.S=+a[0],n+a[0].length):-1}function OR(t,e,n){var a=co.exec(e.slice(n,n+3));return a?(t.L=+a[0],n+a[0].length):-1}function TR(t,e,n){var a=co.exec(e.slice(n,n+6));return a?(t.L=Math.floor(a[0]/1e3),n+a[0].length):-1}function kR(t,e,n){var a=DR.exec(e.slice(n,n+1));return a?n+a[0].length:-1}function RR(t,e,n){var a=co.exec(e.slice(n));return a?(t.Q=+a[0],n+a[0].length):-1}function MR(t,e,n){var a=co.exec(e.slice(n));return a?(t.s=+a[0],n+a[0].length):-1}function O7(t,e){return yn(t.getDate(),e,2)}function zR(t,e){return yn(t.getHours(),e,2)}function ZR(t,e){return yn(t.getHours()%12||12,e,2)}function YR(t,e){return yn(1+m2.count(Fc(t),t),e,3)}function yG(t,e){return yn(t.getMilliseconds(),e,3)}function KR(t,e){return yG(t,e)+"000"}function qR(t,e){return yn(t.getMonth()+1,e,2)}function $R(t,e){return yn(t.getMinutes(),e,2)}function WR(t,e){return yn(t.getSeconds(),e,2)}function VR(t){var e=t.getDay();return e===0?7:e}function XR(t,e){return yn(dh.count(Fc(t)-1,t),e,2)}function CG(t){var e=t.getDay();return e>=4||e===0?jA(t):jA.ceil(t)}function JR(t,e){return t=CG(t),yn(jA.count(Fc(t),t)+(Fc(t).getDay()===4),e,2)}function eM(t){return t.getDay()}function tM(t,e){return yn(pg.count(Fc(t)-1,t),e,2)}function nM(t,e){return yn(t.getFullYear()%100,e,2)}function aM(t,e){return t=CG(t),yn(t.getFullYear()%100,e,2)}function oM(t,e){return yn(t.getFullYear()%1e4,e,4)}function rM(t,e){var n=t.getDay();return t=n>=4||n===0?jA(t):jA.ceil(t),yn(t.getFullYear()%1e4,e,4)}function sM(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+yn(e/60|0,"0",2)+yn(e%60,"0",2)}function T7(t,e){return yn(t.getUTCDate(),e,2)}function iM(t,e){return yn(t.getUTCHours(),e,2)}function cM(t,e){return yn(t.getUTCHours()%12||12,e,2)}function lM(t,e){return yn(1+mh.count(Lc(t),t),e,3)}function bG(t,e){return yn(t.getUTCMilliseconds(),e,3)}function mM(t,e){return bG(t,e)+"000"}function dM(t,e){return yn(t.getUTCMonth()+1,e,2)}function AM(t,e){return yn(t.getUTCMinutes(),e,2)}function uM(t,e){return yn(t.getUTCSeconds(),e,2)}function pM(t){var e=t.getUTCDay();return e===0?7:e}function fM(t,e){return yn(Ah.count(Lc(t)-1,t),e,2)}function vG(t){var e=t.getUTCDay();return e>=4||e===0?GA(t):GA.ceil(t)}function gM(t,e){return t=vG(t),yn(GA.count(Lc(t),t)+(Lc(t).getUTCDay()===4),e,2)}function hM(t){return t.getUTCDay()}function xM(t,e){return yn(fg.count(Lc(t)-1,t),e,2)}function yM(t,e){return yn(t.getUTCFullYear()%100,e,2)}function CM(t,e){return t=vG(t),yn(t.getUTCFullYear()%100,e,2)}function bM(t,e){return yn(t.getUTCFullYear()%1e4,e,4)}function vM(t,e){var n=t.getUTCDay();return t=n>=4||n===0?GA(t):GA.ceil(t),yn(t.getUTCFullYear()%1e4,e,4)}function wM(){return"+0000"}function k7(){return"%"}function R7(t){return+t}function M7(t){return Math.floor(+t/1e3)}var Yd,wG,BG;BM({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function BM(t){return Yd=BR(t),wG=Yd.format,Yd.parse,BG=Yd.utcFormat,Yd.utcParse,Yd}function DM(t){return new Date(t)}function UM(t){return t instanceof Date?+t:+new Date(+t)}function yw(t,e,n,a,o,r,s,c,l,A){var p=rw(),u=p.invert,x=p.domain,h=A(".%L"),w=A(":%S"),b=A("%I:%M"),v=A("%I %p"),B=A("%a %d"),U=A("%b %d"),G=A("%B"),Q=A("%Y");function _(S){return(l(S)e(o/(t.length-1)))},n.quantiles=function(a){return Array.from({length:a+1},(o,r)=>f9(t,r/a))},n.copy=function(){return NG(e).domain(t)},Rc.apply(n,arguments)}function ph(){var t=0,e=.5,n=1,a=1,o,r,s,c,l,A=rr,p,u=!1,x;function h(b){return isNaN(b=+b)?x:(b=.5+((b=+p(b))-r)*(a*bn}return JC=t,JC}var eb,K7;function _M(){if(K7)return eb;K7=1;var t=fh(),e=EG(),n=JA();function a(o){return o&&o.length?t(o,n,e):void 0}return eb=a,eb}var EM=_M();const gh=Qn(EM);var tb,q7;function PG(){if(q7)return tb;q7=1;function t(e,n){return et.e^r.s<0?1:-1;for(a=r.d.length,o=t.d.length,e=0,n=at.d[e]^r.s<0?1:-1;return a===o?0:a>o^r.s<0?1:-1};xt.decimalPlaces=xt.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*ta;if(e=t.d[e],e)for(;e%10==0;e/=10)n--;return n<0?0:n};xt.dividedBy=xt.div=function(t){return Ec(this,new this.constructor(t))};xt.dividedToIntegerBy=xt.idiv=function(t){var e=this,n=e.constructor;return Tn(Ec(e,new n(t),0,1),n.precision)};xt.equals=xt.eq=function(t){return!this.cmp(t)};xt.exponent=function(){return Ia(this)};xt.greaterThan=xt.gt=function(t){return this.cmp(t)>0};xt.greaterThanOrEqualTo=xt.gte=function(t){return this.cmp(t)>=0};xt.isInteger=xt.isint=function(){return this.e>this.d.length-2};xt.isNegative=xt.isneg=function(){return this.s<0};xt.isPositive=xt.ispos=function(){return this.s>0};xt.isZero=function(){return this.s===0};xt.lessThan=xt.lt=function(t){return this.cmp(t)<0};xt.lessThanOrEqualTo=xt.lte=function(t){return this.cmp(t)<1};xt.logarithm=xt.log=function(t){var e,n=this,a=n.constructor,o=a.precision,r=o+5;if(t===void 0)t=new a(10);else if(t=new a(t),t.s<1||t.eq(kr))throw Error(fs+"NaN");if(n.s<1)throw Error(fs+(n.s?"NaN":"-Infinity"));return n.eq(kr)?new a(0):(ca=!1,e=Ec(Gp(n,r),Gp(t,r),r),ca=!0,Tn(e,o))};xt.minus=xt.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?QG(e,t):FG(e,(t.s=-t.s,t))};xt.modulo=xt.mod=function(t){var e,n=this,a=n.constructor,o=a.precision;if(t=new a(t),!t.s)throw Error(fs+"NaN");return n.s?(ca=!1,e=Ec(n,t,0,1).times(t),ca=!0,n.minus(e)):Tn(new a(n),o)};xt.naturalExponential=xt.exp=function(){return LG(this)};xt.naturalLogarithm=xt.ln=function(){return Gp(this)};xt.negated=xt.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};xt.plus=xt.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?FG(e,t):QG(e,(t.s=-t.s,t))};xt.precision=xt.sd=function(t){var e,n,a,o=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(ad+t);if(e=Ia(o)+1,a=o.d.length-1,n=a*ta+1,a=o.d[a],a){for(;a%10==0;a/=10)n--;for(a=o.d[0];a>=10;a/=10)n++}return t&&e>n?e:n};xt.squareRoot=xt.sqrt=function(){var t,e,n,a,o,r,s,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(fs+"NaN")}for(t=Ia(c),ca=!1,o=Math.sqrt(+c),o==0||o==1/0?(e=Bi(c.d),(e.length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=nu((t+1)/2)-(t<0||t%2),o==1/0?e="5e"+t:(e=o.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),a=new l(e)):a=new l(o.toString()),n=l.precision,o=s=n+3;;)if(r=a,a=r.plus(Ec(c,r,s+2)).times(.5),Bi(r.d).slice(0,s)===(e=Bi(a.d)).slice(0,s)){if(e=e.slice(s-3,s+1),o==s&&e=="4999"){if(Tn(r,n+1,0),r.times(r).eq(c)){a=r;break}}else if(e!="9999")break;s+=4}return ca=!0,Tn(a,n)};xt.times=xt.mul=function(t){var e,n,a,o,r,s,c,l,A,p=this,u=p.constructor,x=p.d,h=(t=new u(t)).d;if(!p.s||!t.s)return new u(0);for(t.s*=p.s,n=p.e+t.e,l=x.length,A=h.length,l=0;){for(e=0,o=l+a;o>a;)c=r[o]+h[a]*x[o-a-1]+e,r[o--]=c%so|0,e=c/so|0;r[o]=(r[o]+e)%so|0}for(;!r[--s];)r.pop();return e?++n:r.shift(),t.d=r,t.e=n,ca?Tn(t,u.precision):t};xt.toDecimalPlaces=xt.todp=function(t,e){var n=this,a=n.constructor;return n=new a(n),t===void 0?n:(Ei(t,0,tu),e===void 0?e=a.rounding:Ei(e,0,8),Tn(n,t+Ia(n)+1,e))};xt.toExponential=function(t,e){var n,a=this,o=a.constructor;return t===void 0?n=ld(a,!0):(Ei(t,0,tu),e===void 0?e=o.rounding:Ei(e,0,8),a=Tn(new o(a),t+1,e),n=ld(a,!0,t+1)),n};xt.toFixed=function(t,e){var n,a,o=this,r=o.constructor;return t===void 0?ld(o):(Ei(t,0,tu),e===void 0?e=r.rounding:Ei(e,0,8),a=Tn(new r(o),t+Ia(o)+1,e),n=ld(a.abs(),!1,t+Ia(a)+1),o.isneg()&&!o.isZero()?"-"+n:n)};xt.toInteger=xt.toint=function(){var t=this,e=t.constructor;return Tn(new e(t),Ia(t)+1,e.rounding)};xt.toNumber=function(){return+this};xt.toPower=xt.pow=function(t){var e,n,a,o,r,s,c=this,l=c.constructor,A=12,p=+(t=new l(t));if(!t.s)return new l(kr);if(c=new l(c),!c.s){if(t.s<1)throw Error(fs+"Infinity");return c}if(c.eq(kr))return c;if(a=l.precision,t.eq(kr))return Tn(c,a);if(e=t.e,n=t.d.length-1,s=e>=n,r=c.s,s){if((n=p<0?-p:p)<=SG){for(o=new l(kr),e=Math.ceil(a/ta+4),ca=!1;n%2&&(o=o.times(c),eH(o.d,e)),n=nu(n/2),n!==0;)c=c.times(c),eH(c.d,e);return ca=!0,t.s<0?new l(kr).div(o):Tn(o,a)}}else if(r<0)throw Error(fs+"NaN");return r=r<0&&t.d[Math.max(e,n)]&1?-1:1,c.s=1,ca=!1,o=t.times(Gp(c,a+A)),ca=!0,o=LG(o),o.s=r,o};xt.toPrecision=function(t,e){var n,a,o=this,r=o.constructor;return t===void 0?(n=Ia(o),a=ld(o,n<=r.toExpNeg||n>=r.toExpPos)):(Ei(t,1,tu),e===void 0?e=r.rounding:Ei(e,0,8),o=Tn(new r(o),t,e),n=Ia(o),a=ld(o,t<=n||n<=r.toExpNeg,t)),a};xt.toSignificantDigits=xt.tosd=function(t,e){var n=this,a=n.constructor;return t===void 0?(t=a.precision,e=a.rounding):(Ei(t,1,tu),e===void 0?e=a.rounding:Ei(e,0,8)),Tn(new a(n),t,e)};xt.toString=xt.valueOf=xt.val=xt.toJSON=xt[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=Ia(t),n=t.constructor;return ld(t,e<=n.toExpNeg||e>=n.toExpPos)};function FG(t,e){var n,a,o,r,s,c,l,A,p=t.constructor,u=p.precision;if(!t.s||!e.s)return e.s||(e=new p(t)),ca?Tn(e,u):e;if(l=t.d,A=e.d,s=t.e,o=e.e,l=l.slice(),r=s-o,r){for(r<0?(a=l,r=-r,c=A.length):(a=A,o=s,c=l.length),s=Math.ceil(u/ta),c=s>c?s+1:c+1,r>c&&(r=c,a.length=1),a.reverse();r--;)a.push(0);a.reverse()}for(c=l.length,r=A.length,c-r<0&&(r=c,a=A,A=l,l=a),n=0;r;)n=(l[--r]=l[r]+A[r]+n)/so|0,l[r]%=so;for(n&&(l.unshift(n),++o),c=l.length;l[--c]==0;)l.pop();return e.d=l,e.e=o,ca?Tn(e,u):e}function Ei(t,e,n){if(t!==~~t||tn)throw Error(ad+t)}function Bi(t){var e,n,a,o=t.length-1,r="",s=t[0];if(o>0){for(r+=s,e=1;es?1:-1;else for(c=l=0;co[c]?1:-1;break}return l}function n(a,o,r){for(var s=0;r--;)a[r]-=s,s=a[r]1;)a.shift()}return function(a,o,r,s){var c,l,A,p,u,x,h,w,b,v,B,U,G,Q,_,S,F,O,R=a.constructor,oe=a.s==o.s?1:-1,L=a.d,I=o.d;if(!a.s)return new R(a);if(!o.s)throw Error(fs+"Division by zero");for(l=a.e-o.e,F=I.length,_=L.length,h=new R(oe),w=h.d=[],A=0;I[A]==(L[A]||0);)++A;if(I[A]>(L[A]||0)&&--l,r==null?U=r=R.precision:s?U=r+(Ia(a)-Ia(o))+1:U=r,U<0)return new R(0);if(U=U/ta+2|0,A=0,F==1)for(p=0,I=I[0],U++;(A<_||p)&&U--;A++)G=p*so+(L[A]||0),w[A]=G/I|0,p=G%I|0;else{for(p=so/(I[0]+1)|0,p>1&&(I=t(I,p),L=t(L,p),F=I.length,_=L.length),Q=F,b=L.slice(0,F),v=b.length;v=so/2&&++S;do p=0,c=e(I,b,F,v),c<0?(B=b[0],F!=v&&(B=B*so+(b[1]||0)),p=B/S|0,p>1?(p>=so&&(p=so-1),u=t(I,p),x=u.length,v=b.length,c=e(u,b,x,v),c==1&&(p--,n(u,F16)throw Error(ww+Ia(t));if(!t.s)return new p(kr);for(ca=!1,c=u,s=new p(.03125);t.abs().gte(.1);)t=t.times(s),A+=5;for(a=Math.log(zm(2,A))/Math.LN10*2+5|0,c+=a,n=o=r=new p(kr),p.precision=c;;){if(o=Tn(o.times(t),c),n=n.times(++l),s=r.plus(Ec(o,n,c)),Bi(s.d).slice(0,c)===Bi(r.d).slice(0,c)){for(;A--;)r=Tn(r.times(r),c);return p.precision=u,e==null?(ca=!0,Tn(r,u)):r}r=s}}function Ia(t){for(var e=t.e*ta,n=t.d[0];n>=10;n/=10)e++;return e}function sb(t,e,n){if(e>t.LN10.sd())throw ca=!0,n&&(t.precision=n),Error(fs+"LN10 precision limit exceeded");return Tn(new t(t.LN10),e)}function kl(t){for(var e="";t--;)e+="0";return e}function Gp(t,e){var n,a,o,r,s,c,l,A,p,u=1,x=10,h=t,w=h.d,b=h.constructor,v=b.precision;if(h.s<1)throw Error(fs+(h.s?"NaN":"-Infinity"));if(h.eq(kr))return new b(0);if(e==null?(ca=!1,A=v):A=e,h.eq(10))return e==null&&(ca=!0),sb(b,A);if(A+=x,b.precision=A,n=Bi(w),a=n.charAt(0),r=Ia(h),Math.abs(r)<15e14){for(;a<7&&a!=1||a==1&&n.charAt(1)>3;)h=h.times(t),n=Bi(h.d),a=n.charAt(0),u++;r=Ia(h),a>1?(h=new b("0."+n),r++):h=new b(a+"."+n.slice(1))}else return l=sb(b,A+2,v).times(r+""),h=Gp(new b(a+"."+n.slice(1)),A-x).plus(l),b.precision=v,e==null?(ca=!0,Tn(h,v)):h;for(c=s=h=Ec(h.minus(kr),h.plus(kr),A),p=Tn(h.times(h),A),o=3;;){if(s=Tn(s.times(p),A),l=c.plus(Ec(s,new b(o),A)),Bi(l.d).slice(0,A)===Bi(c.d).slice(0,A))return c=c.times(2),r!==0&&(c=c.plus(sb(b,A+2,v).times(r+""))),c=Ec(c,new b(u),A),b.precision=v,e==null?(ca=!0,Tn(c,v)):c;c=l,o+=2}}function J7(t,e){var n,a,o;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(a=e.search(/e/i))>0?(n<0&&(n=a),n+=+e.slice(a+1),e=e.substring(0,a)):n<0&&(n=e.length),a=0;e.charCodeAt(a)===48;)++a;for(o=e.length;e.charCodeAt(o-1)===48;)--o;if(e=e.slice(a,o),e){if(o-=a,n=n-a-1,t.e=nu(n/ta),t.d=[],a=(n+1)%ta,n<0&&(a+=ta),agg||t.e<-gg))throw Error(ww+n)}else t.s=0,t.e=0,t.d=[0];return t}function Tn(t,e,n){var a,o,r,s,c,l,A,p,u=t.d;for(s=1,r=u[0];r>=10;r/=10)s++;if(a=e-s,a<0)a+=ta,o=e,A=u[p=0];else{if(p=Math.ceil((a+1)/ta),r=u.length,p>=r)return t;for(A=r=u[p],s=1;r>=10;r/=10)s++;a%=ta,o=a-ta+s}if(n!==void 0&&(r=zm(10,s-o-1),c=A/r%10|0,l=e<0||u[p+1]!==void 0||A%r,l=n<4?(c||l)&&(n==0||n==(t.s<0?3:2)):c>5||c==5&&(n==4||l||n==6&&(a>0?o>0?A/zm(10,s-o):0:u[p-1])%10&1||n==(t.s<0?8:7))),e<1||!u[0])return l?(r=Ia(t),u.length=1,e=e-r-1,u[0]=zm(10,(ta-e%ta)%ta),t.e=nu(-e/ta)||0):(u.length=1,u[0]=t.e=t.s=0),t;if(a==0?(u.length=p,r=1,p--):(u.length=p+1,r=zm(10,ta-a),u[p]=o>0?(A/zm(10,s-o)%zm(10,o)|0)*r:0),l)for(;;)if(p==0){(u[0]+=r)==so&&(u[0]=1,++t.e);break}else{if(u[p]+=r,u[p]!=so)break;u[p--]=0,r=1}for(a=u.length;u[--a]===0;)u.pop();if(ca&&(t.e>gg||t.e<-gg))throw Error(ww+Ia(t));return t}function QG(t,e){var n,a,o,r,s,c,l,A,p,u,x=t.constructor,h=x.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new x(t),ca?Tn(e,h):e;if(l=t.d,u=e.d,a=e.e,A=t.e,l=l.slice(),s=A-a,s){for(p=s<0,p?(n=l,s=-s,c=u.length):(n=u,a=A,c=l.length),o=Math.max(Math.ceil(h/ta),c)+2,s>o&&(s=o,n.length=1),n.reverse(),o=s;o--;)n.push(0);n.reverse()}else{for(o=l.length,c=u.length,p=o0;--o)l[c++]=0;for(o=u.length;o>s;){if(l[--o]0?r=r.charAt(0)+"."+r.slice(1)+kl(a):s>1&&(r=r.charAt(0)+"."+r.slice(1)),r=r+(o<0?"e":"e+")+o):o<0?(r="0."+kl(-o-1)+r,n&&(a=n-s)>0&&(r+=kl(a))):o>=s?(r+=kl(o+1-s),n&&(a=n-o-1)>0&&(r=r+"."+kl(a))):((a=o+1)0&&(o+1===s&&(r+="."),r+=kl(a))),t.s<0?"-"+r:r}function eH(t,e){if(t.length>e)return t.length=e,!0}function IG(t){var e,n,a;function o(r){var s=this;if(!(s instanceof o))return new o(r);if(s.constructor=o,r instanceof o){s.s=r.s,s.e=r.e,s.d=(r=r.d)?r.slice():r;return}if(typeof r=="number"){if(r*0!==0)throw Error(ad+r);if(r>0)s.s=1;else if(r<0)r=-r,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(r===~~r&&r<1e7){s.e=0,s.d=[r];return}return J7(s,r.toString())}else if(typeof r!="string")throw Error(ad+r);if(r.charCodeAt(0)===45?(r=r.slice(1),s.s=-1):s.s=1,RM.test(r))J7(s,r);else throw Error(ad+r)}if(o.prototype=xt,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=IG,o.config=o.set=MM,t===void 0&&(t={}),t)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e=o[e+1]&&a<=o[e+2])this[n]=a;else throw Error(ad+n+": "+a);if((a=t[n="LN10"])!==void 0)if(a==Math.LN10)this[n]=new this(a);else throw Error(ad+n+": "+a);return this}var Bw=IG(kM);kr=new Bw(1);const Sn=Bw;function zM(t){return qM(t)||KM(t)||YM(t)||ZM()}function ZM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YM(t,e){if(t){if(typeof t=="string")return tv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tv(t,e)}}function KM(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function qM(t){if(Array.isArray(t))return tv(t)}function tv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n=e?n.apply(void 0,o):t(e-s,tH(function(){for(var c=arguments.length,l=new Array(c),A=0;At.length)&&(e=t.length);for(var n=0,a=new Array(e);n"u"||!(Symbol.iterator in Object(t)))){var n=[],a=!0,o=!1,r=void 0;try{for(var s=t[Symbol.iterator](),c;!(a=(c=s.next()).done)&&(n.push(c.value),!(e&&n.length===e));a=!0);}catch(l){o=!0,r=l}finally{try{!a&&s.return!=null&&s.return()}finally{if(o)throw r}}return n}}function lz(t){if(Array.isArray(t))return t}function MG(t){var e=_p(t,2),n=e[0],a=e[1],o=n,r=a;return n>a&&(o=a,r=n),[o,r]}function zG(t,e,n){if(t.lte(0))return new Sn(0);var a=yh.getDigitCount(t.toNumber()),o=new Sn(10).pow(a),r=t.div(o),s=a!==1?.05:.1,c=new Sn(Math.ceil(r.div(s).toNumber())).add(n).mul(s),l=c.mul(o);return e?l:new Sn(Math.ceil(l))}function mz(t,e,n){var a=1,o=new Sn(t);if(!o.isint()&&n){var r=Math.abs(t);r<1?(a=new Sn(10).pow(yh.getDigitCount(t)-1),o=new Sn(Math.floor(o.div(a).toNumber())).mul(a)):r>1&&(o=new Sn(Math.floor(t)))}else t===0?o=new Sn(Math.floor((e-1)/2)):n||(o=new Sn(Math.floor(t)));var s=Math.floor((e-1)/2),c=XM(VM(function(l){return o.add(new Sn(l-s).mul(a)).toNumber()}),nv);return c(0,e)}function ZG(t,e,n,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new Sn(0),tickMin:new Sn(0),tickMax:new Sn(0)};var r=zG(new Sn(e).sub(t).div(n-1),a,o),s;t<=0&&e>=0?s=new Sn(0):(s=new Sn(t).add(e).div(2),s=s.sub(new Sn(s).mod(r)));var c=Math.ceil(s.sub(t).div(r).toNumber()),l=Math.ceil(new Sn(e).sub(s).div(r).toNumber()),A=c+l+1;return A>n?ZG(t,e,n,a,o+1):(A0?l+(n-A):l,c=e>0?c:c+(n-A)),{step:r,tickMin:s.sub(new Sn(c).mul(r)),tickMax:s.add(new Sn(l).mul(r))})}function dz(t){var e=_p(t,2),n=e[0],a=e[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(o,2),c=MG([n,a]),l=_p(c,2),A=l[0],p=l[1];if(A===-1/0||p===1/0){var u=p===1/0?[A].concat(ov(nv(0,o-1).map(function(){return 1/0}))):[].concat(ov(nv(0,o-1).map(function(){return-1/0})),[p]);return n>a?av(u):u}if(A===p)return mz(A,o,r);var x=ZG(A,p,s,r),h=x.step,w=x.tickMin,b=x.tickMax,v=yh.rangeStep(w,b.add(new Sn(.1).mul(h)),h);return n>a?av(v):v}function Az(t,e){var n=_p(t,2),a=n[0],o=n[1],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=MG([a,o]),c=_p(s,2),l=c[0],A=c[1];if(l===-1/0||A===1/0)return[a,o];if(l===A)return[l];var p=Math.max(e,2),u=zG(new Sn(A).sub(l).div(p-1),r,0),x=[].concat(ov(yh.rangeStep(new Sn(l),new Sn(A).sub(new Sn(.99).mul(u)),u)),[A]);return a>o?av(x):x}var uz=kG(dz),pz=kG(Az),fz="Invariant failed";function _A(t,e){throw new Error(fz)}var gz=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function EA(t){"@babel/helpers - typeof";return EA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EA(t)}function hg(){return hg=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,a=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function wz(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}function Bz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dz(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,a=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,s=-1,c=(n=a==null?void 0:a.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(r&&r.axisType==="angleAxis"&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var l=r.range,A=0;A0?o[A-1].coordinate:o[c-1].coordinate,u=o[A].coordinate,x=A>=c-1?o[0].coordinate:o[A+1].coordinate,h=void 0;if(zl(u-p)!==zl(x-u)){var w=[];if(zl(x-u)===zl(l[1]-l[0])){h=x;var b=u+l[1]-l[0];w[0]=Math.min(b,(b+p)/2),w[1]=Math.max(b,(b+p)/2)}else{h=p;var v=x+l[1]-l[0];w[0]=Math.min(u,(v+u)/2),w[1]=Math.max(u,(v+u)/2)}var B=[Math.min(u,(h+u)/2),Math.max(u,(h+u)/2)];if(e>B[0]&&e<=B[1]||e>=w[0]&&e<=w[1]){s=o[A].index;break}}else{var U=Math.min(p,x),G=Math.max(p,x);if(e>(U+u)/2&&e<=(G+u)/2){s=o[A].index;break}}}else for(var Q=0;Q0&&Q(a[Q].coordinate+a[Q-1].coordinate)/2&&e<=(a[Q].coordinate+a[Q+1].coordinate)/2||Q===c-1&&e>(a[Q].coordinate+a[Q-1].coordinate)/2){s=a[Q].index;break}return s},Uw=function(e){var n,a=e,o=a.type.displayName,r=(n=e.type)!==null&&n!==void 0&&n.defaultProps?wa(wa({},e.type.defaultProps),e.props):e.props,s=r.stroke,c=r.fill,l;switch(o){case"Line":l=s;break;case"Area":case"Radar":l=s&&s!=="none"?s:c;break;default:l=c;break}return l},Rz=function(e){var n=e.barSize,a=e.totalSize,o=e.stackGroups,r=o===void 0?{}:o;if(!r)return{};for(var s={},c=Object.keys(r),l=0,A=c.length;l=0});if(B&&B.length){var U=B[0].type.defaultProps,G=U!==void 0?wa(wa({},U),B[0].props):B[0].props,Q=G.barSize,_=G[v];s[_]||(s[_]=[]);var S=wn(Q)?n:Q;s[_].push({item:B[0],stackList:B.slice(1),barSize:wn(S)?void 0:wi(S,a,0)})}}return s},Mz=function(e){var n=e.barGap,a=e.barCategoryGap,o=e.bandSize,r=e.sizeList,s=r===void 0?[]:r,c=e.maxBarSize,l=s.length;if(l<1)return null;var A=wi(n,o,0,!0),p,u=[];if(s[0].barSize===+s[0].barSize){var x=!1,h=o/l,w=s.reduce(function(Q,_){return Q+_.barSize||0},0);w+=(l-1)*A,w>=o&&(w-=(l-1)*A,A=0),w>=o&&h>0&&(x=!0,h*=.9,w=l*h);var b=(o-w)/2>>0,v={offset:b-A,size:0};p=s.reduce(function(Q,_){var S={item:_.item,position:{offset:v.offset+v.size+A,size:x?h:_.barSize}},F=[].concat(oH(Q),[S]);return v=F[F.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function(O){F.push({item:O,position:v})}),F},u)}else{var B=wi(a,o,0,!0);o-2*B-(l-1)*A<=0&&(A=0);var U=(o-2*B-(l-1)*A)/l;U>1&&(U>>=0);var G=c===+c?Math.min(U,c):U;p=s.reduce(function(Q,_,S){var F=[].concat(oH(Q),[{item:_.item,position:{offset:B+(U+A)*S+(U-G)/2,size:G}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function(O){F.push({item:O,position:F[F.length-1].position})}),F},u)}return p},zz=function(e,n,a,o){var r=a.children,s=a.width,c=a.margin,l=s-(c.left||0)-(c.right||0),A=$G({children:r,legendWidth:l});if(A){var p=o||{},u=p.width,x=p.height,h=A.align,w=A.verticalAlign,b=A.layout;if((b==="vertical"||b==="horizontal"&&w==="middle")&&h!=="center"&&wt(e[h]))return wa(wa({},e),{},fA({},h,e[h]+(u||0)));if((b==="horizontal"||b==="vertical"&&h==="center")&&w!=="middle"&&wt(e[w]))return wa(wa({},e),{},fA({},w,e[w]+(x||0)))}return e},Zz=function(e,n,a){return wn(n)?!0:e==="horizontal"?n==="yAxis":e==="vertical"||a==="x"?n==="xAxis":a==="y"?n==="yAxis":!0},WG=function(e,n,a,o,r){var s=n.props.children,c=_c(s,Dw).filter(function(A){return Zz(o,r,A.props.direction)});if(c&&c.length){var l=c.map(function(A){return A.props.dataKey});return e.reduce(function(A,p){var u=Qc(p,a);if(wn(u))return A;var x=Array.isArray(u)?[hh(u),gh(u)]:[u,u],h=l.reduce(function(w,b){var v=Qc(p,b,0),B=x[0]-Math.abs(Array.isArray(v)?v[0]:v),U=x[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(B,w[0]),Math.max(U,w[1])]},[1/0,-1/0]);return[Math.min(h[0],A[0]),Math.max(h[1],A[1])]},[1/0,-1/0])}return null},Yz=function(e,n,a,o,r){var s=n.map(function(c){return WG(e,c,a,r,o)}).filter(function(c){return!wn(c)});return s&&s.length?s.reduce(function(c,l){return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]):null},VG=function(e,n,a,o,r){var s=n.map(function(l){var A=l.props.dataKey;return a==="number"&&A&&WG(e,l,A,o)||rp(e,A,a,r)});if(a==="number")return s.reduce(function(l,A){return[Math.min(l[0],A[0]),Math.max(l[1],A[1])]},[1/0,-1/0]);var c={};return s.reduce(function(l,A){for(var p=0,u=A.length;p=2?zl(c[0]-c[1])*2*A:A,n&&(e.ticks||e.niceTicks)){var p=(e.ticks||e.niceTicks).map(function(u){var x=r?r.indexOf(u):u;return{coordinate:o(x)+A,value:u,offset:A}});return p.filter(function(u){return!r2(u.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(u,x){return{coordinate:o(u)+A,value:u,index:x,offset:A}}):o.ticks&&!a?o.ticks(e.tickCount).map(function(u){return{coordinate:o(u)+A,value:u,offset:A}}):o.domain().map(function(u,x){return{coordinate:o(u)+A,value:r?r[u]:u,index:x,offset:A}})},ib=new WeakMap,of=function(e,n){if(typeof n!="function")return e;ib.has(e)||ib.set(e,new WeakMap);var a=ib.get(e);if(a.has(n))return a.get(n);var o=function(){e.apply(void 0,arguments),n.apply(void 0,arguments)};return a.set(n,o),o},Kz=function(e,n,a){var o=e.scale,r=e.type,s=e.layout,c=e.axisType;if(o==="auto")return s==="radial"&&c==="radiusAxis"?{scale:Dp(),realScaleType:"band"}:s==="radial"&&c==="angleAxis"?{scale:Ag(),realScaleType:"linear"}:r==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0)?{scale:op(),realScaleType:"point"}:r==="category"?{scale:Dp(),realScaleType:"band"}:{scale:Ag(),realScaleType:"linear"};if(o2(o)){var l="scale".concat(th(o));return{scale:(z7[l]||op)(),realScaleType:z7[l]?l:"point"}}return an(o)?{scale:o}:{scale:op(),realScaleType:"point"}},sH=1e-4,qz=function(e){var n=e.domain();if(!(!n||n.length<=2)){var a=n.length,o=e.range(),r=Math.min(o[0],o[1])-sH,s=Math.max(o[0],o[1])+sH,c=e(n[0]),l=e(n[a-1]);(cs||ls)&&e.domain([n[0],n[a-1]])}},$z=function(e){var n=e.length;if(!(n<=0))for(var a=0,o=e[0].length;a=0?(e[c][a][0]=r,e[c][a][1]=r+l,r=e[c][a][1]):(e[c][a][0]=s,e[c][a][1]=s+l,s=e[c][a][1])}},Wz=function(e){var n=e.length;if(!(n<=0))for(var a=0,o=e[0].length;a=0?(e[s][a][0]=r,e[s][a][1]=r+c,r=e[s][a][1]):(e[s][a][0]=0,e[s][a][1]=0)}},Vz={sign:$z,expand:II,none:wA,silhouette:OI,wiggle:TI,positive:Wz},Xz=function(e,n,a){var o=n.map(function(c){return c.props.dataKey}),r=Vz[a],s=QI().keys(o).value(function(c,l){return+Qc(c,l,0)}).order(Q1).offset(r);return s(e)},Jz=function(e,n,a,o,r,s){if(!e)return null;var c=s?n.reverse():n,l={},A=c.reduce(function(u,x){var h,w=(h=x.type)!==null&&h!==void 0&&h.defaultProps?wa(wa({},x.type.defaultProps),x.props):x.props,b=w.stackId,v=w.hide;if(v)return u;var B=w[a],U=u[B]||{hasStack:!1,stackGroups:{}};if(Ka(b)){var G=U.stackGroups[b]||{numericAxisId:a,cateAxisId:o,items:[]};G.items.push(x),U.hasStack=!0,U.stackGroups[b]=G}else U.stackGroups[I3("_stackId_")]={numericAxisId:a,cateAxisId:o,items:[x]};return wa(wa({},u),{},fA({},B,U))},l),p={};return Object.keys(A).reduce(function(u,x){var h=A[x];if(h.hasStack){var w={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(b,v){var B=h.stackGroups[v];return wa(wa({},b),{},fA({},v,{numericAxisId:a,cateAxisId:o,items:B.items,stackedData:Xz(e,B.items,r)}))},w)}return wa(wa({},u),{},fA({},x,h))},p)},eZ=function(e,n){var a=n.realScaleType,o=n.type,r=n.tickCount,s=n.originalDomain,c=n.allowDecimals,l=a||n.scale;if(l!=="auto"&&l!=="linear")return null;if(r&&o==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var A=e.domain();if(!A.length)return null;var p=uz(A,r,c);return e.domain([hh(p),gh(p)]),{niceTicks:p}}if(r&&o==="number"){var u=e.domain(),x=pz(u,r,c);return{niceTicks:x}}return null},tZ=function(e,n){var a,o=(a=e.type)!==null&&a!==void 0&&a.defaultProps?wa(wa({},e.type.defaultProps),e.props):e.props,r=o.stackId;if(Ka(r)){var s=n[r];if(s){var c=s.items.indexOf(e);return c>=0?s.stackedData[c]:null}}return null},nZ=function(e){return e.reduce(function(n,a){return[hh(a.concat([n[0]]).filter(wt)),gh(a.concat([n[1]]).filter(wt))]},[1/0,-1/0])},JG=function(e,n,a){return Object.keys(e).reduce(function(o,r){var s=e[r],c=s.stackedData,l=c.reduce(function(A,p){var u=nZ(p.slice(n,a+1));return[Math.min(A[0],u[0]),Math.max(A[1],u[1])]},[1/0,-1/0]);return[Math.min(l[0],o[0]),Math.max(l[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},iH=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cH=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cv=function(e,n,a){if(an(e))return e(n,a);if(!Array.isArray(e))return n;var o=[];if(wt(e[0]))o[0]=a?e[0]:Math.min(e[0],n[0]);else if(iH.test(e[0])){var r=+iH.exec(e[0])[1];o[0]=n[0]-r}else an(e[0])?o[0]=e[0](n[0]):o[0]=n[0];if(wt(e[1]))o[1]=a?e[1]:Math.max(e[1],n[1]);else if(cH.test(e[1])){var s=+cH.exec(e[1])[1];o[1]=n[1]+s}else an(e[1])?o[1]=e[1](n[1]):o[1]=n[1];return o},lv=function(e,n,a){if(e&&e.scale&&e.scale.bandwidth){var o=e.scale.bandwidth();if(!a||o>0)return o}if(e&&n&&n.length>=2){for(var r=X3(n,function(u){return u.coordinate}),s=1/0,c=1,l=r.length;ct.length)&&(e=t.length);for(var n=0,a=new Array(e);n2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(a.left||0)-(a.right||0)),Math.abs(n-(a.top||0)-(a.bottom||0)))/2},uZ=function(e,n,a,o,r){var s=e.width,c=e.height,l=e.startAngle,A=e.endAngle,p=wi(e.cx,s,s/2),u=wi(e.cy,c,c/2),x=AZ(s,c,a),h=wi(e.innerRadius,x,0),w=wi(e.outerRadius,x,x*.8),b=Object.keys(n);return b.reduce(function(v,B){var U=n[B],G=U.domain,Q=U.reversed,_;if(wn(U.range))o==="angleAxis"?_=[l,A]:o==="radiusAxis"&&(_=[h,w]),Q&&(_=[_[1],_[0]]);else{_=U.range;var S=_,F=sZ(S,2);l=F[0],A=F[1]}var O=Kz(U,r),R=O.realScaleType,oe=O.scale;oe.domain(G).range(_),qz(oe);var L=eZ(oe,Bc(Bc({},U),{},{realScaleType:R})),I=Bc(Bc(Bc({},U),L),{},{range:_,radius:w,realScaleType:R,scale:oe,cx:p,cy:u,innerRadius:h,outerRadius:w,startAngle:l,endAngle:A});return Bc(Bc({},v),{},e_({},B,I))},{})},pZ=function(e,n){var a=e.x,o=e.y,r=n.x,s=n.y;return Math.sqrt(Math.pow(a-r,2)+Math.pow(o-s,2))},fZ=function(e,n){var a=e.x,o=e.y,r=n.cx,s=n.cy,c=pZ({x:a,y:o},{x:r,y:s});if(c<=0)return{radius:c};var l=(a-r)/c,A=Math.acos(l);return o>s&&(A=2*Math.PI-A),{radius:c,angle:dZ(A),angleInRadian:A}},gZ=function(e){var n=e.startAngle,a=e.endAngle,o=Math.floor(n/360),r=Math.floor(a/360),s=Math.min(o,r);return{startAngle:n-s*360,endAngle:a-s*360}},hZ=function(e,n){var a=n.startAngle,o=n.endAngle,r=Math.floor(a/360),s=Math.floor(o/360),c=Math.min(r,s);return e+c*360},AH=function(e,n){var a=e.x,o=e.y,r=fZ({x:a,y:o},n),s=r.radius,c=r.angle,l=n.innerRadius,A=n.outerRadius;if(sA)return!1;if(s===0)return!0;var p=gZ(n),u=p.startAngle,x=p.endAngle,h=c,w;if(u<=x){for(;h>x;)h-=360;for(;h=u&&h<=x}else{for(;h>u;)h-=360;for(;h=x&&h<=u}return w?Bc(Bc({},n),{},{radius:s,angle:hZ(h,n)}):null},t_=function(e){return!be.isValidElement(e)&&!an(e)&&typeof e!="boolean"?e.className:""};function Fp(t){"@babel/helpers - typeof";return Fp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fp(t)}var xZ=["offset"];function yZ(t){return wZ(t)||vZ(t)||bZ(t)||CZ()}function CZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bZ(t,e){if(t){if(typeof t=="string")return mv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mv(t,e)}}function vZ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function wZ(t){if(Array.isArray(t))return mv(t)}function mv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function DZ(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}function uH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function Za(t){for(var e=1;e=0?1:-1,G,Q;o==="insideStart"?(G=h+U*s,Q=b):o==="insideEnd"?(G=w-U*s,Q=!b):o==="end"&&(G=w+U*s,Q=b),Q=B<=0?Q:!Q;var _=Ln(A,p,v,G),S=Ln(A,p,v,G+(Q?1:-1)*359),F="M".concat(_.x,",").concat(_.y,` + A`).concat(v,",").concat(v,",0,1,").concat(Q?0:1,`, + `).concat(S.x,",").concat(S.y),O=wn(e.id)?I3("recharts-radial-line-"):e.id;return ue.createElement("text",Lp({},a,{dominantBaseline:"central",className:pn("recharts-radial-bar-label",c)}),ue.createElement("defs",null,ue.createElement("path",{id:O,d:F})),ue.createElement("textPath",{xlinkHref:"#".concat(O)},n))},EZ=function(e){var n=e.viewBox,a=e.offset,o=e.position,r=n,s=r.cx,c=r.cy,l=r.innerRadius,A=r.outerRadius,p=r.startAngle,u=r.endAngle,x=(p+u)/2;if(o==="outside"){var h=Ln(s,c,A+a,x),w=h.x,b=h.y;return{x:w,y:b,textAnchor:w>=s?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"end"};var v=(l+A)/2,B=Ln(s,c,v,x),U=B.x,G=B.y;return{x:U,y:G,textAnchor:"middle",verticalAnchor:"middle"}},PZ=function(e){var n=e.viewBox,a=e.parentViewBox,o=e.offset,r=e.position,s=n,c=s.x,l=s.y,A=s.width,p=s.height,u=p>=0?1:-1,x=u*o,h=u>0?"end":"start",w=u>0?"start":"end",b=A>=0?1:-1,v=b*o,B=b>0?"end":"start",U=b>0?"start":"end";if(r==="top"){var G={x:c+A/2,y:l-u*o,textAnchor:"middle",verticalAnchor:h};return Za(Za({},G),a?{height:Math.max(l-a.y,0),width:A}:{})}if(r==="bottom"){var Q={x:c+A/2,y:l+p+x,textAnchor:"middle",verticalAnchor:w};return Za(Za({},Q),a?{height:Math.max(a.y+a.height-(l+p),0),width:A}:{})}if(r==="left"){var _={x:c-v,y:l+p/2,textAnchor:B,verticalAnchor:"middle"};return Za(Za({},_),a?{width:Math.max(_.x-a.x,0),height:p}:{})}if(r==="right"){var S={x:c+A+v,y:l+p/2,textAnchor:U,verticalAnchor:"middle"};return Za(Za({},S),a?{width:Math.max(a.x+a.width-S.x,0),height:p}:{})}var F=a?{width:A,height:p}:{};return r==="insideLeft"?Za({x:c+v,y:l+p/2,textAnchor:U,verticalAnchor:"middle"},F):r==="insideRight"?Za({x:c+A-v,y:l+p/2,textAnchor:B,verticalAnchor:"middle"},F):r==="insideTop"?Za({x:c+A/2,y:l+x,textAnchor:"middle",verticalAnchor:w},F):r==="insideBottom"?Za({x:c+A/2,y:l+p-x,textAnchor:"middle",verticalAnchor:h},F):r==="insideTopLeft"?Za({x:c+v,y:l+x,textAnchor:U,verticalAnchor:w},F):r==="insideTopRight"?Za({x:c+A-v,y:l+x,textAnchor:B,verticalAnchor:w},F):r==="insideBottomLeft"?Za({x:c+v,y:l+p-x,textAnchor:U,verticalAnchor:h},F):r==="insideBottomRight"?Za({x:c+A-v,y:l+p-x,textAnchor:B,verticalAnchor:h},F):XA(r)&&(wt(r.x)||Wm(r.x))&&(wt(r.y)||Wm(r.y))?Za({x:c+wi(r.x,A),y:l+wi(r.y,p),textAnchor:"end",verticalAnchor:"end"},F):Za({x:c+A/2,y:l+p/2,textAnchor:"middle",verticalAnchor:"middle"},F)},SZ=function(e){return"cx"in e&&wt(e.cx)};function ko(t){var e=t.offset,n=e===void 0?5:e,a=BZ(t,xZ),o=Za({offset:n},a),r=o.viewBox,s=o.position,c=o.value,l=o.children,A=o.content,p=o.className,u=p===void 0?"":p,x=o.textBreakAll;if(!r||wn(c)&&wn(l)&&!be.isValidElement(A)&&!an(A))return null;if(be.isValidElement(A))return be.cloneElement(A,o);var h;if(an(A)){if(h=be.createElement(A,o),be.isValidElement(h))return h}else h=jZ(o);var w=SZ(r),b=Xt(o,!0);if(w&&(s==="insideStart"||s==="insideEnd"||s==="end"))return _Z(o,h,b);var v=w?EZ(o):PZ(o);return ue.createElement(Bp,Lp({className:pn("recharts-label",u)},b,v,{breakAll:x}),h)}ko.displayName="Label";var n_=function(e){var n=e.cx,a=e.cy,o=e.angle,r=e.startAngle,s=e.endAngle,c=e.r,l=e.radius,A=e.innerRadius,p=e.outerRadius,u=e.x,x=e.y,h=e.top,w=e.left,b=e.width,v=e.height,B=e.clockWise,U=e.labelViewBox;if(U)return U;if(wt(b)&&wt(v)){if(wt(u)&&wt(x))return{x:u,y:x,width:b,height:v};if(wt(h)&&wt(w))return{x:h,y:w,width:b,height:v}}return wt(u)&&wt(x)?{x:u,y:x,width:0,height:0}:wt(n)&&wt(a)?{cx:n,cy:a,startAngle:r||o||0,endAngle:s||o||0,innerRadius:A||0,outerRadius:p||l||c||0,clockWise:B}:e.viewBox?e.viewBox:{}},FZ=function(e,n){return e?e===!0?ue.createElement(ko,{key:"label-implicit",viewBox:n}):Ka(e)?ue.createElement(ko,{key:"label-implicit",viewBox:n,value:e}):be.isValidElement(e)?e.type===ko?be.cloneElement(e,{key:"label-implicit",viewBox:n}):ue.createElement(ko,{key:"label-implicit",content:e,viewBox:n}):an(e)?ue.createElement(ko,{key:"label-implicit",content:e,viewBox:n}):XA(e)?ue.createElement(ko,Lp({viewBox:n},e,{key:"label-implicit"})):null:null},LZ=function(e,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&a&&!e.label)return null;var o=e.children,r=n_(e),s=_c(o,ko).map(function(l,A){return be.cloneElement(l,{viewBox:n||r,key:"label-".concat(A)})});if(!a)return s;var c=FZ(e.label,n||r);return[c].concat(yZ(s))};ko.parseViewBox=n_;ko.renderCallByParent=LZ;var cb,pH;function QZ(){if(pH)return cb;pH=1;function t(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}return cb=t,cb}var IZ=QZ();const a_=Qn(IZ);function Qp(t){"@babel/helpers - typeof";return Qp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qp(t)}var OZ=["valueAccessor"],TZ=["data","dataKey","clockWise","id","textBreakAll"];function kZ(t){return ZZ(t)||zZ(t)||MZ(t)||RZ()}function RZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MZ(t,e){if(t){if(typeof t=="string")return dv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dv(t,e)}}function zZ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ZZ(t){if(Array.isArray(t))return dv(t)}function dv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function $Z(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}var WZ=function(e){return Array.isArray(e.value)?a_(e.value):e.value};function od(t){var e=t.valueAccessor,n=e===void 0?WZ:e,a=hH(t,OZ),o=a.data,r=a.dataKey,s=a.clockWise,c=a.id,l=a.textBreakAll,A=hH(a,TZ);return!o||!o.length?null:ue.createElement(qa,{className:"recharts-label-list"},o.map(function(p,u){var x=wn(r)?n(p,u):Qc(p&&p.payload,r),h=wn(c)?{}:{id:"".concat(c,"-").concat(u)};return ue.createElement(ko,Cg({},Xt(p,!0),A,h,{parentViewBox:p.parentViewBox,value:x,textBreakAll:l,viewBox:ko.parseViewBox(wn(s)?p:gH(gH({},p),{},{clockWise:s})),key:"label-".concat(u),index:u}))}))}od.displayName="LabelList";function VZ(t,e){return t?t===!0?ue.createElement(od,{key:"labelList-implicit",data:e}):ue.isValidElement(t)||an(t)?ue.createElement(od,{key:"labelList-implicit",data:e,content:t}):XA(t)?ue.createElement(od,Cg({data:e},t,{key:"labelList-implicit"})):null:null}function XZ(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,o=_c(a,od).map(function(s,c){return be.cloneElement(s,{data:e,key:"labelList-".concat(c)})});if(!n)return o;var r=VZ(t.label,e);return[r].concat(kZ(o))}od.renderCallByParent=XZ;function Ip(t){"@babel/helpers - typeof";return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ip(t)}function Av(){return Av=Object.assign?Object.assign.bind():function(t){for(var e=1;e180),",").concat(+(s>A),`, + `).concat(u.x,",").concat(u.y,` + `);if(o>0){var h=Ln(n,a,o,s),w=Ln(n,a,o,A);x+="L ".concat(w.x,",").concat(w.y,` + A `).concat(o,",").concat(o,`,0, + `).concat(+(Math.abs(l)>180),",").concat(+(s<=A),`, + `).concat(h.x,",").concat(h.y," Z")}else x+="L ".concat(n,",").concat(a," Z");return x},aY=function(e){var n=e.cx,a=e.cy,o=e.innerRadius,r=e.outerRadius,s=e.cornerRadius,c=e.forceCornerRadius,l=e.cornerIsExternal,A=e.startAngle,p=e.endAngle,u=zl(p-A),x=rf({cx:n,cy:a,radius:r,angle:A,sign:u,cornerRadius:s,cornerIsExternal:l}),h=x.circleTangency,w=x.lineTangency,b=x.theta,v=rf({cx:n,cy:a,radius:r,angle:p,sign:-u,cornerRadius:s,cornerIsExternal:l}),B=v.circleTangency,U=v.lineTangency,G=v.theta,Q=l?Math.abs(A-p):Math.abs(A-p)-b-G;if(Q<0)return c?"M ".concat(w.x,",").concat(w.y,` + a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0 + a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0 + `):o_({cx:n,cy:a,innerRadius:o,outerRadius:r,startAngle:A,endAngle:p});var _="M ".concat(w.x,",").concat(w.y,` + A`).concat(s,",").concat(s,",0,0,").concat(+(u<0),",").concat(h.x,",").concat(h.y,` + A`).concat(r,",").concat(r,",0,").concat(+(Q>180),",").concat(+(u<0),",").concat(B.x,",").concat(B.y,` + A`).concat(s,",").concat(s,",0,0,").concat(+(u<0),",").concat(U.x,",").concat(U.y,` + `);if(o>0){var S=rf({cx:n,cy:a,radius:o,angle:A,sign:u,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),F=S.circleTangency,O=S.lineTangency,R=S.theta,oe=rf({cx:n,cy:a,radius:o,angle:p,sign:-u,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),L=oe.circleTangency,I=oe.lineTangency,M=oe.theta,K=l?Math.abs(A-p):Math.abs(A-p)-R-M;if(K<0&&s===0)return"".concat(_,"L").concat(n,",").concat(a,"Z");_+="L".concat(I.x,",").concat(I.y,` + A`).concat(s,",").concat(s,",0,0,").concat(+(u<0),",").concat(L.x,",").concat(L.y,` + A`).concat(o,",").concat(o,",0,").concat(+(K>180),",").concat(+(u>0),",").concat(F.x,",").concat(F.y,` + A`).concat(s,",").concat(s,",0,0,").concat(+(u<0),",").concat(O.x,",").concat(O.y,"Z")}else _+="L".concat(n,",").concat(a,"Z");return _},oY={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},rY=function(e){var n=yH(yH({},oY),e),a=n.cx,o=n.cy,r=n.innerRadius,s=n.outerRadius,c=n.cornerRadius,l=n.forceCornerRadius,A=n.cornerIsExternal,p=n.startAngle,u=n.endAngle,x=n.className;if(s0&&Math.abs(p-u)<360?v=aY({cx:a,cy:o,innerRadius:r,outerRadius:s,cornerRadius:Math.min(b,w/2),forceCornerRadius:l,cornerIsExternal:A,startAngle:p,endAngle:u}):v=o_({cx:a,cy:o,innerRadius:r,outerRadius:s,startAngle:p,endAngle:u}),ue.createElement("path",Av({},Xt(n,!0),{className:h,d:v,role:"img"}))};function Op(t){"@babel/helpers - typeof";return Op=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Op(t)}function uv(){return uv=Object.assign?Object.assign.bind():function(t){for(var e=1;e0;)if(!n.equals(t[a],e[a],a,a,t,e,n))return!1;return!0}function wY(t,e){return ud(t.getTime(),e.getTime())}function BY(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function DY(t,e){return t===e}function _H(t,e,n){var a=t.size;if(a!==e.size)return!1;if(!a)return!0;for(var o=new Array(a),r=t.entries(),s,c,l=0;(s=r.next())&&!s.done;){for(var A=e.entries(),p=!1,u=0;(c=A.next())&&!c.done;){if(o[u]){u++;continue}var x=s.value,h=c.value;if(n.equals(x[0],h[0],l,u,t,e,n)&&n.equals(x[1],h[1],x[0],h[0],t,e,n)){p=o[u]=!0;break}u++}if(!p)return!1;l++}return!0}var UY=ud;function HY(t,e,n){var a=GH(t),o=a.length;if(GH(e).length!==o)return!1;for(;o-- >0;)if(!r_(t,e,n,a[o]))return!1;return!0}function Iu(t,e,n){var a=NH(t),o=a.length;if(NH(e).length!==o)return!1;for(var r,s,c;o-- >0;)if(r=a[o],!r_(t,e,n,r)||(s=jH(t,r),c=jH(e,r),(s||c)&&(!s||!c||s.configurable!==c.configurable||s.enumerable!==c.enumerable||s.writable!==c.writable)))return!1;return!0}function NY(t,e){return ud(t.valueOf(),e.valueOf())}function jY(t,e){return t.source===e.source&&t.flags===e.flags}function EH(t,e,n){var a=t.size;if(a!==e.size)return!1;if(!a)return!0;for(var o=new Array(a),r=t.values(),s,c;(s=r.next())&&!s.done;){for(var l=e.values(),A=!1,p=0;(c=l.next())&&!c.done;){if(!o[p]&&n.equals(s.value,c.value,s.value,c.value,t,e,n)){A=o[p]=!0;break}p++}if(!A)return!1}return!0}function GY(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function _Y(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function r_(t,e,n,a){return(a===bY||a===CY||a===yY)&&(t.$$typeof||e.$$typeof)?!0:xY(e,a)&&n.equals(t[a],e[a],a,a,t,e,n)}var EY="[object Arguments]",PY="[object Boolean]",SY="[object Date]",FY="[object Error]",LY="[object Map]",QY="[object Number]",IY="[object Object]",OY="[object RegExp]",TY="[object Set]",kY="[object String]",RY="[object URL]",MY=Array.isArray,PH=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,SH=Object.assign,zY=Object.prototype.toString.call.bind(Object.prototype.toString);function ZY(t){var e=t.areArraysEqual,n=t.areDatesEqual,a=t.areErrorsEqual,o=t.areFunctionsEqual,r=t.areMapsEqual,s=t.areNumbersEqual,c=t.areObjectsEqual,l=t.arePrimitiveWrappersEqual,A=t.areRegExpsEqual,p=t.areSetsEqual,u=t.areTypedArraysEqual,x=t.areUrlsEqual;return function(w,b,v){if(w===b)return!0;if(w==null||b==null)return!1;var B=typeof w;if(B!==typeof b)return!1;if(B!=="object")return B==="number"?s(w,b,v):B==="function"?o(w,b,v):!1;var U=w.constructor;if(U!==b.constructor)return!1;if(U===Object)return c(w,b,v);if(MY(w))return e(w,b,v);if(PH!=null&&PH(w))return u(w,b,v);if(U===Date)return n(w,b,v);if(U===RegExp)return A(w,b,v);if(U===Map)return r(w,b,v);if(U===Set)return p(w,b,v);var G=zY(w);return G===SY?n(w,b,v):G===OY?A(w,b,v):G===LY?r(w,b,v):G===TY?p(w,b,v):G===IY?typeof w.then!="function"&&typeof b.then!="function"&&c(w,b,v):G===RY?x(w,b,v):G===FY?a(w,b,v):G===EY?c(w,b,v):G===PY||G===QY||G===kY?l(w,b,v):!1}}function YY(t){var e=t.circular,n=t.createCustomConfig,a=t.strict,o={areArraysEqual:a?Iu:vY,areDatesEqual:wY,areErrorsEqual:BY,areFunctionsEqual:DY,areMapsEqual:a?HH(_H,Iu):_H,areNumbersEqual:UY,areObjectsEqual:a?Iu:HY,arePrimitiveWrappersEqual:NY,areRegExpsEqual:jY,areSetsEqual:a?HH(EH,Iu):EH,areTypedArraysEqual:a?Iu:GY,areUrlsEqual:_Y};if(n&&(o=SH({},o,n(o))),e){var r=cf(o.areArraysEqual),s=cf(o.areMapsEqual),c=cf(o.areObjectsEqual),l=cf(o.areSetsEqual);o=SH({},o,{areArraysEqual:r,areMapsEqual:s,areObjectsEqual:c,areSetsEqual:l})}return o}function KY(t){return function(e,n,a,o,r,s,c){return t(e,n,c)}}function qY(t){var e=t.circular,n=t.comparator,a=t.createState,o=t.equals,r=t.strict;if(a)return function(l,A){var p=a(),u=p.cache,x=u===void 0?e?new WeakMap:void 0:u,h=p.meta;return n(l,A,{cache:x,equals:o,meta:h,strict:r})};if(e)return function(l,A){return n(l,A,{cache:new WeakMap,equals:o,meta:void 0,strict:r})};var s={cache:void 0,equals:o,meta:void 0,strict:r};return function(l,A){return n(l,A,s)}}var $Y=im();im({strict:!0});im({circular:!0});im({circular:!0,strict:!0});im({createInternalComparator:function(){return ud}});im({strict:!0,createInternalComparator:function(){return ud}});im({circular:!0,createInternalComparator:function(){return ud}});im({circular:!0,createInternalComparator:function(){return ud},strict:!0});function im(t){t===void 0&&(t={});var e=t.circular,n=e===void 0?!1:e,a=t.createInternalComparator,o=t.createState,r=t.strict,s=r===void 0?!1:r,c=YY(t),l=ZY(c),A=a?a(l):KY(l);return qY({circular:n,comparator:l,createState:o,equals:A,strict:s})}function WY(t){typeof requestAnimationFrame<"u"&&requestAnimationFrame(t)}function FH(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,a=function o(r){n<0&&(n=r),r-n>e?(t(r),n=-1):WY(o)};requestAnimationFrame(a)}function pv(t){"@babel/helpers - typeof";return pv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pv(t)}function VY(t){return tK(t)||eK(t)||JY(t)||XY()}function XY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JY(t,e){if(t){if(typeof t=="string")return LH(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LH(t,e)}}function LH(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);nt.length)&&(e=t.length);for(var n=0,a=new Array(e);n1?1:B<0?0:B},b=function(B){for(var U=B>1?1:B,G=U,Q=0;Q<8;++Q){var _=u(G)-U,S=h(G);if(Math.abs(_-U)0&&arguments[0]!==void 0?arguments[0]:{},n=e.stiff,a=n===void 0?100:n,o=e.damping,r=o===void 0?8:o,s=e.dt,c=s===void 0?17:s,l=function(p,u,x){var h=-(p-u)*a,w=x*r,b=x+(h-w)*c/1e3,v=x*c/1e3+p;return Math.abs(v-u)t.length)&&(e=t.length);for(var n=0,a=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function EK(t,e){if(t==null)return{};var n={},a=Object.keys(t),o,r;for(r=0;r=0)&&(n[o]=t[o]);return n}function Ab(t){return LK(t)||FK(t)||SK(t)||PK()}function PK(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SK(t,e){if(t){if(typeof t=="string")return yv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yv(t,e)}}function FK(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LK(t){if(Array.isArray(t))return yv(t)}function yv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wg(t){return wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wg(t)}var SA=(function(t){kK(n,t);var e=RK(n);function n(a,o){var r;QK(this,n),r=e.call(this,a,o);var s=r.props,c=s.isActive,l=s.attributeName,A=s.from,p=s.to,u=s.steps,x=s.children,h=s.duration;if(r.handleStyleChange=r.handleStyleChange.bind(vv(r)),r.changeStyle=r.changeStyle.bind(vv(r)),!c||h<=0)return r.state={style:{}},typeof x=="function"&&(r.state={style:p}),bv(r);if(u&&u.length)r.state={style:u[0].style};else if(A){if(typeof x=="function")return r.state={style:A},bv(r);r.state={style:l?qu({},l,A):A}}else r.state={style:{}};return r}return OK(n,[{key:"componentDidMount",value:function(){var o=this.props,r=o.isActive,s=o.canBegin;this.mounted=!0,!(!r||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var r=this.props,s=r.isActive,c=r.canBegin,l=r.attributeName,A=r.shouldReAnimate,p=r.to,u=r.from,x=this.state.style;if(c){if(!s){var h={style:l?qu({},l,p):p};this.state&&x&&(l&&x[l]!==p||!l&&x!==p)&&this.setState(h);return}if(!($Y(o.to,p)&&o.canBegin&&o.isActive)){var w=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var b=w||A?u:o.to;if(this.state&&x){var v={style:l?qu({},l,b):b};(l&&x[l]!==b||!l&&x!==b)&&this.setState(v)}this.runAnimation(Ts(Ts({},this.props),{},{from:b,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var r=this,s=o.from,c=o.to,l=o.duration,A=o.easing,p=o.begin,u=o.onAnimationEnd,x=o.onAnimationStart,h=jK(s,c,xK(A),l,this.changeStyle),w=function(){r.stopJSAnimation=h()};this.manager.start([x,p,w,l,u])}},{key:"runStepAnimation",value:function(o){var r=this,s=o.steps,c=o.begin,l=o.onAnimationStart,A=s[0],p=A.style,u=A.duration,x=u===void 0?0:u,h=function(b,v,B){if(B===0)return b;var U=v.duration,G=v.easing,Q=G===void 0?"ease":G,_=v.style,S=v.properties,F=v.onAnimationEnd,O=B>0?s[B-1]:v,R=S||Object.keys(_);if(typeof Q=="function"||Q==="spring")return[].concat(Ab(b),[r.runJSAnimation.bind(r,{from:O.style,to:_,duration:U,easing:Q}),U]);var oe=OH(R,U,Q),L=Ts(Ts(Ts({},O.style),_),{},{transition:oe});return[].concat(Ab(b),[L,U,F]).filter(sK)};return this.manager.start([l].concat(Ab(s.reduce(h,[p,Math.max(x,c)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=nK());var r=o.begin,s=o.duration,c=o.attributeName,l=o.to,A=o.easing,p=o.onAnimationStart,u=o.onAnimationEnd,x=o.steps,h=o.children,w=this.manager;if(this.unSubscribe=w.subscribe(this.handleStyleChange),typeof A=="function"||typeof h=="function"||A==="spring"){this.runJSAnimation(o);return}if(x.length>1){this.runStepAnimation(o);return}var b=c?qu({},c,l):l,v=OH(Object.keys(b),s,A);w.start([p,r,Ts(Ts({},b),{},{transition:v}),s,u])}},{key:"render",value:function(){var o=this.props,r=o.children;o.begin;var s=o.duration;o.attributeName,o.easing;var c=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var l=_K(o,GK),A=be.Children.count(r),p=this.state.style;if(typeof r=="function")return r(p);if(!c||A===0||s<=0)return r;var u=function(h){var w=h.props,b=w.style,v=b===void 0?{}:b,B=w.className,U=be.cloneElement(h,Ts(Ts({},l),{},{style:Ts(Ts({},v),p),className:B}));return U};return A===1?u(be.Children.only(r)):ue.createElement("div",null,be.Children.map(r,function(x){return u(x)}))}}]),n})(be.PureComponent);SA.displayName="Animate";SA.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};SA.propTypes={from:Hn.oneOfType([Hn.object,Hn.string]),to:Hn.oneOfType([Hn.object,Hn.string]),attributeName:Hn.string,duration:Hn.number,begin:Hn.number,easing:Hn.oneOfType([Hn.string,Hn.func]),steps:Hn.arrayOf(Hn.shape({duration:Hn.number.isRequired,style:Hn.object.isRequired,easing:Hn.oneOfType([Hn.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Hn.func]),properties:Hn.arrayOf("string"),onAnimationEnd:Hn.func})),children:Hn.oneOfType([Hn.node,Hn.func]),isActive:Hn.bool,canBegin:Hn.bool,onAnimationEnd:Hn.func,shouldReAnimate:Hn.bool,onAnimationStart:Hn.func,onAnimationReStart:Hn.func};function Rp(t){"@babel/helpers - typeof";return Rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rp(t)}function Bg(){return Bg=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,a=new Array(e);n=0?1:-1,l=a>=0?1:-1,A=o>=0&&a>=0||o<0&&a<0?1:0,p;if(s>0&&r instanceof Array){for(var u=[0,0,0,0],x=0,h=4;xs?s:r[x];p="M".concat(e,",").concat(n+c*u[0]),u[0]>0&&(p+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(A,",").concat(e+l*u[0],",").concat(n)),p+="L ".concat(e+a-l*u[1],",").concat(n),u[1]>0&&(p+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(A,`, + `).concat(e+a,",").concat(n+c*u[1])),p+="L ".concat(e+a,",").concat(n+o-c*u[2]),u[2]>0&&(p+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(A,`, + `).concat(e+a-l*u[2],",").concat(n+o)),p+="L ".concat(e+l*u[3],",").concat(n+o),u[3]>0&&(p+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(A,`, + `).concat(e,",").concat(n+o-c*u[3])),p+="Z"}else if(s>0&&r===+r&&r>0){var w=Math.min(s,r);p="M ".concat(e,",").concat(n+c*w,` + A `).concat(w,",").concat(w,",0,0,").concat(A,",").concat(e+l*w,",").concat(n,` + L `).concat(e+a-l*w,",").concat(n,` + A `).concat(w,",").concat(w,",0,0,").concat(A,",").concat(e+a,",").concat(n+c*w,` + L `).concat(e+a,",").concat(n+o-c*w,` + A `).concat(w,",").concat(w,",0,0,").concat(A,",").concat(e+a-l*w,",").concat(n+o,` + L `).concat(e+l*w,",").concat(n+o,` + A `).concat(w,",").concat(w,",0,0,").concat(A,",").concat(e,",").concat(n+o-c*w," Z")}else p="M ".concat(e,",").concat(n," h ").concat(a," v ").concat(o," h ").concat(-a," Z");return p},XK=function(e,n){if(!e||!n)return!1;var a=e.x,o=e.y,r=n.x,s=n.y,c=n.width,l=n.height;if(Math.abs(c)>0&&Math.abs(l)>0){var A=Math.min(r,r+c),p=Math.max(r,r+c),u=Math.min(s,s+l),x=Math.max(s,s+l);return a>=A&&a<=p&&o>=u&&o<=x}return!1},JK={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},A_=function(e){var n=KH(KH({},JK),e),a=be.useRef(),o=be.useState(-1),r=zK(o,2),s=r[0],c=r[1];be.useEffect(function(){if(a.current&&a.current.getTotalLength)try{var Q=a.current.getTotalLength();Q&&c(Q)}catch{}},[]);var l=n.x,A=n.y,p=n.width,u=n.height,x=n.radius,h=n.className,w=n.animationEasing,b=n.animationDuration,v=n.animationBegin,B=n.isAnimationActive,U=n.isUpdateAnimationActive;if(l!==+l||A!==+A||p!==+p||u!==+u||p===0||u===0)return null;var G=pn("recharts-rectangle",h);return U?ue.createElement(SA,{canBegin:s>0,from:{width:p,height:u,x:l,y:A},to:{width:p,height:u,x:l,y:A},duration:b,animationEasing:w,isActive:U},function(Q){var _=Q.width,S=Q.height,F=Q.x,O=Q.y;return ue.createElement(SA,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:b,isActive:B,easing:w},ue.createElement("path",Bg({},Xt(n,!0),{className:G,d:qH(F,O,_,S,x),ref:a})))}):ue.createElement("path",Bg({},Xt(n,!0),{className:G,d:qH(l,A,p,u,x)}))},eq=["points","className","baseLinePoints","connectNulls"];function cA(){return cA=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function nq(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}function $H(t){return sq(t)||rq(t)||oq(t)||aq()}function aq(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oq(t,e){if(t){if(typeof t=="string")return wv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wv(t,e)}}function rq(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function sq(t){if(Array.isArray(t))return wv(t)}function wv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return e.forEach(function(a){WH(a)?n[n.length-1].push(a):n[n.length-1].length>0&&n.push([])}),WH(e[0])&&n[n.length-1].push(e[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},ip=function(e,n){var a=iq(e);n&&(a=[a.reduce(function(r,s){return[].concat($H(r),$H(s))},[])]);var o=a.map(function(r){return r.reduce(function(s,c,l){return"".concat(s).concat(l===0?"M":"L").concat(c.x,",").concat(c.y)},"")}).join("");return a.length===1?"".concat(o,"Z"):o},cq=function(e,n,a){var o=ip(e,a);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(ip(n.reverse(),a).slice(1))},u_=function(e){var n=e.points,a=e.className,o=e.baseLinePoints,r=e.connectNulls,s=tq(e,eq);if(!n||!n.length)return null;var c=pn("recharts-polygon",a);if(o&&o.length){var l=s.stroke&&s.stroke!=="none",A=cq(n,o,r);return ue.createElement("g",{className:c},ue.createElement("path",cA({},Xt(s,!0),{fill:A.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:A})),l?ue.createElement("path",cA({},Xt(s,!0),{fill:"none",d:ip(n,r)})):null,l?ue.createElement("path",cA({},Xt(s,!0),{fill:"none",d:ip(o,r)})):null)}var p=ip(n,r);return ue.createElement("path",cA({},Xt(s,!0),{fill:p.slice(-1)==="Z"?s.fill:"none",className:c,d:p}))};function Bv(){return Bv=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function fq(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}var gq=function(e,n,a,o,r,s){return"M".concat(e,",").concat(r,"v").concat(o,"M").concat(s,",").concat(n,"h").concat(a)},hq=function(e){var n=e.x,a=n===void 0?0:n,o=e.y,r=o===void 0?0:o,s=e.top,c=s===void 0?0:s,l=e.left,A=l===void 0?0:l,p=e.width,u=p===void 0?0:p,x=e.height,h=x===void 0?0:x,w=e.className,b=pq(e,lq),v=mq({x:a,y:r,top:c,left:A,width:u,height:h},b);return!wt(a)||!wt(r)||!wt(u)||!wt(h)||!wt(c)||!wt(A)?null:ue.createElement("path",Dv({},Xt(v,!0),{className:pn("recharts-cross",w),d:gq(a,r,u,h,c,A)}))},xq=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function zp(t){"@babel/helpers - typeof";return zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zp(t)}function yq(t,e){if(t==null)return{};var n=Cq(t,e),a,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Cq(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}function Ic(){return Ic=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Qq(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}function Iq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aN(t,e){for(var n=0;nsN?s=o==="outer"?"start":"end":r<-sN?s=o==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var a=this.props,o=a.cx,r=a.cy,s=a.radius,c=a.axisLine,l=a.axisLineType,A=km(km({},Xt(this.props,!1)),{},{fill:"none"},Xt(c,!1));if(l==="circle")return ue.createElement(Ch,Ym({className:"recharts-polar-angle-axis-line"},A,{cx:o,cy:r,r:s}));var p=this.props.ticks,u=p.map(function(x){return Ln(o,r,s,x.coordinate)});return ue.createElement(u_,Ym({className:"recharts-polar-angle-axis-line"},A,{points:u}))}},{key:"renderTicks",value:function(){var a=this,o=this.props,r=o.ticks,s=o.tick,c=o.tickLine,l=o.tickFormatter,A=o.stroke,p=Xt(this.props,!1),u=Xt(s,!1),x=km(km({},p),{},{fill:"none"},Xt(c,!1)),h=r.map(function(w,b){var v=a.getTickLineCoord(w),B=a.getTickTextAnchor(w),U=km(km(km({textAnchor:B},p),{},{stroke:"none",fill:A},u),{},{index:b,payload:w,x:v.x2,y:v.y2});return ue.createElement(qa,Ym({className:pn("recharts-polar-angle-axis-tick",t_(s)),key:"tick-".concat(w.coordinate)},T3(a.props,w,b)),c&&ue.createElement("line",Ym({className:"recharts-polar-angle-axis-tick-line"},x,v)),s&&e.renderTickItem(s,U,l?l(w.value,b):w.value))});return ue.createElement(qa,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var a=this.props,o=a.ticks,r=a.radius,s=a.axisLine;return r<=0||!o||!o.length?null:ue.createElement(qa,{className:pn("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(a,o,r){var s;return ue.isValidElement(a)?s=ue.cloneElement(a,o):an(a)?s=a(o):s=ue.createElement(Bp,Ym({},o,{className:"recharts-polar-angle-axis-tick-value"}),r),s}}])})(be.PureComponent);vh(ou,"displayName","PolarAngleAxis");vh(ou,"axisType","angleAxis");vh(ou,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var fb,iN;function Jq(){if(iN)return fb;iN=1;var t=G8(),e=t(Object.getPrototypeOf,Object);return fb=e,fb}var gb,cN;function e$(){if(cN)return gb;cN=1;var t=Tc(),e=Jq(),n=kc(),a="[object Object]",o=Function.prototype,r=Object.prototype,s=o.toString,c=r.hasOwnProperty,l=s.call(Object);function A(p){if(!n(p)||t(p)!=a)return!1;var u=e(p);if(u===null)return!0;var x=c.call(u,"constructor")&&u.constructor;return typeof x=="function"&&x instanceof x&&s.call(x)==l}return gb=A,gb}e$();var hb,lN;function t$(){if(lN)return hb;lN=1;var t=Tc(),e=kc(),n="[object Boolean]";function a(o){return o===!0||o===!1||e(o)&&t(o)==n}return hb=a,hb}t$();function wh(t,e){return e!=null&&"trapezoids"in t.props}function Bh(t,e){return e!=null&&"sectors"in t.props}function Yp(t,e){return e!=null&&"points"in t.props}function n$(t,e){var n,a,o=t.x===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.x)||t.x===e.x,r=t.y===(e==null||(a=e.labelViewBox)===null||a===void 0?void 0:a.y)||t.y===e.y;return o&&r}function a$(t,e){var n=t.endAngle===e.endAngle,a=t.startAngle===e.startAngle;return n&&a}function o$(t,e){var n=t.x===e.x,a=t.y===e.y,o=t.z===e.z;return n&&a&&o}function r$(t,e){var n;return wh(t,e)?n=n$:Bh(t,e)?n=a$:Yp(t,e)&&(n=o$),n}function s$(t,e){var n;return wh(t,e)?n="trapezoids":Bh(t,e)?n="sectors":Yp(t,e)&&(n="points"),n}function i$(t,e){if(wh(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Bh(t,e)){var a;return(a=e.tooltipPayload)===null||a===void 0||(a=a[0])===null||a===void 0||(a=a.payload)===null||a===void 0?void 0:a.payload}return Yp(t,e)?e.payload:{}}function c$(t){var e=t.activeTooltipItem,n=t.graphicalItem,a=t.itemData,o=s$(n,e),r=i$(n,e),s=a.filter(function(l,A){var p=vw(r,l),u=n.props[o].filter(function(w){var b=r$(n,e);return b(w,e)}),x=n.props[o].indexOf(u[u.length-1]),h=A===x;return p&&h}),c=a.indexOf(s[s.length-1]);return c}var xb,mN;function l$(){if(mN)return xb;mN=1;function t(e){return e&&e.length?e[0]:void 0}return xb=t,xb}var yb,dN;function m$(){return dN||(dN=1,yb=l$()),yb}var d$=m$();const A$=Qn(d$);var u$=["key"];function QA(t){"@babel/helpers - typeof";return QA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QA(t)}function p$(t,e){if(t==null)return{};var n=f$(t,e),a,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function f$(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}function Hg(){return Hg=Object.assign?Object.assign.bind():function(t){for(var e=1;e=2&&(l=!0),A.push(ar(ar({},Ln(s,c,U,v)),{},{name:w,value:b,cx:s,cy:c,radius:U,angle:v,payload:x}))});var u=[];return l&&A.forEach(function(x){if(Array.isArray(x.value)){var h=A$(x.value),w=wn(h)?void 0:e.scale(h);u.push(ar(ar({},x),{},{radius:w},Ln(s,c,w,x.angle)))}else u.push(x)}),{points:A,isRange:l,baseLinePoints:u}});var Cb,pN;function w$(){if(pN)return Cb;pN=1;var t=Math.ceil,e=Math.max;function n(a,o,r,s){for(var c=-1,l=e(t((o-a)/(r||1)),0),A=Array(l);l--;)A[s?l:++c]=a,a+=r;return A}return Cb=n,Cb}var bb,fN;function C_(){if(fN)return bb;fN=1;var t=Y8(),e=1/0,n=17976931348623157e292;function a(o){if(!o)return o===0?o:0;if(o=t(o),o===e||o===-e){var r=o<0?-1:1;return r*n}return o===o?o:0}return bb=a,bb}var vb,gN;function B$(){if(gN)return vb;gN=1;var t=w$(),e=ih(),n=C_();function a(o){return function(r,s,c){return c&&typeof c!="number"&&e(r,s,c)&&(s=c=void 0),r=n(r),s===void 0?(s=r,r=0):s=n(s),c=c===void 0?r0&&a.handleDrag(o.changedTouches[0])}),Tr(a,"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=a.props,r=o.endIndex,s=o.onDragEnd,c=o.startIndex;s==null||s({endIndex:r,startIndex:c})}),a.detachDragEndListener()}),Tr(a,"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),Tr(a,"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),Tr(a,"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),Tr(a,"handleSlideDragStart",function(o){var r=vN(o)?o.changedTouches[0]:o;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(a,"startX"),endX:a.handleTravellerDragStart.bind(a,"endX")},a.state={},a}return L$(e,t),E$(e,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var o=a.startX,r=a.endX,s=this.state.scaleValues,c=this.props,l=c.gap,A=c.data,p=A.length-1,u=Math.min(o,r),x=Math.max(o,r),h=e.getIndexInRange(s,u),w=e.getIndexInRange(s,x);return{startIndex:h-h%l,endIndex:w===p?p:w-w%l}}},{key:"getTextOfTick",value:function(a){var o=this.props,r=o.data,s=o.tickFormatter,c=o.dataKey,l=Qc(r[a],c,a);return an(s)?s(l,a):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var o=this.state,r=o.slideMoveStartX,s=o.startX,c=o.endX,l=this.props,A=l.x,p=l.width,u=l.travellerWidth,x=l.startIndex,h=l.endIndex,w=l.onChange,b=a.pageX-r;b>0?b=Math.min(b,A+p-u-c,A+p-u-s):b<0&&(b=Math.max(b,A-s,A-c));var v=this.getIndex({startX:s+b,endX:c+b});(v.startIndex!==x||v.endIndex!==h)&&w&&w(v),this.setState({startX:s+b,endX:c+b,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,o){var r=vN(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var o=this.state,r=o.brushMoveStartX,s=o.movingTravellerId,c=o.endX,l=o.startX,A=this.state[s],p=this.props,u=p.x,x=p.width,h=p.travellerWidth,w=p.onChange,b=p.gap,v=p.data,B={startX:this.state.startX,endX:this.state.endX},U=a.pageX-r;U>0?U=Math.min(U,u+x-h-A):U<0&&(U=Math.max(U,u-A)),B[s]=A+U;var G=this.getIndex(B),Q=G.startIndex,_=G.endIndex,S=function(){var O=v.length-1;return s==="startX"&&(c>l?Q%b===0:_%b===0)||cl?_%b===0:Q%b===0)||c>l&&_===O};this.setState(Tr(Tr({},s,A+U),"brushMoveStartX",a.pageX),function(){w&&S()&&w(G)})}},{key:"handleTravellerMoveKeyboard",value:function(a,o){var r=this,s=this.state,c=s.scaleValues,l=s.startX,A=s.endX,p=this.state[o],u=c.indexOf(p);if(u!==-1){var x=u+a;if(!(x===-1||x>=c.length)){var h=c[x];o==="startX"&&h>=A||o==="endX"&&h<=l||this.setState(Tr({},o,h),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,o=a.x,r=a.y,s=a.width,c=a.height,l=a.fill,A=a.stroke;return ue.createElement("rect",{stroke:A,fill:l,x:o,y:r,width:s,height:c})}},{key:"renderPanorama",value:function(){var a=this.props,o=a.x,r=a.y,s=a.width,c=a.height,l=a.data,A=a.children,p=a.padding,u=be.Children.only(A);return u?ue.cloneElement(u,{x:o,y:r,width:s,height:c,margin:p,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(a,o){var r,s,c=this,l=this.props,A=l.y,p=l.travellerWidth,u=l.height,x=l.traveller,h=l.ariaLabel,w=l.data,b=l.startIndex,v=l.endIndex,B=Math.max(a,this.props.x),U=Bb(Bb({},Xt(this.props,!1)),{},{x:B,y:A,width:p,height:u}),G=h||"Min value: ".concat((r=w[b])===null||r===void 0?void 0:r.name,", Max value: ").concat((s=w[v])===null||s===void 0?void 0:s.name);return ue.createElement(qa,{tabIndex:0,role:"slider","aria-label":G,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),c.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,o))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(x,U))}},{key:"renderSlide",value:function(a,o){var r=this.props,s=r.y,c=r.height,l=r.stroke,A=r.travellerWidth,p=Math.min(a,o)+A,u=Math.max(Math.abs(o-a)-A,0);return ue.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:p,y:s,width:u,height:c})}},{key:"renderText",value:function(){var a=this.props,o=a.startIndex,r=a.endIndex,s=a.y,c=a.height,l=a.travellerWidth,A=a.stroke,p=this.state,u=p.startX,x=p.endX,h=5,w={pointerEvents:"none",fill:A};return ue.createElement(qa,{className:"recharts-brush-texts"},ue.createElement(Bp,Gg({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,x)-h,y:s+c/2},w),this.getTextOfTick(o)),ue.createElement(Bp,Gg({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,x)+l+h,y:s+c/2},w),this.getTextOfTick(r)))}},{key:"render",value:function(){var a=this.props,o=a.data,r=a.className,s=a.children,c=a.x,l=a.y,A=a.width,p=a.height,u=a.alwaysShowText,x=this.state,h=x.startX,w=x.endX,b=x.isTextActive,v=x.isSlideMoving,B=x.isTravellerMoving,U=x.isTravellerFocused;if(!o||!o.length||!wt(c)||!wt(l)||!wt(A)||!wt(p)||A<=0||p<=0)return null;var G=pn("recharts-brush",r),Q=ue.Children.count(s)===1,_=G$("userSelect","none");return ue.createElement(qa,{className:G,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),Q&&this.renderPanorama(),this.renderSlide(h,w),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(w,"endX"),(b||v||B||U||u)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var o=a.x,r=a.y,s=a.width,c=a.height,l=a.stroke,A=Math.floor(r+c/2)-1;return ue.createElement(ue.Fragment,null,ue.createElement("rect",{x:o,y:r,width:s,height:c,fill:l,stroke:"none"}),ue.createElement("line",{x1:o+1,y1:A,x2:o+s-1,y2:A,fill:"none",stroke:"#fff"}),ue.createElement("line",{x1:o+1,y1:A+2,x2:o+s-1,y2:A+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,o){var r;return ue.isValidElement(a)?r=ue.cloneElement(a,o):an(a)?r=a(o):r=e.renderDefaultTraveller(o),r}},{key:"getDerivedStateFromProps",value:function(a,o){var r=a.data,s=a.width,c=a.x,l=a.travellerWidth,A=a.updateId,p=a.startIndex,u=a.endIndex;if(r!==o.prevData||A!==o.prevUpdateId)return Bb({prevData:r,prevTravellerWidth:l,prevUpdateId:A,prevX:c,prevWidth:s},r&&r.length?I$({data:r,width:s,x:c,travellerWidth:l,startIndex:p,endIndex:u}):{scale:null,scaleValues:null});if(o.scale&&(s!==o.prevWidth||c!==o.prevX||l!==o.prevTravellerWidth)){o.scale.range([c,c+s-l]);var x=o.scale.domain().map(function(h){return o.scale(h)});return{prevData:r,prevTravellerWidth:l,prevUpdateId:A,prevX:c,prevWidth:s,startX:o.scale(a.startIndex),endX:o.scale(a.endIndex),scaleValues:x}}return null}},{key:"getIndexInRange",value:function(a,o){for(var r=a.length,s=0,c=r-1;c-s>1;){var l=Math.floor((s+c)/2);a[l]>o?c=l:s=l}return o>=a[c]?c:s}}])})(be.PureComponent);Tr(OA,"displayName","Brush");Tr(OA,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Db,wN;function O$(){if(wN)return Db;wN=1;var t=V3();function e(n,a){var o;return t(n,function(r,s,c){return o=a(r,s,c),!o}),!!o}return Db=e,Db}var Ub,BN;function T$(){if(BN)return Ub;BN=1;var t=w8(),e=Fi(),n=O$(),a=Br(),o=ih();function r(s,c,l){var A=a(s)?t:n;return l&&o(s,c,l)&&(c=void 0),A(s,e(c,3))}return Ub=r,Ub}var k$=T$();const R$=Qn(k$);var Ni=function(e,n){var a=e.alwaysShow,o=e.ifOverflow;return a&&(o="extendDomain"),o===n},Hb,DN;function M$(){if(DN)return Hb;DN=1;var t=k8();function e(n,a,o){a=="__proto__"&&t?t(n,a,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[a]=o}return Hb=e,Hb}var Nb,UN;function z$(){if(UN)return Nb;UN=1;var t=M$(),e=O8(),n=Fi();function a(o,r){var s={};return r=n(r,3),e(o,function(c,l,A){t(s,l,r(c,l,A))}),s}return Nb=a,Nb}var Z$=z$();const Y$=Qn(Z$);var jb,HN;function K$(){if(HN)return jb;HN=1;function t(e,n){for(var a=-1,o=e==null?0:e.length;++a1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,r=a.position;if(n!==void 0){if(r)switch(r){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(o){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var a=this.range(),o=a[0],r=a[a.length-1];return o<=r?n>=o&&n<=r:n>=r&&n<=o}}],[{key:"create",value:function(n){return new t(n)}}])})();Nw(U_,"EPS",1e-4);var jw=function(e){var n=Object.keys(e).reduce(function(a,o){return lf(lf({},a),{},Nw({},o,U_.create(e[o])))},{});return lf(lf({},n),{},{apply:function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.bandAware,c=r.position;return Y$(o,function(l,A){return n[A].apply(l,{bandAware:s,position:c})})},isInRange:function(o){return V$(o,function(r,s){return n[s].isInRange(r)})}})},Eb,EN;function nW(){if(EN)return Eb;EN=1;var t=Fi(),e=s2(),n=rh();function a(o){return function(r,s,c){var l=Object(r);if(!e(r)){var A=t(s,3);r=n(r),s=function(u){return A(l[u],u,l)}}var p=o(r,s,c);return p>-1?l[A?r[p]:p]:void 0}}return Eb=a,Eb}var Pb,PN;function aW(){if(PN)return Pb;PN=1;var t=C_();function e(n){var a=t(n),o=a%1;return a===a?o?a-o:a:0}return Pb=e,Pb}var Sb,SN;function oW(){if(SN)return Sb;SN=1;var t=S8(),e=Fi(),n=aW(),a=Math.max;function o(r,s,c){var l=r==null?0:r.length;if(!l)return-1;var A=c==null?0:n(c);return A<0&&(A=a(l+A,0)),t(r,e(s,3),A)}return Sb=o,Sb}var Fb,FN;function rW(){if(FN)return Fb;FN=1;var t=nW(),e=oW(),n=t(e);return Fb=n,Fb}rW();var sW=$j();const iW=Qn(sW);var cW=iW(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),H_=be.createContext(void 0),N_=be.createContext(void 0),j_=be.createContext(void 0),lW=be.createContext({}),G_=be.createContext(void 0),mW=be.createContext(0),dW=be.createContext(0),LN=function(e){var n=e.state,a=n.xAxisMap,o=n.yAxisMap,r=n.offset,s=e.clipPathId,c=e.children,l=e.width,A=e.height,p=cW(r);return ue.createElement(H_.Provider,{value:a},ue.createElement(N_.Provider,{value:o},ue.createElement(lW.Provider,{value:r},ue.createElement(j_.Provider,{value:p},ue.createElement(G_.Provider,{value:s},ue.createElement(mW.Provider,{value:A},ue.createElement(dW.Provider,{value:l},c)))))))},AW=function(){return be.useContext(G_)},uW=function(e){var n=be.useContext(H_);n==null&&_A();var a=n[e];return a==null&&_A(),a},pW=function(e){var n=be.useContext(N_);n==null&&_A();var a=n[e];return a==null&&_A(),a},fW=function(){var e=be.useContext(j_);return e};function TA(t){"@babel/helpers - typeof";return TA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TA(t)}function gW(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hW(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,a=new Array(e);nt.length)&&(e=t.length);for(var n=0,a=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function CV(t,e){if(t==null)return{};var n={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(e.indexOf(a)>=0)continue;n[a]=t[a]}return n}function bV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vV(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,a=new Array(e);n0?s:e&&e.length&&wt(o)&&wt(r)?e.slice(o,r+1):[]};function M_(t){return t==="number"?[0,"auto"]:void 0}var Tv=function(e,n,a,o){var r=e.graphicalItems,s=e.tooltipAxis,c=jh(n,e);return a<0||!r||!r.length||a>=c.length?null:r.reduce(function(l,A){var p,u=(p=A.props.data)!==null&&p!==void 0?p:n;u&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=a&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1));var x;if(s.dataKey&&!s.allowDuplicatedCategory){var h=u===void 0?c:u;x=H1(h,s.dataKey,o)}else x=u&&u[a]||c[a];return x?[].concat(zA(l),[aZ(A,x)]):l},[])},WN=function(e,n,a,o){var r=o||{x:e.chartX,y:e.chartY},s=SV(r,a),c=e.orderedTooltipTicks,l=e.tooltipAxis,A=e.tooltipTicks,p=kz(s,c,A,l);if(p>=0&&A){var u=A[p]&&A[p].value,x=Tv(e,n,p,u),h=FV(a,c,p,r);return{activeTooltipIndex:p,activeLabel:u,activePayload:x,activeCoordinate:h}}return null},LV=function(e,n){var a=n.axes,o=n.graphicalItems,r=n.axisType,s=n.axisIdKey,c=n.stackGroups,l=n.dataStartIndex,A=n.dataEndIndex,p=e.layout,u=e.children,x=e.stackOffset,h=XG(p,r);return a.reduce(function(w,b){var v,B=b.type.defaultProps!==void 0?ke(ke({},b.type.defaultProps),b.props):b.props,U=B.type,G=B.dataKey,Q=B.allowDataOverflow,_=B.allowDuplicatedCategory,S=B.scale,F=B.ticks,O=B.includeHidden,R=B[s];if(w[R])return w;var oe=jh(e.data,{graphicalItems:o.filter(function(E){var z,W=s in E.props?E.props[s]:(z=E.type.defaultProps)===null||z===void 0?void 0:z[s];return W===R}),dataStartIndex:l,dataEndIndex:A}),L=oe.length,I,M,K;cV(B.domain,Q,U)&&(I=cv(B.domain,null,Q),h&&(U==="number"||S!=="auto")&&(K=rp(oe,G,"category")));var re=M_(U);if(!I||I.length===0){var ae,ie=(ae=B.domain)!==null&&ae!==void 0?ae:re;if(G){if(I=rp(oe,G,U),U==="category"&&h){var X=LQ(I);_&&X?(M=I,I=jg(0,L)):_||(I=lH(ie,I,b).reduce(function(E,z){return E.indexOf(z)>=0?E:[].concat(zA(E),[z])},[]))}else if(U==="category")_?I=I.filter(function(E){return E!==""&&!wn(E)}):I=lH(ie,I,b).reduce(function(E,z){return E.indexOf(z)>=0||z===""||wn(z)?E:[].concat(zA(E),[z])},[]);else if(U==="number"){var ee=Yz(oe,o.filter(function(E){var z,W,te=s in E.props?E.props[s]:(z=E.type.defaultProps)===null||z===void 0?void 0:z[s],me="hide"in E.props?E.props.hide:(W=E.type.defaultProps)===null||W===void 0?void 0:W.hide;return te===R&&(O||!me)}),G,r,p);ee&&(I=ee)}h&&(U==="number"||S!=="auto")&&(K=rp(oe,G,"category"))}else h?I=jg(0,L):c&&c[R]&&c[R].hasStack&&U==="number"?I=x==="expand"?[0,1]:JG(c[R].stackGroups,l,A):I=VG(oe,o.filter(function(E){var z=s in E.props?E.props[s]:E.type.defaultProps[s],W="hide"in E.props?E.props.hide:E.type.defaultProps.hide;return z===R&&(O||!W)}),U,p,!0);if(U==="number")I=Qv(u,I,R,r,F),ie&&(I=cv(ie,I,Q));else if(U==="category"&&ie){var se=ie,J=I.every(function(E){return se.indexOf(E)>=0});J&&(I=se)}}return ke(ke({},w),{},Lt({},R,ke(ke({},B),{},{axisType:r,domain:I,categoricalDomain:K,duplicateDomain:M,originalDomain:(v=B.domain)!==null&&v!==void 0?v:re,isCategorical:h,layout:p})))},{})},QV=function(e,n){var a=n.graphicalItems,o=n.Axis,r=n.axisType,s=n.axisIdKey,c=n.stackGroups,l=n.dataStartIndex,A=n.dataEndIndex,p=e.layout,u=e.children,x=jh(e.data,{graphicalItems:a,dataStartIndex:l,dataEndIndex:A}),h=x.length,w=XG(p,r),b=-1;return a.reduce(function(v,B){var U=B.type.defaultProps!==void 0?ke(ke({},B.type.defaultProps),B.props):B.props,G=U[s],Q=M_("number");if(!v[G]){b++;var _;return w?_=jg(0,h):c&&c[G]&&c[G].hasStack?(_=JG(c[G].stackGroups,l,A),_=Qv(u,_,G,r)):(_=cv(Q,VG(x,a.filter(function(S){var F,O,R=s in S.props?S.props[s]:(F=S.type.defaultProps)===null||F===void 0?void 0:F[s],oe="hide"in S.props?S.props.hide:(O=S.type.defaultProps)===null||O===void 0?void 0:O.hide;return R===G&&!oe}),"number",p),o.defaultProps.allowDataOverflow),_=Qv(u,_,G,r)),ke(ke({},v),{},Lt({},G,ke(ke({axisType:r},o.defaultProps),{},{hide:!0,orientation:Ui(EV,"".concat(r,".").concat(b%2),null),domain:_,originalDomain:Q,isCategorical:w,layout:p})))}return v},{})},IV=function(e,n){var a=n.axisType,o=a===void 0?"xAxis":a,r=n.AxisComp,s=n.graphicalItems,c=n.stackGroups,l=n.dataStartIndex,A=n.dataEndIndex,p=e.children,u="".concat(o,"Id"),x=_c(p,r),h={};return x&&x.length?h=LV(e,{axes:x,graphicalItems:s,axisType:o,axisIdKey:u,stackGroups:c,dataStartIndex:l,dataEndIndex:A}):s&&s.length&&(h=QV(e,{Axis:r,graphicalItems:s,axisType:o,axisIdKey:u,stackGroups:c,dataStartIndex:l,dataEndIndex:A})),h},OV=function(e){var n=nA(e),a=Ku(n,!1,!0);return{tooltipTicks:a,orderedTooltipTicks:X3(a,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:lv(n,a)}},VN=function(e){var n=e.children,a=e.defaultShowTooltip,o=ms(n,OA),r=0,s=0;return e.data&&e.data.length!==0&&(s=e.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(r=o.props.startIndex),o.props.endIndex>=0&&(s=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:r,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!a}},TV=function(e){return!e||!e.length?!1:e.some(function(n){var a=Gc(n&&n.type);return a&&a.indexOf("Bar")>=0})},XN=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},kV=function(e,n){var a=e.props,o=e.graphicalItems,r=e.xAxisMap,s=r===void 0?{}:r,c=e.yAxisMap,l=c===void 0?{}:c,A=a.width,p=a.height,u=a.children,x=a.margin||{},h=ms(u,OA),w=ms(u,uA),b=Object.keys(l).reduce(function(_,S){var F=l[S],O=F.orientation;return!F.mirror&&!F.hide?ke(ke({},_),{},Lt({},O,_[O]+F.width)):_},{left:x.left||0,right:x.right||0}),v=Object.keys(s).reduce(function(_,S){var F=s[S],O=F.orientation;return!F.mirror&&!F.hide?ke(ke({},_),{},Lt({},O,Ui(_,"".concat(O))+F.height)):_},{top:x.top||0,bottom:x.bottom||0}),B=ke(ke({},v),b),U=B.bottom;h&&(B.bottom+=h.props.height||OA.defaultProps.height),w&&n&&(B=zz(B,o,a,n));var G=A-B.left-B.right,Q=p-B.top-B.bottom;return ke(ke({brushBottom:U},B),{},{width:Math.max(G,0),height:Math.max(Q,0)})},RV=function(e,n){if(n==="xAxis")return e[n].width;if(n==="yAxis")return e[n].height},MV=function(e){var n=e.chartName,a=e.GraphicalChild,o=e.defaultTooltipEventType,r=o===void 0?"axis":o,s=e.validateTooltipEventTypes,c=s===void 0?["axis"]:s,l=e.axisComponents,A=e.legendContent,p=e.formatAxisMap,u=e.defaultProps,x=function(B,U){var G=U.graphicalItems,Q=U.stackGroups,_=U.offset,S=U.updateId,F=U.dataStartIndex,O=U.dataEndIndex,R=B.barSize,oe=B.layout,L=B.barGap,I=B.barCategoryGap,M=B.maxBarSize,K=XN(oe),re=K.numericAxisName,ae=K.cateAxisName,ie=TV(G),X=[];return G.forEach(function(ee,se){var J=jh(B.data,{graphicalItems:[ee],dataStartIndex:F,dataEndIndex:O}),E=ee.type.defaultProps!==void 0?ke(ke({},ee.type.defaultProps),ee.props):ee.props,z=E.dataKey,W=E.maxBarSize,te=E["".concat(re,"Id")],me=E["".concat(ae,"Id")],pe={},Ce=l.reduce(function(qe,Se){var et=U["".concat(Se.axisType,"Map")],lt=E["".concat(Se.axisType,"Id")];et&&et[lt]||Se.axisType==="zAxis"||_A();var it=et[lt];return ke(ke({},qe),{},Lt(Lt({},Se.axisType,it),"".concat(Se.axisType,"Ticks"),Ku(it)))},pe),de=Ce[ae],Ge=Ce["".concat(ae,"Ticks")],Ee=Q&&Q[te]&&Q[te].hasStack&&tZ(ee,Q[te].stackGroups),Be=Gc(ee.type).indexOf("Bar")>=0,Re=lv(de,Ge),Ve=[],je=ie&&Rz({barSize:R,stackGroups:Q,totalSize:RV(Ce,ae)});if(Be){var ce,dt,ot=wn(W)?M:W,ze=(ce=(dt=lv(de,Ge,!0))!==null&&dt!==void 0?dt:ot)!==null&&ce!==void 0?ce:0;Ve=Mz({barGap:L,barCategoryGap:I,bandSize:ze!==Re?ze:Re,sizeList:je[me],maxBarSize:ot}),ze!==Re&&(Ve=Ve.map(function(qe){return ke(ke({},qe),{},{position:ke(ke({},qe.position),{},{offset:qe.position.offset-ze/2})})}))}var Ke=ee&&ee.type&&ee.type.getComposedData;Ke&&X.push({props:ke(ke({},Ke(ke(ke({},Ce),{},{displayedData:J,props:B,dataKey:z,item:ee,bandSize:Re,barPosition:Ve,offset:_,stackedData:Ee,layout:oe,dataStartIndex:F,dataEndIndex:O}))),{},Lt(Lt(Lt({key:ee.key||"item-".concat(se)},re,Ce[re]),ae,Ce[ae]),"animationId",S)),childIndex:KQ(ee,B.children),item:ee})}),X},h=function(B,U){var G=B.props,Q=B.dataStartIndex,_=B.dataEndIndex,S=B.updateId;if(!B5({props:G}))return null;var F=G.children,O=G.layout,R=G.stackOffset,oe=G.data,L=G.reverseStackOrder,I=XN(O),M=I.numericAxisName,K=I.cateAxisName,re=_c(F,a),ae=Jz(oe,re,"".concat(M,"Id"),"".concat(K,"Id"),R,L),ie=l.reduce(function(E,z){var W="".concat(z.axisType,"Map");return ke(ke({},E),{},Lt({},W,IV(G,ke(ke({},z),{},{graphicalItems:re,stackGroups:z.axisType===M&&ae,dataStartIndex:Q,dataEndIndex:_}))))},{}),X=kV(ke(ke({},ie),{},{props:G,graphicalItems:re}),U==null?void 0:U.legendBBox);Object.keys(ie).forEach(function(E){ie[E]=p(G,ie[E],X,E.replace("Map",""),n)});var ee=ie["".concat(K,"Map")],se=OV(ee),J=x(G,ke(ke({},ie),{},{dataStartIndex:Q,dataEndIndex:_,updateId:S,graphicalItems:re,stackGroups:ae,offset:X}));return ke(ke({formattedGraphicalItems:J,graphicalItems:re,offset:X,stackGroups:ae},se),ie)},w=(function(v){function B(U){var G,Q,_;return bV(this,B),_=BV(this,B,[U]),Lt(_,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Lt(_,"accessibilityManager",new iV),Lt(_,"handleLegendBBoxUpdate",function(S){if(S){var F=_.state,O=F.dataStartIndex,R=F.dataEndIndex,oe=F.updateId;_.setState(ke({legendBBox:S},h({props:_.props,dataStartIndex:O,dataEndIndex:R,updateId:oe},ke(ke({},_.state),{},{legendBBox:S}))))}}),Lt(_,"handleReceiveSyncEvent",function(S,F,O){if(_.props.syncId===S){if(O===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(F)}}),Lt(_,"handleBrushChange",function(S){var F=S.startIndex,O=S.endIndex;if(F!==_.state.dataStartIndex||O!==_.state.dataEndIndex){var R=_.state.updateId;_.setState(function(){return ke({dataStartIndex:F,dataEndIndex:O},h({props:_.props,dataStartIndex:F,dataEndIndex:O,updateId:R},_.state))}),_.triggerSyncEvent({dataStartIndex:F,dataEndIndex:O})}}),Lt(_,"handleMouseEnter",function(S){var F=_.getMouseInfo(S);if(F){var O=ke(ke({},F),{},{isTooltipActive:!0});_.setState(O),_.triggerSyncEvent(O);var R=_.props.onMouseEnter;an(R)&&R(O,S)}}),Lt(_,"triggeredAfterMouseMove",function(S){var F=_.getMouseInfo(S),O=F?ke(ke({},F),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState(O),_.triggerSyncEvent(O);var R=_.props.onMouseMove;an(R)&&R(O,S)}),Lt(_,"handleItemMouseEnter",function(S){_.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),Lt(_,"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),Lt(_,"handleMouseMove",function(S){S.persist(),_.throttleTriggeredAfterMouseMove(S)}),Lt(_,"handleMouseLeave",function(S){_.throttleTriggeredAfterMouseMove.cancel();var F={isTooltipActive:!1};_.setState(F),_.triggerSyncEvent(F);var O=_.props.onMouseLeave;an(O)&&O(F,S)}),Lt(_,"handleOuterEvent",function(S){var F=YQ(S),O=Ui(_.props,"".concat(F));if(F&&an(O)){var R,oe;/.*touch.*/i.test(F)?oe=_.getMouseInfo(S.changedTouches[0]):oe=_.getMouseInfo(S),O((R=oe)!==null&&R!==void 0?R:{},S)}}),Lt(_,"handleClick",function(S){var F=_.getMouseInfo(S);if(F){var O=ke(ke({},F),{},{isTooltipActive:!0});_.setState(O),_.triggerSyncEvent(O);var R=_.props.onClick;an(R)&&R(O,S)}}),Lt(_,"handleMouseDown",function(S){var F=_.props.onMouseDown;if(an(F)){var O=_.getMouseInfo(S);F(O,S)}}),Lt(_,"handleMouseUp",function(S){var F=_.props.onMouseUp;if(an(F)){var O=_.getMouseInfo(S);F(O,S)}}),Lt(_,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),Lt(_,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseDown(S.changedTouches[0])}),Lt(_,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseUp(S.changedTouches[0])}),Lt(_,"handleDoubleClick",function(S){var F=_.props.onDoubleClick;if(an(F)){var O=_.getMouseInfo(S);F(O,S)}}),Lt(_,"handleContextMenu",function(S){var F=_.props.onContextMenu;if(an(F)){var O=_.getMouseInfo(S);F(O,S)}}),Lt(_,"triggerSyncEvent",function(S){_.props.syncId!==void 0&&Qb.emit(Ib,_.props.syncId,S,_.eventEmitterSymbol)}),Lt(_,"applySyncEvent",function(S){var F=_.props,O=F.layout,R=F.syncMethod,oe=_.state.updateId,L=S.dataStartIndex,I=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)_.setState(ke({dataStartIndex:L,dataEndIndex:I},h({props:_.props,dataStartIndex:L,dataEndIndex:I,updateId:oe},_.state)));else if(S.activeTooltipIndex!==void 0){var M=S.chartX,K=S.chartY,re=S.activeTooltipIndex,ae=_.state,ie=ae.offset,X=ae.tooltipTicks;if(!ie)return;if(typeof R=="function")re=R(X,S);else if(R==="value"){re=-1;for(var ee=0;ee=0){var Ee,Be;if(M.dataKey&&!M.allowDuplicatedCategory){var Re=typeof M.dataKey=="function"?Ge:"payload.".concat(M.dataKey.toString());Ee=H1(ee,Re,re),Be=se&&J&&H1(J,Re,re)}else Ee=ee==null?void 0:ee[K],Be=se&&J&&J[K];if(me||te){var Ve=S.props.activeIndex!==void 0?S.props.activeIndex:K;return[be.cloneElement(S,ke(ke(ke({},R.props),Ce),{},{activeIndex:Ve})),null,null]}if(!wn(Ee))return[de].concat(zA(_.renderActivePoints({item:R,activePoint:Ee,basePoint:Be,childIndex:K,isRange:se})))}else{var je,ce=(je=_.getItemByXY(_.state.activeCoordinate))!==null&&je!==void 0?je:{graphicalItem:de},dt=ce.graphicalItem,ot=dt.item,ze=ot===void 0?S:ot,Ke=dt.childIndex,qe=ke(ke(ke({},R.props),Ce),{},{activeIndex:Ke});return[be.cloneElement(ze,qe),null,null]}return se?[de,null,null]:[de,null]}),Lt(_,"renderCustomized",function(S,F,O){return be.cloneElement(S,ke(ke({key:"recharts-customized-".concat(O)},_.props),_.state))}),Lt(_,"renderMap",{CartesianGrid:{handler:df,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:df},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:df},YAxis:{handler:df},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((G=U.id)!==null&&G!==void 0?G:I3("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=K8(_.triggeredAfterMouseMove,(Q=U.throttleDelay)!==null&&Q!==void 0?Q:1e3/60),_.state={},_}return HV(B,v),wV(B,[{key:"componentDidMount",value:function(){var G,Q;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(G=this.props.margin.left)!==null&&G!==void 0?G:0,top:(Q=this.props.margin.top)!==null&&Q!==void 0?Q:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var G=this.props,Q=G.children,_=G.data,S=G.height,F=G.layout,O=ms(Q,wc);if(O){var R=O.props.defaultIndex;if(!(typeof R!="number"||R<0||R>this.state.tooltipTicks.length-1)){var oe=this.state.tooltipTicks[R]&&this.state.tooltipTicks[R].value,L=Tv(this.state,_,R,oe),I=this.state.tooltipTicks[R].coordinate,M=(this.state.offset.top+S)/2,K=F==="horizontal",re=K?{x:I,y:M}:{y:I,x:M},ae=this.state.formattedGraphicalItems.find(function(X){var ee=X.item;return ee.type.name==="Scatter"});ae&&(re=ke(ke({},re),ae.props.points[R].tooltipPosition),L=ae.props.points[R].tooltipPayload);var ie={activeTooltipIndex:R,isTooltipActive:!0,activeLabel:oe,activePayload:L,activeCoordinate:re};this.setState(ie),this.renderCursor(O),this.accessibilityManager.setIndex(R)}}}},{key:"getSnapshotBeforeUpdate",value:function(G,Q){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==Q.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==G.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==G.margin){var _,S;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(G){G1([ms(G.children,wc)],[ms(this.props.children,wc)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var G=ms(this.props.children,wc);if(G&&typeof G.props.shared=="boolean"){var Q=G.props.shared?"axis":"item";return c.indexOf(Q)>=0?Q:r}return r}},{key:"getMouseInfo",value:function(G){if(!this.container)return null;var Q=this.container,_=Q.getBoundingClientRect(),S=Pk(_),F={chartX:Math.round(G.pageX-S.left),chartY:Math.round(G.pageY-S.top)},O=_.width/Q.offsetWidth||1,R=this.inRange(F.chartX,F.chartY,O);if(!R)return null;var oe=this.state,L=oe.xAxisMap,I=oe.yAxisMap,M=this.getTooltipEventType(),K=WN(this.state,this.props.data,this.props.layout,R);if(M!=="axis"&&L&&I){var re=nA(L).scale,ae=nA(I).scale,ie=re&&re.invert?re.invert(F.chartX):null,X=ae&&ae.invert?ae.invert(F.chartY):null;return ke(ke({},F),{},{xValue:ie,yValue:X},K)}return K?ke(ke({},F),K):null}},{key:"inRange",value:function(G,Q){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,F=G/_,O=Q/_;if(S==="horizontal"||S==="vertical"){var R=this.state.offset,oe=F>=R.left&&F<=R.left+R.width&&O>=R.top&&O<=R.top+R.height;return oe?{x:F,y:O}:null}var L=this.state,I=L.angleAxisMap,M=L.radiusAxisMap;if(I&&M){var K=nA(I);return AH({x:F,y:O},K)}return null}},{key:"parseEventsOfWrapper",value:function(){var G=this.props.children,Q=this.getTooltipEventType(),_=ms(G,wc),S={};_&&Q==="axis"&&(_.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var F=$f(this.props,this.handleOuterEvent);return ke(ke({},F),S)}},{key:"addListener",value:function(){Qb.on(Ib,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Qb.removeListener(Ib,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(G,Q,_){for(var S=this.state.formattedGraphicalItems,F=0,O=S.length;Fd.jsx("div",{className:Mt("bg-white rounded-lg shadow-lg p-6",e),"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/Card.tsx:11:4","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/Card.tsx","data-component-line":"11","data-component-file":"Card.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%7D",children:t}),Kt=({children:t,className:e})=>d.jsx("div",{className:Mt("mb-4",e),"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/Card.tsx:24:4","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/Card.tsx","data-component-line":"24","data-component-file":"Card.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%7D",children:t}),qt=({children:t,className:e})=>d.jsx("h3",{className:Mt("text-xl font-semibold text-gray-900",e),"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/Card.tsx:37:4","data-matrix-name":"h3","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/Card.tsx","data-component-line":"37","data-component-file":"Card.tsx","data-component-name":"h3","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%7D",children:t}),Nt=({children:t,className:e})=>d.jsx("div",{className:Mt("text-gray-700",e),"data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/Card.tsx:50:4","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/Card.tsx","data-component-line":"50","data-component-file":"Card.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BCallExpression%5D%22%7D",children:t}),Ew=({className:t,threshold:e=300})=>{const[n,a]=be.useState(!1);be.useEffect(()=>{const r=()=>{window.pageYOffset>e?a(!0):a(!1)};return window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}},[e]);const o=()=>{window.scrollTo({top:0,behavior:"smooth"})};return n?d.jsx("button",{onClick:o,className:Mt("fixed bottom-6 right-6 z-50","w-12 h-12 rounded-full","flex items-center justify-center","transition-all duration-300 ease-in-out","shadow-lg hover:shadow-xl","bg-red-600/80 hover:bg-red-700/90","border-2 border-yellow-400/50 hover:border-yellow-300/70","backdrop-blur-sm","transform hover:scale-110 active:scale-95","hover:-translate-y-1",t),"aria-label":"回到顶部",title:"回到顶部","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/BackToTop.tsx:46:4","data-matrix-name":"button","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/BackToTop.tsx","data-component-line":"46","data-component-file":"BackToTop.tsx","data-component-name":"button","data-component-content":"%7B%22onClick%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22%5BCallExpression%5D%22%2C%22title%22%3A%22%E5%9B%9E%E5%88%B0%E9%A1%B6%E9%83%A8%22%7D",children:d.jsx(hF,{className:"w-6 h-6 text-yellow-100 hover:text-yellow-50 transition-colors","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/BackToTop.tsx:67:6","data-matrix-name":"ChevronUp","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ui/BackToTop.tsx","data-component-line":"67","data-component-file":"BackToTop.tsx","data-component-name":"ChevronUp","data-component-content":"%7B%22className%22%3A%22w-6%20h-6%20text-yellow-100%20hover%3Atext-yellow-50%20transition-colors%22%7D"})}):null};/*! + * html2canvas 1.4.1 + * Copyright (c) 2022 Niklas von Hertzen + * Released under MIT License + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var kv=function(t,e){return kv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},kv(t,e)};function qs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");kv(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Rv=function(){return Rv=Object.assign||function(e){for(var n,a=1,o=arguments.length;a0&&r[r.length-1])&&(A[0]===6||A[0]===2)){n=0;continue}if(A[0]===3&&(!r||A[1]>r[0]&&A[1]=55296&&o<=56319&&n>10)+55296,s%1024+56320)),(o+1===n||a.length>16384)&&(r+=String.fromCharCode.apply(String,a),a.length=0)}return r},JN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ZV=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var uf=0;uf"u"?[]:new Uint8Array(256);for(var pf=0;pf>4,p[o++]=(s&15)<<4|c>>2,p[o++]=(c&3)<<6|l&63;return A},KV=function(t){for(var e=t.length,n=[],a=0;a>rd,WV=1<>rd,XV=Z_+VV,JV=XV,eX=32,tX=JV+eX,nX=65536>>Pw,aX=1<<$V,oX=aX-1,t6=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},rX=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},sX=function(t,e){var n=YV(t),a=Array.isArray(n)?qV(n):new Uint32Array(n),o=Array.isArray(n)?KV(n):new Uint16Array(n),r=24,s=t6(o,r/2,a[4]/2),c=a[5]===2?t6(o,(r+a[4])/2):rX(a,Math.ceil((r+a[4])/4));return new iX(a[0],a[1],a[2],a[3],s,c)},iX=(function(){function t(e,n,a,o,r,s){this.initialValue=e,this.errorValue=n,this.highStart=a,this.highValueIndex=o,this.index=r,this.data=s}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>rd],n=(n<>rd)],n=(n<>Pw),n=this.index[n],n+=e>>rd&oX,n=this.index[n],n=(n<"u"?[]:new Uint8Array(256);for(var ff=0;ffa6?(o.push(!0),c-=a6):o.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(r)!==-1)return a.push(s),n.push(Zv);if(c===dX||c===Mv){if(s===0)return a.push(s),n.push(Km);var l=n[s-1];return yX.indexOf(l)===-1?(a.push(a[s-1]),n.push(l)):(a.push(s),n.push(Km))}if(a.push(s),c===gX)return n.push(e==="strict"?Yv:Vp);if(c===$_||c===fX)return n.push(Km);if(c===hX)return r>=131072&&r<=196605||r>=196608&&r<=262141?n.push(Vp):n.push(Km);n.push(c)}),[a,n,o]},zb=function(t,e,n,a){var o=a[n];if(Array.isArray(t)?t.indexOf(o)!==-1:t===o)for(var r=n;r<=a.length;){r++;var s=a[r];if(s===e)return!0;if(s!==Zl)break}if(o===Zl)for(var r=n;r>0;){r--;var c=a[r];if(Array.isArray(t)?t.indexOf(c)!==-1:t===c)for(var l=n;l<=a.length;){l++;var s=a[l];if(s===e)return!0;if(s!==Zl)break}if(c!==Zl)break}return!1},m6=function(t,e){for(var n=t;n>=0;){var a=e[n];if(a===Zl)n--;else return a}return 0},vX=function(t,e,n,a,o){if(n[a]===0)return rn;var r=a-1;if(Array.isArray(o)&&o[r]===!0)return rn;var s=r-1,c=r+1,l=e[r],A=s>=0?e[s]:0,p=e[c];if(l===Y_&&p===K_)return rn;if(Xv.indexOf(l)!==-1)return W_;if(Xv.indexOf(p)!==-1||V_.indexOf(p)!==-1)return rn;if(m6(r,e)===q_)return yf;if(Vv.get(t[r])===Mv||(l===hf||l===xf)&&Vv.get(t[c])===Mv||l===o6||p===o6||l===r6||[Zl,zv,Wu].indexOf(l)===-1&&p===r6||[gf,Ou,pX,Kd,qd].indexOf(p)!==-1||m6(r,e)===Tu||zb(Rb,Tu,r,e)||zb([gf,Ou],Yv,r,e)||zb(s6,s6,r,e))return rn;if(l===Zl)return yf;if(l===Rb||p===Rb)return rn;if(p===Zv||l===Zv)return yf;if([zv,Wu,Yv].indexOf(p)!==-1||l===uX||A===$v&&CX.indexOf(l)!==-1||l===qd&&p===$v||p===i6||Cc.indexOf(p)!==-1&&l===Or||Cc.indexOf(l)!==-1&&p===Or||l===Xu&&[Vp,hf,xf].indexOf(p)!==-1||[Vp,hf,xf].indexOf(l)!==-1&&p===Vu||Cc.indexOf(l)!==-1&&c6.indexOf(p)!==-1||c6.indexOf(l)!==-1&&Cc.indexOf(p)!==-1||[Xu,Vu].indexOf(l)!==-1&&(p===Or||[Tu,Wu].indexOf(p)!==-1&&e[c+1]===Or)||[Tu,Wu].indexOf(l)!==-1&&p===Or||l===Or&&[Or,qd,Kd].indexOf(p)!==-1)return rn;if([Or,qd,Kd,gf,Ou].indexOf(p)!==-1)for(var u=r;u>=0;){var x=e[u];if(x===Or)return rn;if([qd,Kd].indexOf(x)!==-1)u--;else break}if([Xu,Vu].indexOf(p)!==-1)for(var u=[gf,Ou].indexOf(l)!==-1?s:r;u>=0;){var x=e[u];if(x===Or)return rn;if([qd,Kd].indexOf(x)!==-1)u--;else break}if(Wv===l&&[Wv,Tf,Kv,qv].indexOf(p)!==-1||[Tf,Kv].indexOf(l)!==-1&&[Tf,kf].indexOf(p)!==-1||[kf,qv].indexOf(l)!==-1&&p===kf||l6.indexOf(l)!==-1&&[i6,Vu].indexOf(p)!==-1||l6.indexOf(p)!==-1&&l===Xu||Cc.indexOf(l)!==-1&&Cc.indexOf(p)!==-1||l===Kd&&Cc.indexOf(p)!==-1||Cc.concat(Or).indexOf(l)!==-1&&p===Tu&&xX.indexOf(t[c])===-1||Cc.concat(Or).indexOf(p)!==-1&&l===Ou)return rn;if(l===Mb&&p===Mb){for(var h=n[r],w=1;h>0&&(h--,e[h]===Mb);)w++;if(w%2!==0)return rn}return l===hf&&p===xf?rn:yf},wX=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=bX(t,e.lineBreak),a=n[0],o=n[1],r=n[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(o=o.map(function(c){return[Or,Km,$_].indexOf(c)!==-1?Vp:c}));var s=e.wordBreak==="keep-all"?r.map(function(c,l){return c&&t[l]>=19968&&t[l]<=40959}):void 0;return[a,o,s]},BX=(function(){function t(e,n,a,o){this.codePoints=e,this.required=n===W_,this.start=a,this.end=o}return t.prototype.slice=function(){return Ga.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),DX=function(t,e){var n=_h(t),a=wX(n,e),o=a[0],r=a[1],s=a[2],c=n.length,l=0,A=0;return{next:function(){if(A>=c)return{done:!0,value:null};for(var p=rn;A=X_&&t<=57},rJ=function(t){return t>=55296&&t<=57343},$d=function(t){return To(t)||t>=tE&&t<=aE||t>=J_&&t<=eJ},sJ=function(t){return t>=J_&&t<=nJ},iJ=function(t){return t>=tE&&t<=oJ},cJ=function(t){return sJ(t)||iJ(t)},lJ=function(t){return t>=zX},Bf=function(t){return t===Lg||t===NX||t===jX},Qg=function(t){return cJ(t)||lJ(t)||t===PX},f6=function(t){return Qg(t)||To(t)||t===br},mJ=function(t){return t>=qX&&t<=$X||t===WX||t>=VX&&t<=XX||t===JX},Rl=function(t,e){return t!==lp?!1:e!==Lg},Df=function(t,e,n){return t===br?Qg(e)||Rl(e,n):Qg(t)?!0:!!(t===lp&&Rl(t,e))},Yb=function(t,e,n){return t===Jm||t===br?To(e)?!0:e===Xp&&To(n):To(t===Xp?e:t)},dJ=function(t){var e=0,n=1;(t[e]===Jm||t[e]===br)&&(t[e]===br&&(n=-1),e++);for(var a=[];To(t[e]);)a.push(t[e++]);var o=a.length?parseInt(Ga.apply(void 0,a),10):0;t[e]===Xp&&e++;for(var r=[];To(t[e]);)r.push(t[e++]);var s=r.length,c=s?parseInt(Ga.apply(void 0,r),10):0;(t[e]===nE||t[e]===eE)&&e++;var l=1;(t[e]===Jm||t[e]===br)&&(t[e]===br&&(l=-1),e++);for(var A=[];To(t[e]);)A.push(t[e++]);var p=A.length?parseInt(Ga.apply(void 0,A),10):0;return n*(o+c*Math.pow(10,-s))*Math.pow(10,l*p)},AJ={type:2},uJ={type:3},pJ={type:4},fJ={type:13},gJ={type:8},hJ={type:21},xJ={type:9},yJ={type:10},CJ={type:11},bJ={type:12},vJ={type:14},Uf={type:23},wJ={type:1},BJ={type:25},DJ={type:24},UJ={type:26},HJ={type:27},NJ={type:28},jJ={type:29},GJ={type:31},Jv={type:32},oE=(function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(_h(e))},t.prototype.read=function(){for(var e=[],n=this.consumeToken();n!==Jv;)e.push(n),n=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Cf:return this.consumeStringToken(Cf);case GX:var n=this.peekCodePoint(0),a=this.peekCodePoint(1),o=this.peekCodePoint(2);if(f6(n)||Rl(a,o)){var r=Df(n,a,o)?HX:UX,s=this.consumeName();return{type:5,value:s,flags:r}}break;case _X:if(this.peekCodePoint(0)===ku)return this.consumeCodePoint(),fJ;break;case bf:return this.consumeStringToken(bf);case vf:return AJ;case Ru:return uJ;case Zb:if(this.peekCodePoint(0)===ku)return this.consumeCodePoint(),vJ;break;case Jm:if(Yb(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case ZX:return pJ;case br:var c=e,l=this.peekCodePoint(0),A=this.peekCodePoint(1);if(Yb(c,l,A))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Df(c,l,A))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===br&&A===LX)return this.consumeCodePoint(),this.consumeCodePoint(),DJ;break;case Xp:if(Yb(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case A6:if(this.peekCodePoint(0)===Zb)for(this.consumeCodePoint();;){var p=this.consumeCodePoint();if(p===Zb&&(p=this.consumeCodePoint(),p===A6))return this.consumeToken();if(p===Ci)return this.consumeToken()}break;case YX:return UJ;case KX:return HJ;case FX:if(this.peekCodePoint(0)===SX&&this.peekCodePoint(1)===br&&this.peekCodePoint(2)===br)return this.consumeCodePoint(),this.consumeCodePoint(),BJ;break;case QX:var u=this.peekCodePoint(0),x=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Df(u,x,h)){var s=this.consumeName();return{type:7,value:s}}break;case IX:return NJ;case lp:if(Rl(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case OX:return jJ;case TX:if(this.peekCodePoint(0)===ku)return this.consumeCodePoint(),gJ;break;case kX:return CJ;case RX:return bJ;case tJ:case aJ:var w=this.peekCodePoint(0),b=this.peekCodePoint(1);return w===Jm&&($d(b)||b===wf)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case u6:if(this.peekCodePoint(0)===ku)return this.consumeCodePoint(),xJ;if(this.peekCodePoint(0)===u6)return this.consumeCodePoint(),hJ;break;case MX:if(this.peekCodePoint(0)===ku)return this.consumeCodePoint(),yJ;break;case Ci:return Jv}return Bf(e)?(this.consumeWhiteSpace(),GJ):To(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Qg(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Ga(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],n=this.consumeCodePoint();$d(n)&&e.length<6;)e.push(n),n=this.consumeCodePoint();for(var a=!1;n===wf&&e.length<6;)e.push(n),n=this.consumeCodePoint(),a=!0;if(a){var o=parseInt(Ga.apply(void 0,e.map(function(l){return l===wf?X_:l})),16),r=parseInt(Ga.apply(void 0,e.map(function(l){return l===wf?aE:l})),16);return{type:30,start:o,end:r}}var s=parseInt(Ga.apply(void 0,e),16);if(this.peekCodePoint(0)===br&&$d(this.peekCodePoint(1))){this.consumeCodePoint(),n=this.consumeCodePoint();for(var c=[];$d(n)&&c.length<6;)c.push(n),n=this.consumeCodePoint();var r=parseInt(Ga.apply(void 0,c),16);return{type:30,start:s,end:r}}else return{type:30,start:s,end:s}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===vf?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===vf?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ci)return{type:22,value:""};var n=this.peekCodePoint(0);if(n===bf||n===Cf){var a=this.consumeStringToken(this.consumeCodePoint());return a.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ci||this.peekCodePoint(0)===Ru)?(this.consumeCodePoint(),{type:22,value:a.value}):(this.consumeBadUrlRemnants(),Uf)}for(;;){var o=this.consumeCodePoint();if(o===Ci||o===Ru)return{type:22,value:Ga.apply(void 0,e)};if(Bf(o))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ci||this.peekCodePoint(0)===Ru?(this.consumeCodePoint(),{type:22,value:Ga.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Uf);if(o===Cf||o===bf||o===vf||mJ(o))return this.consumeBadUrlRemnants(),Uf;if(o===lp)if(Rl(o,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Uf;else e.push(o)}},t.prototype.consumeWhiteSpace=function(){for(;Bf(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Ru||e===Ci)return;Rl(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var n=5e4,a="";e>0;){var o=Math.min(n,e);a+=Ga.apply(void 0,this._value.splice(0,o)),e-=o}return this._value.shift(),a},t.prototype.consumeStringToken=function(e){var n="",a=0;do{var o=this._value[a];if(o===Ci||o===void 0||o===e)return n+=this.consumeStringSlice(a),{type:0,value:n};if(o===Lg)return this._value.splice(0,a),wJ;if(o===lp){var r=this._value[a+1];r!==Ci&&r!==void 0&&(r===Lg?(n+=this.consumeStringSlice(a),a=-1,this._value.shift()):Rl(o,r)&&(n+=this.consumeStringSlice(a),n+=Ga(this.consumeEscapedCodePoint()),a=-1))}a++}while(!0)},t.prototype.consumeNumber=function(){var e=[],n=d2,a=this.peekCodePoint(0);for((a===Jm||a===br)&&e.push(this.consumeCodePoint());To(this.peekCodePoint(0));)e.push(this.consumeCodePoint());a=this.peekCodePoint(0);var o=this.peekCodePoint(1);if(a===Xp&&To(o))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=d6;To(this.peekCodePoint(0));)e.push(this.consumeCodePoint());a=this.peekCodePoint(0),o=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((a===nE||a===eE)&&((o===Jm||o===br)&&To(r)||To(o)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=d6;To(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[dJ(e),n]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),n=e[0],a=e[1],o=this.peekCodePoint(0),r=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Df(o,r,s)){var c=this.consumeName();return{type:15,number:n,flags:a,unit:c}}return o===EX?(this.consumeCodePoint(),{type:16,number:n,flags:a}):{type:17,number:n,flags:a}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if($d(e)){for(var n=Ga(e);$d(this.peekCodePoint(0))&&n.length<6;)n+=Ga(this.consumeCodePoint());Bf(this.peekCodePoint(0))&&this.consumeCodePoint();var a=parseInt(n,16);return a===0||rJ(a)||a>1114111?p6:a}return e===Ci?p6:e},t.prototype.consumeName=function(){for(var e="";;){var n=this.consumeCodePoint();if(f6(n))e+=Ga(n);else if(Rl(n,this.peekCodePoint(0)))e+=Ga(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(n),e}},t})(),rE=(function(){function t(e){this._tokens=e}return t.create=function(e){var n=new oE;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var n=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return n;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var n=this.consumeComponentValue();if(n.type===32)return e;e.push(n),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var n={type:e,values:[]},a=this.consumeToken();;){if(a.type===32||EJ(a,e))return n;this.reconsumeToken(a),n.values.push(this.consumeComponentValue()),a=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var n={name:e.value,values:[],type:18};;){var a=this.consumeToken();if(a.type===32||a.type===3)return n;this.reconsumeToken(a),n.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Jv:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t})(),A2=function(t){return t.type===15},su=function(t){return t.type===17},Fn=function(t){return t.type===20},_J=function(t){return t.type===0},e3=function(t,e){return Fn(t)&&t.value===e},sE=function(t){return t.type!==31},ZA=function(t){return t.type!==31&&t.type!==4},Li=function(t){var e=[],n=[];return t.forEach(function(a){if(a.type===4){if(n.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(n),n=[];return}a.type!==31&&n.push(a)}),n.length&&e.push(n),e},EJ=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},Jl=function(t){return t.type===17||t.type===15},Qa=function(t){return t.type===16||Jl(t)},iE=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},vo={type:17,number:0,flags:d2},Sw={type:16,number:50,flags:d2},Yl={type:16,number:100,flags:d2},Ju=function(t,e,n){var a=t[0],o=t[1];return[Mn(a,e),Mn(typeof o<"u"?o:a,n)]},Mn=function(t,e){if(t.type===16)return t.number/100*e;if(A2(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},cE="deg",lE="grad",mE="rad",dE="turn",Eh={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case cE:return Math.PI*e.number/180;case lE:return Math.PI/200*e.number;case mE:return e.number;case dE:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},AE=function(t){return t.type===15&&(t.unit===cE||t.unit===lE||t.unit===mE||t.unit===dE)},uE=function(t){var e=t.filter(Fn).map(function(n){return n.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[vo,vo];case"to top":case"bottom":return us(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[vo,Yl];case"to right":case"left":return us(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Yl,Yl];case"to bottom":case"top":return us(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Yl,vo];case"to left":case"right":return us(270)}return 0},us=function(t){return Math.PI*t/180},Vl={name:"color",parse:function(t,e){if(e.type===18){var n=PJ[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(e.type===5){if(e.value.length===3){var a=e.value.substring(0,1),o=e.value.substring(1,2),r=e.value.substring(2,3);return Kl(parseInt(a+a,16),parseInt(o+o,16),parseInt(r+r,16),1)}if(e.value.length===4){var a=e.value.substring(0,1),o=e.value.substring(1,2),r=e.value.substring(2,3),s=e.value.substring(3,4);return Kl(parseInt(a+a,16),parseInt(o+o,16),parseInt(r+r,16),parseInt(s+s,16)/255)}if(e.value.length===6){var a=e.value.substring(0,2),o=e.value.substring(2,4),r=e.value.substring(4,6);return Kl(parseInt(a,16),parseInt(o,16),parseInt(r,16),1)}if(e.value.length===8){var a=e.value.substring(0,2),o=e.value.substring(2,4),r=e.value.substring(4,6),s=e.value.substring(6,8);return Kl(parseInt(a,16),parseInt(o,16),parseInt(r,16),parseInt(s,16)/255)}}if(e.type===20){var c=Pc[e.value.toUpperCase()];if(typeof c<"u")return c}return Pc.TRANSPARENT}},Xl=function(t){return(255&t)===0},ro=function(t){var e=255&t,n=255&t>>8,a=255&t>>16,o=255&t>>24;return e<255?"rgba("+o+","+a+","+n+","+e/255+")":"rgb("+o+","+a+","+n+")"},Kl=function(t,e,n,a){return(t<<24|e<<16|n<<8|Math.round(a*255)<<0)>>>0},g6=function(t,e){if(t.type===17)return t.number;if(t.type===16){var n=e===3?1:255;return e===3?t.number/100*n:Math.round(t.number/100*n)}return 0},h6=function(t,e){var n=e.filter(ZA);if(n.length===3){var a=n.map(g6),o=a[0],r=a[1],s=a[2];return Kl(o,r,s,1)}if(n.length===4){var c=n.map(g6),o=c[0],r=c[1],s=c[2],l=c[3];return Kl(o,r,s,l)}return 0};function Kb(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<1/2?e:n<2/3?(e-t)*6*(2/3-n)+t:t}var x6=function(t,e){var n=e.filter(ZA),a=n[0],o=n[1],r=n[2],s=n[3],c=(a.type===17?us(a.number):Eh.parse(t,a))/(Math.PI*2),l=Qa(o)?o.number/100:0,A=Qa(r)?r.number/100:0,p=typeof s<"u"&&Qa(s)?Mn(s,1):1;if(l===0)return Kl(A*255,A*255,A*255,1);var u=A<=.5?A*(l+1):A+l-A*l,x=A*2-u,h=Kb(x,u,c+1/3),w=Kb(x,u,c),b=Kb(x,u,c-1/3);return Kl(h*255,w*255,b*255,p)},PJ={hsl:x6,hsla:x6,rgb:h6,rgba:h6},mp=function(t,e){return Vl.parse(t,rE.create(e).parseComponentValue())},Pc={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},SJ={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Fn(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},FJ={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ph=function(t,e){var n=Vl.parse(t,e[0]),a=e[1];return a&&Qa(a)?{color:n,stop:a}:{color:n,stop:null}},y6=function(t,e){var n=t[0],a=t[t.length-1];n.stop===null&&(n.stop=vo),a.stop===null&&(a.stop=Yl);for(var o=[],r=0,s=0;sr?o.push(l):o.push(r),r=l}else o.push(null)}for(var A=null,s=0;ss.optimumDistance)?{optimumCorner:c,optimumDistance:p}:s},{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},IJ=function(t,e,n,a,o){var r=0,s=0;switch(t.size){case 0:t.shape===0?r=s=Math.min(Math.abs(e),Math.abs(e-a),Math.abs(n),Math.abs(n-o)):t.shape===1&&(r=Math.min(Math.abs(e),Math.abs(e-a)),s=Math.min(Math.abs(n),Math.abs(n-o)));break;case 2:if(t.shape===0)r=s=Math.min(Ms(e,n),Ms(e,n-o),Ms(e-a,n),Ms(e-a,n-o));else if(t.shape===1){var c=Math.min(Math.abs(n),Math.abs(n-o))/Math.min(Math.abs(e),Math.abs(e-a)),l=C6(a,o,e,n,!0),A=l[0],p=l[1];r=Ms(A-e,(p-n)/c),s=c*r}break;case 1:t.shape===0?r=s=Math.max(Math.abs(e),Math.abs(e-a),Math.abs(n),Math.abs(n-o)):t.shape===1&&(r=Math.max(Math.abs(e),Math.abs(e-a)),s=Math.max(Math.abs(n),Math.abs(n-o)));break;case 3:if(t.shape===0)r=s=Math.max(Ms(e,n),Ms(e,n-o),Ms(e-a,n),Ms(e-a,n-o));else if(t.shape===1){var c=Math.max(Math.abs(n),Math.abs(n-o))/Math.max(Math.abs(e),Math.abs(e-a)),u=C6(a,o,e,n,!1),A=u[0],p=u[1];r=Ms(A-e,(p-n)/c),s=c*r}break}return Array.isArray(t.size)&&(r=Mn(t.size[0],a),s=t.size.length===2?Mn(t.size[1],o):r),[r,s]},OJ=function(t,e){var n=us(180),a=[];return Li(e).forEach(function(o,r){if(r===0){var s=o[0];if(s.type===20&&s.value==="to"){n=uE(o);return}else if(AE(s)){n=Eh.parse(t,s);return}}var c=Ph(t,o);a.push(c)}),{angle:n,stops:a,type:1}},Hf=function(t,e){var n=us(180),a=[];return Li(e).forEach(function(o,r){if(r===0){var s=o[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){n=uE(o);return}else if(AE(s)){n=(Eh.parse(t,s)+us(270))%us(360);return}}var c=Ph(t,o);a.push(c)}),{angle:n,stops:a,type:1}},TJ=function(t,e){var n=us(180),a=[],o=1,r=0,s=3,c=[];return Li(e).forEach(function(l,A){var p=l[0];if(A===0){if(Fn(p)&&p.value==="linear"){o=1;return}else if(Fn(p)&&p.value==="radial"){o=2;return}}if(p.type===18){if(p.name==="from"){var u=Vl.parse(t,p.values[0]);a.push({stop:vo,color:u})}else if(p.name==="to"){var u=Vl.parse(t,p.values[0]);a.push({stop:Yl,color:u})}else if(p.name==="color-stop"){var x=p.values.filter(ZA);if(x.length===2){var u=Vl.parse(t,x[1]),h=x[0];su(h)&&a.push({stop:{type:16,number:h.number*100,flags:h.flags},color:u})}}}}),o===1?{angle:(n+us(180))%us(360),stops:a,type:o}:{size:s,shape:r,stops:a,position:c,type:o}},pE="closest-side",fE="farthest-side",gE="closest-corner",hE="farthest-corner",xE="circle",yE="ellipse",CE="cover",bE="contain",kJ=function(t,e){var n=0,a=3,o=[],r=[];return Li(e).forEach(function(s,c){var l=!0;if(c===0){var A=!1;l=s.reduce(function(u,x){if(A)if(Fn(x))switch(x.value){case"center":return r.push(Sw),u;case"top":case"left":return r.push(vo),u;case"right":case"bottom":return r.push(Yl),u}else(Qa(x)||Jl(x))&&r.push(x);else if(Fn(x))switch(x.value){case xE:return n=0,!1;case yE:return n=1,!1;case"at":return A=!0,!1;case pE:return a=0,!1;case CE:case fE:return a=1,!1;case bE:case gE:return a=2,!1;case hE:return a=3,!1}else if(Jl(x)||Qa(x))return Array.isArray(a)||(a=[]),a.push(x),!1;return u},l)}if(l){var p=Ph(t,s);o.push(p)}}),{size:a,shape:n,stops:o,position:r,type:2}},Nf=function(t,e){var n=0,a=3,o=[],r=[];return Li(e).forEach(function(s,c){var l=!0;if(c===0?l=s.reduce(function(p,u){if(Fn(u))switch(u.value){case"center":return r.push(Sw),!1;case"top":case"left":return r.push(vo),!1;case"right":case"bottom":return r.push(Yl),!1}else if(Qa(u)||Jl(u))return r.push(u),!1;return p},l):c===1&&(l=s.reduce(function(p,u){if(Fn(u))switch(u.value){case xE:return n=0,!1;case yE:return n=1,!1;case bE:case pE:return a=0,!1;case fE:return a=1,!1;case gE:return a=2,!1;case CE:case hE:return a=3,!1}else if(Jl(u)||Qa(u))return Array.isArray(a)||(a=[]),a.push(u),!1;return p},l)),l){var A=Ph(t,s);o.push(A)}}),{size:a,shape:n,stops:o,position:r,type:2}},RJ=function(t){return t.type===1},MJ=function(t){return t.type===2},Fw={name:"image",parse:function(t,e){if(e.type===22){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(e.type===18){var a=vE[e.name];if(typeof a>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return a(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function zJ(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!vE[t.name])}var vE={"linear-gradient":OJ,"-moz-linear-gradient":Hf,"-ms-linear-gradient":Hf,"-o-linear-gradient":Hf,"-webkit-linear-gradient":Hf,"radial-gradient":kJ,"-moz-radial-gradient":Nf,"-ms-radial-gradient":Nf,"-o-radial-gradient":Nf,"-webkit-radial-gradient":Nf,"-webkit-gradient":TJ},ZJ={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e.filter(function(a){return ZA(a)&&zJ(a)}).map(function(a){return Fw.parse(t,a)})}},YJ={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Fn(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},KJ={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Li(e).map(function(n){return n.filter(Qa)}).map(iE)}},qJ={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Li(e).map(function(n){return n.filter(Fn).map(function(a){return a.value}).join(" ")}).map($J)}},$J=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},gA;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(gA||(gA={}));var WJ={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Li(e).map(function(n){return n.filter(VJ)})}},VJ=function(t){return Fn(t)||Qa(t)},Sh=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},XJ=Sh("top"),JJ=Sh("right"),eee=Sh("bottom"),tee=Sh("left"),Fh=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,n){return iE(n.filter(Qa))}}},nee=Fh("top-left"),aee=Fh("top-right"),oee=Fh("bottom-right"),ree=Fh("bottom-left"),Lh=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,n){switch(n){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},see=Lh("top"),iee=Lh("right"),cee=Lh("bottom"),lee=Lh("left"),Qh=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,n){return A2(n)?n.number:0}}},mee=Qh("top"),dee=Qh("right"),Aee=Qh("bottom"),uee=Qh("left"),pee={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fee={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},gee={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Fn).reduce(function(n,a){return n|hee(a.value)},0)}},hee=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},xee={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},yee={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Ig;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Ig||(Ig={}));var Cee={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return Ig.STRICT;case"normal":default:return Ig.NORMAL}}},bee={name:"line-height",initialValue:"normal",prefix:!1,type:4},b6=function(t,e){return Fn(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:Qa(t)?Mn(t,e):e},vee={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:Fw.parse(t,e)}},wee={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},t3={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ih=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Bee=Ih("top"),Dee=Ih("right"),Uee=Ih("bottom"),Hee=Ih("left"),Nee={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Fn).map(function(n){switch(n.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},jee={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Oh=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Gee=Oh("top"),_ee=Oh("right"),Eee=Oh("bottom"),Pee=Oh("left"),See={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Fee={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Lee={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&e3(e[0],"none")?[]:Li(e).map(function(n){for(var a={color:Pc.TRANSPARENT,offsetX:vo,offsetY:vo,blur:vo},o=0,r=0;r"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},Oee=function(t){var e=t.filter(function(n){return n.type===17}).map(function(n){return n.number});return e.length===6?e:null},Tee=function(t){var e=t.filter(function(l){return l.type===17}).map(function(l){return l.number}),n=e[0],a=e[1];e[2],e[3];var o=e[4],r=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],c=e[13];return e[14],e[15],e.length===16?[n,a,o,r,s,c]:null},kee={matrix:Oee,matrix3d:Tee},v6={type:16,number:50,flags:d2},Ree=[v6,v6],Mee={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(Qa);return n.length!==2?Ree:[n[0],n[1]]}},zee={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},dp;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(dp||(dp={}));var Zee={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return dp.BREAK_ALL;case"keep-all":return dp.KEEP_ALL;case"normal":default:return dp.NORMAL}}},Yee={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(su(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},wE={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},Kee={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return su(e)?e.number:1}},qee={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$ee={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Fn).map(function(n){switch(n.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(n){return n!==0})}},Wee={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],a=[];return e.forEach(function(o){switch(o.type){case 20:case 0:n.push(o.value);break;case 17:n.push(o.number.toString());break;case 4:a.push(n.join(" ")),n.length=0;break}}),n.length&&a.push(n.join(" ")),a.map(function(o){return o.indexOf(" ")===-1?o:"'"+o+"'"})}},Vee={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Xee={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(su(e))return e.number;if(Fn(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Jee={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Fn).map(function(n){return n.value})}},ete={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ya=function(t,e){return(t&e)!==0},tte={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e}},nte={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;for(var a=[],o=e.filter(sE),r=0;r1?1:0],this.overflowWrap=ft(e,jee,n.overflowWrap),this.paddingTop=ft(e,Gee,n.paddingTop),this.paddingRight=ft(e,_ee,n.paddingRight),this.paddingBottom=ft(e,Eee,n.paddingBottom),this.paddingLeft=ft(e,Pee,n.paddingLeft),this.paintOrder=ft(e,ite,n.paintOrder),this.position=ft(e,Fee,n.position),this.textAlign=ft(e,See,n.textAlign),this.textDecorationColor=ft(e,qee,(a=n.textDecorationColor)!==null&&a!==void 0?a:n.color),this.textDecorationLine=ft(e,$ee,(o=n.textDecorationLine)!==null&&o!==void 0?o:n.textDecoration),this.textShadow=ft(e,Lee,n.textShadow),this.textTransform=ft(e,Qee,n.textTransform),this.transform=ft(e,Iee,n.transform),this.transformOrigin=ft(e,Mee,n.transformOrigin),this.visibility=ft(e,zee,n.visibility),this.webkitTextStrokeColor=ft(e,cte,n.webkitTextStrokeColor),this.webkitTextStrokeWidth=ft(e,lte,n.webkitTextStrokeWidth),this.wordBreak=ft(e,Zee,n.wordBreak),this.zIndex=ft(e,Yee,n.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Xl(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return Ya(this.display,4)||Ya(this.display,33554432)||Ya(this.display,268435456)||Ya(this.display,536870912)||Ya(this.display,67108864)||Ya(this.display,134217728)},t})(),dte=(function(){function t(e,n){this.content=ft(e,tte,n.content),this.quotes=ft(e,rte,n.quotes)}return t})(),B6=(function(){function t(e,n){this.counterIncrement=ft(e,nte,n.counterIncrement),this.counterReset=ft(e,ate,n.counterReset)}return t})(),ft=function(t,e,n){var a=new oE,o=n!==null&&typeof n<"u"?n.toString():e.initialValue;a.write(o);var r=new rE(a.read());switch(e.type){case 2:var s=r.parseComponentValue();return e.parse(t,Fn(s)?s.value:e.initialValue);case 0:return e.parse(t,r.parseComponentValue());case 1:return e.parse(t,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(e.format){case"angle":return Eh.parse(t,r.parseComponentValue());case"color":return Vl.parse(t,r.parseComponentValue());case"image":return Fw.parse(t,r.parseComponentValue());case"length":var c=r.parseComponentValue();return Jl(c)?c:vo;case"length-percentage":var l=r.parseComponentValue();return Qa(l)?l:vo;case"time":return wE.parse(t,r.parseComponentValue())}break}},Ate="data-html2canvas-debug",ute=function(t){var e=t.getAttribute(Ate);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},n3=function(t,e){var n=ute(t);return n===1||e===n},Qi=(function(){function t(e,n){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,n3(n,3))debugger;this.styles=new mte(e,window.getComputedStyle(n,null)),r3(n)&&(this.styles.animationDuration.some(function(a){return a>0})&&(n.style.animationDuration="0s"),this.styles.transform!==null&&(n.style.transform="none")),this.bounds=Gh(this.context,n),n3(n,4)&&(this.flags|=16)}return t})(),pte="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",D6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ep=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var jf=0;jf>4,p[o++]=(s&15)<<4|c>>2,p[o++]=(c&3)<<6|l&63;return A},gte=function(t){for(var e=t.length,n=[],a=0;a>sd,yte=1<>sd,bte=BE+Cte,vte=bte,wte=32,Bte=vte+wte,Dte=65536>>Lw,Ute=1<=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>sd],n=(n<>sd)],n=(n<>Lw),n=this.index[n],n+=e>>sd&Hte,n=this.index[n],n=(n<"u"?[]:new Uint8Array(256);for(var Gf=0;Gf=55296&&o<=56319&&n>10)+55296,s%1024+56320)),(o+1===n||a.length>16384)&&(r+=String.fromCharCode.apply(String,a),a.length=0)}return r},Lte=jte(pte),ls="×",t1="÷",Qte=function(t){return Lte.get(t)},Ite=function(t,e,n){var a=n-2,o=e[a],r=e[n-1],s=e[n];if(r===Wb&&s===Vb)return ls;if(r===Wb||r===Vb||r===N6||s===Wb||s===Vb||s===N6)return t1;if(r===G6&&[G6,Xb,_6,E6].indexOf(s)!==-1||(r===_6||r===Xb)&&(s===Xb||s===Jb)||(r===E6||r===Jb)&&s===Jb||s===P6||s===j6||s===Pte||r===Ete)return ls;if(r===P6&&s===S6){for(;o===j6;)o=e[--a];if(o===S6)return ls}if(r===e1&&s===e1){for(var c=0;o===e1;)c++,o=e[--a];if(c%2===0)return ls}return t1},Ote=function(t){var e=Ste(t),n=e.length,a=0,o=0,r=e.map(Qte);return{next:function(){if(a>=n)return{done:!0,value:null};for(var s=ls;as.x||p.y>s.y;return s=p,A===0?!0:u});return t.body.removeChild(e),c},Mte=function(){return typeof new Image().crossOrigin<"u"},zte=function(){return typeof new XMLHttpRequest().responseType=="string"},Zte=function(t){var e=new Image,n=t.createElement("canvas"),a=n.getContext("2d");if(!a)return!1;e.src="data:image/svg+xml,";try{a.drawImage(e,0,0),n.toDataURL()}catch{return!1}return!0},F6=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},Yte=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var a=e.getContext("2d");if(!a)return Promise.reject(!1);a.fillStyle="rgb(0, 255, 0)",a.fillRect(0,0,n,n);var o=new Image,r=e.toDataURL();o.src=r;var s=a3(n,n,0,0,o);return a.fillStyle="red",a.fillRect(0,0,n,n),L6(s).then(function(c){a.drawImage(c,0,0);var l=a.getImageData(0,0,n,n).data;a.fillStyle="red",a.fillRect(0,0,n,n);var A=t.createElement("div");return A.style.backgroundImage="url("+r+")",A.style.height=n+"px",F6(l)?L6(a3(n,n,0,0,A)):Promise.reject(!1)}).then(function(c){return a.drawImage(c,0,0),F6(a.getImageData(0,0,n,n).data)}).catch(function(){return!1})},a3=function(t,e,n,a,o){var r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg"),c=document.createElementNS(r,"foreignObject");return s.setAttributeNS(null,"width",t.toString()),s.setAttributeNS(null,"height",e.toString()),c.setAttributeNS(null,"width","100%"),c.setAttributeNS(null,"height","100%"),c.setAttributeNS(null,"x",n.toString()),c.setAttributeNS(null,"y",a.toString()),c.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(c),c.appendChild(o),s},L6=function(t){return new Promise(function(e,n){var a=new Image;a.onload=function(){return e(a)},a.onerror=n,a.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Co={get SUPPORT_RANGE_BOUNDS(){var t=kte(document);return Object.defineProperty(Co,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Co.SUPPORT_RANGE_BOUNDS&&Rte(document);return Object.defineProperty(Co,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Zte(document);return Object.defineProperty(Co,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?Yte(document):Promise.resolve(!1);return Object.defineProperty(Co,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=Mte();return Object.defineProperty(Co,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=zte();return Object.defineProperty(Co,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Co,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Co,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Ap=(function(){function t(e,n){this.text=e,this.bounds=n}return t})(),Kte=function(t,e,n,a){var o=Wte(e,n),r=[],s=0;return o.forEach(function(c){if(n.textDecorationLine.length||c.trim().length>0)if(Co.SUPPORT_RANGE_BOUNDS){var l=Q6(a,s,c.length).getClientRects();if(l.length>1){var A=Qw(c),p=0;A.forEach(function(x){r.push(new Ap(x,Oc.fromDOMRectList(t,Q6(a,p+s,x.length).getClientRects()))),p+=x.length})}else r.push(new Ap(c,Oc.fromDOMRectList(t,l)))}else{var u=a.splitText(c.length);r.push(new Ap(c,qte(t,a))),a=u}else Co.SUPPORT_RANGE_BOUNDS||(a=a.splitText(c.length));s+=c.length}),r},qte=function(t,e){var n=e.ownerDocument;if(n){var a=n.createElement("html2canvaswrapper");a.appendChild(e.cloneNode(!0));var o=e.parentNode;if(o){o.replaceChild(a,e);var r=Gh(t,a);return a.firstChild&&o.replaceChild(a.firstChild,a),r}}return Oc.EMPTY},Q6=function(t,e,n){var a=t.ownerDocument;if(!a)throw new Error("Node has no owner document");var o=a.createRange();return o.setStart(t,e),o.setEnd(t,e+n),o},Qw=function(t){if(Co.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(n){return n.segment})}return Tte(t)},$te=function(t,e){if(Co.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map(function(a){return a.segment})}return Xte(t,e)},Wte=function(t,e){return e.letterSpacing!==0?Qw(t):$te(t,e)},Vte=[32,160,4961,65792,65793,4153,4241],Xte=function(t,e){for(var n=DX(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),a=[],o,r=function(){if(o.value){var s=o.value.slice(),c=_h(s),l="";c.forEach(function(A){Vte.indexOf(A)===-1?l+=Ga(A):(l.length&&a.push(l),a.push(Ga(A)),l="")}),l.length&&a.push(l)}};!(o=n.next()).done;)r();return a},Jte=(function(){function t(e,n,a){this.text=ene(n.data,a.textTransform),this.textBounds=Kte(e,this.text,a,n)}return t})(),ene=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(tne,nne);case 2:return t.toUpperCase();default:return t}},tne=/(^|\s|:|-|\(|\))([a-z])/g,nne=function(t,e,n){return t.length>0?e+n.toUpperCase():t},DE=(function(t){qs(e,t);function e(n,a){var o=t.call(this,n,a)||this;return o.src=a.currentSrc||a.src,o.intrinsicWidth=a.naturalWidth,o.intrinsicHeight=a.naturalHeight,o.context.cache.addImage(o.src),o}return e})(Qi),UE=(function(t){qs(e,t);function e(n,a){var o=t.call(this,n,a)||this;return o.canvas=a,o.intrinsicWidth=a.width,o.intrinsicHeight=a.height,o}return e})(Qi),HE=(function(t){qs(e,t);function e(n,a){var o=t.call(this,n,a)||this,r=new XMLSerializer,s=Gh(n,a);return a.setAttribute("width",s.width+"px"),a.setAttribute("height",s.height+"px"),o.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(a)),o.intrinsicWidth=a.width.baseVal.value,o.intrinsicHeight=a.height.baseVal.value,o.context.cache.addImage(o.svg),o}return e})(Qi),NE=(function(t){qs(e,t);function e(n,a){var o=t.call(this,n,a)||this;return o.value=a.value,o}return e})(Qi),o3=(function(t){qs(e,t);function e(n,a){var o=t.call(this,n,a)||this;return o.start=a.start,o.reversed=typeof a.reversed=="boolean"&&a.reversed===!0,o}return e})(Qi),ane=[{type:15,flags:0,unit:"px",number:3}],one=[{type:16,flags:0,number:50}],rne=function(t){return t.width>t.height?new Oc(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width0)n.textNodes.push(new Jte(t,o,n.styles));else if(mA(o))if(IE(o)&&o.assignedNodes)o.assignedNodes().forEach(function(c){return Rf(t,c,n,a)});else{var s=EE(t,o);s.styles.isVisible()&&(lne(o,s,a)?s.flags|=4:mne(s.styles)&&(s.flags|=2),cne.indexOf(o.tagName)!==-1&&(s.flags|=8),n.elements.push(s),o.slot,o.shadowRoot?Rf(t,o.shadowRoot,s,a):!kg(o)&&!FE(o)&&!Rg(o)&&Rf(t,o,s,a))}},EE=function(t,e){return s3(e)?new DE(t,e):LE(e)?new UE(t,e):FE(e)?new HE(t,e):dne(e)?new NE(t,e):Ane(e)?new o3(t,e):une(e)?new Iw(t,e):Rg(e)?new jE(t,e):kg(e)?new GE(t,e):QE(e)?new _E(t,e):new Qi(t,e)},PE=function(t,e){var n=EE(t,e);return n.flags|=4,Rf(t,e,n,n),n},lne=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Ow(t)&&n.styles.isTransparent()},mne=function(t){return t.isPositioned()||t.isFloating()},SE=function(t){return t.nodeType===Node.TEXT_NODE},mA=function(t){return t.nodeType===Node.ELEMENT_NODE},r3=function(t){return mA(t)&&typeof t.style<"u"&&!Mf(t)},Mf=function(t){return typeof t.className=="object"},dne=function(t){return t.tagName==="LI"},Ane=function(t){return t.tagName==="OL"},une=function(t){return t.tagName==="INPUT"},pne=function(t){return t.tagName==="HTML"},FE=function(t){return t.tagName==="svg"},Ow=function(t){return t.tagName==="BODY"},LE=function(t){return t.tagName==="CANVAS"},O6=function(t){return t.tagName==="VIDEO"},s3=function(t){return t.tagName==="IMG"},QE=function(t){return t.tagName==="IFRAME"},T6=function(t){return t.tagName==="STYLE"},fne=function(t){return t.tagName==="SCRIPT"},kg=function(t){return t.tagName==="TEXTAREA"},Rg=function(t){return t.tagName==="SELECT"},IE=function(t){return t.tagName==="SLOT"},k6=function(t){return t.tagName.indexOf("-")>0},gne=(function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var n=this.counters[e];return n&&n.length?n[n.length-1]:1},t.prototype.getCounterValues=function(e){var n=this.counters[e];return n||[]},t.prototype.pop=function(e){var n=this;e.forEach(function(a){return n.counters[a].pop()})},t.prototype.parse=function(e){var n=this,a=e.counterIncrement,o=e.counterReset,r=!0;a!==null&&a.forEach(function(c){var l=n.counters[c.counter];l&&c.increment!==0&&(r=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=c.increment)});var s=[];return r&&o.forEach(function(c){var l=n.counters[c.counter];s.push(c.counter),l||(l=n.counters[c.counter]=[]),l.push(c.reset)}),s},t})(),R6={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},M6={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},hne={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},xne={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Wd=function(t,e,n,a,o,r){return tn?Jp(t,o,r.length>0):a.integers.reduce(function(s,c,l){for(;t>=c;)t-=c,s+=a.values[l];return s},"")+r},OE=function(t,e,n,a){var o="";do n||t--,o=a(t)+o,t/=e;while(t*e>=e);return o},ja=function(t,e,n,a,o){var r=n-e+1;return(t<0?"-":"")+(OE(Math.abs(t),r,a,function(s){return Ga(Math.floor(s%r)+e)})+o)},Rm=function(t,e,n){n===void 0&&(n=". ");var a=e.length;return OE(Math.abs(t),a,!1,function(o){return e[Math.floor(o%a)]})+n},aA=1,Ol=2,Tl=4,tp=8,bc=function(t,e,n,a,o,r){if(t<-9999||t>9999)return Jp(t,4,o.length>0);var s=Math.abs(t),c=o;if(s===0)return e[0]+c;for(var l=0;s>0&&l<=4;l++){var A=s%10;A===0&&Ya(r,aA)&&c!==""?c=e[A]+c:A>1||A===1&&l===0||A===1&&l===1&&Ya(r,Ol)||A===1&&l===1&&Ya(r,Tl)&&t>100||A===1&&l>1&&Ya(r,tp)?c=e[A]+(l>0?n[l-1]:"")+c:A===1&&l>0&&(c=n[l-1]+c),s=Math.floor(s/10)}return(t<0?a:"")+c},z6="十百千萬",Z6="拾佰仟萬",Y6="マイナス",n1="마이너스",Jp=function(t,e,n){var a=n?". ":"",o=n?"、":"",r=n?", ":"",s=n?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var c=ja(t,48,57,!0,a);return c.length<4?"0"+c:c;case 4:return Rm(t,"〇一二三四五六七八九",o);case 6:return Wd(t,1,3999,R6,3,a).toLowerCase();case 7:return Wd(t,1,3999,R6,3,a);case 8:return ja(t,945,969,!1,a);case 9:return ja(t,97,122,!1,a);case 10:return ja(t,65,90,!1,a);case 11:return ja(t,1632,1641,!0,a);case 12:case 49:return Wd(t,1,9999,M6,3,a);case 35:return Wd(t,1,9999,M6,3,a).toLowerCase();case 13:return ja(t,2534,2543,!0,a);case 14:case 30:return ja(t,6112,6121,!0,a);case 15:return Rm(t,"子丑寅卯辰巳午未申酉戌亥",o);case 16:return Rm(t,"甲乙丙丁戊己庚辛壬癸",o);case 17:case 48:return bc(t,"零一二三四五六七八九",z6,"負",o,Ol|Tl|tp);case 47:return bc(t,"零壹貳參肆伍陸柒捌玖",Z6,"負",o,aA|Ol|Tl|tp);case 42:return bc(t,"零一二三四五六七八九",z6,"负",o,Ol|Tl|tp);case 41:return bc(t,"零壹贰叁肆伍陆柒捌玖",Z6,"负",o,aA|Ol|Tl|tp);case 26:return bc(t,"〇一二三四五六七八九","十百千万",Y6,o,0);case 25:return bc(t,"零壱弐参四伍六七八九","拾百千万",Y6,o,aA|Ol|Tl);case 31:return bc(t,"영일이삼사오육칠팔구","십백천만",n1,r,aA|Ol|Tl);case 33:return bc(t,"零一二三四五六七八九","十百千萬",n1,r,0);case 32:return bc(t,"零壹貳參四五六七八九","拾百千",n1,r,aA|Ol|Tl);case 18:return ja(t,2406,2415,!0,a);case 20:return Wd(t,1,19999,xne,3,a);case 21:return ja(t,2790,2799,!0,a);case 22:return ja(t,2662,2671,!0,a);case 22:return Wd(t,1,10999,hne,3,a);case 23:return Rm(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Rm(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ja(t,3302,3311,!0,a);case 28:return Rm(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",o);case 29:return Rm(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",o);case 34:return ja(t,3792,3801,!0,a);case 37:return ja(t,6160,6169,!0,a);case 38:return ja(t,4160,4169,!0,a);case 39:return ja(t,2918,2927,!0,a);case 40:return ja(t,1776,1785,!0,a);case 43:return ja(t,3046,3055,!0,a);case 44:return ja(t,3174,3183,!0,a);case 45:return ja(t,3664,3673,!0,a);case 46:return ja(t,3872,3881,!0,a);case 3:default:return ja(t,48,57,!0,a)}},TE="data-html2canvas-ignore",K6=(function(){function t(e,n,a){if(this.context=e,this.options=a,this.scrolledElements=[],this.referenceElement=n,this.counters=new gne,this.quoteDepth=0,!n.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(n.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,n){var a=this,o=yne(e,n);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var r=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,c=o.contentWindow,l=c.document,A=vne(o).then(function(){return or(a,void 0,void 0,function(){var p,u;return Io(this,function(x){switch(x.label){case 0:return this.scrolledElements.forEach(Une),c&&(c.scrollTo(n.left,n.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(c.scrollY!==n.top||c.scrollX!==n.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-n.left,c.scrollY-n.top,0,0))),p=this.options.onclone,u=this.clonedReferenceElement,typeof u>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:x.sent(),x.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,bne(l)]:[3,4];case 3:x.sent(),x.label=4;case 4:return typeof p=="function"?[2,Promise.resolve().then(function(){return p(l,u)}).then(function(){return o})]:[2,o]}})})});return l.open(),l.write(Bne(document.doctype)+""),Dne(this.referenceElement.ownerDocument,r,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),A},t.prototype.createElementClone=function(e){if(n3(e,2))debugger;if(LE(e))return this.createCanvasClone(e);if(O6(e))return this.createVideoClone(e);if(T6(e))return this.createStyleClone(e);var n=e.cloneNode(!1);return s3(n)&&(s3(e)&&e.currentSrc&&e.currentSrc!==e.src&&(n.src=e.currentSrc,n.srcset=""),n.loading==="lazy"&&(n.loading="eager")),k6(n)?this.createCustomElementClone(n):n},t.prototype.createCustomElementClone=function(e){var n=document.createElement("html2canvascustomelement");return a1(e.style,n),n},t.prototype.createStyleClone=function(e){try{var n=e.sheet;if(n&&n.cssRules){var a=[].slice.call(n.cssRules,0).reduce(function(r,s){return s&&typeof s.cssText=="string"?r+s.cssText:r},""),o=e.cloneNode(!1);return o.textContent=a,o}}catch(r){if(this.context.logger.error("Unable to access cssRules property",r),r.name!=="SecurityError")throw r}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var n;if(this.options.inlineImages&&e.ownerDocument){var a=e.ownerDocument.createElement("img");try{return a.src=e.toDataURL(),a}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var o=e.cloneNode(!1);try{o.width=e.width,o.height=e.height;var r=e.getContext("2d"),s=o.getContext("2d");if(s)if(!this.options.allowTaint&&r)s.putImageData(r.getImageData(0,0,e.width,e.height),0,0);else{var c=(n=e.getContext("webgl2"))!==null&&n!==void 0?n:e.getContext("webgl");if(c){var l=c.getContextAttributes();(l==null?void 0:l.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return o}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return o},t.prototype.createVideoClone=function(e){var n=e.ownerDocument.createElement("canvas");n.width=e.offsetWidth,n.height=e.offsetHeight;var a=n.getContext("2d");try{return a&&(a.drawImage(e,0,0,n.width,n.height),this.options.allowTaint||a.getImageData(0,0,n.width,n.height)),n}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var o=e.ownerDocument.createElement("canvas");return o.width=e.offsetWidth,o.height=e.offsetHeight,o},t.prototype.appendChildNode=function(e,n,a){(!mA(n)||!fne(n)&&!n.hasAttribute(TE)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(n)))&&(!this.options.copyStyles||!mA(n)||!T6(n))&&e.appendChild(this.cloneNode(n,a))},t.prototype.cloneChildNodes=function(e,n,a){for(var o=this,r=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;r;r=r.nextSibling)if(mA(r)&&IE(r)&&typeof r.assignedNodes=="function"){var s=r.assignedNodes();s.length&&s.forEach(function(c){return o.appendChildNode(n,c,a)})}else this.appendChildNode(n,r,a)},t.prototype.cloneNode=function(e,n){if(SE(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var a=e.ownerDocument.defaultView;if(a&&mA(e)&&(r3(e)||Mf(e))){var o=this.createElementClone(e);o.style.transitionProperty="none";var r=a.getComputedStyle(e),s=a.getComputedStyle(e,":before"),c=a.getComputedStyle(e,":after");this.referenceElement===e&&r3(o)&&(this.clonedReferenceElement=o),Ow(o)&&jne(o);var l=this.counters.parse(new B6(this.context,r)),A=this.resolvePseudoContent(e,o,s,up.BEFORE);k6(e)&&(n=!0),O6(e)||this.cloneChildNodes(e,o,n),A&&o.insertBefore(A,o.firstChild);var p=this.resolvePseudoContent(e,o,c,up.AFTER);return p&&o.appendChild(p),this.counters.pop(l),(r&&(this.options.copyStyles||Mf(e))&&!QE(e)||n)&&a1(r,o),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([o,e.scrollLeft,e.scrollTop]),(kg(e)||Rg(e))&&(kg(o)||Rg(o))&&(o.value=e.value),o}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,n,a,o){var r=this;if(a){var s=a.content,c=n.ownerDocument;if(!(!c||!s||s==="none"||s==="-moz-alt-content"||a.display==="none")){this.counters.parse(new B6(this.context,a));var l=new dte(this.context,a),A=c.createElement("html2canvaspseudoelement");a1(a,A),l.content.forEach(function(u){if(u.type===0)A.appendChild(c.createTextNode(u.value));else if(u.type===22){var x=c.createElement("img");x.src=u.value,x.style.opacity="1",A.appendChild(x)}else if(u.type===18){if(u.name==="attr"){var h=u.values.filter(Fn);h.length&&A.appendChild(c.createTextNode(e.getAttribute(h[0].value)||""))}else if(u.name==="counter"){var w=u.values.filter(ZA),b=w[0],v=w[1];if(b&&Fn(b)){var B=r.counters.getCounterValue(b.value),U=v&&Fn(v)?t3.parse(r.context,v.value):3;A.appendChild(c.createTextNode(Jp(B,U,!1)))}}else if(u.name==="counters"){var G=u.values.filter(ZA),b=G[0],Q=G[1],v=G[2];if(b&&Fn(b)){var _=r.counters.getCounterValues(b.value),S=v&&Fn(v)?t3.parse(r.context,v.value):3,F=Q&&Q.type===0?Q.value:"",O=_.map(function(L){return Jp(L,S,!1)}).join(F);A.appendChild(c.createTextNode(O))}}}else if(u.type===20)switch(u.value){case"open-quote":A.appendChild(c.createTextNode(w6(l.quotes,r.quoteDepth++,!0)));break;case"close-quote":A.appendChild(c.createTextNode(w6(l.quotes,--r.quoteDepth,!1)));break;default:A.appendChild(c.createTextNode(u.value))}}),A.className=i3+" "+c3;var p=o===up.BEFORE?" "+i3:" "+c3;return Mf(n)?n.className.baseValue+=p:n.className+=p,A}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t})(),up;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(up||(up={}));var yne=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(TE,"true"),t.body.appendChild(n),n},Cne=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},bne=function(t){return Promise.all([].slice.call(t.images,0).map(Cne))},vne=function(t){return new Promise(function(e,n){var a=t.contentWindow;if(!a)return n("No window assigned for iframe");var o=a.document;a.onload=t.onload=function(){a.onload=t.onload=null;var r=setInterval(function(){o.body.childNodes.length>0&&o.readyState==="complete"&&(clearInterval(r),e(t))},50)}})},wne=["all","d","content"],a1=function(t,e){for(var n=t.length-1;n>=0;n--){var a=t.item(n);wne.indexOf(a)===-1&&e.style.setProperty(a,t.getPropertyValue(a))}return e},Bne=function(t){var e="";return t&&(e+=""),e},Dne=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},Une=function(t){var e=t[0],n=t[1],a=t[2];e.scrollLeft=n,e.scrollTop=a},Hne=":before",Nne=":after",i3="___html2canvas___pseudoelement_before",c3="___html2canvas___pseudoelement_after",q6=`{ + content: "" !important; + display: none !important; +}`,jne=function(t){Gne(t,"."+i3+Hne+q6+` + .`+c3+Nne+q6)},Gne=function(t,e){var n=t.ownerDocument;if(n){var a=n.createElement("style");a.textContent=e,t.appendChild(a)}},kE=(function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t})(),_ne=(function(){function t(e,n){this.context=e,this._options=n,this._cache={}}return t.prototype.addImage=function(e){var n=Promise.resolve();return this.has(e)||(r1(e)||Fne(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),n},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return or(this,void 0,void 0,function(){var n,a,o,r,s=this;return Io(this,function(c){switch(c.label){case 0:return n=kE.isSameOrigin(e),a=!o1(e)&&this._options.useCORS===!0&&Co.SUPPORT_CORS_IMAGES&&!n,o=!o1(e)&&!n&&!r1(e)&&typeof this._options.proxy=="string"&&Co.SUPPORT_CORS_XHR&&!a,!n&&this._options.allowTaint===!1&&!o1(e)&&!r1(e)&&!o&&!a?[2]:(r=e,o?[4,this.proxy(r)]:[3,2]);case 1:r=c.sent(),c.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,A){var p=new Image;p.onload=function(){return l(p)},p.onerror=A,(Lne(r)||a)&&(p.crossOrigin="anonymous"),p.src=r,p.complete===!0&&setTimeout(function(){return l(p)},500),s._options.imageTimeout>0&&setTimeout(function(){return A("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,c.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var n=this,a=this._options.proxy;if(!a)throw new Error("No proxy defined");var o=e.substring(0,256);return new Promise(function(r,s){var c=Co.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(c==="text")r(l.response);else{var u=new FileReader;u.addEventListener("load",function(){return r(u.result)},!1),u.addEventListener("error",function(x){return s(x)},!1),u.readAsDataURL(l.response)}else s("Failed to proxy resource "+o+" with status code "+l.status)},l.onerror=s;var A=a.indexOf("?")>-1?"&":"?";if(l.open("GET",""+a+A+"url="+encodeURIComponent(e)+"&responseType="+c),c!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=c),n._options.imageTimeout){var p=n._options.imageTimeout;l.timeout=p,l.ontimeout=function(){return s("Timed out ("+p+"ms) proxying "+o)}}l.send()})},t})(),Ene=/^data:image\/svg\+xml/i,Pne=/^data:image\/.*;base64,/i,Sne=/^data:image\/.*/i,Fne=function(t){return Co.SUPPORT_SVG_DRAWING||!Qne(t)},o1=function(t){return Sne.test(t)},Lne=function(t){return Pne.test(t)},r1=function(t){return t.substr(0,4)==="blob"},Qne=function(t){return t.substr(-3).toLowerCase()==="svg"||Ene.test(t)},ut=(function(){function t(e,n){this.type=0,this.x=e,this.y=n}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t})(),Vd=function(t,e,n){return new ut(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},_f=(function(){function t(e,n,a,o){this.type=1,this.start=e,this.startControl=n,this.endControl=a,this.end=o}return t.prototype.subdivide=function(e,n){var a=Vd(this.start,this.startControl,e),o=Vd(this.startControl,this.endControl,e),r=Vd(this.endControl,this.end,e),s=Vd(a,o,e),c=Vd(o,r,e),l=Vd(s,c,e);return n?new t(this.start,a,s,l):new t(l,c,r,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t})(),ds=function(t){return t.type===1},Ine=(function(){function t(e){var n=e.styles,a=e.bounds,o=Ju(n.borderTopLeftRadius,a.width,a.height),r=o[0],s=o[1],c=Ju(n.borderTopRightRadius,a.width,a.height),l=c[0],A=c[1],p=Ju(n.borderBottomRightRadius,a.width,a.height),u=p[0],x=p[1],h=Ju(n.borderBottomLeftRadius,a.width,a.height),w=h[0],b=h[1],v=[];v.push((r+l)/a.width),v.push((w+u)/a.width),v.push((s+b)/a.height),v.push((A+x)/a.height);var B=Math.max.apply(Math,v);B>1&&(r/=B,s/=B,l/=B,A/=B,u/=B,x/=B,w/=B,b/=B);var U=a.width-l,G=a.height-x,Q=a.width-u,_=a.height-b,S=n.borderTopWidth,F=n.borderRightWidth,O=n.borderBottomWidth,R=n.borderLeftWidth,oe=Mn(n.paddingTop,e.bounds.width),L=Mn(n.paddingRight,e.bounds.width),I=Mn(n.paddingBottom,e.bounds.width),M=Mn(n.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||s>0?ia(a.left+R/3,a.top+S/3,r-R/3,s-S/3,Nn.TOP_LEFT):new ut(a.left+R/3,a.top+S/3),this.topRightBorderDoubleOuterBox=r>0||s>0?ia(a.left+U,a.top+S/3,l-F/3,A-S/3,Nn.TOP_RIGHT):new ut(a.left+a.width-F/3,a.top+S/3),this.bottomRightBorderDoubleOuterBox=u>0||x>0?ia(a.left+Q,a.top+G,u-F/3,x-O/3,Nn.BOTTOM_RIGHT):new ut(a.left+a.width-F/3,a.top+a.height-O/3),this.bottomLeftBorderDoubleOuterBox=w>0||b>0?ia(a.left+R/3,a.top+_,w-R/3,b-O/3,Nn.BOTTOM_LEFT):new ut(a.left+R/3,a.top+a.height-O/3),this.topLeftBorderDoubleInnerBox=r>0||s>0?ia(a.left+R*2/3,a.top+S*2/3,r-R*2/3,s-S*2/3,Nn.TOP_LEFT):new ut(a.left+R*2/3,a.top+S*2/3),this.topRightBorderDoubleInnerBox=r>0||s>0?ia(a.left+U,a.top+S*2/3,l-F*2/3,A-S*2/3,Nn.TOP_RIGHT):new ut(a.left+a.width-F*2/3,a.top+S*2/3),this.bottomRightBorderDoubleInnerBox=u>0||x>0?ia(a.left+Q,a.top+G,u-F*2/3,x-O*2/3,Nn.BOTTOM_RIGHT):new ut(a.left+a.width-F*2/3,a.top+a.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||b>0?ia(a.left+R*2/3,a.top+_,w-R*2/3,b-O*2/3,Nn.BOTTOM_LEFT):new ut(a.left+R*2/3,a.top+a.height-O*2/3),this.topLeftBorderStroke=r>0||s>0?ia(a.left+R/2,a.top+S/2,r-R/2,s-S/2,Nn.TOP_LEFT):new ut(a.left+R/2,a.top+S/2),this.topRightBorderStroke=r>0||s>0?ia(a.left+U,a.top+S/2,l-F/2,A-S/2,Nn.TOP_RIGHT):new ut(a.left+a.width-F/2,a.top+S/2),this.bottomRightBorderStroke=u>0||x>0?ia(a.left+Q,a.top+G,u-F/2,x-O/2,Nn.BOTTOM_RIGHT):new ut(a.left+a.width-F/2,a.top+a.height-O/2),this.bottomLeftBorderStroke=w>0||b>0?ia(a.left+R/2,a.top+_,w-R/2,b-O/2,Nn.BOTTOM_LEFT):new ut(a.left+R/2,a.top+a.height-O/2),this.topLeftBorderBox=r>0||s>0?ia(a.left,a.top,r,s,Nn.TOP_LEFT):new ut(a.left,a.top),this.topRightBorderBox=l>0||A>0?ia(a.left+U,a.top,l,A,Nn.TOP_RIGHT):new ut(a.left+a.width,a.top),this.bottomRightBorderBox=u>0||x>0?ia(a.left+Q,a.top+G,u,x,Nn.BOTTOM_RIGHT):new ut(a.left+a.width,a.top+a.height),this.bottomLeftBorderBox=w>0||b>0?ia(a.left,a.top+_,w,b,Nn.BOTTOM_LEFT):new ut(a.left,a.top+a.height),this.topLeftPaddingBox=r>0||s>0?ia(a.left+R,a.top+S,Math.max(0,r-R),Math.max(0,s-S),Nn.TOP_LEFT):new ut(a.left+R,a.top+S),this.topRightPaddingBox=l>0||A>0?ia(a.left+Math.min(U,a.width-F),a.top+S,U>a.width+F?0:Math.max(0,l-F),Math.max(0,A-S),Nn.TOP_RIGHT):new ut(a.left+a.width-F,a.top+S),this.bottomRightPaddingBox=u>0||x>0?ia(a.left+Math.min(Q,a.width-R),a.top+Math.min(G,a.height-O),Math.max(0,u-F),Math.max(0,x-O),Nn.BOTTOM_RIGHT):new ut(a.left+a.width-F,a.top+a.height-O),this.bottomLeftPaddingBox=w>0||b>0?ia(a.left+R,a.top+Math.min(_,a.height-O),Math.max(0,w-R),Math.max(0,b-O),Nn.BOTTOM_LEFT):new ut(a.left+R,a.top+a.height-O),this.topLeftContentBox=r>0||s>0?ia(a.left+R+M,a.top+S+oe,Math.max(0,r-(R+M)),Math.max(0,s-(S+oe)),Nn.TOP_LEFT):new ut(a.left+R+M,a.top+S+oe),this.topRightContentBox=l>0||A>0?ia(a.left+Math.min(U,a.width+R+M),a.top+S+oe,U>a.width+R+M?0:l-R+M,A-(S+oe),Nn.TOP_RIGHT):new ut(a.left+a.width-(F+L),a.top+S+oe),this.bottomRightContentBox=u>0||x>0?ia(a.left+Math.min(Q,a.width-(R+M)),a.top+Math.min(G,a.height+S+oe),Math.max(0,u-(F+L)),x-(O+I),Nn.BOTTOM_RIGHT):new ut(a.left+a.width-(F+L),a.top+a.height-(O+I)),this.bottomLeftContentBox=w>0||b>0?ia(a.left+R+M,a.top+_,Math.max(0,w-(R+M)),b-(O+I),Nn.BOTTOM_LEFT):new ut(a.left+R+M,a.top+a.height-(O+I))}return t})(),Nn;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Nn||(Nn={}));var ia=function(t,e,n,a,o){var r=4*((Math.sqrt(2)-1)/3),s=n*r,c=a*r,l=t+n,A=e+a;switch(o){case Nn.TOP_LEFT:return new _f(new ut(t,A),new ut(t,A-c),new ut(l-s,e),new ut(l,e));case Nn.TOP_RIGHT:return new _f(new ut(t,e),new ut(t+s,e),new ut(l,A-c),new ut(l,A));case Nn.BOTTOM_RIGHT:return new _f(new ut(l,e),new ut(l,e+c),new ut(t+s,A),new ut(t,A));case Nn.BOTTOM_LEFT:default:return new _f(new ut(l,A),new ut(l-s,A),new ut(t,e+c),new ut(t,e))}},Mg=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},One=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},zg=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Tne=(function(){function t(e,n,a){this.offsetX=e,this.offsetY=n,this.matrix=a,this.type=0,this.target=6}return t})(),Ef=(function(){function t(e,n){this.path=e,this.target=n,this.type=1}return t})(),kne=(function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t})(),Rne=function(t){return t.type===0},RE=function(t){return t.type===1},Mne=function(t){return t.type===2},$6=function(t,e){return t.length===e.length?t.some(function(n,a){return n===e[a]}):!1},zne=function(t,e,n,a,o){return t.map(function(r,s){switch(s){case 0:return r.add(e,n);case 1:return r.add(e+a,n);case 2:return r.add(e+a,n+o);case 3:return r.add(e,n+o)}return r})},ME=(function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t})(),zE=(function(){function t(e,n){if(this.container=e,this.parent=n,this.effects=[],this.curves=new Ine(this.container),this.container.styles.opacity<1&&this.effects.push(new kne(this.container.styles.opacity)),this.container.styles.transform!==null){var a=this.container.bounds.left+this.container.styles.transformOrigin[0].number,o=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform;this.effects.push(new Tne(a,o,r))}if(this.container.styles.overflowX!==0){var s=Mg(this.curves),c=zg(this.curves);$6(s,c)?this.effects.push(new Ef(s,6)):(this.effects.push(new Ef(s,2)),this.effects.push(new Ef(c,4)))}}return t.prototype.getEffects=function(e){for(var n=[2,3].indexOf(this.container.styles.position)===-1,a=this.parent,o=this.effects.slice(0);a;){var r=a.effects.filter(function(l){return!RE(l)});if(n||a.container.styles.position!==0||!a.parent){if(o.unshift.apply(o,r),n=[2,3].indexOf(a.container.styles.position)===-1,a.container.styles.overflowX!==0){var s=Mg(a.curves),c=zg(a.curves);$6(s,c)||o.unshift(new Ef(c,6))}}else o.unshift.apply(o,r);a=a.parent}return o.filter(function(l){return Ya(l.target,e)})},t})(),l3=function(t,e,n,a){t.container.elements.forEach(function(o){var r=Ya(o.flags,4),s=Ya(o.flags,2),c=new zE(o,t);Ya(o.styles.display,2048)&&a.push(c);var l=Ya(o.flags,8)?[]:a;if(r||s){var A=r||o.styles.isPositioned()?n:e,p=new ME(c);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var u=o.styles.zIndex.order;if(u<0){var x=0;A.negativeZIndex.some(function(w,b){return u>w.element.container.styles.zIndex.order?(x=b,!1):x>0}),A.negativeZIndex.splice(x,0,p)}else if(u>0){var h=0;A.positiveZIndex.some(function(w,b){return u>=w.element.container.styles.zIndex.order?(h=b+1,!1):h>0}),A.positiveZIndex.splice(h,0,p)}else A.zeroOrAutoZIndexOrTransformedOrOpacity.push(p)}else o.styles.isFloating()?A.nonPositionedFloats.push(p):A.nonPositionedInlineLevel.push(p);l3(c,p,r?p:n,l)}else o.styles.isInlineLevel()?e.inlineLevel.push(c):e.nonInlineLevel.push(c),l3(c,e,n,l);Ya(o.flags,8)&&ZE(o,l)})},ZE=function(t,e){for(var n=t instanceof o3?t.start:1,a=t instanceof o3?t.reversed:!1,o=0;o"u"?t[0]:n},Xne=function(t,e,n,a,o){var r=e[0],s=e[1],c=n[0],l=n[1];switch(t){case 2:return[new ut(Math.round(a.left),Math.round(a.top+s)),new ut(Math.round(a.left+a.width),Math.round(a.top+s)),new ut(Math.round(a.left+a.width),Math.round(l+a.top+s)),new ut(Math.round(a.left),Math.round(l+a.top+s))];case 3:return[new ut(Math.round(a.left+r),Math.round(a.top)),new ut(Math.round(a.left+r+c),Math.round(a.top)),new ut(Math.round(a.left+r+c),Math.round(a.height+a.top)),new ut(Math.round(a.left+r),Math.round(a.height+a.top))];case 1:return[new ut(Math.round(a.left+r),Math.round(a.top+s)),new ut(Math.round(a.left+r+c),Math.round(a.top+s)),new ut(Math.round(a.left+r+c),Math.round(a.top+s+l)),new ut(Math.round(a.left+r),Math.round(a.top+s+l))];default:return[new ut(Math.round(o.left),Math.round(o.top)),new ut(Math.round(o.left+o.width),Math.round(o.top)),new ut(Math.round(o.left+o.width),Math.round(o.height+o.top)),new ut(Math.round(o.left),Math.round(o.height+o.top))]}},Jne="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",V6="Hidden Text",eae=(function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,n){var a=this._document.createElement("div"),o=this._document.createElement("img"),r=this._document.createElement("span"),s=this._document.body;a.style.visibility="hidden",a.style.fontFamily=e,a.style.fontSize=n,a.style.margin="0",a.style.padding="0",a.style.whiteSpace="nowrap",s.appendChild(a),o.src=Jne,o.width=1,o.height=1,o.style.margin="0",o.style.padding="0",o.style.verticalAlign="baseline",r.style.fontFamily=e,r.style.fontSize=n,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(V6)),a.appendChild(r),a.appendChild(o);var c=o.offsetTop-r.offsetTop+2;a.removeChild(r),a.appendChild(this._document.createTextNode(V6)),a.style.lineHeight="normal",o.style.verticalAlign="super";var l=o.offsetTop-a.offsetTop+2;return s.removeChild(a),{baseline:c,middle:l}},t.prototype.getMetrics=function(e,n){var a=e+" "+n;return typeof this._data[a]>"u"&&(this._data[a]=this.parseMetrics(e,n)),this._data[a]},t})(),KE=(function(){function t(e,n){this.context=e,this.options=n}return t})(),tae=1e4,nae=(function(t){qs(e,t);function e(n,a){var o=t.call(this,n,a)||this;return o._activeEffects=[],o.canvas=a.canvas?a.canvas:document.createElement("canvas"),o.ctx=o.canvas.getContext("2d"),a.canvas||(o.canvas.width=Math.floor(a.width*a.scale),o.canvas.height=Math.floor(a.height*a.scale),o.canvas.style.width=a.width+"px",o.canvas.style.height=a.height+"px"),o.fontMetrics=new eae(document),o.ctx.scale(o.options.scale,o.options.scale),o.ctx.translate(-a.x,-a.y),o.ctx.textBaseline="bottom",o._activeEffects=[],o.context.logger.debug("Canvas renderer initialized ("+a.width+"x"+a.height+") with scale "+a.scale),o}return e.prototype.applyEffects=function(n){for(var a=this;this._activeEffects.length;)this.popEffect();n.forEach(function(o){return a.applyEffect(o)})},e.prototype.applyEffect=function(n){this.ctx.save(),Mne(n)&&(this.ctx.globalAlpha=n.opacity),Rne(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),RE(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(n){return or(this,void 0,void 0,function(){var a;return Io(this,function(o){switch(o.label){case 0:return a=n.element.container.styles,a.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(n){return or(this,void 0,void 0,function(){return Io(this,function(a){switch(a.label){case 0:if(Ya(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return a.sent(),[4,this.renderNodeContent(n)];case 2:a.sent(),a.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(n,a,o){var r=this;if(a===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+o);else{var s=Qw(n.text);s.reduce(function(c,l){return r.ctx.fillText(l,c,n.bounds.top+o),c+r.ctx.measureText(l).width},n.bounds.left)}},e.prototype.createFontStyle=function(n){var a=n.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),o=iae(n.fontFamily).join(", "),r=A2(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,a,n.fontWeight,r,o].join(" "),o,r]},e.prototype.renderTextNode=function(n,a){return or(this,void 0,void 0,function(){var o,r,s,c,l,A,p,u,x=this;return Io(this,function(h){return o=this.createFontStyle(a),r=o[0],s=o[1],c=o[2],this.ctx.font=r,this.ctx.direction=a.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,c),A=l.baseline,p=l.middle,u=a.paintOrder,n.textBounds.forEach(function(w){u.forEach(function(b){switch(b){case 0:x.ctx.fillStyle=ro(a.color),x.renderTextWithLetterSpacing(w,a.letterSpacing,A);var v=a.textShadow;v.length&&w.text.trim().length&&(v.slice(0).reverse().forEach(function(B){x.ctx.shadowColor=ro(B.color),x.ctx.shadowOffsetX=B.offsetX.number*x.options.scale,x.ctx.shadowOffsetY=B.offsetY.number*x.options.scale,x.ctx.shadowBlur=B.blur.number,x.renderTextWithLetterSpacing(w,a.letterSpacing,A)}),x.ctx.shadowColor="",x.ctx.shadowOffsetX=0,x.ctx.shadowOffsetY=0,x.ctx.shadowBlur=0),a.textDecorationLine.length&&(x.ctx.fillStyle=ro(a.textDecorationColor||a.color),a.textDecorationLine.forEach(function(B){switch(B){case 1:x.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+A),w.bounds.width,1);break;case 2:x.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:x.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+p),w.bounds.width,1);break}}));break;case 1:a.webkitTextStrokeWidth&&w.text.trim().length&&(x.ctx.strokeStyle=ro(a.webkitTextStrokeColor),x.ctx.lineWidth=a.webkitTextStrokeWidth,x.ctx.lineJoin=window.chrome?"miter":"round",x.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+A)),x.ctx.strokeStyle="",x.ctx.lineWidth=0,x.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(n,a,o){if(o&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var r=Zg(n),s=zg(a);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(o,0,0,n.intrinsicWidth,n.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(n){return or(this,void 0,void 0,function(){var a,o,r,s,c,l,U,U,A,p,u,x,Q,h,w,_,b,v,B,U,G,Q,_;return Io(this,function(S){switch(S.label){case 0:this.applyEffects(n.getEffects(4)),a=n.container,o=n.curves,r=a.styles,s=0,c=a.textNodes,S.label=1;case 1:return s0&&K>0&&(O=r.ctx.createPattern(_,"repeat"),r.renderRepeat(oe,O,ae,ie))):MJ(p)&&(R=s1(n,a,[null,null,null]),oe=R[0],L=R[1],I=R[2],M=R[3],K=R[4],re=p.position.length===0?[Sw]:p.position,ae=Mn(re[0],M),ie=Mn(re[re.length-1],K),X=IJ(p,ae,ie,M,K),ee=X[0],se=X[1],ee>0&&se>0&&(J=r.ctx.createRadialGradient(L+ae,I+ie,0,L+ae,I+ie,ee),y6(p.stops,ee*2).forEach(function(pe){return J.addColorStop(pe.stop,ro(pe.color))}),r.path(oe),r.ctx.fillStyle=J,ee!==se?(E=n.bounds.left+.5*n.bounds.width,z=n.bounds.top+.5*n.bounds.height,W=se/ee,te=1/W,r.ctx.save(),r.ctx.translate(E,z),r.ctx.transform(1,0,0,W,0,0),r.ctx.translate(-E,-z),r.ctx.fillRect(L,te*(I-z)+z,M,K*te),r.ctx.restore()):r.ctx.fill())),me.label=6;case 6:return a--,[2]}})},r=this,s=0,c=n.styles.backgroundImage.slice(0).reverse(),A.label=1;case 1:return s0?p.style!==2?[3,5]:[4,this.renderDashedDottedBorder(p.color,p.width,c,n.curves,2)]:[3,11]):[3,13];case 4:return x.sent(),[3,11];case 5:return p.style!==3?[3,7]:[4,this.renderDashedDottedBorder(p.color,p.width,c,n.curves,3)];case 6:return x.sent(),[3,11];case 7:return p.style!==4?[3,9]:[4,this.renderDoubleBorder(p.color,p.width,c,n.curves)];case 8:return x.sent(),[3,11];case 9:return[4,this.renderSolidBorder(p.color,c,n.curves)];case 10:x.sent(),x.label=11;case 11:c++,x.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(n,a,o,r,s){return or(this,void 0,void 0,function(){var c,l,A,p,u,x,h,w,b,v,B,U,G,Q,_,S,_,S;return Io(this,function(F){return this.ctx.save(),c=qne(r,o),l=W6(r,o),s===2&&(this.path(l),this.ctx.clip()),ds(l[0])?(A=l[0].start.x,p=l[0].start.y):(A=l[0].x,p=l[0].y),ds(l[1])?(u=l[1].end.x,x=l[1].end.y):(u=l[1].x,x=l[1].y),o===0||o===2?h=Math.abs(A-u):h=Math.abs(p-x),this.ctx.beginPath(),s===3?this.formatPath(c):this.formatPath(l.slice(0,2)),w=a<3?a*3:a*2,b=a<3?a*2:a,s===3&&(w=a,b=a),v=!0,h<=w*2?v=!1:h<=w*2+b?(B=h/(2*w+b),w*=B,b*=B):(U=Math.floor((h+b)/(w+b)),G=(h-U*w)/(U-1),Q=(h-(U+1)*w)/U,b=Q<=0||Math.abs(b-G)0){let s=function(A){return Promise.all(A.map(p=>Promise.resolve(p).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),l=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));o=s(n.map(A=>{if(A=gae(A),A in X6)return;X6[A]=!0;const p=A.endsWith(".css"),u=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${A}"]${u}`))return;const x=document.createElement("link");if(x.rel=p?"stylesheet":fae,p||(x.as="script"),x.crossOrigin="",x.href=A,l&&x.setAttribute("nonce",l),document.head.appendChild(x),p)return new Promise((h,w)=>{x.addEventListener("load",h),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${A}`)))})}))}function r(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return o.then(s=>{for(const c of s||[])c.status==="rejected"&&r(c.reason);return e().catch(r)})};function _n(t){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n(t)}var zo=Uint8Array,Rr=Uint16Array,Tw=Int32Array,Th=new zo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),kh=new zo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),A3=new zo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qE=function(t,e){for(var n=new Rr(31),a=0;a<31;++a)n[a]=e+=1<>1|(na&21845)<<1;Ql=(Ql&52428)>>2|(Ql&13107)<<2,Ql=(Ql&61680)>>4|(Ql&3855)<<4,p3[na]=((Ql&65280)>>8|(Ql&255)<<8)>>1}var ji=(function(t,e,n){for(var a=t.length,o=0,r=new Rr(e);o>l]=A}else for(c=new Rr(a),o=0;o>15-t[o]);return c}),em=new zo(288);for(var na=0;na<144;++na)em[na]=8;for(var na=144;na<256;++na)em[na]=9;for(var na=256;na<280;++na)em[na]=7;for(var na=280;na<288;++na)em[na]=8;var e2=new zo(32);for(var na=0;na<32;++na)e2[na]=5;var xae=ji(em,9,0),yae=ji(em,9,1),Cae=ji(e2,5,0),bae=ji(e2,5,1),i1=function(t){for(var e=t[0],n=1;ne&&(e=t[n]);return e},ks=function(t,e,n){var a=e/8|0;return(t[a]|t[a+1]<<8)>>(e&7)&n},c1=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>(e&7)},kw=function(t){return(t+7)/8|0},XE=function(t,e,n){return(n==null||n>t.length)&&(n=t.length),new zo(t.subarray(e,n))},vae=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],zs=function(t,e,n){var a=new Error(e||vae[t]);if(a.code=t,Error.captureStackTrace&&Error.captureStackTrace(a,zs),!n)throw a;return a},wae=function(t,e,n,a){var o=t.length,r=0;if(!o||e.f&&!e.l)return n||new zo(0);var s=!n,c=s||e.i!=2,l=e.i;s&&(n=new zo(o*3));var A=function(Ee){var Be=n.length;if(Ee>Be){var Re=new zo(Math.max(Be*2,Ee));Re.set(n),n=Re}},p=e.f||0,u=e.p||0,x=e.b||0,h=e.l,w=e.d,b=e.m,v=e.n,B=o*8;do{if(!h){p=ks(t,u,1);var U=ks(t,u+1,3);if(u+=3,U)if(U==1)h=yae,w=bae,b=9,v=5;else if(U==2){var S=ks(t,u,31)+257,F=ks(t,u+10,15)+4,O=S+ks(t,u+5,31)+1;u+=14;for(var R=new zo(O),oe=new zo(19),L=0;L>4;if(G<16)R[L++]=G;else{var ae=0,ie=0;for(G==16?(ie=3+ks(t,u,3),u+=2,ae=R[L-1]):G==17?(ie=3+ks(t,u,7),u+=3):G==18&&(ie=11+ks(t,u,127),u+=7);ie--;)R[L++]=ae}}var X=R.subarray(0,S),ee=R.subarray(S);b=i1(X),v=i1(ee),h=ji(X,b,1),w=ji(ee,v,1)}else zs(1);else{var G=kw(u)+4,Q=t[G-4]|t[G-3]<<8,_=G+Q;if(_>o){l&&zs(0);break}c&&A(x+Q),n.set(t.subarray(G,_),x),e.b=x+=Q,e.p=u=_*8,e.f=p;continue}if(u>B){l&&zs(0);break}}c&&A(x+131072);for(var se=(1<>4;if(u+=ae&15,u>B){l&&zs(0);break}if(ae||zs(2),z<256)n[x++]=z;else if(z==256){E=u,h=null;break}else{var W=z-254;if(z>264){var L=z-257,te=Th[L];W=ks(t,u,(1<>4;me||zs(3),u+=me&15;var ee=hae[pe];if(pe>3){var te=kh[pe];ee+=c1(t,u)&(1<B){l&&zs(0);break}c&&A(x+131072);var Ce=x+W;if(x>8},Mu=function(t,e,n){n<<=e&7;var a=e/8|0;t[a]|=n,t[a+1]|=n>>8,t[a+2]|=n>>16},l1=function(t,e){for(var n=[],a=0;ax&&(x=r[a].s);var h=new Rr(x+1),w=f3(n[p-1],h,0);if(w>e){var a=0,b=0,v=w-e,B=1<e)b+=B-(1<>=v;b>0;){var G=r[a].s;h[G]=0&&b;--a){var Q=r[a].s;h[Q]==e&&(--h[Q],++b)}w=e}return{t:new zo(h),l:w}},f3=function(t,e,n){return t.s==-1?Math.max(f3(t.l,e,n+1),f3(t.r,e,n+1)):e[t.s]=n},ej=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new Rr(++e),a=0,o=t[0],r=1,s=function(l){n[a++]=l},c=1;c<=e;++c)if(t[c]==o&&c!=e)++r;else{if(!o&&r>2){for(;r>138;r-=138)s(32754);r>2&&(s(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(s(o),--r;r>6;r-=6)s(8304);r>2&&(s(r-3<<5|8208),r=0)}for(;r--;)s(o);r=1,o=t[c]}return{c:n.subarray(0,a),n:e}},zu=function(t,e){for(var n=0,a=0;a>8,t[o+2]=t[o]^255,t[o+3]=t[o+1]^255;for(var r=0;r4&&!oe[A3[I-1]];--I);var M=A+5<<3,K=zu(o,em)+zu(r,e2)+s,re=zu(o,x)+zu(r,b)+s+14+3*I+zu(F,oe)+2*F[16]+3*F[17]+7*F[18];if(l>=0&&M<=K&&M<=re)return JE(e,p,t.subarray(l,l+A));var ae,ie,X,ee;if(vc(e,p,1+(re15&&(vc(e,p,z[O]>>5&127),p+=z[O]>>12)}}else ae=xae,ie=em,X=Cae,ee=e2;for(var O=0;O255){var W=te>>18&31;Mu(e,p,ae[W+257]),p+=ie[W+257],W>7&&(vc(e,p,te>>23&31),p+=Th[W]);var me=te&31;Mu(e,p,X[me]),p+=ee[me],me>3&&(Mu(e,p,te>>5&8191),p+=kh[me])}else Mu(e,p,ae[te]),p+=ie[te]}return Mu(e,p,ae[256]),p+ie[256]},Bae=new Tw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),eP=new zo(0),Dae=function(t,e,n,a,o,r){var s=r.z||t.length,c=new zo(a+s+5*(1+Math.ceil(s/7e3))+o),l=c.subarray(a,c.length-o),A=r.l,p=(r.r||0)&7;if(e){p&&(l[0]=r.r>>3);for(var u=Bae[e-1],x=u>>13,h=u&8191,w=(1<7e3||oe>24576)&&(ae>423||!A)){p=tj(t,l,0,Q,_,S,O,oe,I,R-I,p),oe=F=O=0,I=R;for(var ie=0;ie<286;++ie)_[ie]=0;for(var ie=0;ie<30;++ie)S[ie]=0}var X=2,ee=0,se=h,J=K-re&32767;if(ae>2&&M==G(R-J))for(var E=Math.min(x,ae)-1,z=Math.min(32767,R),W=Math.min(258,ae);J<=z&&--se&&K!=re;){if(t[R+X]==t[R+X-J]){for(var te=0;teX){if(X=te,ee=J,te>E)break;for(var me=Math.min(J,te-2),pe=0,ie=0;iepe&&(pe=Ge,re=Ce)}}}K=re,re=b[K],J+=K-re&32767}if(ee){Q[oe++]=268435456|u3[X]<<18|J6[ee];var Ee=u3[X]&31,Be=J6[ee]&31;O+=Th[Ee]+kh[Be],++_[257+Ee],++S[Be],L=R+X,++F}else Q[oe++]=t[R],++_[t[R]]}}for(R=Math.max(R,L);R=s&&(l[p/8|0]=A,Re=s),p=JE(l,p+1,t.subarray(R,Re))}r.i=s}return XE(c,0,a+kw(p)+o)},tP=function(){var t=1,e=0;return{p:function(n){for(var a=t,o=e,r=n.length|0,s=0;s!=r;){for(var c=Math.min(s+2655,r);s>16),o=(o&65535)+15*(o>>16)}t=a,e=o},d:function(){return t%=65521,e%=65521,(t&255)<<24|(t&65280)<<8|(e&255)<<8|e>>8}}},Uae=function(t,e,n,a,o){if(!o&&(o={l:1},e.dictionary)){var r=e.dictionary.subarray(-32768),s=new zo(r.length+t.length);s.set(r),s.set(t,r.length),t=s,o.w=r.length}return Dae(t,e.level==null?6:e.level,e.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+e.mem,n,a,o)},nP=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},Hae=function(t,e){var n=e.level,a=n==0?0:n<6?1:n==9?3:2;if(t[0]=120,t[1]=a<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var o=tP();o.p(e.dictionary),nP(t,2,o.d())}},Nae=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&zs(6,"invalid zlib data"),(t[1]>>5&1)==1&&zs(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function g3(t,e){e||(e={});var n=tP();n.p(t);var a=Uae(t,e,e.dictionary?6:2,4);return Hae(a,e),nP(a,a.length-4,n.d()),a}function jae(t,e){return wae(t.subarray(Nae(t),-4),{i:2},e,e)}var Gae=typeof TextDecoder<"u"&&new TextDecoder,_ae=0;try{Gae.decode(eP,{stream:!0}),_ae=1}catch{}var It=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function m1(){It.console&&typeof It.console.log=="function"&&It.console.log.apply(It.console,arguments)}var On={log:m1,warn:function(t){It.console&&(typeof It.console.warn=="function"?It.console.warn.apply(It.console,arguments):m1.call(null,arguments))},error:function(t){It.console&&(typeof It.console.error=="function"?It.console.error.apply(It.console,arguments):m1(t))}};function d1(t,e,n){var a=new XMLHttpRequest;a.open("GET",t),a.responseType="blob",a.onload=function(){Zm(a.response,e,n)},a.onerror=function(){On.error("could not download file")},a.send()}function nj(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Ff(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var pp,h3,Zm=It.saveAs||((typeof window>"u"?"undefined":_n(window))!=="object"||window!==It?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var a=It.URL||It.webkitURL,o=document.createElement("a");e=e||t.name||"download",o.download=e,o.rel="noopener",typeof t=="string"?(o.href=t,o.origin!==location.origin?nj(o.href)?d1(t,e,n):Ff(o,o.target="_blank"):Ff(o)):(o.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(o.href)}),4e4),setTimeout((function(){Ff(o)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download",typeof t=="string")if(nj(t))d1(t,e,n);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout((function(){Ff(a)}))}else navigator.msSaveOrOpenBlob((function(o,r){return r===void 0?r={autoBom:!1}:_n(r)!=="object"&&(On.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o})(t,n),e)}:function(t,e,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof t=="string")return d1(t,e,n);var o=t.type==="application/octet-stream",r=/constructor/i.test(It.HTMLElement)||It.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&r)&&(typeof FileReader>"u"?"undefined":_n(FileReader))==="object"){var c=new FileReader;c.onloadend=function(){var p=c.result;p=s?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=p:location=p,a=null},c.readAsDataURL(t)}else{var l=It.URL||It.webkitURL,A=l.createObjectURL(t);a?a.location=A:location.href=A,a=null,setTimeout((function(){l.revokeObjectURL(A)}),4e4)}});/** + * A class to parse color values + * @author Stoyan Stefanov + * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} + * @license Use it if you like it + */function aP(t){var e;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(c){return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}}],a=0;a255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var c=this.r.toString(16),l=this.g.toString(16),A=this.b.toString(16);return c.length==1&&(c="0"+c),l.length==1&&(l="0"+l),A.length==1&&(A="0"+A),"#"+c+l+A}}/** + * @license + * Joseph Myers does not specify a particular license for his work. + * + * Author: Joseph Myers + * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js + * + * Modified by: Owen Leong + */function A1(t,e){var n=t[0],a=t[1],o=t[2],r=t[3];n=So(n,a,o,r,e[0],7,-680876936),r=So(r,n,a,o,e[1],12,-389564586),o=So(o,r,n,a,e[2],17,606105819),a=So(a,o,r,n,e[3],22,-1044525330),n=So(n,a,o,r,e[4],7,-176418897),r=So(r,n,a,o,e[5],12,1200080426),o=So(o,r,n,a,e[6],17,-1473231341),a=So(a,o,r,n,e[7],22,-45705983),n=So(n,a,o,r,e[8],7,1770035416),r=So(r,n,a,o,e[9],12,-1958414417),o=So(o,r,n,a,e[10],17,-42063),a=So(a,o,r,n,e[11],22,-1990404162),n=So(n,a,o,r,e[12],7,1804603682),r=So(r,n,a,o,e[13],12,-40341101),o=So(o,r,n,a,e[14],17,-1502002290),n=Fo(n,a=So(a,o,r,n,e[15],22,1236535329),o,r,e[1],5,-165796510),r=Fo(r,n,a,o,e[6],9,-1069501632),o=Fo(o,r,n,a,e[11],14,643717713),a=Fo(a,o,r,n,e[0],20,-373897302),n=Fo(n,a,o,r,e[5],5,-701558691),r=Fo(r,n,a,o,e[10],9,38016083),o=Fo(o,r,n,a,e[15],14,-660478335),a=Fo(a,o,r,n,e[4],20,-405537848),n=Fo(n,a,o,r,e[9],5,568446438),r=Fo(r,n,a,o,e[14],9,-1019803690),o=Fo(o,r,n,a,e[3],14,-187363961),a=Fo(a,o,r,n,e[8],20,1163531501),n=Fo(n,a,o,r,e[13],5,-1444681467),r=Fo(r,n,a,o,e[2],9,-51403784),o=Fo(o,r,n,a,e[7],14,1735328473),n=Lo(n,a=Fo(a,o,r,n,e[12],20,-1926607734),o,r,e[5],4,-378558),r=Lo(r,n,a,o,e[8],11,-2022574463),o=Lo(o,r,n,a,e[11],16,1839030562),a=Lo(a,o,r,n,e[14],23,-35309556),n=Lo(n,a,o,r,e[1],4,-1530992060),r=Lo(r,n,a,o,e[4],11,1272893353),o=Lo(o,r,n,a,e[7],16,-155497632),a=Lo(a,o,r,n,e[10],23,-1094730640),n=Lo(n,a,o,r,e[13],4,681279174),r=Lo(r,n,a,o,e[0],11,-358537222),o=Lo(o,r,n,a,e[3],16,-722521979),a=Lo(a,o,r,n,e[6],23,76029189),n=Lo(n,a,o,r,e[9],4,-640364487),r=Lo(r,n,a,o,e[12],11,-421815835),o=Lo(o,r,n,a,e[15],16,530742520),n=Qo(n,a=Lo(a,o,r,n,e[2],23,-995338651),o,r,e[0],6,-198630844),r=Qo(r,n,a,o,e[7],10,1126891415),o=Qo(o,r,n,a,e[14],15,-1416354905),a=Qo(a,o,r,n,e[5],21,-57434055),n=Qo(n,a,o,r,e[12],6,1700485571),r=Qo(r,n,a,o,e[3],10,-1894986606),o=Qo(o,r,n,a,e[10],15,-1051523),a=Qo(a,o,r,n,e[1],21,-2054922799),n=Qo(n,a,o,r,e[8],6,1873313359),r=Qo(r,n,a,o,e[15],10,-30611744),o=Qo(o,r,n,a,e[6],15,-1560198380),a=Qo(a,o,r,n,e[13],21,1309151649),n=Qo(n,a,o,r,e[4],6,-145523070),r=Qo(r,n,a,o,e[11],10,-1120210379),o=Qo(o,r,n,a,e[2],15,718787259),a=Qo(a,o,r,n,e[9],21,-343485551),t[0]=ql(n,t[0]),t[1]=ql(a,t[1]),t[2]=ql(o,t[2]),t[3]=ql(r,t[3])}function Rh(t,e,n,a,o,r){return e=ql(ql(e,t),ql(a,r)),ql(e<>>32-o,n)}function So(t,e,n,a,o,r,s){return Rh(e&n|~e&a,t,e,o,r,s)}function Fo(t,e,n,a,o,r,s){return Rh(e&a|n&~a,t,e,o,r,s)}function Lo(t,e,n,a,o,r,s){return Rh(e^n^a,t,e,o,r,s)}function Qo(t,e,n,a,o,r,s){return Rh(n^(e|~a),t,e,o,r,s)}function oP(t){var e,n=t.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)A1(a,Eae(t.substring(e-64,e)));t=t.substring(e-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(A1(a,o),e=0;e<16;e++)o[e]=0;return o[14]=8*n,A1(a,o),a}function Eae(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}pp=It.atob.bind(It),h3=It.btoa.bind(It);var aj="0123456789abcdef".split("");function Pae(t){for(var e="",n=0;n<4;n++)e+=aj[t>>8*n+4&15]+aj[t>>8*n&15];return e}function Sae(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function x3(t){return oP(t).map(Sae).join("")}var Fae=(function(t){for(var e=0;e>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}/** + * @license + * FPDF is released under a permissive license: there is no usage restriction. + * You may embed it freely in your application (commercial or not), with or + * without modifications. + * + * Reference: http://www.fpdf.org/en/script/script37.php + */function y3(t,e){var n,a,o,r;if(t!==n){for(var s=(o=t,r=1+(256/t.length>>0),new Array(r+1).join(o)),c=[],l=0;l<256;l++)c[l]=l;var A=0;for(l=0;l<256;l++){var p=c[l];A=(A+p+s.charCodeAt(l))%256,c[l]=c[A],c[A]=p}n=t,a=c}else c=a;var u=e.length,x=0,h=0,w="";for(l=0;l€/\f©þdSiz";var r=(e+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,s),this.P=-(1+(255^o)),this.encryptionKey=x3(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=y3(this.encryptionKey,this.padding)}function sA(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,a=0;a126?e+="#"+("0"+o.toString(16)).slice(-2):e+=t[a]}return e}function rj(t){if(_n(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(n,a,o){if(o=o||!1,typeof n!="string"||typeof a!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(n)||(e[n]={});var r=Math.random().toString(35);return e[n][r]=[a,!!o],r},this.unsubscribe=function(n){for(var a in e)if(e[a][n])return delete e[a][n],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),o=[];for(var r in e[n]){var s=e[n][r];try{s[0].apply(t,a)}catch(c){It.console&&On.error("jsPDF PubSub Error",c.message,c)}s[1]&&o.push(r)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Yg(t){if(!(this instanceof Yg))return new Yg(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function rP(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function qm(t,e,n,a,o){if(!(this instanceof qm))return new qm(t,e,n,a,o);this.type=t==="axial"?2:3,this.coords=e,this.colors=n,rP.call(this,a,o)}function dA(t,e,n,a,o){if(!(this instanceof dA))return new dA(t,e,n,a,o);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,rP.call(this,a,o)}function Qt(t){var e,n=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],o=arguments[2],r=arguments[3],s=[],c=1,l=16,A="S",p=null;_n(t=t||{})==="object"&&(n=t.orientation,a=t.unit||a,o=t.format||o,r=t.compress||t.compressPdf||r,(p=t.encryption||null)!==null&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),c=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(l=t.floatPrecision),A=t.defaultPathOperation||"S"),s=t.filters||(r===!0?["FlateEncode"]:s),a=a||"mm",n=(""+(n||"P")).toLowerCase();var u=t.putOnlyUsedFonts||!1,x={},h={internal:{},__private__:{}};h.__private__.PubSub=rj;var w="1.3",b=h.__private__.getPdfVersion=function(){return w};h.__private__.setPdfVersion=function(D){w=D};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return v};var B=h.__private__.getPageFormat=function(D){return v[D]};o=o||"a4";var U={COMPAT:"compat",ADVANCED:"advanced"},G=U.COMPAT;function Q(){this.saveGraphicsState(),ce(new yt(Je,0,0,-Je,0,ci()*Je).toString()+" cm"),this.setFontSize(this.getFontSize()/Je),A="n",G=U.ADVANCED}function _(){this.restoreGraphicsState(),A="S",G=U.COMPAT}var S=h.__private__.combineFontStyleAndFontWeight=function(D,k){if(D=="bold"&&k=="normal"||D=="bold"&&k==400||D=="normal"&&k=="italic"||D=="bold"&&k=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return k&&(D=k==400||k==="normal"?D==="italic"?"italic":"normal":k!=700&&k!=="bold"||D!=="normal"?(k==700?"bold":k)+""+D:"bold"),D};h.advancedAPI=function(D){var k=G===U.COMPAT;return k&&Q.call(this),typeof D!="function"||(D(this),k&&_.call(this)),this},h.compatAPI=function(D){var k=G===U.ADVANCED;return k&&_.call(this),typeof D!="function"||(D(this),k&&Q.call(this)),this},h.isAdvancedAPI=function(){return G===U.ADVANCED};var F,O=function(D){if(G!==U.ADVANCED)throw new Error(D+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},R=h.roundToPrecision=h.__private__.roundToPrecision=function(D,k){var le=e||k;if(isNaN(D)||isNaN(le))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return D.toFixed(le).replace(/0+$/,"")};F=h.hpf=h.__private__.hpf=typeof l=="number"?function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.hpf");return R(D,l)}:l==="smart"?function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.hpf");return R(D,D>-1&&D<1?16:5)}:function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.hpf");return R(D,16)};var oe=h.f2=h.__private__.f2=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.f2");return R(D,2)},L=h.__private__.f3=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.f3");return R(D,3)},I=h.scale=h.__private__.scale=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.scale");return G===U.COMPAT?D*Je:G===U.ADVANCED?D:void 0},M=function(D){return G===U.COMPAT?ci()-D:G===U.ADVANCED?D:void 0},K=function(D){return I(M(D))};h.__private__.setPrecision=h.setPrecision=function(D){typeof parseInt(D,10)=="number"&&(e=parseInt(D,10))};var re,ae="00000000000000000000000000000000",ie=h.__private__.getFileId=function(){return ae},X=h.__private__.setFileId=function(D){return ae=D!==void 0&&/^[a-fA-F0-9]{32}$/.test(D)?D.toUpperCase():ae.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),p!==null&&($n=new rA(p.userPermissions,p.userPassword,p.ownerPassword,ae)),ae};h.setFileId=function(D){return X(D),this},h.getFileId=function(){return ie()};var ee=h.__private__.convertDateToPDFDate=function(D){var k=D.getTimezoneOffset(),le=k<0?"+":"-",fe=Math.floor(Math.abs(k/60)),De=Math.abs(k%60),Qe=[le,W(fe),"'",W(De),"'"].join("");return["D:",D.getFullYear(),W(D.getMonth()+1),W(D.getDate()),W(D.getHours()),W(D.getMinutes()),W(D.getSeconds()),Qe].join("")},se=h.__private__.convertPDFDateToDate=function(D){var k=parseInt(D.substr(2,4),10),le=parseInt(D.substr(6,2),10)-1,fe=parseInt(D.substr(8,2),10),De=parseInt(D.substr(10,2),10),Qe=parseInt(D.substr(12,2),10),Ze=parseInt(D.substr(14,2),10);return new Date(k,le,fe,De,Qe,Ze,0)},J=h.__private__.setCreationDate=function(D){var k;if(D===void 0&&(D=new Date),D instanceof Date)k=ee(D);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(D))throw new Error("Invalid argument passed to jsPDF.setCreationDate");k=D}return re=k},E=h.__private__.getCreationDate=function(D){var k=re;return D==="jsDate"&&(k=se(re)),k};h.setCreationDate=function(D){return J(D),this},h.getCreationDate=function(D){return E(D)};var z,W=h.__private__.padd2=function(D){return("0"+parseInt(D)).slice(-2)},te=h.__private__.padd2Hex=function(D){return("00"+(D=D.toString())).substr(D.length)},me=0,pe=[],Ce=[],de=0,Ge=[],Ee=[],Be=!1,Re=Ce,Ve=function(){me=0,de=0,Ce=[],pe=[],Ge=[],hs=Kn(),Ur=Kn()};h.__private__.setCustomOutputDestination=function(D){Be=!0,Re=D};var je=function(D){Be||(Re=D)};h.__private__.resetCustomOutputDestination=function(){Be=!1,Re=Ce};var ce=h.__private__.out=function(D){return D=D.toString(),de+=D.length+1,Re.push(D),Re},dt=h.__private__.write=function(D){return ce(arguments.length===1?D.toString():Array.prototype.join.call(arguments," "))},ot=h.__private__.getArrayBuffer=function(D){for(var k=D.length,le=new ArrayBuffer(k),fe=new Uint8Array(le);k--;)fe[k]=D.charCodeAt(k);return le},ze=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return ze};var Ke=t.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(D){return Ke=G===U.ADVANCED?D/Je:D,this};var qe,Se=h.__private__.getFontSize=h.getFontSize=function(){return G===U.COMPAT?Ke:Ke*Je},et=t.R2L||!1;h.__private__.setR2L=h.setR2L=function(D){return et=D,this},h.__private__.getR2L=h.getR2L=function(){return et};var lt,it=h.__private__.setZoomMode=function(D){var k=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(D))qe=D;else if(isNaN(D)){if(k.indexOf(D)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+D+'" is not recognized.');qe=D}else qe=parseInt(D,10)};h.__private__.getZoomMode=function(){return qe};var ct,Ct=h.__private__.setPageMode=function(D){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(D)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+D+'" is not recognized.');lt=D};h.__private__.getPageMode=function(){return lt};var kt=h.__private__.setLayoutMode=function(D){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(D)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+D+'" is not recognized.');ct=D};h.__private__.getLayoutMode=function(){return ct},h.__private__.setDisplayMode=h.setDisplayMode=function(D,k,le){return it(D),kt(k),Ct(le),this};var at={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(D){if(Object.keys(at).indexOf(D)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return at[D]},h.__private__.getDocumentProperties=function(){return at},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(D){for(var k in at)at.hasOwnProperty(k)&&D[k]&&(at[k]=D[k]);return this},h.__private__.setDocumentProperty=function(D,k){if(Object.keys(at).indexOf(D)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return at[D]=k};var gt,Je,En,zt,aa,sn={},en={},Oa=[],Jt={},lo={},fn={},la={},ma=null,tt=0,Fe=[],We=new rj(h),_t=t.hotfixes||[],Bt={},Wt={},cn=[],yt=function D(k,le,fe,De,Qe,Ze){if(!(this instanceof D))return new D(k,le,fe,De,Qe,Ze);isNaN(k)&&(k=1),isNaN(le)&&(le=0),isNaN(fe)&&(fe=0),isNaN(De)&&(De=1),isNaN(Qe)&&(Qe=0),isNaN(Ze)&&(Ze=0),this._matrix=[k,le,fe,De,Qe,Ze]};Object.defineProperty(yt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(D){this._matrix[0]=D}}),Object.defineProperty(yt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(D){this._matrix[1]=D}}),Object.defineProperty(yt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(D){this._matrix[2]=D}}),Object.defineProperty(yt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(D){this._matrix[3]=D}}),Object.defineProperty(yt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(D){this._matrix[4]=D}}),Object.defineProperty(yt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(D){this._matrix[5]=D}}),Object.defineProperty(yt.prototype,"a",{get:function(){return this._matrix[0]},set:function(D){this._matrix[0]=D}}),Object.defineProperty(yt.prototype,"b",{get:function(){return this._matrix[1]},set:function(D){this._matrix[1]=D}}),Object.defineProperty(yt.prototype,"c",{get:function(){return this._matrix[2]},set:function(D){this._matrix[2]=D}}),Object.defineProperty(yt.prototype,"d",{get:function(){return this._matrix[3]},set:function(D){this._matrix[3]=D}}),Object.defineProperty(yt.prototype,"e",{get:function(){return this._matrix[4]},set:function(D){this._matrix[4]=D}}),Object.defineProperty(yt.prototype,"f",{get:function(){return this._matrix[5]},set:function(D){this._matrix[5]=D}}),Object.defineProperty(yt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(yt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(yt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(yt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),yt.prototype.join=function(D){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(F).join(D)},yt.prototype.multiply=function(D){var k=D.sx*this.sx+D.shy*this.shx,le=D.sx*this.shy+D.shy*this.sy,fe=D.shx*this.sx+D.sy*this.shx,De=D.shx*this.shy+D.sy*this.sy,Qe=D.tx*this.sx+D.ty*this.shx+this.tx,Ze=D.tx*this.shy+D.ty*this.sy+this.ty;return new yt(k,le,fe,De,Qe,Ze)},yt.prototype.decompose=function(){var D=this.sx,k=this.shy,le=this.shx,fe=this.sy,De=this.tx,Qe=this.ty,Ze=Math.sqrt(D*D+k*k),mt=(D/=Ze)*le+(k/=Ze)*fe;le-=D*mt,fe-=k*mt;var jt=Math.sqrt(le*le+fe*fe);return mt/=jt,D*(fe/=jt)>16&255,fe=jt>>8&255,De=255&jt}if(fe===void 0||Qe===void 0&&le===fe&&fe===De)if(typeof le=="string")k=le+" "+Ze[0];else switch(D.precision){case 2:k=oe(le/255)+" "+Ze[0];break;case 3:default:k=L(le/255)+" "+Ze[0]}else if(Qe===void 0||_n(Qe)==="object"){if(Qe&&!isNaN(Qe.a)&&Qe.a===0)return k=["1.","1.","1.",Ze[1]].join(" ");if(typeof le=="string")k=[le,fe,De,Ze[1]].join(" ");else switch(D.precision){case 2:k=[oe(le/255),oe(fe/255),oe(De/255),Ze[1]].join(" ");break;default:case 3:k=[L(le/255),L(fe/255),L(De/255),Ze[1]].join(" ")}}else if(typeof le=="string")k=[le,fe,De,Qe,Ze[2]].join(" ");else switch(D.precision){case 2:k=[oe(le),oe(fe),oe(De),oe(Qe),Ze[2]].join(" ");break;case 3:default:k=[L(le),L(fe),L(De),L(Qe),Ze[2]].join(" ")}return k},Nr=h.__private__.getFilters=function(){return s},Zo=h.__private__.putStream=function(D){var k=(D=D||{}).data||"",le=D.filters||Nr(),fe=D.alreadyAppliedFilters||[],De=D.addLength1||!1,Qe=k.length,Ze=D.objectId,mt=function(Va){return Va};if(p!==null&&Ze===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");p!==null&&(mt=$n.encryptor(Ze,0));var jt={};le===!0&&(le=["FlateEncode"]);var Zt=D.additionalKeyValues||[],Rt=(jt=Qt.API.processDataByFilters!==void 0?Qt.API.processDataByFilters(k,le):{data:k,reverseChain:[]}).reverseChain+(Array.isArray(fe)?fe.join(" "):fe.toString());if(jt.data.length!==0&&(Zt.push({key:"Length",value:jt.data.length}),De===!0&&Zt.push({key:"Length1",value:Qe})),Rt.length!=0)if(Rt.split("/").length-1==1)Zt.push({key:"Filter",value:Rt});else{Zt.push({key:"Filter",value:"["+Rt+"]"});for(var nn=0;nn>"),jt.data.length!==0&&(ce("stream"),ce(mt(jt.data)),ce("endstream"))},Mr=h.__private__.putPage=function(D){var k=D.number,le=D.data,fe=D.objId,De=D.contentsObjId;Wa(fe,!0),ce("<>"),ce("endobj");var Qe=le.join(` +`);return G===U.ADVANCED&&(Qe+=` +Q`),Wa(De,!0),Zo({data:Qe,filters:Nr(),objectId:De}),ce("endobj"),fe},Xs=h.__private__.putPages=function(){var D,k,le=[];for(D=1;D<=tt;D++)Fe[D].objId=Kn(),Fe[D].contentsObjId=Kn();for(D=1;D<=tt;D++)le.push(Mr({number:D,data:Ee[D],objId:Fe[D].objId,contentsObjId:Fe[D].contentsObjId,mediaBox:Fe[D].mediaBox,cropBox:Fe[D].cropBox,bleedBox:Fe[D].bleedBox,trimBox:Fe[D].trimBox,artBox:Fe[D].artBox,userUnit:Fe[D].userUnit,rootDictionaryObjId:hs,resourceDictionaryObjId:Ur}));Wa(hs,!0),ce("<>"),ce("endobj"),We.publish("postPutPages")},Oi=function(D){We.publish("putFont",{font:D,out:ce,newObject:Yn,putStream:Zo}),D.isAlreadyPutted!==!0&&(D.objectNumber=Yn(),ce("<<"),ce("/Type /Font"),ce("/BaseFont /"+sA(D.postScriptName)),ce("/Subtype /Type1"),typeof D.encoding=="string"&&ce("/Encoding /"+D.encoding),ce("/FirstChar 32"),ce("/LastChar 255"),ce(">>"),ce("endobj"))},Ti=function(){for(var D in sn)sn.hasOwnProperty(D)&&(u===!1||u===!0&&x.hasOwnProperty(D))&&Oi(sn[D])},ki=function(D){D.objectNumber=Yn();var k=[];k.push({key:"Type",value:"/XObject"}),k.push({key:"Subtype",value:"/Form"}),k.push({key:"BBox",value:"["+[F(D.x),F(D.y),F(D.x+D.width),F(D.y+D.height)].join(" ")+"]"}),k.push({key:"Matrix",value:"["+D.matrix.toString()+"]"});var le=D.pages[1].join(` +`);Zo({data:le,additionalKeyValues:k,objectId:D.objectNumber}),ce("endobj")},Mc=function(){for(var D in Bt)Bt.hasOwnProperty(D)&&ki(Bt[D])},fd=function(D,k){var le,fe=[],De=1/(k-1);for(le=0;le<1;le+=De)fe.push(le);if(fe.push(1),D[0].offset!=0){var Qe={offset:0,color:D[0].color};D.unshift(Qe)}if(D[D.length-1].offset!=1){var Ze={offset:1,color:D[D.length-1].color};D.push(Ze)}for(var mt="",jt=0,Zt=0;ZtD[jt+1].offset;)jt++;var Rt=D[jt].offset,nn=(le-Rt)/(D[jt+1].offset-Rt),Wn=D[jt].color,oa=D[jt+1].color;mt+=te(Math.round((1-nn)*Wn[0]+nn*oa[0]).toString(16))+te(Math.round((1-nn)*Wn[1]+nn*oa[1]).toString(16))+te(Math.round((1-nn)*Wn[2]+nn*oa[2]).toString(16))}return mt.trim()},qn=function(D,k){k||(k=21);var le=Yn(),fe=fd(D.colors,k),De=[];De.push({key:"FunctionType",value:"0"}),De.push({key:"Domain",value:"[0.0 1.0]"}),De.push({key:"Size",value:"["+k+"]"}),De.push({key:"BitsPerSample",value:"8"}),De.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),De.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Zo({data:fe,additionalKeyValues:De,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:le}),ce("endobj"),D.objectNumber=Yn(),ce("<< /ShadingType "+D.type),ce("/ColorSpace /DeviceRGB");var Qe="/Coords ["+F(parseFloat(D.coords[0]))+" "+F(parseFloat(D.coords[1]))+" ";D.type===2?Qe+=F(parseFloat(D.coords[2]))+" "+F(parseFloat(D.coords[3])):Qe+=F(parseFloat(D.coords[2]))+" "+F(parseFloat(D.coords[3]))+" "+F(parseFloat(D.coords[4]))+" "+F(parseFloat(D.coords[5])),ce(Qe+="]"),D.matrix&&ce("/Matrix ["+D.matrix.toString()+"]"),ce("/Function "+le+" 0 R"),ce("/Extend [true true]"),ce(">>"),ce("endobj")},iu=function(D,k){var le=Kn(),fe=Yn();k.push({resourcesOid:le,objectOid:fe}),D.objectNumber=fe;var De=[];De.push({key:"Type",value:"/Pattern"}),De.push({key:"PatternType",value:"1"}),De.push({key:"PaintType",value:"1"}),De.push({key:"TilingType",value:"1"}),De.push({key:"BBox",value:"["+D.boundingBox.map(F).join(" ")+"]"}),De.push({key:"XStep",value:F(D.xStep)}),De.push({key:"YStep",value:F(D.yStep)}),De.push({key:"Resources",value:le+" 0 R"}),D.matrix&&De.push({key:"Matrix",value:"["+D.matrix.toString()+"]"}),Zo({data:D.stream,additionalKeyValues:De,objectId:D.objectNumber}),ce("endobj")},Js=function(D){var k;for(k in Jt)Jt.hasOwnProperty(k)&&(Jt[k]instanceof qm?qn(Jt[k]):Jt[k]instanceof dA&&iu(Jt[k],D))},cm=function(D){for(var k in D.objectNumber=Yn(),ce("<<"),D)switch(k){case"opacity":ce("/ca "+oe(D[k]));break;case"stroke-opacity":ce("/CA "+oe(D[k]))}ce(">>"),ce("endobj")},zc=function(){var D;for(D in fn)fn.hasOwnProperty(D)&&cm(fn[D])},lm=function(){for(var D in ce("/XObject <<"),Bt)Bt.hasOwnProperty(D)&&Bt[D].objectNumber>=0&&ce("/"+D+" "+Bt[D].objectNumber+" 0 R");We.publish("putXobjectDict"),ce(">>")},gd=function(){$n.oid=Yn(),ce("<<"),ce("/Filter /Standard"),ce("/V "+$n.v),ce("/R "+$n.r),ce("/U <"+$n.toHexString($n.U)+">"),ce("/O <"+$n.toHexString($n.O)+">"),ce("/P "+$n.P),ce(">>"),ce("endobj")},Ri=function(){for(var D in ce("/Font <<"),sn)sn.hasOwnProperty(D)&&(u===!1||u===!0&&x.hasOwnProperty(D))&&ce("/"+D+" "+sn[D].objectNumber+" 0 R");ce(">>")},sr=function(){if(Object.keys(Jt).length>0){for(var D in ce("/Shading <<"),Jt)Jt.hasOwnProperty(D)&&Jt[D]instanceof qm&&Jt[D].objectNumber>=0&&ce("/"+D+" "+Jt[D].objectNumber+" 0 R");We.publish("putShadingPatternDict"),ce(">>")}},Zc=function(D){if(Object.keys(Jt).length>0){for(var k in ce("/Pattern <<"),Jt)Jt.hasOwnProperty(k)&&Jt[k]instanceof h.TilingPattern&&Jt[k].objectNumber>=0&&Jt[k].objectNumber>")}},Yo=function(){if(Object.keys(fn).length>0){var D;for(D in ce("/ExtGState <<"),fn)fn.hasOwnProperty(D)&&fn[D].objectNumber>=0&&ce("/"+D+" "+fn[D].objectNumber+" 0 R");We.publish("putGStateDict"),ce(">>")}},Aa=function(D){Wa(D.resourcesOid,!0),ce("<<"),ce("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ri(),sr(),Zc(D.objectOid),Yo(),lm(),ce(">>"),ce("endobj")},hd=function(){var D=[];Ti(),zc(),Mc(),Js(D),We.publish("putResources"),D.forEach(Aa),Aa({resourcesOid:Ur,objectOid:Number.MAX_SAFE_INTEGER}),We.publish("postPutResources")},xd=function(){We.publish("putAdditionalObjects");for(var D=0;D>8&&(jt=!0);D=mt.join("")}for(le=D.length;jt===void 0&&le!==0;)D.charCodeAt(le-1)>>8&&(jt=!0),le--;if(!jt)return D;for(mt=k.noBOM?[]:[254,255],le=0,fe=D.length;le>8)>>8)throw new Error("Character at position "+le+" of string '"+D+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");mt.push(Rt),mt.push(Zt-(Rt<<8))}return String.fromCharCode.apply(void 0,mt)},Bo=h.__private__.pdfEscape=h.pdfEscape=function(D,k){return Yc(D,k).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Zi=h.__private__.beginPage=function(D){Ee[++tt]=[],Fe[tt]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(D[0]),topRightY:Number(D[1])}},ti(tt),je(Ee[z])},mm=function(D,k){var le,fe,De;switch(n=k||n,typeof D=="string"&&(le=B(D.toLowerCase()),Array.isArray(le)&&(fe=le[0],De=le[1])),Array.isArray(D)&&(fe=D[0]*Je,De=D[1]*Je),isNaN(fe)&&(fe=o[0],De=o[1]),(fe>14400||De>14400)&&(On.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),fe=Math.min(14400,fe),De=Math.min(14400,De)),o=[fe,De],n.substr(0,1)){case"l":De>fe&&(o=[De,fe]);break;case"p":fe>De&&(o=[De,fe])}Zi(o),Wi(pm),ce(Do),gm!==0&&ce(gm+" J"),Xi!==0&&ce(Xi+" j"),We.publish("addPage",{pageNumber:tt})},dm=function(D){D>0&&D<=tt&&(Ee.splice(D,1),Fe.splice(D,1),tt--,z>tt&&(z=tt),this.setPage(z))},ti=function(D){D>0&&D<=tt&&(z=D)},cu=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return Ee.length-1},Kc=function(D,k,le){var fe,De=void 0;return le=le||{},D=D!==void 0?D:sn[gt].fontName,k=k!==void 0?k:sn[gt].fontStyle,fe=D.toLowerCase(),en[fe]!==void 0&&en[fe][k]!==void 0?De=en[fe][k]:en[D]!==void 0&&en[D][k]!==void 0?De=en[D][k]:le.disableWarning===!1&&On.warn("Unable to look up font label for font '"+D+"', '"+k+"'. Refer to getFontList() for available fonts."),De||le.noFallback||(De=en.times[k])==null&&(De=en.times.normal),De},dn=h.__private__.putInfo=function(){var D=Yn(),k=function(fe){return fe};for(var le in p!==null&&(k=$n.encryptor(D,0)),ce("<<"),ce("/Producer ("+Bo(k("jsPDF "+Qt.version))+")"),at)at.hasOwnProperty(le)&&at[le]&&ce("/"+le.substr(0,1).toUpperCase()+le.substr(1)+" ("+Bo(k(at[le]))+")");ce("/CreationDate ("+Bo(k(re))+")"),ce(">>"),ce("endobj")},qc=h.__private__.putCatalog=function(D){var k=(D=D||{}).rootDictionaryObjId||hs;switch(Yn(),ce("<<"),ce("/Type /Catalog"),ce("/Pages "+k+" 0 R"),qe||(qe="fullwidth"),qe){case"fullwidth":ce("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ce("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ce("/OpenAction [3 0 R /Fit]");break;case"original":ce("/OpenAction [3 0 R /XYZ null null 1]");break;default:var le=""+qe;le.substr(le.length-1)==="%"&&(qe=parseInt(qe)/100),typeof qe=="number"&&ce("/OpenAction [3 0 R /XYZ null null "+oe(qe)+"]")}switch(ct||(ct="continuous"),ct){case"continuous":ce("/PageLayout /OneColumn");break;case"single":ce("/PageLayout /SinglePage");break;case"two":case"twoleft":ce("/PageLayout /TwoColumnLeft");break;case"tworight":ce("/PageLayout /TwoColumnRight")}lt&&ce("/PageMode /"+lt),We.publish("putCatalog"),ce(">>"),ce("endobj")},yd=h.__private__.putTrailer=function(){ce("trailer"),ce("<<"),ce("/Size "+(me+1)),ce("/Root "+me+" 0 R"),ce("/Info "+(me-1)+" 0 R"),p!==null&&ce("/Encrypt "+$n.oid+" 0 R"),ce("/ID [ <"+ae+"> <"+ae+"> ]"),ce(">>")},Am=h.__private__.putHeader=function(){ce("%PDF-"+w),ce("%ºß¬à")},Cd=h.__private__.putXRef=function(){var D="0000000000";ce("xref"),ce("0 "+(me+1)),ce("0000000000 65535 f ");for(var k=1;k<=me;k++)typeof pe[k]=="function"?ce((D+pe[k]()).slice(-10)+" 00000 n "):pe[k]!==void 0?ce((D+pe[k]).slice(-10)+" 00000 n "):ce("0000000000 00000 n ")},zr=h.__private__.buildDocument=function(){Ve(),je(Ce),We.publish("buildDocument"),Am(),Xs(),xd(),hd(),p!==null&&gd(),dn(),qc();var D=de;return Cd(),yd(),ce("startxref"),ce(""+D),ce("%%EOF"),je(Ee[z]),Ce.join(` +`)},Yi=h.__private__.getBlob=function(D){return new Blob([ot(D)],{type:"application/pdf"})},ni=h.output=h.__private__.output=wo((function(D,k){switch(typeof(k=k||{})=="string"?k={filename:k}:k.filename=k.filename||"generated.pdf",D){case void 0:return zr();case"save":h.save(k.filename);break;case"arraybuffer":return ot(zr());case"blob":return Yi(zr());case"bloburi":case"bloburl":if(It.URL!==void 0&&typeof It.URL.createObjectURL=="function")return It.URL&&It.URL.createObjectURL(Yi(zr()))||void 0;On.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var le="",fe=zr();try{le=h3(fe)}catch{le=h3(unescape(encodeURIComponent(fe)))}return"data:application/pdf;filename="+k.filename+";base64,"+le;case"pdfobjectnewwindow":if(Object.prototype.toString.call(It)==="[object Window]"){var De="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Qe=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';k.pdfObjectUrl&&(De=k.pdfObjectUrl,Qe="");var Ze=' - + + diff --git a/package-lock.json b/package-lock.json index 2df94bb..ddc4adb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,8 +47,10 @@ "embla-carousel-react": "^8.5.2", "express": "^4.18.2", "helmet": "^7.1.0", + "html2canvas": "^1.4.1", "input-otp": "^1.4.2", "jsonwebtoken": "^9.0.2", + "jspdf": "^3.0.1", "lucide-react": "^0.364.0", "next-themes": "^0.4.4", "nodemon": "^3.0.2", @@ -3175,6 +3177,13 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/raf": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/@types/raf/-/raf-3.4.3.tgz", + "integrity": "sha512-c4YAvMedbPZ5tEyxzQdMoOhhJ4RD3rngZIdwC2/qDN3d7JpEhB6fiBRKVY1lg5B7Wk+uPBjn5f39j1/2MY1oOw==", + "license": "MIT", + "optional": true + }, "node_modules/@types/range-parser": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", @@ -3249,6 +3258,13 @@ "@types/send": "*" } }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT", + "optional": true + }, "node_modules/@types/yauzl": { "version": "2.10.3", "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", @@ -3733,6 +3749,18 @@ "node": ">=4" } }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "license": "(MIT OR Apache-2.0)", + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, "node_modules/autoprefixer": { "version": "10.4.20", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.20.tgz", @@ -3855,6 +3883,15 @@ } } }, + "node_modules/base64-arraybuffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz", + "integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -4030,6 +4067,18 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/btoa": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz", + "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==", + "license": "(MIT OR Apache-2.0)", + "bin": { + "btoa": "bin/btoa.js" + }, + "engines": { + "node": ">= 0.4.0" + } + }, "node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", @@ -4146,6 +4195,26 @@ ], "license": "CC-BY-4.0" }, + "node_modules/canvg": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/canvg/-/canvg-3.0.11.tgz", + "integrity": "sha512-5ON+q7jCTgMp9cjpu4Jo6XbvfYwSB2Ow3kzHKfIyJfaCAOHLbdKPQqGKgfED/R5B+3TFFfe8pegYA+b423SRyA==", + "license": "MIT", + "optional": true, + "dependencies": { + "@babel/runtime": "^7.12.5", + "@types/raf": "^3.4.0", + "core-js": "^3.8.3", + "raf": "^3.4.1", + "regenerator-runtime": "^0.13.7", + "rgbcolor": "^1.0.1", + "stackblur-canvas": "^2.0.0", + "svg-pathdata": "^6.0.3" + }, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -4876,6 +4945,18 @@ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", "license": "MIT" }, + "node_modules/core-js": { + "version": "3.45.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.45.1.tgz", + "integrity": "sha512-L4NPsJlCfZsPeXukyzHFlg/i7IIVwHSItR0wg0FLNqYClJ4MQYTYLbC7EkjKYRLZF2iof2MUgN0EGy7MdQFChg==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, "node_modules/cors": { "version": "2.8.5", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", @@ -4929,6 +5010,15 @@ "node": ">= 8" } }, + "node_modules/css-line-break": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-2.1.0.tgz", + "integrity": "sha512-FHcKFCZcAha3LwfVBhCQbW2nCNbkZXn7KVUJcsT5/P8YmfsVja0FMPJr0B903j/E69HUphKiV9iQArX8SDYA4w==", + "license": "MIT", + "dependencies": { + "utrie": "^1.0.2" + } + }, "node_modules/cssesc": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", @@ -5217,6 +5307,16 @@ "csstype": "^3.0.2" } }, + "node_modules/dompurify": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.6.tgz", + "integrity": "sha512-/2GogDQlohXPZe6D6NOgQvXLPSYBqIWMnZ8zzOhn09REE4eyAzb+Hed3jhoM9OkuaJ8P6ZGTTVWQKAi8ieIzfQ==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optional": true, + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -5846,6 +5946,12 @@ "pend": "~1.2.0" } }, + "node_modules/fflate": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz", + "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==", + "license": "MIT" + }, "node_modules/file-entry-cache": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", @@ -6255,6 +6361,19 @@ "node": ">=16.0.0" } }, + "node_modules/html2canvas": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/html2canvas/-/html2canvas-1.4.1.tgz", + "integrity": "sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==", + "license": "MIT", + "dependencies": { + "css-line-break": "^2.1.0", + "text-segmentation": "^1.0.3" + }, + "engines": { + "node": ">=8.0.0" + } + }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", @@ -6627,6 +6746,24 @@ "node": ">=10" } }, + "node_modules/jspdf": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/jspdf/-/jspdf-3.0.1.tgz", + "integrity": "sha512-qaGIxqxetdoNnFQQXxTKUD9/Z7AloLaw94fFsOiJMxbfYdBbrBuhWmbzI8TVjrw7s3jBY1PFHofBKMV/wZPapg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.26.7", + "atob": "^2.1.2", + "btoa": "^1.2.1", + "fflate": "^0.8.1" + }, + "optionalDependencies": { + "canvg": "^3.0.11", + "core-js": "^3.6.0", + "dompurify": "^3.2.4", + "html2canvas": "^1.0.0-rc.5" + } + }, "node_modules/jwa": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz", @@ -7392,6 +7529,13 @@ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", "license": "MIT" }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "license": "MIT", + "optional": true + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -7779,6 +7923,16 @@ ], "license": "MIT" }, + "node_modules/raf": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", + "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", + "license": "MIT", + "optional": true, + "dependencies": { + "performance-now": "^2.1.0" + } + }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -8107,6 +8261,13 @@ "decimal.js-light": "^2.4.1" } }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "license": "MIT", + "optional": true + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -8155,6 +8316,16 @@ "node": ">=0.10.0" } }, + "node_modules/rgbcolor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/rgbcolor/-/rgbcolor-1.0.1.tgz", + "integrity": "sha512-9aZLIrhRaD97sgVhtJOW6ckOEh6/GnvQtdVNfdZ6s67+3/XwLS9lBcQYzEEhYVeUowN7pRzMLsyGhK2i/xvWbw==", + "license": "MIT OR SEE LICENSE IN FEEL-FREE.md", + "optional": true, + "engines": { + "node": ">= 0.8.15" + } + }, "node_modules/rollup": { "version": "4.46.2", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.46.2.tgz", @@ -8599,6 +8770,16 @@ "resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2.tgz", "integrity": "sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ==" }, + "node_modules/stackblur-canvas": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/stackblur-canvas/-/stackblur-canvas-2.7.0.tgz", + "integrity": "sha512-yf7OENo23AGJhBriGx0QivY5JP6Y1HbrrDI6WLt6C5auYZXlQrheoY8hD4ibekFKz1HOfE48Ww8kMWMnJD/zcQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.1.14" + } + }, "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -8785,6 +8966,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/svg-pathdata": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/svg-pathdata/-/svg-pathdata-6.0.3.tgz", + "integrity": "sha512-qsjeeq5YjBZ5eMdFuUa4ZosMLxgr5RZ+F+Y1OrDhuOCEInRMA3x74XdBtggJcj9kOeInz0WE+LgCPDkZFlBYJw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/tailwind-merge": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.6.0.tgz", @@ -8878,6 +9069,15 @@ "b4a": "^1.6.4" } }, + "node_modules/text-segmentation": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/text-segmentation/-/text-segmentation-1.0.3.tgz", + "integrity": "sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw==", + "license": "MIT", + "dependencies": { + "utrie": "^1.0.2" + } + }, "node_modules/thenify": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", @@ -9236,6 +9436,15 @@ "node": ">= 0.4.0" } }, + "node_modules/utrie": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/utrie/-/utrie-1.0.2.tgz", + "integrity": "sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw==", + "license": "MIT", + "dependencies": { + "base64-arraybuffer": "^1.0.2" + } + }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", diff --git a/package.json b/package.json index be8e007..815771f 100644 --- a/package.json +++ b/package.json @@ -57,8 +57,10 @@ "embla-carousel-react": "^8.5.2", "express": "^4.18.2", "helmet": "^7.1.0", + "html2canvas": "^1.4.1", "input-otp": "^1.4.2", "jsonwebtoken": "^9.0.2", + "jspdf": "^3.0.1", "lucide-react": "^0.364.0", "next-themes": "^0.4.4", "nodemon": "^3.0.2", diff --git a/server/routes/download.cjs b/server/routes/download.cjs index 9941899..0e26d19 100644 --- a/server/routes/download.cjs +++ b/server/routes/download.cjs @@ -4,7 +4,6 @@ const { dbManager } = require('../database/index.cjs'); const { generateMarkdown } = require('../services/generators/markdownGenerator.cjs'); const { generatePDF } = require('../services/generators/pdfGenerator.cjs'); -const { generatePNG } = require('../services/generators/pngGenerator.cjs'); const router = express.Router(); @@ -68,7 +67,7 @@ router.post('/', authenticate, async (req, res) => { const minute = String(analysisDate.getMinutes()).padStart(2, '0'); const second = String(analysisDate.getSeconds()).padStart(2, '0'); - const dateStr = `${year}-${month}-${day}`; + const dateStr = `${year}${month}${day}`; const timeStr = `${hour}${minute}${second}`; // 分析类型映射 @@ -79,8 +78,9 @@ router.post('/', authenticate, async (req, res) => { }; const analysisTypeName = analysisTypeMap[analysisType] || analysisType; - const baseFilename = `${analysisTypeName}_${userName || 'user'}_${dateStr}_${timeStr}`; - // 文件名格式: 八字命理_午饭_2025-08-21_133105 + const exportMode = '服务器导出'; + const baseFilename = `${analysisTypeName}_${userName || 'user'}_${exportMode}_${dateStr}_${timeStr}`; + // 文件名格式: 八字命理_午饭_服务器导出_20250821_133105 try { switch (format) { @@ -98,12 +98,7 @@ router.post('/', authenticate, async (req, res) => { filename = `${baseFilename}.pdf`; break; - case 'png': - fileBuffer = await generatePNG(analysisData, analysisType, userName); - contentType = 'image/png'; - fileExtension = 'png'; - filename = `${baseFilename}.png`; - break; + } } catch (generationError) { console.error(`生成${format}文件失败:`, generationError); diff --git a/server/services/generators/pngGenerator.cjs b/server/services/generators/pngGenerator.cjs deleted file mode 100644 index a3395a6..0000000 --- a/server/services/generators/pngGenerator.cjs +++ /dev/null @@ -1,634 +0,0 @@ -/** - * PNG图片生成器 - * 将分析结果转换为PNG图片格式 - * 使用Puppeteer将SVG转换为PNG - */ - -const puppeteer = require('puppeteer'); - -const generatePNG = async (analysisData, analysisType, userName) => { - let browser; - try { - // 生成SVG内容 - const svgContent = await generateImageData(analysisData, analysisType, userName); - - // 创建包含SVG的HTML页面 - const htmlContent = ` - - - - - - - - ${svgContent} - -`; - - // 启动puppeteer浏览器 - browser = await puppeteer.launch({ - headless: 'new', - args: [ - '--no-sandbox', - '--disable-setuid-sandbox', - '--disable-dev-shm-usage', - '--disable-gpu', - '--no-first-run', - '--disable-extensions', - '--disable-plugins' - ], - timeout: 30000 - }); - - const page = await browser.newPage(); - - // 设置页面内容 - await page.setContent(htmlContent, { - waitUntil: 'networkidle0' - }); - - // 设置视口大小 - await page.setViewport({ width: 800, height: 1200 }); - - // 截图生成PNG - const pngBuffer = await page.screenshot({ - type: 'png', - fullPage: true, - omitBackground: false - }); - - // 确保返回的是Buffer对象 - if (!Buffer.isBuffer(pngBuffer)) { - console.warn('Puppeteer返回的不是Buffer,正在转换:', typeof pngBuffer); - return Buffer.from(pngBuffer); - } - - return pngBuffer; - - } catch (error) { - console.error('生成PNG失败:', error); - throw error; - } finally { - if (browser) { - await browser.close(); - } - } -}; - -/** - * 生成图片数据(SVG格式) - */ -const generateImageData = async (analysisData, analysisType, userName) => { - const timestamp = new Date().toLocaleString('zh-CN'); - const analysisTypeLabel = getAnalysisTypeLabel(analysisType); - - // 生成SVG内容 - let svg = ` - - - - - - - - - - - - - - - - - - - - 神机阁 - 专业命理分析平台 - - - - - - ${analysisTypeLabel}分析报告 - 姓名:${userName || '用户'} - 生成时间:${timestamp.split(' ')[0]} - - - - - `; - - // 根据分析类型添加不同内容 - let yOffset = 260; - - switch (analysisType) { - case 'bazi': - yOffset = addBaziContent(svg, analysisData, yOffset); - break; - case 'ziwei': - yOffset = addZiweiContent(svg, analysisData, yOffset); - break; - case 'yijing': - yOffset = addYijingContent(svg, analysisData, yOffset); - break; - } - - // 页脚 - svg += ` - - - 本报告由神机阁AI命理分析平台生成,仅供参考 - © 2025 神机阁 - AI命理分析平台 - - - `; - - return svg; -}; - -/** - * 添加八字命理内容 - */ -const addBaziContent = (svg, analysisData, yOffset) => { - let content = ''; - - // 基本信息 - if (analysisData.basic_info) { - content += ` - - 📋 基本信息 - `; - yOffset += 40; - - if (analysisData.basic_info.personal_data) { - const personal = analysisData.basic_info.personal_data; - const genderText = personal.gender === 'male' ? '男' : personal.gender === 'female' ? '女' : personal.gender || '未提供'; - - content += ` - 姓名: - ${personal.name || '未提供'} - 性别: - ${genderText} - `; - yOffset += 30; - - content += ` - 出生日期: - ${personal.birth_date || '未提供'} - `; - yOffset += 30; - - content += ` - 出生时间: - ${personal.birth_time || '未提供'} - `; - yOffset += 40; - } - - // 八字信息 - if (analysisData.basic_info.bazi_info) { - const bazi = analysisData.basic_info.bazi_info; - content += ` - 🔮 八字信息 - `; - yOffset += 30; - - // 表格头 - content += ` - - 柱位 - 天干 - 地支 - 纳音 - `; - yOffset += 25; - - // 表格内容 - const pillars = [ - { name: '年柱', data: bazi.year, nayin: bazi.year_nayin }, - { name: '月柱', data: bazi.month, nayin: bazi.month_nayin }, - { name: '日柱', data: bazi.day, nayin: bazi.day_nayin }, - { name: '时柱', data: bazi.hour, nayin: bazi.hour_nayin } - ]; - - pillars.forEach((pillar, index) => { - const bgColor = index % 2 === 0 ? '#f8f9fa' : 'white'; - content += ` - - ${pillar.name} - ${pillar.data?.split('')[0] || '-'} - ${pillar.data?.split('')[1] || '-'} - ${pillar.nayin || '-'} - `; - yOffset += 25; - }); - - yOffset += 20; - } - } - - // 五行分析 - if (analysisData.wuxing_analysis && yOffset < 1000) { - content += ` - 🌟 五行分析 - `; - yOffset += 40; - - if (analysisData.wuxing_analysis.element_distribution) { - const elements = analysisData.wuxing_analysis.element_distribution; - const total = Object.values(elements).reduce((sum, count) => sum + (typeof count === 'number' ? count : 0), 0); - - content += ` - 五行分布 - `; - yOffset += 30; - - // 五行分布图表 - let xOffset = 120; - Object.entries(elements).forEach(([element, count]) => { - const numCount = typeof count === 'number' ? count : 0; - const percentage = total > 0 ? Math.round((numCount / total) * 100) : 0; - const barHeight = Math.max(numCount * 20, 5); - const elementColor = getElementColor(element); - - // 柱状图 - content += ` - - ${element} - ${numCount} - ${percentage}% - `; - - xOffset += 100; - }); - - yOffset += 150; - } - - if (analysisData.wuxing_analysis.balance_analysis && yOffset < 1000) { - content += ` - 五行平衡分析 - `; - yOffset += 25; - - // 分析内容(截取前200字符) - const analysisText = analysisData.wuxing_analysis.balance_analysis.substring(0, 200) + (analysisData.wuxing_analysis.balance_analysis.length > 200 ? '...' : ''); - const lines = wrapText(analysisText, 50); - - lines.forEach(line => { - if (yOffset < 1000) { - content += ` - ${line} - `; - yOffset += 20; - } - }); - - yOffset += 20; - } - } - - svg += content; - return yOffset; -}; - -/** - * 添加紫微斗数内容 - */ -const addZiweiContent = (svg, analysisData, yOffset) => { - let content = ''; - - // 基本信息 - if (analysisData.basic_info) { - content += ` - 📋 基本信息 - `; - yOffset += 40; - - if (analysisData.basic_info.ziwei_info) { - const ziwei = analysisData.basic_info.ziwei_info; - - if (ziwei.ming_gong) { - content += ` - 命宫: - ${ziwei.ming_gong} - `; - yOffset += 30; - } - - if (ziwei.wuxing_ju) { - content += ` - 五行局: - ${ziwei.wuxing_ju} - `; - yOffset += 30; - } - - if (ziwei.main_stars) { - const starsText = Array.isArray(ziwei.main_stars) ? ziwei.main_stars.join('、') : ziwei.main_stars; - content += ` - 主星: - ${starsText} - `; - yOffset += 40; - } - } - } - - // 星曜分析 - if (analysisData.star_analysis && yOffset < 1000) { - content += ` - ⭐ 星曜分析 - `; - yOffset += 40; - - if (analysisData.star_analysis.main_stars) { - content += ` - 主星分析 - `; - yOffset += 30; - - if (Array.isArray(analysisData.star_analysis.main_stars)) { - analysisData.star_analysis.main_stars.slice(0, 3).forEach(star => { - if (typeof star === 'object' && yOffset < 1000) { - content += ` - - ${star.name || star.star} - `; - - if (star.brightness) { - content += ` - 亮度:${star.brightness} - `; - } - - if (star.influence) { - const influenceText = star.influence.substring(0, 60) + (star.influence.length > 60 ? '...' : ''); - content += ` - 影响:${influenceText} - `; - } - - yOffset += 80; - } - }); - } - } - } - - svg += content; - return yOffset; -}; - -/** - * 添加易经占卜内容 - */ -const addYijingContent = (svg, analysisData, yOffset) => { - let content = ''; - - // 占卜问题 - if (analysisData.question_analysis) { - content += ` - ❓ 占卜问题 - `; - yOffset += 40; - - if (analysisData.question_analysis.original_question) { - content += ` - 问题: - `; - - const questionText = analysisData.question_analysis.original_question; - const questionLines = wrapText(questionText, 45); - - questionLines.forEach((line, index) => { - content += ` - ${line} - `; - yOffset += 20; - }); - - yOffset += 10; - } - - if (analysisData.question_analysis.question_type) { - content += ` - 问题类型: - ${analysisData.question_analysis.question_type} - `; - yOffset += 40; - } - } - - // 卦象信息 - if (analysisData.hexagram_info && yOffset < 1000) { - content += ` - 🔮 卦象信息 - `; - yOffset += 40; - - if (analysisData.hexagram_info.main_hexagram) { - const main = analysisData.hexagram_info.main_hexagram; - - content += ` - - 主卦 - - 卦名: - ${main.name || '未知'} - - 卦象: - ${main.symbol || ''} - `; - - if (main.meaning) { - const meaningText = main.meaning.substring(0, 50) + (main.meaning.length > 50 ? '...' : ''); - content += ` - 含义: - ${meaningText} - `; - } - - yOffset += 120; - } - } - - svg += content; - return yOffset; -}; - -/** - * 获取五行颜色 - */ -const getElementColor = (element) => { - const colors = { - '木': '#22c55e', - '火': '#ef4444', - '土': '#eab308', - '金': '#64748b', - '水': '#3b82f6' - }; - return colors[element] || '#666'; -}; - -/** - * 文本换行处理 - */ -const wrapText = (text, maxLength) => { - const lines = []; - let currentLine = ''; - - for (let i = 0; i < text.length; i++) { - currentLine += text[i]; - if (currentLine.length >= maxLength || text[i] === '\n') { - lines.push(currentLine.trim()); - currentLine = ''; - } - } - - if (currentLine.trim()) { - lines.push(currentLine.trim()); - } - - return lines; -}; - -/** - * 获取分析类型标签 - */ -const getAnalysisTypeLabel = (analysisType) => { - switch (analysisType) { - case 'bazi': return '八字命理'; - case 'ziwei': return '紫微斗数'; - case 'yijing': return '易经占卜'; - default: return '命理'; - } -}; - -/** - * 获取SVG样式 - */ -const getSVGStyles = () => { - return ` - .main-title { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 36px; - font-weight: bold; - } - - .subtitle { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 16px; - } - - .report-title { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 24px; - font-weight: bold; - } - - .info-text { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 14px; - } - - .section-title { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 20px; - font-weight: bold; - } - - .subsection-title { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 16px; - font-weight: bold; - } - - .info-label { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 14px; - font-weight: bold; - } - - .info-value { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 14px; - } - - .info-highlight { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 14px; - font-weight: bold; - } - - .table-header { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 12px; - font-weight: bold; - } - - .table-cell { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 12px; - } - - .element-label { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 12px; - font-weight: bold; - } - - .element-count { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 11px; - } - - .element-percent { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 10px; - } - - .analysis-text { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 12px; - } - - .star-name { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 14px; - font-weight: bold; - } - - .star-detail { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 11px; - } - - .hexagram-name { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 16px; - font-weight: bold; - } - - .hexagram-symbol { - font-family: monospace; - font-size: 14px; - font-weight: bold; - } - - .footer-text { - font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; - font-size: 10px; - } - `; -}; - -module.exports = { - generatePNG -}; \ No newline at end of file diff --git a/src/components/CompleteBaziAnalysis.tsx b/src/components/CompleteBaziAnalysis.tsx index 103f4b2..38eeeea 100644 --- a/src/components/CompleteBaziAnalysis.tsx +++ b/src/components/CompleteBaziAnalysis.tsx @@ -276,14 +276,15 @@ const CompleteBaziAnalysis: React.FC = ({ birthDate, return (
-
+
{/* 下载按钮 */} -
+
diff --git a/src/components/CompleteYijingAnalysis.tsx b/src/components/CompleteYijingAnalysis.tsx index ec28ae6..4b24276 100644 --- a/src/components/CompleteYijingAnalysis.tsx +++ b/src/components/CompleteYijingAnalysis.tsx @@ -264,14 +264,15 @@ const CompleteYijingAnalysis: React.FC = ({ return (
-
+
{/* 下载按钮 */} -
+
diff --git a/src/components/CompleteZiweiAnalysis.tsx b/src/components/CompleteZiweiAnalysis.tsx index 8e62bef..0cb0c68 100644 --- a/src/components/CompleteZiweiAnalysis.tsx +++ b/src/components/CompleteZiweiAnalysis.tsx @@ -579,14 +579,15 @@ const CompleteZiweiAnalysis: React.FC = ({ birthDate return (
-
+
{/* 下载按钮 */} -
+
diff --git a/src/components/ui/DownloadButton.tsx b/src/components/ui/DownloadButton.tsx index 4d31b50..8227272 100644 --- a/src/components/ui/DownloadButton.tsx +++ b/src/components/ui/DownloadButton.tsx @@ -1,10 +1,13 @@ import React, { useState } from 'react'; import { createPortal } from 'react-dom'; -import { Download, FileText, FileImage, File, Loader2, ChevronDown } from 'lucide-react'; +import { Download, FileText, FileImage, File, Loader2, ChevronDown, Printer, Camera } from 'lucide-react'; import { ChineseButton } from './ChineseButton'; import { cn } from '../../lib/utils'; +import html2canvas from 'html2canvas'; +import jsPDF from 'jspdf'; export type DownloadFormat = 'markdown' | 'pdf' | 'png'; +export type ExportMode = 'server' | 'frontend'; interface DownloadButtonProps { analysisData: any; @@ -13,6 +16,7 @@ interface DownloadButtonProps { onDownload?: (format: DownloadFormat) => Promise; className?: string; disabled?: boolean; + targetElementId?: string; // 用于前端导出的目标元素ID } const DownloadButton: React.FC = ({ @@ -21,40 +25,71 @@ const DownloadButton: React.FC = ({ userName, onDownload, className, - disabled = false + disabled = false, + targetElementId }) => { const [isDownloading, setIsDownloading] = useState(false); const [downloadingFormat, setDownloadingFormat] = useState(null); const [showDropdown, setShowDropdown] = useState(false); - const formatOptions = [ + const allFormatOptions = [ { format: 'markdown' as DownloadFormat, label: 'Markdown文档', icon: FileText, description: '结构化文本格式,便于编辑', color: 'text-blue-600', - bgColor: 'bg-blue-50 hover:bg-blue-100' + bgColor: 'bg-blue-50 hover:bg-blue-100', + mode: 'server' as ExportMode }, { format: 'pdf' as DownloadFormat, - label: 'PDF文档', + label: 'PDF文档(服务器生成)', icon: File, - description: '专业格式,便于打印和分享', + description: '服务器生成的PDF文档', color: 'text-red-600', - bgColor: 'bg-red-50 hover:bg-red-100' + bgColor: 'bg-red-50 hover:bg-red-100', + mode: 'server' as ExportMode }, + { + format: 'pdf' as DownloadFormat, + label: 'PDF文档(页面导出)', + icon: Printer, + description: '直接从页面生成PDF,分页格式', + color: 'text-purple-600', + bgColor: 'bg-purple-50 hover:bg-purple-100', + mode: 'frontend' as ExportMode + }, + { format: 'png' as DownloadFormat, - label: 'PNG图片', - icon: FileImage, - description: '高清图片格式,便于保存', - color: 'text-green-600', - bgColor: 'bg-green-50 hover:bg-green-100' + label: 'PNG长图(页面导出)', + icon: Camera, + description: '直接从页面生成PNG长图', + color: 'text-teal-600', + bgColor: 'bg-teal-50 hover:bg-teal-100', + mode: 'frontend' as ExportMode } ]; - const handleDownload = async (format: DownloadFormat) => { + // 根据是否有targetElementId来过滤选项 + const formatOptions = allFormatOptions.filter(option => { + // 如果是前端导出模式,需要有targetElementId才显示 + if (option.mode === 'frontend') { + return !!targetElementId; + } + // 服务器模式总是显示 + return true; + }); + + console.log('DownloadButton配置:', { + targetElementId, + totalOptions: allFormatOptions.length, + availableOptions: formatOptions.length, + frontendOptionsAvailable: formatOptions.filter(o => o.mode === 'frontend').length + }); + + const handleDownload = async (format: DownloadFormat, mode: ExportMode = 'server') => { if (disabled || isDownloading) return; try { @@ -62,21 +97,193 @@ const DownloadButton: React.FC = ({ setDownloadingFormat(format); setShowDropdown(false); - if (onDownload) { + if (mode === 'frontend') { + // 前端导出逻辑 + await frontendExport(format); + } else if (onDownload) { await onDownload(format); } else { - // 默认下载逻辑 + // 默认服务器下载逻辑 await defaultDownload(format); } } catch (error) { console.error('下载失败:', error); - // 这里可以添加错误提示 + // 显示错误提示 + if (typeof window !== 'undefined' && (window as any).toast) { + (window as any).toast.error(`下载失败: ${error instanceof Error ? error.message : '未知错误'}`); + } } finally { setIsDownloading(false); setDownloadingFormat(null); } }; + // 前端导出功能 + const frontendExport = async (format: DownloadFormat) => { + console.log('开始前端导出,格式:', format, '目标元素ID:', targetElementId); + + if (!targetElementId) { + const error = '未指定导出目标元素ID,无法使用前端导出功能'; + console.error(error); + throw new Error(error); + } + + const element = document.getElementById(targetElementId); + console.log('查找目标元素:', targetElementId, '找到元素:', element); + + if (!element) { + const error = `未找到ID为"${targetElementId}"的元素,请确认页面已完全加载`; + console.error(error); + throw new Error(error); + } + + console.log('目标元素尺寸:', { + width: element.offsetWidth, + height: element.offsetHeight, + scrollWidth: element.scrollWidth, + scrollHeight: element.scrollHeight + }); + + if (format === 'png') { + await exportToPNG(element); + } else if (format === 'pdf') { + await exportToPDF(element); + } + }; + + // 导出为PNG + const exportToPNG = async (element: HTMLElement): Promise => { + const canvas = await html2canvas(element, { + scale: 2, + useCORS: true, + allowTaint: true, + backgroundColor: '#ffffff', + scrollX: 0, + scrollY: 0, + logging: false, + onclone: (clonedDoc) => { + const elementsToHide = clonedDoc.querySelectorAll( + '.no-export, [data-no-export], .fixed, .sticky, .floating' + ); + elementsToHide.forEach(el => { + (el as HTMLElement).style.display = 'none'; + }); + } + }); + + const link = document.createElement('a'); + const fileName = getFileName('png', 'frontend'); + link.download = fileName; + link.href = canvas.toDataURL('image/png', 1.0); + link.click(); + + // 显示成功提示 + if (typeof window !== 'undefined' && (window as any).toast) { + (window as any).toast.success('PNG长图导出成功'); + } + }; + + // 导出为PDF + const exportToPDF = async (element: HTMLElement): Promise => { + const canvas = await html2canvas(element, { + scale: 1.5, + useCORS: true, + allowTaint: true, + backgroundColor: '#ffffff', + scrollX: 0, + scrollY: 0, + logging: false, + onclone: (clonedDoc) => { + const elementsToHide = clonedDoc.querySelectorAll( + '.no-export, [data-no-export], .fixed, .sticky, .floating' + ); + elementsToHide.forEach(el => { + (el as HTMLElement).style.display = 'none'; + }); + } + }); + + const imgData = canvas.toDataURL('image/png'); + const pdf = new jsPDF({ + orientation: 'portrait', + unit: 'mm', + format: 'a4' + }); + + const pdfWidth = 210; + const pdfHeight = 297; + const margin = 10; + const contentWidth = pdfWidth - 2 * margin; + const contentHeight = pdfHeight - 2 * margin; + + const imgWidth = canvas.width; + const imgHeight = canvas.height; + + // 优先填满宽度,让内容宽度占满页面 + const widthRatio = contentWidth / (imgWidth * 0.264583); + const scaledWidth = contentWidth; // 直接使用全部可用宽度 + const scaledHeight = imgHeight * 0.264583 * widthRatio; + + const pageHeight = contentHeight; + const totalPages = Math.ceil(scaledHeight / pageHeight); + + for (let i = 0; i < totalPages; i++) { + if (i > 0) { + pdf.addPage(); + } + + const yOffset = -i * pageHeight; + pdf.addImage( + imgData, + 'PNG', + margin, + margin + yOffset, + scaledWidth, + scaledHeight + ); + } + + const fileName = getFileName('pdf', 'frontend'); + pdf.save(fileName); + + // 显示成功提示 + if (typeof window !== 'undefined' && (window as any).toast) { + (window as any).toast.success('PDF文档导出成功'); + } + }; + + // 生成文件名 + const getFileName = (format: string, mode: ExportMode = 'server') => { + const typeLabel = getAnalysisTypeLabel(); + const userPart = userName || 'user'; + const exportMode = mode === 'frontend' ? '页面导出' : '服务器导出'; + + // 获取分析报告生成时间 + let analysisDate; + if (analysisData?.created_at) { + analysisDate = new Date(analysisData.created_at); + } else if (analysisData?.basic_info?.created_at) { + analysisDate = new Date(analysisData.basic_info.created_at); + } else if (analysisData?.metadata?.analysis_time) { + analysisDate = new Date(analysisData.metadata.analysis_time); + } else { + // 如果没有分析时间,使用当前时间作为备用 + analysisDate = new Date(); + } + + const year = analysisDate.getFullYear(); + const month = String(analysisDate.getMonth() + 1).padStart(2, '0'); + const day = String(analysisDate.getDate()).padStart(2, '0'); + const hour = String(analysisDate.getHours()).padStart(2, '0'); + const minute = String(analysisDate.getMinutes()).padStart(2, '0'); + const second = String(analysisDate.getSeconds()).padStart(2, '0'); + + const dateStr = `${year}${month}${day}`; + const timeStr = `${hour}${minute}${second}`; + + return `${typeLabel}_${userPart}_${exportMode}_${dateStr}_${timeStr}.${format}`; + }; + const defaultDownload = async (format: DownloadFormat) => { try { // 获取认证token @@ -131,9 +338,10 @@ const DownloadButton: React.FC = ({ const minute = String(analysisDate.getMinutes()).padStart(2, '0'); const second = String(analysisDate.getSeconds()).padStart(2, '0'); - const dateStr = `${year}-${month}-${day}`; + const dateStr = `${year}${month}${day}`; const timeStr = `${hour}${minute}${second}`; - let filename = `${getAnalysisTypeLabel()}_${userName || 'user'}_${dateStr}_${timeStr}.${format === 'markdown' ? 'md' : format}`; + const exportMode = '服务器导出'; + let filename = `${getAnalysisTypeLabel()}_${userName || 'user'}_${exportMode}_${dateStr}_${timeStr}.${format === 'markdown' ? 'md' : format}`; if (contentDisposition) { const filenameMatch = contentDisposition.match(/filename[^;=\n]*=(['"]?)([^'"\n]*?)\1/); @@ -189,7 +397,7 @@ const DownloadButton: React.FC = ({ case 'markdown': return 'Markdown'; case 'pdf': return 'PDF'; case 'png': return 'PNG'; - default: return format.toUpperCase(); + default: return ''; } }; @@ -241,8 +449,8 @@ const DownloadButton: React.FC = ({ return (