@somecat/ai-assist-sdk 1.1.16 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assist-sdk.css +1 -1
- package/dist/chunks/{index-DwhpwWON.mjs → index-CWRmx9Cv.mjs} +85 -62
- package/dist/chunks/{index-CgnkZbtP.mjs → index-DBik4Gma.mjs} +2 -2
- package/dist/core/types/index.d.ts +3 -0
- package/dist/core/utils/index.d.ts +1 -0
- package/dist/core/utils/theme.d.ts +17 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +27 -24
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.mjs +6191 -6182
- package/dist/vue/index.d.ts +1 -1
- package/dist/vue/index.mjs +729 -725
- package/package.json +113 -113
package/dist/ai-assist-sdk.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#ai-assist-root .container{margin-top:14px;display:flex;flex-direction:column;color:#333;height:calc(100vh - 138px)}#ai-assist-root .chat-box{flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:20px;padding:0 16px 12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#ai-assist-root .message{border-radius:0 10px 10px;position:relative;word-break:break-word}#ai-assist-root .message.ai-message{align-self:flex-start;width:100%}#ai-assist-root .message.ai-message .message-content{padding:12px 16px;border-radius:0 10px 10px;line-height:26px;font-size:16px;background:#fff;box-shadow:0 4px 12px #0000000d}#ai-assist-root .message.ai-message .message-content .scale-animation-container{display:flex;align-items:center;gap:14px;padding:9px 0}#ai-assist-root .message.ai-message .message-content .scale-animation-container .scale-dot{width:8px;height:8px;background:#5ba0a9;border-radius:100%;animation:ai-scaleWave 1.6s infinite ease-in-out}#ai-assist-root .message.ai-message .message-content .scale-animation-container .scale-dot:nth-child(1){animation-delay:0s}#ai-assist-root .message.ai-message .message-content .scale-animation-container .scale-dot:nth-child(2){animation-delay:.2s}#ai-assist-root .message.ai-message .message-content .scale-animation-container .scale-dot:nth-child(3){animation-delay:.4s}#ai-assist-root .message.ai-message .message-content .scale-animation-container .scale-dot:nth-child(4){animation-delay:.6s}#ai-assist-root .message.ai-message .status-indicator{margin-top:8px;font-size:12px;color:#666;padding-top:4px;display:flex;align-items:center;gap:8px;padding-left:16px;font-size:14px}#ai-assist-root .message.ai-message .status-indicator span{cursor:pointer}#ai-assist-root .message.ai-message .message-error{margin-top:8px;padding:8px 14px;background:#fff2f0;border:1px solid #ffccc7;border-radius:6px;font-size:13px;color:#ff4d4f;display:flex;align-items:flex-start;gap:8px;line-height:1.5}#ai-assist-root .message.ai-message .message-error__icon{flex-shrink:0;font-size:14px}#ai-assist-root .message.ai-message .agent-thought{display:inline-flex;align-items:center;gap:5px;padding:0;font-size:13px;line-height:1.4;font-weight:500;color:#4b5563;transition:all .3s cubic-bezier(.4,0,.2,1)}#ai-assist-root .message.ai-message .agent-thought__icon{flex-shrink:0;opacity:.7}#ai-assist-root .message.ai-message .agent-thought__spinner{display:inline-flex;align-items:center;justify-content:center;width:auto;height:14px;flex-shrink:0}#ai-assist-root .message.ai-message .agent-thought__text{font-weight:500}#ai-assist-root .message.ai-message .agent-thought__duration{font-size:11px;color:#9ca3af;margin-left:2px;font-variant-numeric:tabular-nums;font-weight:400}#ai-assist-root .message.ai-message .agent-thought:not(.agent-thought--done) .agent-thought__text{animation:agent-text-shimmer 2s linear infinite}#ai-assist-root .message.ai-message .agent-thought--done{color:#4b5563}@keyframes agent-text-shimmer{0%{background-position:0% 0%}to{background-position:200% 0%}}#ai-assist-root .message.ai-message .message-cost{margin-top:8px;padding-left:16px;font-size:12px;color:#bbb;line-height:1.5}#ai-assist-root .message.ai-message .message-toolbar{display:flex;gap:8px;margin-top:4px;color:#999;font-size:14px;cursor:pointer;opacity:0;transition:opacity .2s ease}#ai-assist-root .message.ai-message .message-toolbar .message-toolbar__check{color:#52c41a;cursor:default}#ai-assist-root .message.ai-message .message-toolbar>div:hover{color:#1677ff}#ai-assist-root .message.ai-message .message-toolbar>div:hover .message-toolbar__check{color:#52c41a}#ai-assist-root .message.ai-message:hover .message-toolbar{opacity:1}#ai-assist-root .message.ai-message.greet-message{background:#fff;width:100%}#ai-assist-root .message.ai-message.recommend-message{width:100%;background:#fff}#ai-assist-root .message.user-message{background:#d7effe;align-self:flex-end;padding:12px 16px;line-height:26px;font-size:16px;box-shadow:0 4px 12px #0000000d;border-radius:10px 0 10px 10px}#ai-assist-root .ai-greet{padding:4px 12px}#ai-assist-root .ai-greet h1{font-weight:600;font-size:16px;color:#333;line-height:22px;text-align:left;margin:10px 0}#ai-assist-root .ai-greet p{font-weight:400;font-size:14px;color:#666;line-height:20px;text-align:left}#ai-assist-root .ai-recommend{padding:16px}#ai-assist-root .ai-recommend .recommend-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}#ai-assist-root .ai-recommend .recommend-header span{font-weight:600;font-size:16px;color:#333;line-height:22px}#ai-assist-root .ai-recommend .recommend-header .refresh-btn{color:#5ba0a9;cursor:pointer;display:flex;align-items:center}#ai-assist-root .ai-recommend .recommend-header .refresh-btn img{width:16px;height:16px;margin-right:6px}#ai-assist-root .ai-recommend .recommend-header .refresh-btn span{color:#5ba0a9}#ai-assist-root .ai-recommend ul{list-style:none;padding:0;margin:0}#ai-assist-root .ai-recommend ul li{padding:8px 12px;margin-bottom:8px;background:#f9f9f9;border-radius:8px;line-height:22px;cursor:pointer;transition:all .2s}#ai-assist-root .ai-recommend ul li:hover{background:#5ba0a966;transform:translate(8px)}#ai-assist-root .input-container{width:calc(100% - 32px);height:48px;display:flex;align-items:center;background:#fff;box-shadow:0 -1px 6px 1px #0000001a;border-radius:12px;z-index:1;position:relative;margin:8px 16px 0}#ai-assist-root .input-container input{flex:1;height:32px;border-radius:16px;outline:none;background:#fff;box-shadow:0 2px 8px #00000005;padding:0 16px;border:none}#ai-assist-root .input-container img{width:32px;height:32px;cursor:pointer}#ai-assist-root .input-container .op-icon{width:24px;height:24px;cursor:pointer}#ai-assist-root .input-container .stop-icon{color:#999}#ai-assist-root .input-container .refresh,#ai-assist-root .input-container .stop,#ai-assist-root .input-container .send{margin:0 19px}#ai-assist-root .input-container .send.disabled{opacity:.4;pointer-events:none}#ai-assist-root .input-container .moveTB{position:absolute;left:50%;top:-40px;transform:translate(-50%);cursor:pointer;width:32px;height:32px;background:#fff;box-shadow:0 4px 12px #0000000d;border:1px solid #e8e8e8;border-radius:100%;display:flex;justify-content:center;align-items:center}#ai-assist-root .input-container .moveTB .op-icon{width:18px;height:18px}#ai-assist-root .ai-mistake-tip{display:flex;justify-content:center;margin:8px 0;font-size:12px;line-height:12px;color:#b3b3b3}@keyframes ai-scaleWave{0%,to{opacity:.6}50%{opacity:1}}#ai-assist-root .tooltip-enhanced{position:relative}#ai-assist-root .tooltip-enhanced:after{opacity:0;transition:opacity .2s ease,transform .2s cubic-bezier(.68,-.55,.27,1.55)}#ai-assist-root .tooltip-enhanced:hover:after{content:attr(data-tooltip);position:absolute;background:#333;color:#fff;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);opacity:1;box-shadow:0 2px 8px #0000001a;z-index:999}#ai-assist-root .info{padding:12px 24px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#ai-assist-root .info-item{padding:24px 0;background:#fff;box-shadow:0 2px 8px #00000005;border-radius:10px;box-sizing:border-box;margin-bottom:24px}#ai-assist-root .info .heading{display:flex;align-items:center;padding-bottom:12px}#ai-assist-root .info .heading-column{width:5px;height:22px;background:#0094da;border-radius:0 4px 4px 0;margin-right:24px}#ai-assist-root .info .heading-title{font-weight:500;font-size:18px;color:#333}#ai-assist-root .info .basic-content{display:flex;justify-content:space-between;padding:12px 0;margin:0 24px;border-bottom:1px solid #f0f0f0}#ai-assist-root .info .basic-content-text{font-weight:500;font-size:16px;color:#666}#ai-assist-root .info .basic-content-key{min-width:56px}#ai-assist-root .info .basic-content:last-of-type{border-bottom:none}#ai-assist-root .info .permission-content{display:flex;flex-wrap:wrap;padding:12px 0;margin:0 24px;border-bottom:1px solid #f0f0f0}#ai-assist-root .info .permission-content-text{font-weight:500;font-size:16px;color:#666;margin:0 42px 0 0}#ai-assist-root .info .permission-content:last-of-type{border-bottom:none}@media(max-width:768px){#ai-assist-root .container{padding:8px;height:calc(100vh - 120px);height:calc(100dvh - 120px)}#ai-assist-root .chat-box{gap:14px;padding:0 12px 8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#ai-assist-root .message.ai-message .message-content{padding:10px 14px;font-size:15px;line-height:24px}#ai-assist-root .message.ai-message .status-indicator{font-size:13px;padding-left:14px}#ai-assist-root .message.ai-message .message-toolbar{font-size:13px;gap:6px}#ai-assist-root .message.ai-message.greet-message,#ai-assist-root .message.ai-message.recommend-message{width:100%}#ai-assist-root .message.user-message{padding:10px 14px;font-size:15px;line-height:24px;max-width:85%}#ai-assist-root .ai-greet{padding:4px 8px}#ai-assist-root .ai-greet h1{font-size:15px;margin:8px 0}#ai-assist-root .ai-greet p{font-size:13px;line-height:18px}#ai-assist-root .ai-recommend{padding:12px}#ai-assist-root .ai-recommend .recommend-header{margin-bottom:12px}#ai-assist-root .ai-recommend .recommend-header span{font-size:15px}#ai-assist-root .ai-recommend .recommend-header .refresh-btn img{width:14px;height:14px;margin-right:4px}#ai-assist-root .ai-recommend ul li{padding:8px 10px;margin-bottom:6px;font-size:14px;line-height:20px}#ai-assist-root .input-container{width:calc(100% - 16px);height:52px;margin:6px 8px 0;margin-bottom:env(safe-area-inset-bottom,0px)}#ai-assist-root .input-container input{height:36px;font-size:16px}#ai-assist-root .input-container .op-icon{width:26px;height:26px}#ai-assist-root .input-container .refresh,#ai-assist-root .input-container .stop,#ai-assist-root .input-container .send{margin:0 12px}#ai-assist-root .input-container .moveTB{top:-36px;width:28px;height:28px}#ai-assist-root .input-container .moveTB .op-icon{width:16px;height:16px}#ai-assist-root .ai-mistake-tip{font-size:11px}#ai-assist-root .info{padding:8px 12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#ai-assist-root .info-item{padding:16px 0;margin-bottom:16px}#ai-assist-root .info .heading{padding-bottom:8px}#ai-assist-root .info .heading-column{margin-right:16px}#ai-assist-root .info .heading-title{font-size:16px}#ai-assist-root .info .basic-content{margin:0 16px;padding:10px 0}#ai-assist-root .info .basic-content-text{font-size:14px}#ai-assist-root .info .permission-content{margin:0 16px;padding:10px 0}#ai-assist-root .info .permission-content-text{font-size:14px;margin-right:24px}}#ai-assist-root .ba-markdown ::-webkit-scrollbar{width:6px;height:6px}#ai-assist-root .ba-markdown ::-webkit-scrollbar-corner,#ai-assist-root .ba-markdown ::-webkit-scrollbar-track{background-color:#f5f5f5;border-radius:2px}#ai-assist-root .ba-markdown ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#333}#ai-assist-root .ba-markdown ::-webkit-scrollbar-button:vertical{display:none}#ai-assist-root .ba-markdown h1,#ai-assist-root .ba-markdown h2,#ai-assist-root .ba-markdown h3,#ai-assist-root .ba-markdown h4,#ai-assist-root .ba-markdown h5,#ai-assist-root .ba-markdown h6{position:relative;word-break:break-all;margin:1.4em 0 .8em;font-weight:700}#ai-assist-root .ba-markdown h1{font-size:18px;text-transform:uppercase;color:#1890ff}#ai-assist-root .ba-markdown h1 a,#ai-assist-root .ba-markdown h2 a,#ai-assist-root .ba-markdown h3 a,#ai-assist-root .ba-markdown h4 a,#ai-assist-root .ba-markdown h5 a,#ai-assist-root .ba-markdown h6 a,#ai-assist-root .ba-markdown h1 a:hover,#ai-assist-root .ba-markdown h2 a:hover,#ai-assist-root .ba-markdown h3 a:hover,#ai-assist-root .ba-markdown h4 a:hover,#ai-assist-root .ba-markdown h5 a:hover,#ai-assist-root .ba-markdown h6 a:hover{color:inherit}#ai-assist-root .ba-markdown ol>li{list-style:decimal}#ai-assist-root .ba-markdown ul>li{list-style:disc}#ai-assist-root .ba-markdown ol .li-task,#ai-assist-root .ba-markdown ul .li-task{list-style-type:none}#ai-assist-root .ba-markdown ol .li-task input,#ai-assist-root .ba-markdown ul .li-task input{margin-left:-1.5em;margin-right:.1em}#ai-assist-root .ba-markdown a{text-decoration:none;color:#2d8cf0;transition:color .3s}#ai-assist-root .ba-markdown a:hover{color:#73d13d}#ai-assist-root .ba-markdown pre,#ai-assist-root .ba-markdown code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}#ai-assist-root .ba-markdown pre{margin:20px 0}#ai-assist-root .ba-markdown pre code{display:block;line-height:1;overflow:auto}#ai-assist-root .ba-markdown pre code .code-block{display:inline-block;width:100%;overflow:auto;vertical-align:bottom}#ai-assist-root .ba-markdown hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}#ai-assist-root .ba-markdown div[inline]>.figure{padding-right:.5em}#ai-assist-root .ba-markdown div[inline]>.figure img{padding:0;border:none}#ai-assist-root .ba-markdown .figure{margin:0 0 1em;display:inline-flex;flex-direction:column;text-align:center}#ai-assist-root .ba-markdown .figure .figcaption{color:#888;font-size:.875em;margin-top:5px}#ai-assist-root .ba-markdown img{margin:0 auto;width:800px;max-width:100%;box-sizing:border-box;padding:5px;border:1px solid #e6e6e6;border-radius:3px}#ai-assist-root .ba-markdown p{line-height:1.6;margin:0}#ai-assist-root .ba-markdown p:empty{display:none}#ai-assist-root .ba-markdown code{color:#5ba0a9;font-weight:600;display:inline-block;padding:0 4px;border-radius:2px;line-height:22px}#ai-assist-root .ba-markdown blockquote{margin:20px 0;padding:.5em 1.2em;line-height:2em;background-color:#ececec;border-left:5px solid #35b378;display:block}#ai-assist-root .ba-markdown blockquote p{padding:0}#ai-assist-root .ba-markdown pre{position:relative;border-radius:5px;box-shadow:#0000004d 0 2px 2px}#ai-assist-root .ba-markdown pre code{position:relative;padding:1em;background-color:#282c34;color:#a9b7c6;border-radius:0 0 5px 5px}#ai-assist-root .ba-markdown pre code>*{line-height:1.6}#ai-assist-root .ba-markdown pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer;background:none;border:none;padding:2px 8px;border-radius:3px;transition:all .2s}#ai-assist-root .ba-markdown pre .copy-button:hover{color:#fff;background:#ffffff26}#ai-assist-root .ba-markdown pre .code-lang{color:#999;position:absolute;font-size:12px;top:9px;left:14px;font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;text-transform:uppercase;letter-spacing:.5px;pointer-events:none}#ai-assist-root .ba-markdown pre:before{content:"";display:block;height:32px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:0;border-top-left-radius:5px;border-top-right-radius:5px;background-position:10px 10px}#ai-assist-root .ba-markdown table{overflow:auto;border-spacing:0;border-collapse:collapse;margin-bottom:1em;width:100%}#ai-assist-root .ba-markdown table tr th,#ai-assist-root .ba-markdown table tr td{word-wrap:break-word;padding:8px 14px;border:1px solid #e6e6e6}#ai-assist-root .ba-markdown table thead{background-color:#eee}#ai-assist-root .ba-markdown table tbody tr:nth-child(2n){background-color:#fafafa}#ai-assist-root .ba-markdown ol,#ai-assist-root .ba-markdown ul{margin:.6em 0;padding-left:1.6em}#ai-assist-root .ba-markdown ol li,#ai-assist-root .ba-markdown ul li{line-height:1.6;margin:.5em 0}#ai-assist-root .ba-markdown .streaming-cursor{display:inline-block;width:2px;height:1.1em;background-color:#5ba0a9;margin-left:2px;vertical-align:text-bottom;border-radius:1px;animation:streaming-blink 1s step-end infinite}@keyframes streaming-blink{0%,50%{opacity:1}51%,to{opacity:0}}#ai-assist-root .ba-markdown .thinking-block{overflow:hidden;position:relative}#ai-assist-root .ba-markdown .thinking-block--active{border-color:#e0e7ff;border-radius:12px}#ai-assist-root .ba-markdown .thinking-block--active:before{opacity:1}#ai-assist-root .ba-markdown .thinking-block--active .thinking-block__title{background:linear-gradient(90deg,#6366f1,#a855f7,#6366f1);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:thinking-text-shimmer 2s linear infinite}#ai-assist-root .ba-markdown .thinking-block--active .thinking-block__indicator{background:linear-gradient(135deg,#6366f1,#a855f7);animation:thinking-dot-pulse 1.4s ease-in-out infinite}#ai-assist-root .ba-markdown .thinking-block--expanded{border-color:#e5e7eb;box-shadow:none;animation:none}#ai-assist-root .ba-markdown .thinking-block--expanded:before{opacity:.35}#ai-assist-root .ba-markdown .thinking-block--expanded .thinking-block__indicator{background:#9ca3af}#ai-assist-root .ba-markdown .thinking-block--active.thinking-block--expanded{animation:none;box-shadow:none}#ai-assist-root .ba-markdown .thinking-block:hover .thinking-block__arrow{opacity:1}#ai-assist-root .ba-markdown .thinking-block__header{display:flex;align-items:center;gap:8px;padding:0 12px 0 2px;cursor:pointer;-webkit-user-select:none;user-select:none}#ai-assist-root .ba-markdown .thinking-block__indicator{flex-shrink:0;width:7px;height:7px;border-radius:50%;background:#9ca3af;transition:background .3s}#ai-assist-root .ba-markdown .thinking-block__title{font-size:13px;font-weight:500;color:#4b5563;letter-spacing:.1px}#ai-assist-root .ba-markdown .thinking-block__duration{font-size:12px;color:#9ca3af;margin-left:auto;font-variant-numeric:tabular-nums;font-weight:400}#ai-assist-root .ba-markdown .thinking-block__arrow{flex-shrink:0;color:#9ca3af;transition:transform .25s cubic-bezier(.4,0,.2,1),opacity .2s;opacity:0}#ai-assist-root .ba-markdown .thinking-block__arrow--down{transform:rotate(180deg)}#ai-assist-root .ba-markdown .thinking-block__content{padding:10px 14px 12px;background:#fafafa;font-size:13px;line-height:1.75;color:#6b7280;white-space:pre-wrap;word-break:break-word;border-top:1px dashed #f0f0f0;margin-top:2px;border-radius:0 8px 8px 0;overflow:hidden;position:relative}#ai-assist-root .ba-markdown .thinking-block__content:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#818cf8,#c084fc);opacity:.5;transition:opacity .3s}#ai-assist-root .ba-markdown .thinking-expand-enter-active,#ai-assist-root .ba-markdown .thinking-expand-leave-active{transition:all .28s cubic-bezier(.4,0,.2,1);overflow:hidden}#ai-assist-root .ba-markdown .thinking-expand-enter-from,#ai-assist-root .ba-markdown .thinking-expand-leave-to{opacity:0;max-height:0;padding-top:0;padding-bottom:0}#ai-assist-root .ba-markdown .thinking-expand-enter-to,#ai-assist-root .ba-markdown .thinking-expand-leave-from{opacity:1;max-height:1000px}@keyframes thinking-breath{0%,to{box-shadow:0 0 #818cf800}50%{box-shadow:0 0 0 4px #818cf814}}@keyframes thinking-text-shimmer{0%{background-position:0% 0%}to{background-position:200% 0%}}@keyframes thinking-dot-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.3);opacity:.7}}@media(max-width:768px){#ai-assist-root .ba-markdown h1{font-size:16px}#ai-assist-root .ba-markdown h2{font-size:15px}#ai-assist-root .ba-markdown h3{font-size:14px}#ai-assist-root .ba-markdown h4,#ai-assist-root .ba-markdown h5,#ai-assist-root .ba-markdown h6{font-size:13px}#ai-assist-root .ba-markdown p{line-height:1.55}#ai-assist-root .ba-markdown pre,#ai-assist-root .ba-markdown code{font-size:13px}#ai-assist-root .ba-markdown pre{margin:12px 0}#ai-assist-root .ba-markdown pre code{padding:.75em}#ai-assist-root .ba-markdown pre .copy-button{font-size:11px;top:7px;right:8px;padding:2px 6px}#ai-assist-root .ba-markdown pre .code-lang{font-size:11px;top:7px;left:10px}#ai-assist-root .ba-markdown pre:before{height:28px}#ai-assist-root .ba-markdown code{padding:0 3px;line-height:20px}#ai-assist-root .ba-markdown table tr th,#ai-assist-root .ba-markdown table tr td{padding:6px 8px;font-size:13px}#ai-assist-root .ba-markdown img{width:100%}#ai-assist-root .ba-markdown blockquote{margin:12px 0;padding:.4em .8em;line-height:1.6em}#ai-assist-root .ba-markdown ol,#ai-assist-root .ba-markdown ul{padding-left:1.4em;margin:.4em 0}#ai-assist-root .ba-markdown ol li,#ai-assist-root .ba-markdown ul li{line-height:1.5;margin:.3em 0}#ai-assist-root .ba-markdown .thinking-block__content{padding:8px 10px 10px;font-size:12px;line-height:1.6}#ai-assist-root .ba-markdown .thinking-block__title{font-size:12px}#ai-assist-root .ba-markdown .thinking-block__duration{font-size:11px}}#ai-assist-root{--ai-font-family: "-apple-system-body", "ui-sans-serif", "-apple-system", "system-ui", "Segoe UI", "Helvetica", "Apple Color Emoji", "Arial", "sans-serif", "Segoe UI Emoji", "Segoe UI Symbol";font-family:var(--ai-font-family)}#ai-assist-root .character{width:78px;height:78px;position:fixed;cursor:grab;z-index:100;opacity:.6;-webkit-user-select:none;user-select:none;touch-action:none;overflow:visible;clip:auto;border-radius:50%}#ai-assist-root .character.dragging{cursor:grabbing;opacity:1;transform:translate(calc(var(--direction) * 6px)) scale(1.05);z-index:101;transition:none!important}#ai-assist-root .character.recycling{cursor:default}#ai-assist-root .character img{width:100%;height:100%;pointer-events:none}#ai-assist-root .character:hover:not(.dragging):not(.recycling){opacity:1!important;transform:translate(calc(var(--direction) * 6px));transition:all .3s ease!important}#ai-assist-root .character.hover-preview{opacity:1!important;transform:translate(calc(var(--direction) * 6px));transition:all .3s ease!important}#ai-assist-root .back{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#ffffffe6;box-shadow:0 2px 8px #0000001a;cursor:pointer;transition:all .3s ease}#ai-assist-root .back:hover{background:#fff;box-shadow:0 4px 12px #00000026}#ai-assist-root .back.left{margin-left:24px;margin-right:auto}#ai-assist-root .back.right{margin-left:auto;margin-right:24px}#ai-assist-root .ai-panel{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#ai-assist-root .ai-panel.maxWrap{position:fixed;bottom:24px;left:50%;transform:translate(-50%);width:80vw;height:calc(100vh - 78px);background:#f4f7f7;box-shadow:0 10px 30px #a9a5a29e;border-radius:14px;z-index:9999}#ai-assist-root .ai-panel.minWrap{position:fixed;bottom:24px;width:490px;height:calc(100vh - 78px);background:#f4f7f7;box-shadow:0 10px 30px #a9a5a29e;border-radius:14px;z-index:9999}#ai-assist-root .ai-panel.minWrap.panel-left{left:24px}#ai-assist-root .ai-panel.minWrap.panel-right{right:24px}#ai-assist-root .ai-panel.morphing{bottom:auto!important;right:auto!important;transform:none!important;transition:width .4s cubic-bezier(.4,0,.2,1),height .4s cubic-bezier(.4,0,.2,1),left .4s cubic-bezier(.4,0,.2,1),top .4s cubic-bezier(.4,0,.2,1),border-radius .4s cubic-bezier(.4,0,.2,1)!important}#ai-assist-root .ai-panel.morphing>*{opacity:0}#ai-assist-root .ai-panel.morphing.expanding>*{animation:ai-fadeIn .2s ease .2s both}#ai-assist-root .ai-panel.morphing.collapsing>*{animation:ai-fadeOut .2s ease both}#ai-assist-root .ai-panel.morph-instant{transition:none!important}#ai-assist-root .setTitle{position:absolute;width:100%;height:100%;background:#0003;top:0;left:0;border-radius:14px;display:none;transition:all .5s cubic-bezier(.4,0,.2,1)}#ai-assist-root .setTitle .content{width:100%;height:100%;position:relative}#ai-assist-root .setTitle .content .main{width:360px;height:252px;background:#fff;box-shadow:0 2px 8px #0000001a;border-radius:14px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}#ai-assist-root .setTitle .content .main .title{font-weight:500;font-size:18px;color:#333;line-height:18px;text-align:center;margin:16px 0 22px}#ai-assist-root .setTitle .content .main textarea{border:none;outline:none;resize:none;font-family:inherit;width:304px;height:116px;background:#f5f8f8;border-radius:6px;margin-left:16px;padding:12px}#ai-assist-root .setTitle .content .main .btn{display:flex;justify-content:flex-end;margin-top:12px}#ai-assist-root .setTitle .content .main .btn span{width:60px;height:28px;margin-right:16px;border-radius:4px;border:1px solid #dbe8e5;font-size:14px;color:#90b6ba;line-height:28px;text-align:center;cursor:pointer}#ai-assist-root .setTitle .content .main .btn span:last-child{background:#74acb2;border-radius:4px;color:#fff}#ai-assist-root .header{position:relative;width:100%;height:48px;background:linear-gradient(180deg,#a3d8fa,#f9fbfc);border-radius:14px 14px 0 0;display:flex;align-items:center;padding:10px 0;box-sizing:border-box}#ai-assist-root .header>p:first-child{position:absolute;bottom:-15px;margin:revert;display:flex;align-items:center}#ai-assist-root .header>p:first-child img{margin-left:24px;width:70px;height:74px;cursor:pointer}#ai-assist-root .header-title{min-width:0;padding-left:12px;overflow:hidden}#ai-assist-root .header-title span{display:block;font-weight:500;font-size:20px;color:#3d3d3d;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ai-assist-root .header-title img{width:16px;height:16px;cursor:pointer;margin-left:6px}#ai-assist-root .header>p:first-child~.header-title{padding-left:0;margin-left:100px}#ai-assist-root .header p:last-child{flex:1;display:flex;justify-content:flex-end;align-items:center}#ai-assist-root .header p:last-child svg{width:24px;height:24px;color:#616161;cursor:pointer;margin-right:6px;flex-shrink:0}#ai-assist-root .header p:last-child svg:hover{color:#000}#ai-assist-root .header p:last-child svg:last-child{margin-right:12px}#ai-assist-root .header p:last-child .mute{width:22px;height:22px}#ai-assist-root .header p:last-child .mute.active{color:#74acb2}#ai-assist-root .ai-history{display:flex;flex-direction:column;height:100%;overflow:hidden;padding-top:12px}#ai-assist-root .ai-history .content{flex:1;margin:0 12px;overflow:hidden;overflow-y:auto}#ai-assist-root .ai-history .ai-add{display:flex;align-items:center;justify-content:center;height:42px;margin:14px 12px;background:#fff;border-radius:21px;cursor:pointer;transition:background .2s ease}#ai-assist-root .ai-history .ai-add:hover{background:#f0f5f5}#ai-assist-root .ai-history .ai-add img{width:16px;height:16px;margin-right:6px}#ai-assist-root .ai-history .ai-add span{font-weight:500;font-size:14px;line-height:20px;color:#333}#ai-assist-root .ai-history .ai-history-group{margin-bottom:8px}#ai-assist-root .ai-history .ai-history-group-title{font-weight:500;font-size:13px;color:#999;line-height:18px;padding:12px 4px 6px;-webkit-user-select:none;user-select:none}#ai-assist-root .ai-history .ai-history-item{display:flex;align-items:center;justify-content:space-between;background-color:transparent;padding:0 12px;border-radius:12px;height:42px;box-sizing:border-box;cursor:pointer;transition:all .15s linear;animation:ai-history-item-in .35s cubic-bezier(.4,0,.2,1) both;animation-delay:calc(var(--i, 0) * .06s)}#ai-assist-root .ai-history .ai-history-item:hover{background-color:#f1f3f5}#ai-assist-root .ai-history .ai-history-item:hover .ai-history-item-delete{display:block}#ai-assist-root .ai-history .ai-history-item:first-child{margin-top:0}#ai-assist-root .ai-history .ai-history-item-title{flex:1;min-width:0;font-weight:500;font-size:15px;color:#0f1115;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ai-assist-root .ai-history .ai-history-item-delete{display:none;flex-shrink:0;margin-left:12px;font-weight:400;font-size:14px;color:#999;line-height:16px;cursor:pointer;transition:color .2s ease}#ai-assist-root .ai-history .ai-history-item-delete:hover{color:#f56c6c}#ai-assist-root .ai-history .ai-history-loading{display:flex;align-items:center;justify-content:center;padding:60px 0}#ai-assist-root .ai-history .ai-history-spinner{width:28px;height:28px;border:3px solid #e0e8e8;border-top-color:#74acb2;border-radius:50%;animation:ai-spin .7s linear infinite}#ai-assist-root .ai-history .ai-history-empty{text-align:center;padding:60px 0;font-size:14px;color:#999}@keyframes ai-spin{to{transform:rotate(360deg)}}@keyframes ai-history-item-in{0%{opacity:0;transform:translate(30px)}to{opacity:1;transform:translate(0)}}#ai-assist-root .ai-history-drawer{position:absolute;top:48px;left:0;right:0;bottom:0;z-index:10;overflow:hidden;border-radius:0 0 14px 14px}#ai-assist-root .ai-history-drawer .ai-history-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000026;animation:ai-fadeIn .3s ease}#ai-assist-root .ai-history-drawer .ai-history-drawer-panel{position:absolute;top:0;right:0;width:100%;height:100%;max-width:500px;background:#f4f7f7;display:flex;flex-direction:column;animation:ai-drawer-slideIn .3s cubic-bezier(.4,0,.2,1)}#ai-assist-root .ai-history-drawer .ai-history-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:44px;flex-shrink:0;border-bottom:1px solid #e8eded}#ai-assist-root .ai-history-drawer .ai-history-drawer-header span{font-weight:500;font-size:16px;color:#333}#ai-assist-root .ai-history-drawer .ai-history-drawer-header .ai-history-drawer-close{width:22px;height:22px;color:#999;cursor:pointer;transition:color .2s ease}#ai-assist-root .ai-history-drawer .ai-history-drawer-header .ai-history-drawer-close:hover{color:#333}#ai-assist-root .ai-history-drawer.closing .ai-history-backdrop{opacity:0;transition:opacity .3s ease}#ai-assist-root .ai-history-drawer.closing .ai-history-drawer-panel{transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}@keyframes ai-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes ai-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes ai-drawer-slideIn{0%{transform:translate(100%)}to{transform:translate(0)}}#ai-assist-root .ai-assist-toast-container{position:fixed;top:24px;left:50%;transform:translate(-50%);z-index:100001;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}#ai-assist-root .ai-assist-toast-container .ai-assist-toast{max-width:80vw;min-width:120px;padding:9px 16px;border-radius:8px;font-size:13px;line-height:20px;color:#fff;background:#000000c7;box-shadow:0 4px 12px #00000026;opacity:0;transform:translateY(-8px);transition:opacity .25s ease,transform .25s ease;word-break:break-all;pointer-events:auto}#ai-assist-root .ai-assist-toast-container .ai-assist-toast--visible{opacity:1;transform:translateY(0)}#ai-assist-root .ai-assist-toast-container .ai-assist-toast--error{background:#f53f3feb}#ai-assist-root .ai-assist-toast-container .ai-assist-toast--success{background:#52c41aeb}#ai-assist-root .ai-assist-toast-container .ai-assist-toast--info{background:#000000c7}@media(max-width:768px){#ai-assist-root .ai-panel.minWrap{width:calc(100vw - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);bottom:8px;left:8px;right:auto;border-radius:14px}#ai-assist-root .ai-panel.minWrap.panel-left,#ai-assist-root .ai-panel.minWrap.panel-right{left:8px;right:auto}#ai-assist-root .ai-panel.maxWrap{width:100vw;height:100vh;height:100dvh;bottom:0;left:0;transform:none;border-radius:0}#ai-assist-root .header{height:44px;padding:8px 0}#ai-assist-root .header>p:first-child img{width:56px;height:60px;margin-left:16px}#ai-assist-root .header>p:first-child~.header-title{margin-left:80px}#ai-assist-root .header-title span{font-size:17px}#ai-assist-root .header p:last-child svg{width:22px;height:22px;margin-right:4px}#ai-assist-root .header p:last-child svg:last-child{margin-right:8px}#ai-assist-root .back{width:36px;height:36px}#ai-assist-root .back.left{margin-left:12px;margin-right:auto}#ai-assist-root .back.right{margin-left:auto;margin-right:12px}#ai-assist-root .setTitle .content .main{width:calc(100vw - 48px);max-width:360px}#ai-assist-root .setTitle .content .main textarea{width:calc(100% - 32px)}#ai-assist-root .ai-history-drawer{top:44px}#ai-assist-root .ai-history-drawer .ai-history-drawer-panel{max-width:100%}#ai-assist-root .ai-history-drawer .ai-history-drawer-header{padding:0 16px;height:42px}#ai-assist-root .ai-history-drawer .ai-history-drawer-header span{font-size:15px}#ai-assist-root .ai-history .ai-history-item{height:48px}#ai-assist-root .ai-history .ai-history-item-title{font-size:14px}#ai-assist-root .ai-assist-toast-container{top:12px}#ai-assist-root .ai-assist-toast-container .ai-assist-toast{max-width:90vw;font-size:12px;padding:8px 14px}}.ai-modal-overlay[data-v-0d2cc243]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:10000}.ai-modal[data-v-0d2cc243]{background:#fff;border-radius:8px;width:300px;box-shadow:0 4px 12px #00000026}.ai-modal-header[data-v-0d2cc243]{padding:16px 24px;font-weight:500;font-size:16px;color:#333;border-bottom:1px solid #f0f0f0}.ai-modal-body[data-v-0d2cc243]{padding:24px;font-size:14px;color:#666}.ai-modal-footer[data-v-0d2cc243]{padding:10px 16px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #f0f0f0}.ai-modal-btn[data-v-0d2cc243]{height:32px;padding:0 16px;border-radius:4px;font-size:14px;cursor:pointer;border:1px solid #d9d9d9;background:#fff;color:#333;transition:all .2s}.ai-modal-btn[data-v-0d2cc243]:hover{border-color:#74acb2;color:#74acb2}.ai-modal-btn.confirm[data-v-0d2cc243]{background:#74acb2;border-color:#74acb2;color:#fff}.ai-modal-btn.confirm[data-v-0d2cc243]:hover{background:#5a969e}
|
|
1
|
+
#ai-assist-root{--ai-bg-panel: #f4f7f7;--ai-bg-card: #ffffff;--ai-bg-card-alt: #f9f9f9;--ai-bg-hover: #f0f5f5;--ai-bg-hover-light: #f1f3f5;--ai-bg-user-message: #d7effe;--ai-bg-header-1: #a3d8fa;--ai-bg-header-2: #f9fbfc;--ai-bg-overlay: rgba(0, 0, 0, .2);--ai-bg-backdrop: rgba(0, 0, 0, .15);--ai-bg-back-btn: rgba(255, 255, 255, .9);--ai-bg-back-btn-hover: #ffffff;--ai-bg-textarea: #f5f8f8;--ai-bg-toast: rgba(0, 0, 0, .78);--ai-bg-toast-error: rgba(245, 63, 63, .92);--ai-bg-toast-success: rgba(82, 196, 26, .92);--ai-bg-error: #fff2f0;--ai-bg-movetb: #ffffff;--ai-bg-blockquote: #ececec;--ai-bg-code-block: #282c34;--ai-bg-scrollbar-track: #f5f5f5;--ai-bg-table-head: #eee;--ai-bg-table-row-alt: #fafafa;--ai-bg-thinking-content: #fafafa;--ai-bg-tooltip: #333333;--ai-text-primary: #333333;--ai-text-secondary: #666666;--ai-text-tertiary: #999999;--ai-text-title: #3d3d3d;--ai-text-dark: #0f1115;--ai-text-on-accent: #ffffff;--ai-text-link: #2d8cf0;--ai-text-link-hover: #73d13d;--ai-text-error: #ff4d4f;--ai-text-muted: #b3b3b3;--ai-text-cost: #bbb;--ai-text-h1: #1890ff;--ai-text-code: #5ba0a9;--ai-text-pre-code: #a9b7c6;--ai-text-figcaption: #888888;--ai-text-agent-thought: #4b5563;--ai-text-thinking-title: #4b5563;--ai-text-on-tooltip: #ffffff;--ai-icon-color: #616161;--ai-icon-hover: #000000;--ai-accent: #74acb2;--ai-accent-light: #5ba0a9;--ai-accent-hover-bg: rgba(91, 160, 169, .4);--ai-accent-heading: #0094da;--ai-accent-success: #52c41a;--ai-accent-link-hover: #1677ff;--ai-border-drawer: #e8eded;--ai-border-divider: #f0f0f0;--ai-border-input: #e8e8e8;--ai-border-btn: #dbe8e5;--ai-border-code: #e6e6e6;--ai-border-hr: #eaecef;--ai-border-error: #ffccc7;--ai-border-thinking: #e5e7eb;--ai-border-img: #e6e6e6;--ai-shadow-panel: 0px 10px 30px 0px rgba(169, 165, 162, .62);--ai-shadow-message: 0px 4px 12px 0px rgba(0, 0, 0, .05);--ai-shadow-input: 0px -1px 6px 1px rgba(0, 0, 0, .1);--ai-shadow-card: 0px 2px 8px 0px rgba(0, 0, 0, .02);--ai-shadow-back-btn: 0 2px 8px rgba(0, 0, 0, .1);--ai-shadow-back-btn-hover: 0 4px 12px rgba(0, 0, 0, .15);--ai-shadow-movetb: 0px 4px 12px 0px rgba(0, 0, 0, .05);--ai-shadow-tooltip: 0 2px 8px rgba(0, 0, 0, .1);--ai-shadow-pre: rgba(0, 0, 0, .3) 0 2px 2px;--ai-scrollbar-thumb: #333333}#ai-assist-root[data-theme=dark]{--ai-bg-panel: #1a1a2e;--ai-bg-card: #252538;--ai-bg-card-alt: #2a2a3e;--ai-bg-hover: #2e2e44;--ai-bg-hover-light: #2e2e44;--ai-bg-user-message: #1e3a5f;--ai-bg-header-1: #1a3a5c;--ai-bg-header-2: #1a1a2e;--ai-bg-overlay: rgba(0, 0, 0, .5);--ai-bg-backdrop: rgba(0, 0, 0, .4);--ai-bg-back-btn: rgba(50, 50, 70, .9);--ai-bg-back-btn-hover: #3a3a52;--ai-bg-textarea: #2a2a3e;--ai-bg-toast: rgba(30, 30, 46, .95);--ai-bg-toast-error: rgba(180, 40, 40, .92);--ai-bg-toast-success: rgba(40, 140, 30, .92);--ai-bg-error: #3a2020;--ai-bg-movetb: #2a2a3e;--ai-bg-blockquote: #2a2a3e;--ai-bg-code-block: #1e1e2e;--ai-bg-scrollbar-track: #2a2a3e;--ai-bg-table-head: #2a2a3e;--ai-bg-table-row-alt: #222236;--ai-bg-thinking-content: #1e1e30;--ai-bg-tooltip: #e4e4e7;--ai-text-primary: #e4e4e7;--ai-text-secondary: #a1a1aa;--ai-text-tertiary: #71717a;--ai-text-title: #e4e4e7;--ai-text-dark: #e4e4e7;--ai-text-on-accent: #ffffff;--ai-text-link: #60a5fa;--ai-text-link-hover: #93c5fd;--ai-text-error: #f87171;--ai-text-muted: #6b7280;--ai-text-cost: #6b7280;--ai-text-h1: #60a5fa;--ai-text-code: #6bc4cc;--ai-text-pre-code: #a9b7c6;--ai-text-figcaption: #71717a;--ai-text-agent-thought: #a1a1aa;--ai-text-thinking-title: #a1a1aa;--ai-text-on-tooltip: #1a1a2e;--ai-icon-color: #a1a1aa;--ai-icon-hover: #e4e4e7;--ai-accent: #5ba0a9;--ai-accent-light: #5ba0a9;--ai-accent-hover-bg: rgba(91, 160, 169, .3);--ai-accent-heading: #60a5fa;--ai-accent-success: #4ade80;--ai-accent-link-hover: #60a5fa;--ai-border-drawer: #3a3a52;--ai-border-divider: #3a3a52;--ai-border-input: #3a3a52;--ai-border-btn: #3a3a52;--ai-border-code: #3a3a52;--ai-border-hr: #3a3a52;--ai-border-error: #5c2020;--ai-border-thinking: #3a3a52;--ai-border-img: #3a3a52;--ai-shadow-panel: 0px 10px 30px 0px rgba(0, 0, 0, .5);--ai-shadow-message: 0px 4px 12px 0px rgba(0, 0, 0, .3);--ai-shadow-input: 0px -1px 6px 1px rgba(0, 0, 0, .3);--ai-shadow-card: 0px 2px 8px 0px rgba(0, 0, 0, .2);--ai-shadow-back-btn: 0 2px 8px rgba(0, 0, 0, .3);--ai-shadow-back-btn-hover: 0 4px 12px rgba(0, 0, 0, .4);--ai-shadow-movetb: 0px 4px 12px 0px rgba(0, 0, 0, .3);--ai-shadow-tooltip: 0 2px 8px rgba(0, 0, 0, .3);--ai-shadow-pre: rgba(0, 0, 0, .5) 0 2px 2px;--ai-scrollbar-thumb: #555555}#ai-assist-root .container{margin-top:14px;display:flex;flex-direction:column;color:var(--ai-text-primary);height:calc(100vh - 138px)}#ai-assist-root .chat-box{flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:20px;padding:0 16px 12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#ai-assist-root .message{border-radius:0 10px 10px;position:relative;word-break:break-word}#ai-assist-root .message.ai-message{align-self:flex-start;width:100%}#ai-assist-root .message.ai-message .message-content{padding:12px 16px;border-radius:0 10px 10px;line-height:26px;font-size:16px;background:var(--ai-bg-card);box-shadow:var(--ai-shadow-message);color:var(--ai-text-primary)}#ai-assist-root .message.ai-message .message-content .scale-animation-container{display:flex;align-items:center;gap:14px;padding:9px 0}#ai-assist-root .message.ai-message .message-content .scale-animation-container .scale-dot{width:8px;height:8px;background:var(--ai-accent-light);border-radius:100%;animation:ai-scaleWave 1.6s infinite ease-in-out}#ai-assist-root .message.ai-message .message-content .scale-animation-container .scale-dot:nth-child(1){animation-delay:0s}#ai-assist-root .message.ai-message .message-content .scale-animation-container .scale-dot:nth-child(2){animation-delay:.2s}#ai-assist-root .message.ai-message .message-content .scale-animation-container .scale-dot:nth-child(3){animation-delay:.4s}#ai-assist-root .message.ai-message .message-content .scale-animation-container .scale-dot:nth-child(4){animation-delay:.6s}#ai-assist-root .message.ai-message .status-indicator{margin-top:8px;font-size:12px;color:var(--ai-text-secondary);padding-top:4px;display:flex;align-items:center;gap:8px;padding-left:16px;font-size:14px}#ai-assist-root .message.ai-message .status-indicator span{cursor:pointer}#ai-assist-root .message.ai-message .message-error{margin-top:8px;padding:8px 14px;background:var(--ai-bg-error);border:1px solid var(--ai-border-error);border-radius:6px;font-size:13px;color:var(--ai-text-error);display:flex;align-items:flex-start;gap:8px;line-height:1.5}#ai-assist-root .message.ai-message .message-error__icon{flex-shrink:0;font-size:14px}#ai-assist-root .message.ai-message .agent-thought{display:inline-flex;align-items:center;gap:5px;padding:0;font-size:13px;line-height:1.4;font-weight:500;color:var(--ai-text-agent-thought);transition:all .3s cubic-bezier(.4,0,.2,1)}#ai-assist-root .message.ai-message .agent-thought__icon{flex-shrink:0;opacity:.7}#ai-assist-root .message.ai-message .agent-thought__spinner{display:inline-flex;align-items:center;justify-content:center;width:auto;height:14px;flex-shrink:0}#ai-assist-root .message.ai-message .agent-thought__text{font-weight:500}#ai-assist-root .message.ai-message .agent-thought__duration{font-size:11px;color:var(--ai-text-tertiary);margin-left:2px;font-variant-numeric:tabular-nums;font-weight:400}#ai-assist-root .message.ai-message .agent-thought:not(.agent-thought--done) .agent-thought__text{animation:agent-text-shimmer 2s linear infinite}#ai-assist-root .message.ai-message .agent-thought--done{color:var(--ai-text-agent-thought)}@keyframes agent-text-shimmer{0%{background-position:0% 0%}to{background-position:200% 0%}}#ai-assist-root .message.ai-message .message-cost{margin-top:8px;padding-left:16px;font-size:12px;color:var(--ai-text-cost);line-height:1.5}#ai-assist-root .message.ai-message .message-toolbar{display:flex;gap:8px;margin-top:4px;color:var(--ai-text-tertiary);font-size:14px;cursor:pointer;opacity:0;transition:opacity .2s ease}#ai-assist-root .message.ai-message .message-toolbar .message-toolbar__check{color:var(--ai-accent-success);cursor:default}#ai-assist-root .message.ai-message .message-toolbar>div:hover{color:var(--ai-accent-link-hover)}#ai-assist-root .message.ai-message .message-toolbar>div:hover .message-toolbar__check{color:var(--ai-accent-success)}#ai-assist-root .message.ai-message:hover .message-toolbar{opacity:1}#ai-assist-root .message.ai-message.greet-message{background:var(--ai-bg-card);width:100%}#ai-assist-root .message.ai-message.recommend-message{width:100%;background:var(--ai-bg-card)}#ai-assist-root .message.user-message{background:var(--ai-bg-user-message);align-self:flex-end;padding:12px 16px;line-height:26px;font-size:16px;box-shadow:var(--ai-shadow-message);border-radius:10px 0 10px 10px;color:var(--ai-text-primary)}#ai-assist-root .ai-greet{padding:4px 12px}#ai-assist-root .ai-greet img{display:none}#ai-assist-root .ai-greet h1{font-weight:600;font-size:16px;color:var(--ai-text-primary);line-height:22px;text-align:left;margin:10px 0}#ai-assist-root .ai-greet p{font-weight:400;font-size:14px;color:var(--ai-text-secondary);line-height:20px;text-align:left}#ai-assist-root .ai-recommend{padding:16px}#ai-assist-root .ai-recommend .recommend-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}#ai-assist-root .ai-recommend .recommend-header span{font-weight:600;font-size:16px;color:var(--ai-text-primary);line-height:22px}#ai-assist-root .ai-recommend .recommend-header .refresh-btn{color:var(--ai-accent-light);cursor:pointer;display:flex;align-items:center}#ai-assist-root .ai-recommend .recommend-header .refresh-btn img{width:16px;height:16px;margin-right:6px}#ai-assist-root .ai-recommend .recommend-header .refresh-btn span{color:var(--ai-accent-light)}#ai-assist-root .ai-recommend ul{list-style:none;padding:0;margin:0}#ai-assist-root .ai-recommend ul li{padding:8px 12px;margin-bottom:8px;background:var(--ai-bg-card-alt);border-radius:8px;line-height:22px;cursor:pointer;transition:all .2s;color:var(--ai-text-primary)}#ai-assist-root .ai-recommend ul li:hover{background:var(--ai-accent-hover-bg);transform:translate(8px)}#ai-assist-root .input-container{width:calc(100% - 32px);height:48px;display:flex;align-items:center;background:var(--ai-bg-card);box-shadow:var(--ai-shadow-input);border-radius:12px;z-index:1;position:relative;margin:8px 16px 0}#ai-assist-root .input-container input{flex:1;height:32px;border-radius:16px;outline:none;background:var(--ai-bg-card);box-shadow:0 2px 8px #00000005;padding:0 16px;border:none;color:var(--ai-text-primary)}#ai-assist-root .input-container input::placeholder{color:var(--ai-text-tertiary)}#ai-assist-root .input-container img{width:32px;height:32px;cursor:pointer}#ai-assist-root .input-container .op-icon{width:24px;height:24px;cursor:pointer;color:var(--ai-icon-color)}#ai-assist-root .input-container .stop-icon{color:var(--ai-text-tertiary)}#ai-assist-root .input-container .refresh,#ai-assist-root .input-container .stop,#ai-assist-root .input-container .send{margin:0 19px}#ai-assist-root .input-container .send.disabled{opacity:.4;pointer-events:none}#ai-assist-root .input-container .moveTB{position:absolute;left:50%;top:-40px;transform:translate(-50%);cursor:pointer;width:32px;height:32px;background:var(--ai-bg-movetb);box-shadow:var(--ai-shadow-movetb);border:1px solid var(--ai-border-input);border-radius:100%;display:flex;justify-content:center;align-items:center}#ai-assist-root .input-container .moveTB .op-icon{width:18px;height:18px}#ai-assist-root .ai-mistake-tip{display:flex;justify-content:center;margin:8px 0;font-size:12px;line-height:12px;color:var(--ai-text-muted)}@keyframes ai-scaleWave{0%,to{opacity:.6}50%{opacity:1}}#ai-assist-root .tooltip-enhanced{position:relative}#ai-assist-root .tooltip-enhanced:after{opacity:0;transition:opacity .2s ease,transform .2s cubic-bezier(.68,-.55,.27,1.55)}#ai-assist-root .tooltip-enhanced:hover:after{content:attr(data-tooltip);position:absolute;background:var(--ai-bg-tooltip);color:var(--ai-text-on-tooltip);padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);opacity:1;box-shadow:var(--ai-shadow-tooltip);z-index:999}#ai-assist-root .info{padding:12px 24px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#ai-assist-root .info-item{padding:24px 0;background:var(--ai-bg-card);box-shadow:var(--ai-shadow-card);border-radius:10px;box-sizing:border-box;margin-bottom:24px}#ai-assist-root .info .heading{display:flex;align-items:center;padding-bottom:12px}#ai-assist-root .info .heading-column{width:5px;height:22px;background:var(--ai-accent-heading);border-radius:0 4px 4px 0;margin-right:24px}#ai-assist-root .info .heading-title{font-weight:500;font-size:18px;color:var(--ai-text-primary)}#ai-assist-root .info .basic-content{display:flex;justify-content:space-between;padding:12px 0;margin:0 24px;border-bottom:1px solid var(--ai-border-divider)}#ai-assist-root .info .basic-content-text{font-weight:500;font-size:16px;color:var(--ai-text-secondary)}#ai-assist-root .info .basic-content-key{min-width:56px}#ai-assist-root .info .basic-content:last-of-type{border-bottom:none}#ai-assist-root .info .permission-content{display:flex;flex-wrap:wrap;padding:12px 0;margin:0 24px;border-bottom:1px solid var(--ai-border-divider)}#ai-assist-root .info .permission-content-text{font-weight:500;font-size:16px;color:var(--ai-text-secondary);margin:0 42px 0 0}#ai-assist-root .info .permission-content:last-of-type{border-bottom:none}@media(max-width:768px){#ai-assist-root .container{padding:8px;height:calc(100vh - 68px - var(--ai-safe-top) - var(--ai-safe-bottom));height:calc(100dvh - 68px - var(--ai-safe-top) - var(--ai-safe-bottom))}#ai-assist-root .chat-box{gap:14px;padding:0 12px 8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#ai-assist-root .message.ai-message .message-content{padding:10px 14px;font-size:15px;line-height:24px}#ai-assist-root .message.ai-message .status-indicator{font-size:13px;padding-left:14px}#ai-assist-root .message.ai-message .message-toolbar{font-size:13px;gap:6px}#ai-assist-root .message.ai-message.greet-message,#ai-assist-root .message.ai-message.recommend-message{width:100%}#ai-assist-root .message.user-message{padding:10px 14px;font-size:15px;line-height:24px;max-width:85%}#ai-assist-root .ai-greet{padding:4px 80px 4px 8px}#ai-assist-root .ai-greet img{display:block;width:50px;position:absolute;right:10px;bottom:4px}#ai-assist-root .ai-greet h1{font-size:15px;margin:8px 0}#ai-assist-root .ai-greet p{font-size:13px;line-height:18px}#ai-assist-root .ai-recommend{padding:12px}#ai-assist-root .ai-recommend .recommend-header{margin-bottom:12px}#ai-assist-root .ai-recommend .recommend-header span{font-size:15px}#ai-assist-root .ai-recommend .recommend-header .refresh-btn img{width:14px;height:14px;margin-right:4px}#ai-assist-root .ai-recommend ul li{padding:8px 10px;margin-bottom:6px;font-size:14px;line-height:20px}#ai-assist-root .input-container{width:calc(100% - 16px);height:52px;margin:6px 8px 0}#ai-assist-root .input-container input{height:36px;font-size:16px}#ai-assist-root .input-container .op-icon{width:26px;height:26px}#ai-assist-root .input-container .refresh,#ai-assist-root .input-container .stop,#ai-assist-root .input-container .send{margin:0 12px}#ai-assist-root .input-container .moveTB{top:-36px;width:28px;height:28px}#ai-assist-root .input-container .moveTB .op-icon{width:16px;height:16px}#ai-assist-root .ai-mistake-tip{font-size:11px}#ai-assist-root .info{padding:8px 12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#ai-assist-root .info-item{padding:16px 0;margin-bottom:16px}#ai-assist-root .info .heading{padding-bottom:8px}#ai-assist-root .info .heading-column{margin-right:16px}#ai-assist-root .info .heading-title{font-size:16px}#ai-assist-root .info .basic-content{margin:0 16px;padding:10px 0}#ai-assist-root .info .basic-content-text{font-size:14px}#ai-assist-root .info .permission-content{margin:0 16px;padding:10px 0}#ai-assist-root .info .permission-content-text{font-size:14px;margin-right:24px}}#ai-assist-root .ba-markdown ::-webkit-scrollbar{width:6px;height:6px}#ai-assist-root .ba-markdown ::-webkit-scrollbar-corner,#ai-assist-root .ba-markdown ::-webkit-scrollbar-track{background-color:var(--ai-bg-scrollbar-track);border-radius:2px}#ai-assist-root .ba-markdown ::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--ai-scrollbar-thumb)}#ai-assist-root .ba-markdown ::-webkit-scrollbar-button:vertical{display:none}#ai-assist-root .ba-markdown h1,#ai-assist-root .ba-markdown h2,#ai-assist-root .ba-markdown h3,#ai-assist-root .ba-markdown h4,#ai-assist-root .ba-markdown h5,#ai-assist-root .ba-markdown h6{position:relative;word-break:break-all;margin:1.4em 0 .8em;font-weight:700;color:var(--ai-text-primary)}#ai-assist-root .ba-markdown h1{font-size:18px;text-transform:uppercase;color:var(--ai-text-h1)}#ai-assist-root .ba-markdown h1 a,#ai-assist-root .ba-markdown h2 a,#ai-assist-root .ba-markdown h3 a,#ai-assist-root .ba-markdown h4 a,#ai-assist-root .ba-markdown h5 a,#ai-assist-root .ba-markdown h6 a,#ai-assist-root .ba-markdown h1 a:hover,#ai-assist-root .ba-markdown h2 a:hover,#ai-assist-root .ba-markdown h3 a:hover,#ai-assist-root .ba-markdown h4 a:hover,#ai-assist-root .ba-markdown h5 a:hover,#ai-assist-root .ba-markdown h6 a:hover{color:inherit}#ai-assist-root .ba-markdown ol>li{list-style:decimal}#ai-assist-root .ba-markdown ul>li{list-style:disc}#ai-assist-root .ba-markdown ol .li-task,#ai-assist-root .ba-markdown ul .li-task{list-style-type:none}#ai-assist-root .ba-markdown ol .li-task input,#ai-assist-root .ba-markdown ul .li-task input{margin-left:-1.5em;margin-right:.1em}#ai-assist-root .ba-markdown a{text-decoration:none;color:var(--ai-text-link);transition:color .3s}#ai-assist-root .ba-markdown a:hover{color:var(--ai-text-link-hover)}#ai-assist-root .ba-markdown pre,#ai-assist-root .ba-markdown code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:var(--ai-text-primary)}#ai-assist-root .ba-markdown pre{margin:20px 0}#ai-assist-root .ba-markdown pre code{display:block;line-height:1;overflow:auto}#ai-assist-root .ba-markdown pre code .code-block{display:inline-block;width:100%;overflow:auto;vertical-align:bottom}#ai-assist-root .ba-markdown hr{height:1px;margin:10px 0;border:none;border-top:1px solid var(--ai-border-hr)}#ai-assist-root .ba-markdown div[inline]>.figure{padding-right:.5em}#ai-assist-root .ba-markdown div[inline]>.figure img{padding:0;border:none}#ai-assist-root .ba-markdown .figure{margin:0 0 1em;display:inline-flex;flex-direction:column;text-align:center}#ai-assist-root .ba-markdown .figure .figcaption{color:var(--ai-text-figcaption);font-size:.875em;margin-top:5px}#ai-assist-root .ba-markdown img{margin:0 auto;width:800px;max-width:100%;box-sizing:border-box;padding:5px;border:1px solid var(--ai-border-img);border-radius:3px}#ai-assist-root .ba-markdown p{line-height:1.6;margin:0}#ai-assist-root .ba-markdown p:empty{display:none}#ai-assist-root .ba-markdown code{color:var(--ai-text-code);font-weight:600;display:inline-block;padding:0 4px;border-radius:2px;line-height:22px}#ai-assist-root .ba-markdown blockquote{margin:20px 0;padding:.5em 1.2em;line-height:2em;background-color:var(--ai-bg-blockquote);border-left:5px solid #35b378;display:block;color:var(--ai-text-primary)}#ai-assist-root .ba-markdown blockquote p{padding:0}#ai-assist-root .ba-markdown pre{position:relative;border-radius:5px;box-shadow:var(--ai-shadow-pre)}#ai-assist-root .ba-markdown pre code{position:relative;padding:1em;background-color:var(--ai-bg-code-block);color:var(--ai-text-pre-code);border-radius:0 0 5px 5px}#ai-assist-root .ba-markdown pre code>*{line-height:1.6}#ai-assist-root .ba-markdown pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer;background:none;border:none;padding:2px 8px;border-radius:3px;transition:all .2s}#ai-assist-root .ba-markdown pre .copy-button:hover{color:#fff;background:#ffffff26}#ai-assist-root .ba-markdown pre .code-lang{color:#999;position:absolute;font-size:12px;top:9px;left:14px;font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;text-transform:uppercase;letter-spacing:.5px;pointer-events:none}#ai-assist-root .ba-markdown pre:before{content:"";display:block;height:32px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:var(--ai-bg-code-block);margin-bottom:0;border-top-left-radius:5px;border-top-right-radius:5px;background-position:10px 10px}#ai-assist-root .ba-markdown table{overflow:auto;border-spacing:0;border-collapse:collapse;margin-bottom:1em;width:100%}#ai-assist-root .ba-markdown table tr th,#ai-assist-root .ba-markdown table tr td{word-wrap:break-word;padding:8px 14px;border:1px solid var(--ai-border-code)}#ai-assist-root .ba-markdown table thead{background-color:var(--ai-bg-table-head)}#ai-assist-root .ba-markdown table tbody tr:nth-child(2n){background-color:var(--ai-bg-table-row-alt)}#ai-assist-root .ba-markdown ol,#ai-assist-root .ba-markdown ul{margin:.6em 0;padding-left:1.6em}#ai-assist-root .ba-markdown ol li,#ai-assist-root .ba-markdown ul li{line-height:1.6;margin:.5em 0}#ai-assist-root .ba-markdown .streaming-cursor{display:inline-block;width:2px;height:1.1em;background-color:var(--ai-accent-light);margin-left:2px;vertical-align:text-bottom;border-radius:1px;animation:streaming-blink 1s step-end infinite}@keyframes streaming-blink{0%,50%{opacity:1}51%,to{opacity:0}}#ai-assist-root .ba-markdown .thinking-block{overflow:hidden;position:relative}#ai-assist-root .ba-markdown .thinking-block--active{border-color:var(--ai-border-thinking);border-radius:12px}#ai-assist-root .ba-markdown .thinking-block--active:before{opacity:1}#ai-assist-root .ba-markdown .thinking-block--active .thinking-block__title{background:linear-gradient(90deg,#6366f1,#a855f7,#6366f1);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:thinking-text-shimmer 2s linear infinite}#ai-assist-root .ba-markdown .thinking-block--active .thinking-block__indicator{background:linear-gradient(135deg,#6366f1,#a855f7);animation:thinking-dot-pulse 1.4s ease-in-out infinite}#ai-assist-root .ba-markdown .thinking-block--expanded{border-color:var(--ai-border-thinking);box-shadow:none;animation:none}#ai-assist-root .ba-markdown .thinking-block--expanded:before{opacity:.35}#ai-assist-root .ba-markdown .thinking-block--expanded .thinking-block__indicator{background:var(--ai-text-tertiary)}#ai-assist-root .ba-markdown .thinking-block--active.thinking-block--expanded{animation:none;box-shadow:none}#ai-assist-root .ba-markdown .thinking-block:hover .thinking-block__arrow{opacity:1}#ai-assist-root .ba-markdown .thinking-block__header{display:flex;align-items:center;gap:8px;padding:0 12px 0 2px;cursor:pointer;-webkit-user-select:none;user-select:none}#ai-assist-root .ba-markdown .thinking-block__indicator{flex-shrink:0;width:7px;height:7px;border-radius:50%;background:var(--ai-text-tertiary);transition:background .3s}#ai-assist-root .ba-markdown .thinking-block__title{font-size:13px;font-weight:500;color:var(--ai-text-thinking-title);letter-spacing:.1px}#ai-assist-root .ba-markdown .thinking-block__duration{font-size:12px;color:var(--ai-text-tertiary);margin-left:auto;font-variant-numeric:tabular-nums;font-weight:400}#ai-assist-root .ba-markdown .thinking-block__arrow{flex-shrink:0;color:var(--ai-text-tertiary);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity .2s;opacity:0}#ai-assist-root .ba-markdown .thinking-block__arrow--down{transform:rotate(180deg)}#ai-assist-root .ba-markdown .thinking-block__content{padding:10px 14px 12px;background:var(--ai-bg-thinking-content);font-size:13px;line-height:1.75;color:var(--ai-text-secondary);white-space:pre-wrap;word-break:break-word;border-top:1px dashed var(--ai-border-divider);margin-top:2px;border-radius:0 8px 8px 0;overflow:hidden;position:relative}#ai-assist-root .ba-markdown .thinking-block__content:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#818cf8,#c084fc);opacity:.5;transition:opacity .3s}#ai-assist-root .ba-markdown .thinking-expand-enter-active,#ai-assist-root .ba-markdown .thinking-expand-leave-active{transition:all .28s cubic-bezier(.4,0,.2,1);overflow:hidden}#ai-assist-root .ba-markdown .thinking-expand-enter-from,#ai-assist-root .ba-markdown .thinking-expand-leave-to{opacity:0;max-height:0;padding-top:0;padding-bottom:0}#ai-assist-root .ba-markdown .thinking-expand-enter-to,#ai-assist-root .ba-markdown .thinking-expand-leave-from{opacity:1;max-height:1000px}@keyframes thinking-breath{0%,to{box-shadow:0 0 #818cf800}50%{box-shadow:0 0 0 4px #818cf814}}@keyframes thinking-text-shimmer{0%{background-position:0% 0%}to{background-position:200% 0%}}@keyframes thinking-dot-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.3);opacity:.7}}@media(max-width:768px){#ai-assist-root .ba-markdown h1{font-size:16px}#ai-assist-root .ba-markdown h2{font-size:15px}#ai-assist-root .ba-markdown h3{font-size:14px}#ai-assist-root .ba-markdown h4,#ai-assist-root .ba-markdown h5,#ai-assist-root .ba-markdown h6{font-size:13px}#ai-assist-root .ba-markdown p{line-height:1.55}#ai-assist-root .ba-markdown pre,#ai-assist-root .ba-markdown code{font-size:13px}#ai-assist-root .ba-markdown pre{margin:12px 0}#ai-assist-root .ba-markdown pre code{padding:.75em}#ai-assist-root .ba-markdown pre .copy-button{font-size:11px;top:7px;right:8px;padding:2px 6px}#ai-assist-root .ba-markdown pre .code-lang{font-size:11px;top:7px;left:10px}#ai-assist-root .ba-markdown pre:before{height:28px}#ai-assist-root .ba-markdown code{padding:0 3px;line-height:20px}#ai-assist-root .ba-markdown table tr th,#ai-assist-root .ba-markdown table tr td{padding:6px 8px;font-size:13px}#ai-assist-root .ba-markdown img{width:100%}#ai-assist-root .ba-markdown blockquote{margin:12px 0;padding:.4em .8em;line-height:1.6em}#ai-assist-root .ba-markdown ol,#ai-assist-root .ba-markdown ul{padding-left:1.4em;margin:.4em 0}#ai-assist-root .ba-markdown ol li,#ai-assist-root .ba-markdown ul li{line-height:1.5;margin:.3em 0}#ai-assist-root .ba-markdown .thinking-block__content{padding:8px 10px 10px;font-size:12px;line-height:1.6}#ai-assist-root .ba-markdown .thinking-block__title{font-size:12px}#ai-assist-root .ba-markdown .thinking-block__duration{font-size:11px}}#ai-assist-root{--ai-font-family: "-apple-system-body", "ui-sans-serif", "-apple-system", "system-ui", "Segoe UI", "Helvetica", "Apple Color Emoji", "Arial", "sans-serif", "Segoe UI Emoji", "Segoe UI Symbol";font-family:var(--ai-font-family);--ai-safe-top: env(safe-area-inset-top, 0px);--ai-safe-bottom: env(safe-area-inset-bottom, 0px)}#ai-assist-root .character{width:78px;height:78px;position:fixed;cursor:grab;z-index:100;opacity:.6;-webkit-user-select:none;user-select:none;touch-action:none;overflow:visible;clip:auto;border-radius:50%}#ai-assist-root .character.dragging{cursor:grabbing;opacity:1;transform:translate(calc(var(--direction) * 6px)) scale(1.05);z-index:101;transition:none!important}#ai-assist-root .character.recycling{cursor:default}#ai-assist-root .character img{width:100%;height:100%;pointer-events:none}#ai-assist-root .character:hover:not(.dragging):not(.recycling){opacity:1!important;transform:translate(calc(var(--direction) * 6px));transition:all .3s ease!important}#ai-assist-root .character.hover-preview{opacity:1!important;transform:translate(calc(var(--direction) * 6px));transition:all .3s ease!important}#ai-assist-root .back{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--ai-bg-back-btn);box-shadow:var(--ai-shadow-back-btn);cursor:pointer;transition:all .3s ease}#ai-assist-root .back:hover{background:var(--ai-bg-back-btn-hover);box-shadow:var(--ai-shadow-back-btn-hover)}#ai-assist-root .back.left{margin-left:24px;margin-right:auto}#ai-assist-root .back.right{margin-left:auto;margin-right:24px}#ai-assist-root .ai-panel{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#ai-assist-root .ai-panel.maxWrap{position:fixed;bottom:24px;left:50%;transform:translate(-50%);width:80vw;height:calc(100vh - 78px);background:var(--ai-bg-panel);box-shadow:var(--ai-shadow-panel);border-radius:14px;z-index:9999}#ai-assist-root .ai-panel.minWrap{position:fixed;bottom:24px;width:490px;height:calc(100vh - 78px);background:var(--ai-bg-panel);box-shadow:var(--ai-shadow-panel);border-radius:14px;z-index:9999}#ai-assist-root .ai-panel.minWrap.panel-left{left:24px}#ai-assist-root .ai-panel.minWrap.panel-right{right:24px}#ai-assist-root .ai-panel.morphing{bottom:auto!important;right:auto!important;transform:none!important;transition:width .4s cubic-bezier(.4,0,.2,1),height .4s cubic-bezier(.4,0,.2,1),left .4s cubic-bezier(.4,0,.2,1),top .4s cubic-bezier(.4,0,.2,1),border-radius .4s cubic-bezier(.4,0,.2,1)!important}#ai-assist-root .ai-panel.morphing>*{opacity:0}#ai-assist-root .ai-panel.morphing.expanding>*{animation:ai-fadeIn .2s ease .2s both}#ai-assist-root .ai-panel.morphing.collapsing>*{animation:ai-fadeOut .2s ease .01s both}#ai-assist-root .ai-panel.morph-instant{transition:none!important}#ai-assist-root .setTitle{position:absolute;width:100%;height:100%;background:var(--ai-bg-overlay);top:0;left:0;border-radius:14px;display:none;transition:all .5s cubic-bezier(.4,0,.2,1)}#ai-assist-root .setTitle .content{width:100%;height:100%;position:relative}#ai-assist-root .setTitle .content .main{width:360px;height:252px;background:var(--ai-bg-card);box-shadow:var(--ai-shadow-card);border-radius:14px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}#ai-assist-root .setTitle .content .main .title{font-weight:500;font-size:18px;color:var(--ai-text-primary);line-height:18px;text-align:center;margin:16px 0 22px}#ai-assist-root .setTitle .content .main textarea{border:none;outline:none;resize:none;font-family:inherit;width:304px;height:116px;background:var(--ai-bg-textarea);border-radius:6px;margin-left:16px;padding:12px;color:var(--ai-text-primary)}#ai-assist-root .setTitle .content .main .btn{display:flex;justify-content:flex-end;margin-top:12px}#ai-assist-root .setTitle .content .main .btn span{width:60px;height:28px;margin-right:16px;border-radius:4px;border:1px solid var(--ai-border-btn);font-size:14px;color:var(--ai-accent);line-height:28px;text-align:center;cursor:pointer}#ai-assist-root .setTitle .content .main .btn span:last-child{background:var(--ai-accent);border-radius:4px;color:var(--ai-text-on-accent)}#ai-assist-root .header{position:relative;width:100%;height:48px;background:linear-gradient(180deg,var(--ai-bg-header-1) 0%,var(--ai-bg-header-2) 100%);border-radius:14px 14px 0 0;display:flex;align-items:center;padding:10px 0;box-sizing:border-box}#ai-assist-root .header>p:first-child{position:absolute;bottom:-15px;margin:revert;display:flex;align-items:center}#ai-assist-root .header>p:first-child img{margin-left:24px;width:70px;height:74px;cursor:pointer}#ai-assist-root .header-title{min-width:0;padding-left:12px;overflow:hidden}#ai-assist-root .header-title span{display:block;font-weight:500;font-size:20px;color:var(--ai-text-title);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ai-assist-root .header-title img{width:16px;height:16px;cursor:pointer;margin-left:6px}#ai-assist-root .header>p:first-child~.header-title{padding-left:0;margin-left:100px}#ai-assist-root .header p:last-child{flex:1;display:flex;justify-content:flex-end;align-items:center}#ai-assist-root .header p:last-child svg{width:24px;height:24px;color:var(--ai-icon-color);cursor:pointer;margin-right:6px;flex-shrink:0}#ai-assist-root .header p:last-child svg:hover{color:var(--ai-icon-hover)}#ai-assist-root .header p:last-child svg:last-child{margin-right:12px}#ai-assist-root .header p:last-child .mute{width:22px;height:22px}#ai-assist-root .header p:last-child .mute.active{color:var(--ai-accent)}#ai-assist-root .ai-history{display:flex;flex-direction:column;height:100%;overflow:hidden;padding-top:12px}#ai-assist-root .ai-history .content{flex:1;margin:0 12px;overflow:hidden;overflow-y:auto}#ai-assist-root .ai-history .ai-add{display:flex;align-items:center;justify-content:center;height:42px;margin:14px 12px;background:var(--ai-bg-card);border-radius:21px;cursor:pointer;transition:background .2s ease}#ai-assist-root .ai-history .ai-add:hover{background:var(--ai-bg-hover)}#ai-assist-root .ai-history .ai-add img{width:16px;height:16px;margin-right:6px}#ai-assist-root .ai-history .ai-add span{font-weight:500;font-size:14px;line-height:20px;color:var(--ai-text-primary)}#ai-assist-root .ai-history .ai-history-group{margin-bottom:8px}#ai-assist-root .ai-history .ai-history-group-title{font-weight:500;font-size:13px;color:var(--ai-text-tertiary);line-height:18px;padding:12px 4px 6px;-webkit-user-select:none;user-select:none}#ai-assist-root .ai-history .ai-history-item{display:flex;align-items:center;justify-content:space-between;background-color:transparent;padding:0 12px;border-radius:12px;height:42px;box-sizing:border-box;cursor:pointer;transition:all .15s linear;animation:ai-history-item-in .35s cubic-bezier(.4,0,.2,1) both;animation-delay:calc(var(--i, 0) * .06s)}#ai-assist-root .ai-history .ai-history-item:hover{background-color:var(--ai-bg-hover-light)}#ai-assist-root .ai-history .ai-history-item:hover .ai-history-item-delete{display:block}#ai-assist-root .ai-history .ai-history-item:first-child{margin-top:0}#ai-assist-root .ai-history .ai-history-item-title{flex:1;min-width:0;font-weight:500;font-size:15px;color:var(--ai-text-dark);line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ai-assist-root .ai-history .ai-history-item-delete{display:none;flex-shrink:0;margin-left:12px;font-weight:400;font-size:14px;color:var(--ai-text-tertiary);line-height:16px;cursor:pointer;transition:color .2s ease}#ai-assist-root .ai-history .ai-history-item-delete:hover{color:#f56c6c}#ai-assist-root .ai-history .ai-history-loading{display:flex;align-items:center;justify-content:center;padding:60px 0}#ai-assist-root .ai-history .ai-history-spinner{width:28px;height:28px;border:3px solid var(--ai-border-drawer);border-top-color:var(--ai-accent);border-radius:50%;animation:ai-spin .7s linear infinite}#ai-assist-root .ai-history .ai-history-empty{text-align:center;padding:60px 0;font-size:14px;color:var(--ai-text-tertiary)}@keyframes ai-spin{to{transform:rotate(360deg)}}@keyframes ai-history-item-in{0%{opacity:0;transform:translate(30px)}to{opacity:1;transform:translate(0)}}#ai-assist-root .ai-history-drawer{position:absolute;top:48px;left:0;right:0;bottom:0;z-index:10;overflow:hidden;border-radius:0 0 14px 14px}#ai-assist-root .ai-history-drawer .ai-history-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--ai-bg-backdrop);animation:ai-fadeIn .3s ease}#ai-assist-root .ai-history-drawer .ai-history-drawer-panel{position:absolute;top:0;right:0;width:100%;height:100%;max-width:500px;background:var(--ai-bg-panel);display:flex;flex-direction:column;animation:ai-drawer-slideIn .3s cubic-bezier(.4,0,.2,1)}#ai-assist-root .ai-history-drawer .ai-history-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:44px;flex-shrink:0;border-bottom:1px solid var(--ai-border-drawer)}#ai-assist-root .ai-history-drawer .ai-history-drawer-header span{font-weight:500;font-size:16px;color:var(--ai-text-primary)}#ai-assist-root .ai-history-drawer .ai-history-drawer-header .ai-history-drawer-close{width:22px;height:22px;color:var(--ai-text-tertiary);cursor:pointer;transition:color .2s ease}#ai-assist-root .ai-history-drawer .ai-history-drawer-header .ai-history-drawer-close:hover{color:var(--ai-text-primary)}#ai-assist-root .ai-history-drawer.closing .ai-history-backdrop{opacity:0;transition:opacity .3s ease}#ai-assist-root .ai-history-drawer.closing .ai-history-drawer-panel{transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}@keyframes ai-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes ai-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes ai-drawer-slideIn{0%{transform:translate(100%)}to{transform:translate(0)}}#ai-assist-root .ai-assist-toast-container{position:fixed;top:24px;left:50%;transform:translate(-50%);z-index:100001;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}#ai-assist-root .ai-assist-toast-container .ai-assist-toast{max-width:80vw;min-width:120px;padding:9px 16px;border-radius:8px;font-size:13px;line-height:20px;color:#fff;background:var(--ai-bg-toast);box-shadow:0 4px 12px #00000026;opacity:0;transform:translateY(-8px);transition:opacity .25s ease,transform .25s ease;word-break:break-all;pointer-events:auto}#ai-assist-root .ai-assist-toast-container .ai-assist-toast--visible{opacity:1;transform:translateY(0)}#ai-assist-root .ai-assist-toast-container .ai-assist-toast--error{background:var(--ai-bg-toast-error)}#ai-assist-root .ai-assist-toast-container .ai-assist-toast--success{background:var(--ai-bg-toast-success)}#ai-assist-root .ai-assist-toast-container .ai-assist-toast--info{background:var(--ai-bg-toast)}#ai-assist-root .ai-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--ai-bg-overlay);display:flex;align-items:center;justify-content:center;z-index:10000}#ai-assist-root .ai-modal{background:var(--ai-bg-card);border-radius:8px;width:300px;box-shadow:var(--ai-shadow-card)}#ai-assist-root .ai-modal-header{padding:16px 24px;font-weight:500;font-size:16px;color:var(--ai-text-primary);border-bottom:1px solid var(--ai-border-divider)}#ai-assist-root .ai-modal-body{padding:24px;font-size:14px;color:var(--ai-text-secondary)}#ai-assist-root .ai-modal-footer{padding:10px 16px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--ai-border-divider)}#ai-assist-root .ai-modal-btn{height:32px;padding:0 16px;border-radius:4px;font-size:14px;cursor:pointer;border:1px solid var(--ai-border-input);background:var(--ai-bg-card);color:var(--ai-text-primary);transition:all .2s}#ai-assist-root .ai-modal-btn:hover{border-color:var(--ai-accent);color:var(--ai-accent)}#ai-assist-root .ai-modal-btn.confirm{background:var(--ai-accent);border-color:var(--ai-accent);color:var(--ai-text-on-accent)}#ai-assist-root .ai-modal-btn.confirm:hover{background:var(--ai-accent-light)}@media(max-width:768px){#ai-assist-root .ai-panel.minWrap{width:calc(100vw - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);bottom:8px;left:8px;right:auto;border-radius:14px}#ai-assist-root .ai-panel.minWrap.panel-left,#ai-assist-root .ai-panel.minWrap.panel-right{left:8px;right:auto}#ai-assist-root .ai-panel.maxWrap{width:100vw;height:100vh;height:100dvh;bottom:0;left:0;transform:none;border-radius:0;box-sizing:border-box;padding-bottom:var(--ai-safe-bottom)}#ai-assist-root .header{height:calc(44px + var(--ai-safe-top));padding:8px 0;padding-top:calc(8px + var(--ai-safe-top));box-sizing:border-box;border-radius:0}#ai-assist-root .header>p:first-child{display:none}#ai-assist-root .header>p:first-child~.header-title{margin-left:20px}#ai-assist-root .header-title span{font-size:17px}#ai-assist-root .header p:last-child svg{width:22px;height:22px;margin-right:4px}#ai-assist-root .header p:last-child svg:last-child{margin-right:8px}#ai-assist-root .back{width:36px;height:36px}#ai-assist-root .back.left{margin-left:12px;margin-right:auto}#ai-assist-root .back.right{margin-left:auto;margin-right:12px}#ai-assist-root .setTitle .content .main{width:calc(100vw - 48px);max-width:360px}#ai-assist-root .setTitle .content .main textarea{width:calc(100% - 32px)}#ai-assist-root .ai-history-drawer{top:calc(44px + var(--ai-safe-top))}#ai-assist-root .ai-history-drawer .ai-history-drawer-panel{max-width:100%;padding-bottom:var(--ai-safe-bottom);box-sizing:border-box}#ai-assist-root .ai-history-drawer .ai-history-drawer-header{padding:0 16px;height:42px}#ai-assist-root .ai-history-drawer .ai-history-drawer-header span{font-size:15px}#ai-assist-root .ai-history .ai-history-item{height:48px}#ai-assist-root .ai-history .ai-history-item-title{font-size:14px}#ai-assist-root .ai-assist-toast-container{top:calc(12px + var(--ai-safe-top))}#ai-assist-root .ai-assist-toast-container .ai-assist-toast{max-width:90vw;font-size:12px;padding:8px 14px}}
|
|
@@ -2097,23 +2097,23 @@ Ie.getAdapter = Xd.getAdapter;
|
|
|
2097
2097
|
Ie.HttpStatusCode = As;
|
|
2098
2098
|
Ie.default = Ie;
|
|
2099
2099
|
const {
|
|
2100
|
-
Axios:
|
|
2101
|
-
AxiosError:
|
|
2102
|
-
CanceledError:
|
|
2103
|
-
isCancel:
|
|
2104
|
-
CancelToken:
|
|
2105
|
-
VERSION:
|
|
2106
|
-
all:
|
|
2107
|
-
Cancel:
|
|
2108
|
-
isAxiosError:
|
|
2109
|
-
spread:
|
|
2110
|
-
toFormData:
|
|
2111
|
-
AxiosHeaders:
|
|
2112
|
-
HttpStatusCode:
|
|
2113
|
-
formToJSON:
|
|
2114
|
-
getAdapter:
|
|
2115
|
-
mergeConfig:
|
|
2116
|
-
create:
|
|
2100
|
+
Axios: kC,
|
|
2101
|
+
AxiosError: FC,
|
|
2102
|
+
CanceledError: UC,
|
|
2103
|
+
isCancel: BC,
|
|
2104
|
+
CancelToken: GC,
|
|
2105
|
+
VERSION: YC,
|
|
2106
|
+
all: qC,
|
|
2107
|
+
Cancel: HC,
|
|
2108
|
+
isAxiosError: VC,
|
|
2109
|
+
spread: zC,
|
|
2110
|
+
toFormData: WC,
|
|
2111
|
+
AxiosHeaders: $C,
|
|
2112
|
+
HttpStatusCode: KC,
|
|
2113
|
+
formToJSON: QC,
|
|
2114
|
+
getAdapter: XC,
|
|
2115
|
+
mergeConfig: ZC,
|
|
2116
|
+
create: JC
|
|
2117
2117
|
} = Ie, RE = {
|
|
2118
2118
|
400: "请求参数错误",
|
|
2119
2119
|
401: "登录已过期,请重新登录",
|
|
@@ -2137,7 +2137,7 @@ const {
|
|
|
2137
2137
|
(t) => Promise.reject(new Error(CE(t)))
|
|
2138
2138
|
), e);
|
|
2139
2139
|
let Is = null;
|
|
2140
|
-
const
|
|
2140
|
+
const jC = (e) => {
|
|
2141
2141
|
Is = e;
|
|
2142
2142
|
}, Hn = () => {
|
|
2143
2143
|
if (!Is) throw new Error("AiAssistSdk 未初始化,请先调用 initAiAssist");
|
|
@@ -2195,13 +2195,13 @@ const Xn = async (e, t = {}, n = "GET", r = {}) => {
|
|
|
2195
2195
|
const t = e.data;
|
|
2196
2196
|
let n;
|
|
2197
2197
|
return typeof t == "string" ? n = JSON.parse(t) : n = t, ys(n);
|
|
2198
|
-
},
|
|
2198
|
+
}, eh = async (e) => {
|
|
2199
2199
|
if (!e.createConversationApi) return;
|
|
2200
2200
|
const t = await yt.post(e.createConversationApi, vt({}));
|
|
2201
2201
|
return ut(t);
|
|
2202
2202
|
};
|
|
2203
2203
|
let Zn = null;
|
|
2204
|
-
const
|
|
2204
|
+
const th = async (e, t) => {
|
|
2205
2205
|
var n;
|
|
2206
2206
|
if (Zn) return Zn;
|
|
2207
2207
|
if (!e.createConversationApi) return null;
|
|
@@ -2216,17 +2216,17 @@ const jC = async (e, t) => {
|
|
|
2216
2216
|
console.error("[ai-assist-sdk] 创建标题生成专用会话失败:", r);
|
|
2217
2217
|
}
|
|
2218
2218
|
return null;
|
|
2219
|
-
},
|
|
2219
|
+
}, nh = async (e) => {
|
|
2220
2220
|
if (!e.getConversationListApi) return null;
|
|
2221
2221
|
const t = await yt.post(e.getConversationListApi, vt({}));
|
|
2222
2222
|
return ut(t);
|
|
2223
|
-
},
|
|
2223
|
+
}, rh = async (e, t) => {
|
|
2224
2224
|
if (!e.deleteConversationApi) return;
|
|
2225
2225
|
const n = await yt.post(e.deleteConversationApi, vt({
|
|
2226
2226
|
AppConversationID: t
|
|
2227
2227
|
}));
|
|
2228
2228
|
ut(n);
|
|
2229
|
-
},
|
|
2229
|
+
}, ah = async (e, t, n) => {
|
|
2230
2230
|
if (!e.updateConversationApi) return;
|
|
2231
2231
|
const r = Hn(), a = await yt.post(e.updateConversationApi, {
|
|
2232
2232
|
app: r.app ?? 1,
|
|
@@ -2234,40 +2234,40 @@ const jC = async (e, t) => {
|
|
|
2234
2234
|
conversationName: n
|
|
2235
2235
|
});
|
|
2236
2236
|
ut(a);
|
|
2237
|
-
},
|
|
2237
|
+
}, ih = async (e, t) => {
|
|
2238
2238
|
if (!e.getConversationMessagesApi) return null;
|
|
2239
2239
|
const r = await ep().post(e.getConversationMessagesApi, vt({
|
|
2240
2240
|
AppConversationID: t,
|
|
2241
2241
|
Limit: 100
|
|
2242
2242
|
}));
|
|
2243
2243
|
return ut(r.data);
|
|
2244
|
-
},
|
|
2244
|
+
}, oh = async (e, t, n) => {
|
|
2245
2245
|
const a = await ep().post(e.chatQueryApi, vt({
|
|
2246
2246
|
Query: t,
|
|
2247
2247
|
AppConversationID: n
|
|
2248
2248
|
}));
|
|
2249
2249
|
return ut(a.data);
|
|
2250
|
-
},
|
|
2250
|
+
}, sh = async (e, t) => {
|
|
2251
2251
|
if (!e.stopMessageApi) return;
|
|
2252
2252
|
const n = await yt.post(e.stopMessageApi, vt({
|
|
2253
2253
|
MessageID: t
|
|
2254
2254
|
}));
|
|
2255
2255
|
ut(n);
|
|
2256
|
-
},
|
|
2256
|
+
}, ch = async (e) => {
|
|
2257
2257
|
if (!e.getSuggestedQuestionsApi) return null;
|
|
2258
2258
|
const t = await yt.post(e.getSuggestedQuestionsApi, vt({}));
|
|
2259
2259
|
return ut(t);
|
|
2260
|
-
},
|
|
2260
|
+
}, lh = async (e, t) => {
|
|
2261
2261
|
if (!e.getMessageInfoApi) return null;
|
|
2262
2262
|
const n = await yt.post(e.getMessageInfoApi, vt({
|
|
2263
2263
|
MessageID: t
|
|
2264
2264
|
}));
|
|
2265
2265
|
return ut(n);
|
|
2266
|
-
},
|
|
2266
|
+
}, uh = async (e) => {
|
|
2267
2267
|
if (!e.getAppConfigApi) return null;
|
|
2268
2268
|
const t = await yt.post(e.getAppConfigApi, vt({}));
|
|
2269
2269
|
return ut(t);
|
|
2270
|
-
},
|
|
2270
|
+
}, _h = async (e) => {
|
|
2271
2271
|
if (!e.getPersonalInfoApi) return null;
|
|
2272
2272
|
const t = await yt.post(e.getPersonalInfoApi, vt({}));
|
|
2273
2273
|
return ut(t);
|
|
@@ -55591,14 +55591,14 @@ const yC = /* @__PURE__ */ Ks(IC), vC = new lt({
|
|
|
55591
55591
|
linkify: !0,
|
|
55592
55592
|
typographer: !0,
|
|
55593
55593
|
breaks: !0
|
|
55594
|
-
}).use(NC, { auto: !0, code: !0, inline: !0, hljs: bC }).use(yC, { multiline: !0, rowspan: !0, headerless: !1 }),
|
|
55594
|
+
}).use(NC, { auto: !0, code: !0, inline: !0, hljs: bC }).use(yC, { multiline: !0, rowspan: !0, headerless: !1 }), dh = (e) => {
|
|
55595
55595
|
const t = vC.render(e || "");
|
|
55596
55596
|
return eg.sanitize(t, {
|
|
55597
55597
|
ALLOWED_TAGS: ["h1", "h2", "h3", "h4", "h5", "h6", "pre", "code", "span", "div", "strong", "em", "a", "img", "ul", "ol", "li", "p", "blockquote", "table", "thead", "tbody", "tr", "th", "td"],
|
|
55598
55598
|
ALLOWED_ATTR: ["href", "src", "alt", "class", "target", "colspan", "rowspan", "style"],
|
|
55599
55599
|
FORCE_BODY: !0
|
|
55600
55600
|
});
|
|
55601
|
-
},
|
|
55601
|
+
}, ph = (e) => e ? ((e.match(/```/g) || []).length % 2 !== 0 && (e += "\n```"), (e.match(new RegExp("(?<!`)`(?!`)", "g")) || []).length % 2 !== 0 && (e += "`"), e) : "", mh = () => {
|
|
55602
55602
|
let e = !1, t = "";
|
|
55603
55603
|
return { copy: async (r) => {
|
|
55604
55604
|
try {
|
|
@@ -55613,7 +55613,7 @@ const yC = /* @__PURE__ */ Ks(IC), vC = new lt({
|
|
|
55613
55613
|
t = a.message;
|
|
55614
55614
|
}
|
|
55615
55615
|
}, isCopied: e, error: t };
|
|
55616
|
-
},
|
|
55616
|
+
}, Eh = (e) => {
|
|
55617
55617
|
let t = e.replace(/<br\s*\/?>/gi, `
|
|
55618
55618
|
`).replace(/<[^>]+>/g, "");
|
|
55619
55619
|
return t = t.replace(/ /gi, " ").replace(/&[a-z]+;/gi, ""), t.replace(/\s+/g, " ").trim();
|
|
@@ -55625,14 +55625,14 @@ const yC = /* @__PURE__ */ Ks(IC), vC = new lt({
|
|
|
55625
55625
|
error: "系统繁忙,请稍后再试",
|
|
55626
55626
|
stop: "已停止回答",
|
|
55627
55627
|
completed: "复制内容"
|
|
55628
|
-
},
|
|
55628
|
+
}, gh = (e) => e && DC[e] || "", Sh = (e) => {
|
|
55629
55629
|
if (!(e != null && e.length)) return [];
|
|
55630
55630
|
const t = typeof e[0] == "string", n = t ? [...e].sort((r, a) => Number(r) - Number(a)) : [...e].sort((r, a) => r.seq - a.seq);
|
|
55631
55631
|
return Array.from(
|
|
55632
55632
|
{ length: Math.ceil(n.length / 3) },
|
|
55633
55633
|
(r, a) => n.slice(a * 3, (a + 1) * 3).map((i) => t ? i : i.question)
|
|
55634
55634
|
);
|
|
55635
|
-
},
|
|
55635
|
+
}, fh = (e) => e.includes("Exceeded LLM tokens limit") ? "系统繁忙,请稍后再试" : e, bh = (e) => {
|
|
55636
55636
|
const r = e.split(`
|
|
55637
55637
|
`).filter((i) => i.startsWith("data:")).map((i) => i.replace("data:", "").trim()).filter(Boolean);
|
|
55638
55638
|
if (r.length === 0) return "";
|
|
@@ -55643,7 +55643,7 @@ const yC = /* @__PURE__ */ Ks(IC), vC = new lt({
|
|
|
55643
55643
|
} catch {
|
|
55644
55644
|
return a;
|
|
55645
55645
|
}
|
|
55646
|
-
},
|
|
55646
|
+
}, Th = (e) => {
|
|
55647
55647
|
const t = e.split(`
|
|
55648
55648
|
`);
|
|
55649
55649
|
let n = "";
|
|
@@ -55658,6 +55658,15 @@ const yC = /* @__PURE__ */ Ks(IC), vC = new lt({
|
|
|
55658
55658
|
}
|
|
55659
55659
|
}
|
|
55660
55660
|
}), n;
|
|
55661
|
+
}, Rh = () => {
|
|
55662
|
+
if (typeof document > "u") return;
|
|
55663
|
+
let e = document.querySelector('meta[name="viewport"]');
|
|
55664
|
+
if (!e) {
|
|
55665
|
+
e = document.createElement("meta"), e.setAttribute("name", "viewport"), e.setAttribute("content", "width=device-width, initial-scale=1.0, viewport-fit=cover"), document.head.appendChild(e);
|
|
55666
|
+
return;
|
|
55667
|
+
}
|
|
55668
|
+
const t = e.getAttribute("content") || "";
|
|
55669
|
+
/viewport-fit\s*=/.test(t) || e.setAttribute("content", `${t.trim().replace(/,\s*$/, "")}, viewport-fit=cover`);
|
|
55661
55670
|
}, Dd = 1440 * 60 * 1e3, Rs = (e) => {
|
|
55662
55671
|
if (e.createTimestamp) return e.createTimestamp * 1e3;
|
|
55663
55672
|
if (e.createTime) {
|
|
@@ -55665,7 +55674,7 @@ const yC = /* @__PURE__ */ Ks(IC), vC = new lt({
|
|
|
55665
55674
|
if (!isNaN(t)) return t;
|
|
55666
55675
|
}
|
|
55667
55676
|
return 0;
|
|
55668
|
-
},
|
|
55677
|
+
}, Ch = (e) => {
|
|
55669
55678
|
const t = /* @__PURE__ */ new Date(), n = new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime(), r = n - 7 * Dd, a = n - 30 * Dd, i = [], o = [], s = [], c = /* @__PURE__ */ new Map(), l = [...e].sort((m, p) => Rs(p) - Rs(m));
|
|
55670
55679
|
for (const m of l) {
|
|
55671
55680
|
const p = Rs(m);
|
|
@@ -55687,33 +55696,47 @@ const yC = /* @__PURE__ */ Ks(IC), vC = new lt({
|
|
|
55687
55696
|
for (const m of _)
|
|
55688
55697
|
u.push({ label: m, items: c.get(m) });
|
|
55689
55698
|
return u;
|
|
55699
|
+
}, xC = "#ai-assist-root", MC = (e = "light") => e === "auto" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e, hh = (e = "light") => {
|
|
55700
|
+
const t = MC(e), n = document.querySelector(xC);
|
|
55701
|
+
return n && n.setAttribute("data-theme", t), t;
|
|
55702
|
+
}, Nh = (e) => {
|
|
55703
|
+
if (typeof window > "u" || !window.matchMedia) return () => {
|
|
55704
|
+
};
|
|
55705
|
+
const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (r) => {
|
|
55706
|
+
e(r.matches ? "dark" : "light");
|
|
55707
|
+
};
|
|
55708
|
+
return t.addEventListener("change", n), () => t.removeEventListener("change", n);
|
|
55690
55709
|
};
|
|
55691
55710
|
export {
|
|
55692
|
-
|
|
55711
|
+
bh as A,
|
|
55712
|
+
Xn as B,
|
|
55713
|
+
MC as C,
|
|
55714
|
+
gh as D,
|
|
55715
|
+
fh as E,
|
|
55693
55716
|
ep as a,
|
|
55694
|
-
|
|
55695
|
-
|
|
55717
|
+
ah as b,
|
|
55718
|
+
eh as c,
|
|
55696
55719
|
Hn as d,
|
|
55697
|
-
|
|
55698
|
-
|
|
55699
|
-
|
|
55700
|
-
|
|
55701
|
-
|
|
55702
|
-
|
|
55703
|
-
|
|
55704
|
-
|
|
55705
|
-
|
|
55706
|
-
|
|
55707
|
-
|
|
55708
|
-
|
|
55709
|
-
|
|
55710
|
-
|
|
55711
|
-
|
|
55712
|
-
|
|
55713
|
-
|
|
55714
|
-
|
|
55715
|
-
|
|
55716
|
-
|
|
55717
|
-
|
|
55718
|
-
|
|
55720
|
+
th as e,
|
|
55721
|
+
Sh as f,
|
|
55722
|
+
ih as g,
|
|
55723
|
+
Ch as h,
|
|
55724
|
+
nh as i,
|
|
55725
|
+
rh as j,
|
|
55726
|
+
_h as k,
|
|
55727
|
+
hh as l,
|
|
55728
|
+
Rh as m,
|
|
55729
|
+
jC as n,
|
|
55730
|
+
oh as o,
|
|
55731
|
+
ph as p,
|
|
55732
|
+
Eh as q,
|
|
55733
|
+
dh as r,
|
|
55734
|
+
sh as s,
|
|
55735
|
+
uh as t,
|
|
55736
|
+
mh as u,
|
|
55737
|
+
lh as v,
|
|
55738
|
+
Nh as w,
|
|
55739
|
+
ch as x,
|
|
55740
|
+
yt as y,
|
|
55741
|
+
Th as z
|
|
55719
55742
|
};
|