dsh-cost-meter 1.9.11 → 1.9.13
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/README.md +575 -575
- package/README.zh-CN.md +579 -579
- package/THIRD_PARTY_NOTICES.md +27 -0
- package/docs/display-settings.md +2 -0
- package/docs/update-notes-1.9.12.md +47 -0
- package/docs/update-notes-1.9.13.md +86 -0
- package/lib/billing-history.js +19 -8
- package/lib/client.display.js +2 -2
- package/lib/client.js +5 -5
- package/lib/client.session-list.js +2 -0
- package/lib/client.statistics.js +8 -8
- package/lib/coding-plans.js +98 -1
- package/lib/index.js +23 -1
- package/lib/model-labels.js +43 -0
- package/lib/plan-billing.js +1 -1
- package/lib/pricing.js +26 -4
- package/lib/session-tree.js +24 -0
- package/lib/store.js +11 -3
- package/lib/typert.host.js +14 -2
- package/lib/workbuddy.js +301 -0
- package/package.json +206 -202
package/lib/client.display.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
window.__ModuleLoader__.load({id:"dsh-cost-meter",chunk:"client.display.js",factory:be=>{const R=be("react"),{createElement:a,useState:Y}=R,ve=R.Fragment;function ye(g){const e=(i,m)=>g.createElement(i,m),r=e,t=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M2.37091 11.2501C1.58745 9.89288 1.32067 8.29835 1.61969 6.76006C1.91872 5.22177 2.76342 3.8433 3.99826 2.87846C5.2331 1.91362 6.77494 1.42737 8.33988 1.50925C9.90482 1.59113 11.3875 2.23562 12.5149 3.32406C13.6425 4.41269 14.3387 5.87206 14.4754 7.4334C14.612 8.99474 14.18 10.5529 13.2587 11.8209C12.3375 13.0888 10.9891 13.9813 9.46194 14.3337C8.18691 14.628 6.85895 14.5294 5.64989 14.0605C5.1712 13.8748 4.76962 13.4932 4.26534 13.3967C3.67413 13.2835 2.95257 13.5598 2.03794 14.3337",stroke:"currentColor"}),e("path",{d:"M8 5V11",stroke:"currentColor"}),e("path",{d:"M5 8H11",stroke:"currentColor"})]}),v=({size:i=14,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M4.67398 4.25061L1.36094 7.86484C1.29085 7.9413 1.29085 8.05866 1.36094 8.13513L4.67398 11.7494",stroke:"currentColor"}),e("path",{d:"M11.3262 4.25061L14.6392 7.86484C14.7093 7.9413 14.7093 8.05866 14.6392 8.13513L11.3262 11.7494",stroke:"currentColor"}),e("path",{d:"M9.56222 3.62573L6.43774 12.3743",stroke:"currentColor"})]}),x=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M1.50439 3.11059C1.50439 2.55831 1.95211 2.1106 2.50439 2.1106H5.43389C5.67773 2.1106 5.91318 2.19969 6.09593 2.36113L7.71649 3.79265C7.89924 3.95409 8.1347 4.04319 8.3785 4.04319H13.4958C14.0481 4.04319 14.4958 4.4909 14.4958 5.04319V12.8894C14.4958 13.4417 14.0481 13.8894 13.4958 13.8894H2.50439C1.95211 13.8894 1.50439 13.4417 1.50439 12.8894V4.04319V3.11059Z",stroke:"currentColor"}),e("path",{d:"M3.63501 7.66614H12.3647",stroke:"currentColor"})]}),S=i=>e(t,{...i,strokeWidth:1}),p=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M6.58727 11.8586C9.55061 11.8586 11.9529 9.45637 11.9529 6.49304C11.9529 3.5297 9.55061 1.12744 6.58727 1.12744C3.62394 1.12744 1.22168 3.5297 1.22168 6.49304C1.22168 9.45637 3.62394 11.8586 6.58727 11.8586Z",stroke:"currentColor"}),e("path",{d:"M10.2991 10.3933L14.7783 14.8725",stroke:"currentColor"})]}),f=i=>e(p,{...i,strokeWidth:1}),s=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M13.5 1.5H2.5C1.94772 1.5 1.5 1.94772 1.5 2.5V13.5C1.5 14.0523 1.94772 14.5 2.5 14.5H13.5C14.0523 14.5 14.5 14.0523 14.5 13.5V2.5C14.5 1.94772 14.0523 1.5 13.5 1.5Z",stroke:"currentColor"}),e("path",{d:"M5.5 1.5V14.5",stroke:"currentColor"})]}),c=i=>e(s,{...i,strokeWidth:1}),k=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M3 9C3.55228 9 4 8.55228 4 8C4 7.44772 3.55228 7 3 7C2.44772 7 2 7.44772 2 8C2 8.55228 2.44772 9 3 9Z",fill:"currentColor"}),e("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),e("path",{d:"M13 9C13.5523 9 14 8.55228 14 8C14 7.44772 13.5523 7 13 7C12.4477 7 12 7.44772 12 8C12 8.55228 12.4477 9 13 9Z",fill:"currentColor"})]}),n=i=>e(k,{...i,strokeWidth:1}),b=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M8 2V14",stroke:"currentColor"}),e("path",{d:"M2 8H14",stroke:"currentColor"})]}),N=i=>e(b,{...i,strokeWidth:1}),u=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M1.01503 8.0001L5.6964 8.0001C6.41913 8.0001 6.78049 8.0001 7.12115 7.91951C7.4232 7.84804 7.71233 7.73014 7.97821 7.57C8.27809 7.38939 8.5364 7.13669 9.05303 6.63129L11.3281 4.40564",stroke:"currentColor"}),e("path",{d:"M1.01221 7.9999L5.6964 7.9999C6.41913 7.9999 6.78049 7.9999 7.12115 8.08049C7.4232 8.15196 7.71233 8.26986 7.97821 8.43C8.27809 8.61061 8.5364 8.86331 9.05303 9.36871L11.3281 11.5944",stroke:"currentColor"}),e("circle",{cx:"12.4502",cy:"3.3079",r:"1.56962",stroke:"currentColor"}),e("circle",{cx:"12.4502",cy:"12.6921",r:"1.56962",stroke:"currentColor"})]}),L=i=>e(u,{...i,strokeWidth:1}),h=({size:i=14,className:m,strokeWidth:d})=>e("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:e("path",{d:"M4 6L7.29289 9.29289C7.68342 9.68342 8.31658 9.68342 8.70711 9.29289L12 6",stroke:"currentColor"})}),U=i=>e(h,{...i,strokeWidth:1}),F=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M2.5 2.5L13.5 13.5",stroke:"currentColor"}),e("path",{d:"M13.5 2.5L2.5 13.5",stroke:"currentColor"})]}),q=i=>e(F,{...i,strokeWidth:1}),O=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("rect",{x:"1.52075",y:"4.07373",width:"10.3932",height:"10.3932",rx:"2",stroke:"currentColor"}),e("path",{d:"M11.9792 1.53296C13.36 1.53296 14.4792 2.65225 14.4792 4.03296V9.42847C14.4792 10.3756 13.9521 11.1987 13.1755 11.6228V10.3298C13.3652 10.0787 13.4792 9.7674 13.4792 9.42847V4.03296C13.4792 3.20453 12.8077 2.53296 11.9792 2.53296H6.58374C6.27966 2.53301 5.99684 2.6235 5.7605 2.77905H4.42358C4.85652 2.03463 5.66056 1.53304 6.58374 1.53296H11.9792Z",fill:"currentColor"})]}),w=i=>e(O,{...i,strokeWidth:1}),Z=({size:i=16,className:m,strokeWidth:d})=>e("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:e("path",{d:"M13.537 8.12098L12.3983 12.8455C12.1818 13.7438 11.378 14.3769 10.454 14.3769L9.35595 14.3769H7.43799H5.16577C3.50892 14.3769 2.16577 13.0337 2.16577 11.3769V7.88668C2.16577 7.33439 2.61349 6.88668 3.16577 6.88668H4.02665C5.84943 6.88668 7.38083 3.28711 7.67689 2.54578C7.71259 2.45639 7.73501 2.36373 7.77922 2.27824C7.86506 2.11221 8.08228 1.87578 8.59039 2.07775C10.3291 2.76886 9.23144 6.04071 8.96955 6.75058C8.94502 6.81707 8.99495 6.88668 9.06581 6.88668H12.5648C13.2119 6.88668 13.6886 7.49192 13.537 8.12098Z",stroke:"currentColor"})}),I=i=>e(Z,{...i,strokeWidth:1}),A=({size:i=16,className:m,strokeWidth:d})=>e("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:e("path",{d:"M2.46302 8.06749L3.60171 3.34299C3.81822 2.44467 4.62196 1.81162 5.546 1.8116L6.64406 1.81158L8.56202 1.81158L10.8342 1.81158C12.4911 1.81158 13.8342 3.15473 13.8342 4.81158L13.8342 8.3018C13.8342 8.85408 13.3865 9.3018 12.8342 9.3018L11.9734 9.3018C10.1506 9.3018 8.61918 12.9014 8.32311 13.6427C8.28741 13.7321 8.26499 13.8247 8.22078 13.9102C8.13494 14.0763 7.91772 14.3127 7.40961 14.1107C5.67089 13.4196 6.76856 10.1478 7.03045 9.43789C7.05498 9.37141 7.00505 9.3018 6.93419 9.3018L3.43519 9.3018C2.78811 9.3018 2.31141 8.69656 2.46302 8.06749Z",stroke:"currentColor"})}),z=i=>e(A,{...i,strokeWidth:1}),T=({size:i=16,className:m,strokeWidth:d})=>e("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:e("path",{d:"M14.1256 7.58723C14.3483 7.81942 14.3482 8.18589 14.1254 8.41799L8.6646 14.1077C8.53985 14.2377 8.32031 14.1494 8.32031 13.9692L8.32035 10.2039C8.32035 10.1943 8.31534 10.1864 8.30592 10.1849C8.08306 10.148 5.30067 9.7729 1.50993 13.2904C1.49711 13.3023 1.47561 13.2943 1.4757 13.2768C1.49273 9.87168 3.42001 5.07166 8.29999 5.05835C8.31103 5.05832 8.32035 5.04937 8.32035 5.03832L8.32031 2.03109C8.32031 1.85088 8.53993 1.76259 8.66466 1.89266L14.1256 7.58723Z",stroke:"currentColor"})}),H=i=>e(T,{...i,strokeWidth:1}),K=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M8 8.25C9.51878 8.25 10.75 7.01878 10.75 5.5C10.75 3.98122 9.51878 2.75 8 2.75C6.48122 2.75 5.25 3.98122 5.25 5.5C5.25 7.01878 6.48122 8.25 8 8.25Z",stroke:"currentColor"}),e("path",{d:"M2.5 14.5C2.5 11.5 5.25 10.25 8 10.25C10.75 10.25 13.5 11.5 13.5 14.5",stroke:"currentColor"})]}),$=i=>e(K,{...i,strokeWidth:1}),B=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M6 8.25C7.51878 8.25 8.75 7.01878 8.75 5.5C8.75 3.98122 7.51878 2.75 6 2.75C4.48122 2.75 3.25 3.98122 3.25 5.5C3.25 7.01878 4.48122 8.25 6 8.25Z",stroke:"currentColor"}),e("path",{d:"M1 14.5C1 11.5 3.5 10.25 6 10.25C8.5 10.25 11 11.5 11 14.5",stroke:"currentColor"}),e("path",{d:"M10.5 2.9C11.65 3.35 12.45 4.35 12.45 5.5C12.45 6.65 11.65 7.65 10.5 8.1",stroke:"currentColor"}),e("path",{d:"M12.4 10.6C13.9 11.3 15 12.6 15 14.5",stroke:"currentColor"})]}),Q=i=>e(B,{...i,strokeWidth:1}),ee=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M2.33154 9.40576V13.1685C2.3318 13.4444 2.55556 13.6685 2.83154 13.6685H6.49463V14.6685H2.83154C2.00328 14.6685 1.3318 13.9967 1.33154 13.1685V9.40576H2.33154ZM13.1685 1.33154C13.9964 1.33199 14.6683 2.00352 14.6685 2.83154V6.40576H13.6685V2.83154C13.6683 2.5558 13.4441 2.33199 13.1685 2.33154H9.49463V1.33154H13.1685Z",fill:"currentColor"}),e("path",{d:"M9.4292 6.57077L13.914 2.08594",stroke:"currentColor"}),e("path",{d:"M6.57077 9.4292L2.08594 13.914",stroke:"currentColor"})]}),_=i=>e(ee,{...i,strokeWidth:1}),ae=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M5.54492 2.06738C5.91034 2.06754 6.26318 2.20149 6.53711 2.44336L7.94043 3.68164V4.7998C7.71462 4.74105 7.50367 4.63139 7.32617 4.47461L5.87598 3.19238C5.78477 3.11185 5.66658 3.06754 5.54492 3.06738H2.94922C2.67322 3.06738 2.44946 3.29145 2.44922 3.56738V12.4326C2.44927 12.7087 2.67311 12.9326 2.94922 12.9326H12.9326C13.2086 12.9325 13.4326 12.7086 13.4326 12.4326V8.53613H14.4326V12.4326C14.4326 13.2609 13.7609 13.9325 12.9326 13.9326H2.94922C2.12083 13.9326 1.44927 13.261 1.44922 12.4326V3.56738C1.44946 2.73916 2.12094 2.06738 2.94922 2.06738H5.54492Z",fill:"currentColor"}),e("path",{d:"M9.75977 4.50208H14.5509",stroke:"currentColor"}),e("path",{d:"M12.1492 6.89758L12.1492 2.10642",stroke:"currentColor"})]}),o=i=>e(ae,{...i,strokeWidth:1}),y=i=>e(x,{...i,strokeWidth:1}),M=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M13.1967 5.1869C13.7232 4.77378 14.0003 4.30517 14.0001 3.82819C14.0003 3.3512 13.7232 2.88259 13.1967 2.46947C12.6702 2.05635 11.9128 1.71328 11.0006 1.47475C10.0885 1.23621 9.05371 1.11062 8.00039 1.1106C6.94707 1.11057 5.9123 1.23612 5.00009 1.47461C4.08742 1.71301 3.32948 2.05604 2.80249 2.46919C2.2755 2.88235 1.99805 3.35106 1.99805 3.82819C1.99805 4.30531 2.2755 4.77402 2.80249 5.18718C3.32948 5.60033 4.08742 5.94336 5.00009 6.18176C5.9123 6.42025 6.94707 6.5458 8.00039 6.54578C9.05371 6.54575 10.0885 6.42016 11.0006 6.18163C11.9128 5.94309 12.6702 5.60002 13.1967 5.1869Z",stroke:"currentColor"}),e("path",{d:"M2 3.80371V11.7848",stroke:"currentColor"}),e("path",{d:"M14 3.80371V11.7848",stroke:"currentColor"}),e("path",{d:"M2 7.81396C2 8.60524 2.63214 9.36411 3.75736 9.92363C4.88258 10.4832 6.4087 10.7975 8 10.7975C9.5913 10.7975 11.1174 10.4832 12.2426 9.92363C13.3679 9.36411 14 8.60524 14 7.81396",stroke:"currentColor"}),e("path",{d:"M2 11.7847C2 12.6081 2.63214 13.3977 3.75736 13.98C4.88258 14.5622 6.4087 14.8893 8 14.8893C9.5913 14.8893 11.1174 14.5622 12.2426 13.98C13.3679 13.3977 14 12.6081 14 11.7847",stroke:"currentColor"})]}),P=i=>e(M,{...i,strokeWidth:1}),D=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:"currentColor"}),e("path",{d:"M8 4.31V8.46L11 10.08",stroke:"currentColor"})]}),J=i=>e(D,{...i,strokeWidth:1}),ie=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M3.4041 13.096C2.49514 12.187 1.87614 11.0288 1.62537 9.76798C1.37459 8.50716 1.50331 7.20028 1.99525 6.01261C2.48719 4.82494 3.32025 3.80981 4.3891 3.09557C5.45795 2.38134 6.71458 2.00008 8.0001 2C9.28563 2.00008 10.5423 2.38134 11.6111 3.09557C12.68 3.80981 13.513 4.82494 14.005 6.01261C14.4969 7.20028 14.6256 8.50716 14.3748 9.76798C14.1241 11.0288 13.5051 12.187 12.5961 13.096",stroke:"currentColor"}),e("path",{d:"M8 8.49994L11.6114 4.88855",stroke:"currentColor"}),e("path",{d:"M8 9.75C8.69036 9.75 9.25 9.19036 9.25 8.5C9.25 7.80964 8.69036 7.25 8 7.25C7.30964 7.25 6.75 7.80964 6.75 8.5C6.75 9.19036 7.30964 9.75 8 9.75Z",fill:"currentColor"})]}),ne=i=>e(ie,{...i,strokeWidth:1}),te=({size:i=14,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M6.97211 1.94476C7.55785 1.35914 8.50767 1.35919 9.09343 1.94476L13.921 6.77228L13.2138 7.47939L8.38632 2.65187C8.19108 2.45682 7.87443 2.45677 7.67922 2.65187L2.74397 7.58711L2.03687 6.88L6.97211 1.94476Z",fill:"currentColor"}),e("path",{d:"M7.97571 14.5732L8.02421 2.34139",stroke:"currentColor"})]}),E=i=>e(te,{...i,strokeWidth:1}),se=i=>e(v,{...i,size:i.size??12,strokeWidth:1}),oe=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M7.84457 5.06199C11.6605 4.93876 14.7962 6.14848 14.8484 7.76397C14.8875 8.97461 13.1838 10.0696 10.7215 10.5942",stroke:"currentColor"}),e("path",{d:"M5.12742 8.07731C5.00419 4.26138 6.21391 1.12568 7.8294 1.07351C9.04004 1.03441 10.135 2.73808 10.6596 5.20037",stroke:"currentColor"}),e("path",{d:"M8.02457 10.6802C4.20865 10.8034 1.07294 9.5937 1.02077 7.97821C0.981678 6.76758 2.68535 5.67262 5.14763 5.14798",stroke:"currentColor"}),e("path",{d:"M10.7476 7.89535C10.8708 11.7113 9.66109 14.847 8.0456 14.8991C6.83496 14.9382 5.74 13.2346 5.21536 10.7723",stroke:"currentColor"})]}),de=i=>e(oe,{...i,strokeWidth:1}),re=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M2.3 5h5.85M12.05 5h1.65"}),e("circle",{cx:"9.95",cy:"5",r:"1.45"}),e("path",{d:"M2.3 11h1.65M7.85 11h5.85"}),e("circle",{cx:"5.75",cy:"11",r:"1.45"})]}),ce=i=>e(re,{...i,strokeWidth:1}),le=({size:i=16,className:m,strokeWidth:d})=>r("svg",{width:i,height:i,viewBox:"0 0 16 16",className:m,fill:"none",stroke:"currentColor",strokeWidth:d,"aria-hidden":"true",children:[e("rect",{x:4.5+d/2,y:1+d/2,width:7-d,height:10-d,rx:(7-d)/2}),e("path",{d:"M2.35 8.675C3.075 11.3 5.2 13.125 8 13.125C10.8 13.125 12.925 11.3 13.65 8.675M8 13.125V15"})]}),pe=i=>e(le,{...i,strokeWidth:1});function W({size:i=24,className:m,includeMark:d=!0}){return r("svg",{width:i*(d?182:156)/24,height:i,className:m,viewBox:d?"0 0 182 24":"26 0 156 24",fill:"none","aria-hidden":"true",children:[e("path",{d:"M68.416 18.2447H67.0501V16.1272H68.416C69.2619 16.1272 70.1166 15.9163 70.6671 15.3304C71.2181 14.7444 71.426 13.8455 71.426 12.9471C71.426 12.0487 71.2268 11.1498 70.6671 10.5643C70.1083 9.97831 69.2619 9.76744 68.416 9.76744C67.5701 9.76744 66.7154 9.97831 66.1639 10.5643C65.6129 11.1503 65.4049 12.0487 65.4049 12.9471V21.6435H63.009V7.6582H65.4049V8.54883H65.8442C65.8918 8.49393 65.9394 8.44728 65.9875 8.40064C66.5871 7.85353 67.5049 7.6582 68.4072 7.6582C69.8212 7.6582 71.2341 8.00998 72.1607 8.98662C73.0868 9.96325 73.4143 11.4632 73.4143 12.9558C73.4143 14.4485 73.0785 15.9406 72.1607 16.925C71.2424 17.9094 69.8212 18.2457 68.416 18.2457V18.2447Z",fill:"currentColor"}),e("path",{d:"M31.9551 8.03497H33.3204V10.1525H31.9551C31.1087 10.1525 30.2545 10.3633 29.7035 10.9493C29.1525 11.5353 28.945 12.4342 28.945 13.3326C28.945 14.231 29.1447 15.1294 29.7035 15.7154C30.2623 16.3014 31.1087 16.5122 31.9551 16.5122C32.8015 16.5122 33.6562 16.3014 34.2072 15.7154C34.7582 15.1294 34.9657 14.231 34.9657 13.3326V4.62842H37.3611V18.6219H34.9657V17.7313H34.5264C34.4783 17.7857 34.4307 17.8329 34.3826 17.8795C33.7835 18.4261 32.8652 18.6219 31.9629 18.6219C30.5494 18.6219 29.136 18.2707 28.2099 17.294C27.2838 16.3174 26.9563 14.817 26.9563 13.3248C26.9563 11.8327 27.2916 10.34 28.2099 9.35561C29.136 8.37898 30.5494 8.03497 31.9551 8.03497Z",fill:"currentColor"}),e("path",{d:"M49.3786 13.1431V13.9948H42.9984V12.2996H47.2305C47.1348 11.6825 46.9113 11.1043 46.5119 10.682C45.9371 10.0727 45.0503 9.85409 44.1723 9.85409C43.2943 9.85409 42.4076 10.0727 41.8328 10.682C41.258 11.2913 41.05 12.2213 41.05 13.1435C41.05 14.0658 41.2575 15.003 41.8328 15.6046C42.4076 16.2061 43.2939 16.433 44.1723 16.433C45.0508 16.433 45.9371 16.2143 46.5119 15.6046C46.5916 15.5186 46.6635 15.4248 46.7354 15.331H49.0992C48.8918 16.0657 48.5643 16.7299 48.0691 17.2454C47.111 18.2531 45.6339 18.6205 44.1723 18.6205C42.7108 18.6205 41.2337 18.2609 40.2755 17.2454C39.3174 16.2299 38.9661 14.6828 38.9661 13.1435C38.9661 11.6043 39.3096 10.0494 40.2755 9.04168C41.242 8.03396 42.7108 7.66663 44.1723 7.66663C45.6339 7.66663 47.111 8.02618 48.0691 9.04168C49.0351 10.0572 49.3786 11.6043 49.3786 13.1435V13.1431Z",fill:"currentColor"}),e("path",{d:"M61.4045 13.1431V13.9948H55.0243V12.2996H59.2564C59.1602 11.6825 58.9372 11.1043 58.5378 10.682C57.963 10.0727 57.0762 9.85409 56.1982 9.85409C55.3202 9.85409 54.4335 10.0727 53.8587 10.682C53.2839 11.2913 53.0759 12.2213 53.0759 13.1435C53.0759 14.0658 53.2834 15.003 53.8587 15.6046C54.4335 16.2061 55.3202 16.433 56.1982 16.433C57.0762 16.433 57.963 16.2143 58.5378 15.6046C58.6179 15.5186 58.6894 15.4248 58.7608 15.331H61.1251C60.9171 16.0657 60.5897 16.7299 60.0945 17.2454C59.1364 18.2531 57.6593 18.6205 56.1982 18.6205C54.7372 18.6205 53.2596 18.2609 52.3014 17.2454C51.3432 16.2299 50.9919 14.6828 50.9919 13.1435C50.9919 11.6043 51.3355 10.0494 52.3014 9.04168C53.2678 8.03396 54.7367 7.66663 56.1982 7.66663C57.6598 7.66663 59.1364 8.02618 60.0945 9.04168C61.061 10.0572 61.4045 11.6043 61.4045 13.1435V13.1431Z",fill:"currentColor"}),e("path",{d:"M80.242 18.6214C81.7035 18.6214 83.1801 18.4105 84.1383 17.809C85.0965 17.2075 85.4482 16.2931 85.4482 15.3869C85.4482 14.4807 85.1042 13.5585 84.1383 12.9647C83.1801 12.371 81.703 12.1518 80.242 12.1518C79.6186 12.1518 79.0438 12.0658 78.6366 11.8394C78.2294 11.6047 78.0778 11.2534 78.0778 10.9017C78.0778 10.5499 78.2216 10.1908 78.6366 9.9639C79.0438 9.72921 79.6749 9.65147 80.2973 9.65147C80.9198 9.65147 81.5509 9.73747 81.9591 9.9639C82.3663 10.1986 82.5179 10.5499 82.5179 10.9017H84.9531C84.9531 9.99499 84.6421 9.07327 83.7719 8.47951C82.9017 7.88576 81.5679 7.66663 80.2424 7.66663C78.9169 7.66663 77.5837 7.8775 76.713 8.47951C75.8427 9.08104 75.5308 9.99499 75.5308 10.9017C75.5308 11.8083 75.8423 12.73 76.713 13.3238C77.5832 13.9176 78.9165 14.1367 80.2424 14.1367C80.929 14.1367 81.688 14.2227 82.1428 14.4491C82.5985 14.676 82.7579 15.0351 82.7579 15.3869C82.7579 15.7387 82.5985 16.0977 82.1428 16.3246C81.688 16.5511 80.9931 16.6371 80.3066 16.6371C79.62 16.6371 78.9169 16.5511 78.4694 16.3246C78.0224 16.0982 77.8543 15.7387 77.8543 15.3869H75.0435C75.0435 16.2935 75.3865 17.2153 76.3534 17.809C77.3194 18.4028 78.7809 18.6214 80.2424 18.6214H80.242Z",fill:"currentColor"}),e("path",{d:"M97.4733 13.1431V13.9948H91.0932V12.2996H95.3252C95.23 11.6825 95.006 11.1043 94.6071 10.682C94.0313 10.0727 93.1456 9.85409 92.2666 9.85409C91.3876 9.85409 90.5018 10.0727 89.927 10.682C89.3522 11.2913 89.1452 12.2213 89.1452 13.1435C89.1452 14.0658 89.3522 15.003 89.927 15.6046C90.5018 16.2061 91.3886 16.433 92.2666 16.433C93.1446 16.433 94.0313 16.2143 94.6071 15.6046C94.6863 15.5186 94.7587 15.4248 94.8301 15.331H97.1935C96.9855 16.0657 96.6585 16.7299 96.1639 17.2454C95.2057 18.2531 93.7281 18.6205 92.2666 18.6205C90.805 18.6205 89.3284 18.2609 88.3703 17.2454C87.4121 16.2299 87.0613 14.6828 87.0613 13.1435C87.0613 11.6043 87.4043 10.0494 88.3703 9.04168C89.3367 8.03396 90.806 7.66663 92.2666 7.66663C93.7272 7.66663 95.2057 8.02618 96.1639 9.04168C97.1298 10.0572 97.4729 11.6043 97.4729 13.1435L97.4733 13.1431Z",fill:"currentColor"}),e("path",{d:"M109.499 13.1431V13.9948H103.119V12.2996H107.351C107.256 11.6825 107.032 11.1043 106.632 10.682C106.057 10.0727 105.172 9.85409 104.293 9.85409C103.414 9.85409 102.528 10.0727 101.953 10.682C101.378 11.2913 101.17 12.2213 101.17 13.1435C101.17 14.0658 101.378 15.003 101.953 15.6046C102.528 16.2061 103.415 16.433 104.293 16.433C105.171 16.433 106.057 16.2143 106.632 15.6046C106.712 15.5186 106.784 15.4248 106.856 15.331H109.22C109.012 16.0657 108.685 16.7299 108.19 17.2454C107.231 18.2531 105.754 18.6205 104.293 18.6205C102.831 18.6205 101.355 18.2609 100.396 17.2454C99.4382 16.2299 99.0864 14.6828 99.0864 13.1435C99.0864 11.6043 99.4295 10.0494 100.396 9.04168C101.362 8.03396 102.832 7.66663 104.293 7.66663C105.754 7.66663 107.231 8.02618 108.19 9.04168C109.156 10.0572 109.499 11.6043 109.499 13.1435V13.1431Z",fill:"currentColor"}),e("path",{d:"M113.5 4.62817H111.104V18.6217H113.5V4.62817Z",fill:"currentColor"}),e("path",{d:"M117.589 12.8154L121.517 18.6208H118.554L114.625 12.8154L118.554 8.15088H121.517L117.589 12.8154Z",fill:"currentColor"}),e("g",{clipPath:"url(#dsh-wordmark-whale-clip)",children:e("path",{d:"M23.0584 4.95203C22.8129 4.83203 22.7074 5.06103 22.5639 5.17704C22.5149 5.21454 22.4734 5.26354 22.4319 5.30854C22.0734 5.69155 21.6543 5.94306 21.1073 5.91306C20.3073 5.86806 19.6243 6.11957 19.0203 6.73158C18.8918 5.97706 18.4652 5.52655 17.8162 5.23754C17.4767 5.08753 17.1332 4.93703 16.8952 4.61052C16.7292 4.37801 16.6837 4.11901 16.6007 3.8635C16.5477 3.70949 16.4952 3.55199 16.3177 3.52549C16.1252 3.49549 16.0497 3.65699 15.9742 3.792C15.6722 4.34401 15.5552 4.95203 15.5667 5.56805C15.5932 6.95359 16.1782 8.05712 17.3407 8.84215C17.4727 8.93215 17.5067 9.02215 17.4652 9.15366C17.3857 9.42416 17.2917 9.68667 17.2087 9.95718C17.1557 10.1297 17.0767 10.1677 16.8917 10.0922C16.2537 9.82568 15.7027 9.43117 15.2156 8.95465C14.3891 8.15513 13.6416 7.2726 12.7096 6.58158C12.4906 6.42007 12.2716 6.27007 12.045 6.12707C11.094 5.20354 12.1696 4.44502 12.4186 4.35501C12.6791 4.26101 12.5091 3.938 11.6675 3.942C10.826 3.9455 10.056 4.22751 9.07446 4.60302C8.93096 4.65952 8.77995 4.70052 8.62545 4.73452C7.73492 4.56552 6.80989 4.52802 5.84386 4.63702C4.02481 4.83953 2.57177 5.69955 1.50373 7.1676C0.220694 8.93215 -0.0813148 10.9372 0.288196 13.0283C0.676708 15.2323 1.80174 17.0569 3.53029 18.4834C5.32285 19.9625 7.38741 20.6875 9.74298 20.5485C11.1735 20.466 12.7661 20.2745 14.5626 18.7539C15.0156 18.9795 15.4912 19.0695 16.2797 19.137C16.8872 19.1935 17.4722 19.107 17.9252 19.013C18.6347 18.8629 18.5857 18.2059 18.3292 18.0854C16.2497 17.1169 16.7062 17.5109 16.2912 17.1919C17.3477 15.9419 18.9618 13.7198 19.4598 10.6942C19.5088 10.3602 19.5713 9.88968 19.5638 9.61917C19.5598 9.45417 19.5978 9.39016 19.7863 9.37116C20.3073 9.31116 20.8128 9.16866 21.2773 8.91315C22.6249 8.17713 23.1684 6.96809 23.2964 5.51905C23.3154 5.29754 23.2924 5.06853 23.0584 4.95203ZM11.3165 17.9954C9.30097 16.4109 8.32344 15.8894 7.91992 15.9119C7.54241 15.9344 7.61042 16.3664 7.69342 16.6479C7.78042 16.9259 7.89342 17.1174 8.05193 17.3614C8.16143 17.5229 8.23694 17.7629 7.94243 17.9434C7.29341 18.3449 6.16487 17.8084 6.11187 17.7819C4.79833 17.0084 3.7003 15.9874 2.92628 14.5908C2.17875 13.2468 1.74474 11.8047 1.67324 10.2657C1.65424 9.89418 1.76374 9.76267 2.13375 9.69517C2.62077 9.60517 3.12278 9.58617 3.6093 9.65767C5.66636 9.95818 7.41741 10.8777 8.88545 12.3348C9.72348 13.1643 10.3575 14.1558 11.0105 15.1243C11.705 16.1529 12.4521 17.1329 13.4036 17.9364C13.7396 18.2179 14.0076 18.4319 14.2641 18.5899C13.4906 18.6764 12.1996 18.6949 11.3165 17.9964V17.9954ZM12.2826 11.7817C12.2826 11.6167 12.4146 11.4852 12.5806 11.4852C12.6181 11.4852 12.6521 11.4927 12.6826 11.5037C12.7241 11.5187 12.7621 11.5412 12.7921 11.5752C12.8451 11.6277 12.8751 11.7027 12.8751 11.7817C12.8751 11.9467 12.7431 12.0782 12.5771 12.0782C12.4111 12.0782 12.2826 11.9467 12.2826 11.7817ZM15.2831 13.3208C15.0906 13.3998 14.8981 13.4673 14.7131 13.4748C14.4261 13.4898 14.1131 13.3733 13.9431 13.2308C13.6791 13.0093 13.4901 12.8853 13.4111 12.4988C13.3771 12.3338 13.3961 12.0782 13.4261 11.9317C13.4941 11.6162 13.4186 11.4137 13.1961 11.2297C13.0151 11.0797 12.7846 11.0382 12.5316 11.0382C12.4371 11.0382 12.3506 10.9967 12.2861 10.9632C12.1806 10.9107 12.0936 10.7792 12.1766 10.6177C12.2031 10.5652 12.3316 10.4377 12.3616 10.4152C12.7051 10.2197 13.1011 10.2837 13.4676 10.4302C13.8071 10.5692 14.0641 10.8242 14.4336 11.1847C14.8111 11.6202 14.8791 11.7402 15.0941 12.0672C15.2641 12.3228 15.4186 12.5853 15.5247 12.8858C15.5887 13.0733 15.5057 13.2268 15.2831 13.3208Z",fill:"currentColor"})}),e("rect",{x:"129.348",y:"5.5",width:"52",height:"14",rx:"2",fill:"currentColor"}),r("g",{clipPath:"url(#dsh-wordmark-badge-clip)",children:[e("path",{d:"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"})]}),r("defs",{children:[e("clipPath",{id:"dsh-wordmark-whale-clip",children:e("rect",{width:"23.16",height:"17.0435",fill:"white",transform:"translate(0.141602 3.52185)"})}),e("clipPath",{id:"dsh-wordmark-badge-clip",children:e("rect",{width:"46",height:"14",fill:"white",transform:"translate(132.348 5.5)"})})]})]})}function V({size:i=16,className:m,strokeWidth:d}){return r("svg",{width:i,height:i,className:m,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:d,children:[e("path",{d:"M6.59624 2.14853C7.50155 1.80917 8.49914 1.80919 9.40444 2.14859L13.9245 3.84317V7.11961C13.9245 11.6089 10.5565 13.5975 8.00035 14.5779C5.44423 13.5975 2.07544 11.6089 2.07544 7.11961V3.84317L6.59624 2.14853Z",stroke:"currentColor",strokeLinejoin:"round"}),e("path",{d:"M8 4.39209V9.89209",stroke:"currentColor"}),e("path",{d:"M8 10.8081V11.8081",stroke:"currentColor"})]})}function me(i){return e(V,{...i,strokeWidth:1})}return{BrandWordmark:W,IconPanelLeftOutlineRegular:c,IconNewChatOutlineRegular:S,IconPluginPinwheelOutlineRegular:de,IconClockOutlineRegular:J,IconInspectOutlineRegular:se,IconFolderCloseRegular:y,IconSearchOutlineRegular:f,IconSlidersTwoOutlineRegular:ce,IconProjectAddOutlineRegular:o,IconUserOutlineRegular:$,IconUsersOutlineRegular:Q,IconBranchOutlineRegular:L,IconEllipsisOutlineRegular:n,IconChevronDownOutlineRegular:U,IconPlusOutlineRegular:N,PermissionIconFullAccessRegular:me,IconMicrophoneOutlineRegular:pe,IconSendOutlineRegular:E,IconCopyOutlineRegular:w,IconLikeOutlineRegular:I,IconDislikeOutlineRegular:z,IconShareOutlineRegular:H,IconGaugeOutlineRegular:ne,IconDatabaseOutlineRegular:P,IconFullscreenOutlineRegular:_,IconCloseOutlineRegular:q}}const fe=ye(R);let we={};try{we=be("@deepseek-ai/dsh-client-ui-primitives")}catch{}const ke=Object.fromEntries(Object.entries(fe).map(([g,e])=>[g,we[g]??e])),Ne=`.cm-display{--cm-preview-accent:var(--dsw-alias-state-business-primary,#4d6bfe);color:var(--dsw-alias-label-primary);container-type:inline-size}.cm-display-toggles{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;margin:0 0 14px;font-size:12px}.cm-display-toggles .cm-check{display:flex;align-items:center;gap:6px;cursor:pointer}.cm-display-toggles input{margin:0;accent-color:var(--cm-preview-accent)}.cm-display-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 18px}.cm-display-heading h3{margin:0 0 5px;font-size:16px;font-weight:600}.cm-display p{margin:0;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:1.7}.cm-display-expand{display:flex;align-items:center;gap:5px;white-space:nowrap}.cm-display-region-tabs{display:flex;gap:3px;margin-bottom:14px;padding:3px;width:fit-content;max-width:100%;background:var(--dsw-alias-bg-layer-1);border-radius:9px}.cm-display-region-tabs button{padding:6px 18px;min-height:32px;border:0;border-radius:7px;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:13px;cursor:pointer}.cm-display-region-tabs button[aria-selected=true]{background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);box-shadow:0 1px 4px #0000000c}.cm-preview{position:relative;box-sizing:border-box;width:100%;border-radius:14px;background:var(--dsw-alias-bg-layer-1);padding:24px;isolation:isolate}.cm-region-preview{font:14px/1.6 var(--dsw-font-family,system-ui);color:var(--dsw-alias-label-primary);text-align:left}.cm-region-preview *{box-sizing:border-box}.cm-region-preview svg{display:block;flex:none}.cm-preview-region-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;color:var(--dsw-alias-label-secondary);font-size:12px}.cm-preview-region-head>span{display:flex;align-items:center;gap:7px}.cm-preview-sidebar{width:100%;max-width:340px;margin:0 auto;padding:16px;border-radius:12px;background:var(--dsw-specific-sidebar-fill,var(--dsw-alias-bg-layer-1))}.cm-preview-history{display:flex;align-items:center;gap:9px;padding:6px 3px 16px;color:var(--dsw-alias-label-tertiary)}.cm-preview-history>span{margin-left:auto}.cm-preview-account{display:flex;align-items:center;gap:9px;padding:16px 3px 2px;color:var(--dsw-alias-label-secondary)}.cm-preview-sidebar .cm-footer-stack{width:100%;max-height:none;overflow:visible}.cm-preview-composer,.cm-preview-conversation{max-width:760px;margin:auto;min-width:0}.cm-preview-strip{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:8px 0 12px;min-height:24px}.cm-native-input-card{padding:14px 12px 8px;border:1px solid var(--dsw-alias-border-l3);border-radius:24px;background:var(--dsw-specific-input-major,var(--dsw-alias-bg-base));box-shadow:0 3px 16px #00000006;min-width:0}.cm-native-input-placeholder{min-height:64px;padding:0 2px;color:var(--dsw-alias-label-caption,var(--dsw-alias-label-tertiary));font-size:14px}.cm-native-input-row,.cm-native-input-tools,.cm-native-input-trailing,.cm-native-permission,.cm-native-model{display:flex;align-items:center;gap:8px}.cm-native-input-row{justify-content:space-between;flex-wrap:wrap;row-gap:10px}.cm-native-input-trailing{margin-left:auto}.cm-native-permission,.cm-native-model{font-size:12px;color:var(--dsw-alias-label-secondary)}.cm-native-input-add{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--dsw-specific-selector,var(--dsw-alias-bg-layer-1))}.cm-native-input-primary{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:#fff;background:var(--cm-preview-accent);opacity:.45}.cm-native-input-dock{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 12px;margin:12px 0 0;color:var(--dsw-alias-label-tertiary);font-size:12px}.cm-native-dock-stat,.cm-native-dock-context{display:flex;align-items:center;gap:5px}.cm-native-context-ring{width:13px;height:13px;border-radius:50%;border:2px solid var(--dsw-alias-border-l3);border-top-color:var(--dsw-alias-label-tertiary)}.cm-region-preview .cm-corner-chip{position:static;font-size:12px}.cm-region-preview .cm-session-cost{font-size:12px;white-space:normal}.cm-region-preview .cm-stat-entry{font-size:12px;padding:2px 6px}.cm-preview-conversation{border-radius:12px;background:var(--dsw-alias-bg-base);overflow:hidden}.cm-native-chat-header{padding:16px 18px 0;border-bottom:1px solid var(--dsw-alias-border-l3)}.cm-native-chat-titleRow{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px}.cm-native-chat-tabs{display:flex;align-items:center;gap:28px;margin-top:16px;font-size:13px;color:var(--dsw-alias-label-tertiary)}.cm-native-chat-tabs>span{padding-bottom:9px}.cm-native-chat-tabs>.active{color:var(--cm-preview-accent);border-bottom:2px solid currentColor}.cm-preview-response{padding:24px 18px}.cm-preview-response p{font-size:14px;color:var(--dsw-alias-label-primary);margin-bottom:20px}.cm-native-turn{color:var(--dsw-alias-label-tertiary);font-size:13px}.cm-native-response-actions{display:flex;align-items:center;gap:20px;color:var(--dsw-alias-label-tertiary);font-size:12px;margin-top:18px}.cm-display-item{position:relative;display:block;min-width:0;max-width:100%;padding:0;border:1px dashed color-mix(in srgb,var(--cm-preview-accent) 27%,transparent);border-radius:6px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.cm-display-item:hover{background:var(--dsw-alias-interactive-bg-hover);border-color:var(--cm-preview-accent)}.cm-display-item:focus-visible,.cm-display-region-tabs button:focus-visible{outline:2px solid var(--cm-preview-accent);outline-offset:2px}.cm-display-item-content{display:block;pointer-events:none}.cm-display-item[data-visible=false]>.cm-display-item-content{opacity:.28;filter:grayscale(1)}.cm-display-item[data-visible=false]:hover>.cm-display-item-content{opacity:.55}.cm-display-item-tag{position:absolute;right:0;top:-20px;z-index:3;display:none;background:var(--dsw-alias-bg-base);box-shadow:0 1px 8px #0001;color:var(--cm-preview-accent);font-size:10px;padding:1px 5px;line-height:16px;border-radius:4px;pointer-events:none;white-space:nowrap}.cm-display-item:hover .cm-display-item-tag,.cm-display-item:focus-visible .cm-display-item-tag{display:block}.cm-preview-value{font-variant-numeric:tabular-nums}.cm-preview-line{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%}.cm-display-toolbar{padding:12px 0}.cm-display-feedback{font-size:11px;color:var(--dsw-alias-label-tertiary);min-height:18px}.cm-display-details,.cm-display-model-options{border-top:1px solid var(--dsw-alias-border-l1)}.cm-display-details>summary,.cm-display-model-options>summary{cursor:pointer;padding:14px 0;font-size:12px;font-weight:500}.cm-display-details>.cm-grid{padding:4px 0 18px}.cm-display-details .cm-grid-group{margin-top:12px}.cm-display-details .cm-grid-group:first-child{margin-top:0}.cm-preview-style-picker{position:relative;z-index:4;font-size:12px}.cm-display-dialog{padding:20px;width:min(960px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);border:1px solid var(--dsw-alias-border-l3);border-radius:16px;background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);box-shadow:0 12px 80px #0003;overflow:auto}.cm-display-dialog::backdrop{background:#0005}.cm-display-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;font-size:14px;font-weight:600}.cm-display-dialog-close{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer}.cm-display-dialog-close:hover{background:var(--dsw-alias-interactive-bg-hover)}@container (max-width:480px){.cm-display-heading{align-items:flex-start}.cm-display-heading h3{font-size:15px}.cm-preview{padding:12px}.cm-preview-sidebar{padding:10px;max-width:100%}.cm-display-region-tabs button{padding:6px 14px}.cm-native-model{max-width:160px;overflow:hidden;font-size:11px}.cm-display-expand{font-size:11px}.cm-native-input-trailing{gap:6px}}.cm-preview-peak-title{font-size:11px;color:var(--dsw-alias-label-secondary);margin:12px 0 6px}.cm-preview-peak-options{display:flex;gap:6px}.cm-preview-peak-options>button{flex:1;padding:7px 6px}.cm-style-peak-sample{display:block;position:relative;width:28px;height:4px;background:linear-gradient(to right,#ff9800 0 50%,#4d79e8 50%);border-radius:2px}.cm-style-peak-sample.classic{height:12px;border-radius:3px}.cm-style-peak-sample:after{content:"";position:absolute;left:17px;top:-2px;bottom:-2px;width:2px;background:var(--dsw-alias-bg-base);border-radius:1px}.cm-display .cm-preview-style-panel>p{font-size:10px;line-height:1.5;margin-top:10px;color:var(--dsw-alias-label-tertiary)}.cm-region-preview{padding:16px;background:transparent;border:1px solid var(--dsw-alias-border-l3)}.cm-preview-workspace{display:grid;grid-template-columns:minmax(260px,1fr) 182px;gap:18px;align-items:start}.cm-preview-scene{min-width:0}.cm-preview-sidebar{max-width:380px;margin:0 auto;padding:14px;border-radius:12px}.cm-display-inspector{min-width:0;font-size:12px;padding:2px 0 8px;color:var(--dsw-alias-label-primary)}.cm-inspector-heading{font-size:12px;font-weight:600;margin:0 0 10px}.cm-inspector-divider{height:1px;background:var(--dsw-alias-border-l3);margin:16px 0}.cm-preview-style-options{display:grid;gap:7px}.cm-preview-style-options>[role=button]{display:flex;align-items:center;gap:12px;min-height:48px;padding:7px 11px;border:1px solid var(--dsw-alias-border-l3);border-radius:9px;background:var(--dsw-alias-bg-base);font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer}.cm-display-inspector [role=button][aria-pressed=true],.cm-display-inspector button[aria-pressed=true]{color:var(--cm-preview-accent);border-color:var(--cm-preview-accent);background:color-mix(in srgb,var(--cm-preview-accent) 5%,var(--dsw-alias-bg-base))}.cm-display-inspector [role=button]:focus-visible,.cm-display-inspector button:focus-visible,.cm-sidebar-target:focus-visible,.cm-sidebar-unplaced button:focus-visible{outline:2px solid var(--cm-preview-accent);outline-offset:2px}.cm-display-inspector .cm-field{display:flex;flex-direction:column;gap:6px;margin:0 0 13px;min-width:0;grid-column:auto;font-size:12px}.cm-display-inspector .cm-field>span{color:var(--dsw-alias-label-secondary);line-height:1.5}.cm-display-inspector .cm-input{width:100%;min-width:0;max-width:100%;height:32px;font-size:12px;padding:5px 8px;border-radius:7px}.cm-inspector-controls{display:grid;gap:11px;margin-top:14px}.cm-inspector-controls .cm-field{margin:0}.cm-display-inspector .cm-check{font-size:12px;gap:7px;line-height:1.5;align-items:flex-start}.cm-display-inspector .cm-check input{margin-top:3px;accent-color:var(--cm-preview-accent)}.cm-display-inspector .cm-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:0;padding:0}.cm-display-inspector .cm-grid-group{display:none}.cm-display .cm-inspector-note{font-size:11px;line-height:1.6;margin-top:9px;color:var(--dsw-alias-label-tertiary)}.cm-sidebar-canvas{position:relative}.cm-sidebar-live{pointer-events:none}.cm-sidebar-selection{position:absolute;inset:0;pointer-events:none}.cm-sidebar-target{position:absolute;pointer-events:auto;cursor:pointer;padding:0;background:transparent;border:1px dashed color-mix(in srgb,var(--cm-preview-accent) 27%,transparent);border-radius:7px;box-sizing:border-box;color:var(--cm-preview-accent)}.cm-sidebar-target:hover,.cm-sidebar-target[aria-pressed=true],.cm-display-item[aria-pressed=true]{border-style:solid;border-color:var(--cm-preview-accent);background:color-mix(in srgb,var(--cm-preview-accent) 4%,transparent)}.cm-sidebar-target:hover>.cm-display-item-tag,.cm-sidebar-target:focus-visible>.cm-display-item-tag{display:block;top:-18px;font-size:10px}.cm-sidebar-unplaced{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px;border-top:1px solid var(--dsw-alias-border-l3);padding-top:10px}.cm-sidebar-unplaced p{width:100%;font-size:10px!important;margin-bottom:2px;color:var(--dsw-alias-label-tertiary)}.cm-sidebar-unplaced button{padding:3px 7px;border:1px dashed var(--dsw-alias-border-l3);border-radius:6px;background:transparent;font:inherit;font-size:11px;color:var(--dsw-alias-label-tertiary);cursor:pointer;opacity:.65}.cm-sidebar-unplaced button:hover,.cm-sidebar-unplaced button[aria-pressed=true]{opacity:1;color:var(--cm-preview-accent);border-color:var(--cm-preview-accent)}.cm-display-dialog{width:min(1120px,calc(100vw - 48px))}.cm-display-dialog .cm-preview-workspace{grid-template-columns:minmax(0,1fr) 210px}.cm-region-preview[data-region=composer] .cm-preview-workspace,.cm-region-preview[data-region=conversation] .cm-preview-workspace{grid-template-columns:minmax(0,1fr) 182px}.cm-preview-peak-options{flex-wrap:wrap}.cm-style-peak-sample.progress{background:var(--dsw-alias-bg-layer-3)}.cm-style-peak-sample.progress:before{content:"";position:absolute;inset:0 35% 0 0;border-radius:inherit;background:#ff9800}.cm-style-peak-sample.progress:after{left:calc(65% - 2px);width:2px;top:1px;bottom:1px}.cm-display-heading p{max-width:490px}.cm-display-toolbar{padding-bottom:0}@container (max-width:540px){.cm-preview-workspace,.cm-region-preview[data-region=composer] .cm-preview-workspace,.cm-region-preview[data-region=conversation] .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}.cm-display-inspector{border-top:1px solid var(--dsw-alias-border-l3);padding-top:14px}.cm-preview-style-options{grid-template-columns:repeat(3,minmax(0,1fr))}.cm-preview-style-options>[role=button]{flex-direction:column;gap:3px;padding:7px 4px}.cm-inspector-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cm-inspector-controls>.cm-grid,.cm-inspector-controls>.cm-inspector-note{grid-column:1/-1}.cm-display-heading{gap:10px}.cm-preview{padding:12px}}@media(max-width:600px){.cm-display-dialog .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}}.cm-display-general{margin-top:20px;padding:18px;border:1px solid var(--dsw-alias-border-l3);border-radius:12px}.cm-display-general h4{font-size:13px;font-weight:600;margin:0 0 3px}.cm-display-general p{font-size:11px}.cm-general-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px;margin-top:16px}.cm-display-general .cm-field{margin:0}@container (max-width:540px){.cm-general-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.cm-preview-style-options>[role=button]{flex-direction:column;gap:5px;padding:8px}.cm-style-thumbnail{display:block;position:relative;overflow:hidden;width:138px;max-width:100%;height:80px;pointer-events:none;border-radius:5px;background:var(--dsw-specific-sidebar-fill,var(--dsw-alias-bg-layer-1));color:var(--dsw-alias-label-primary);text-align:left}.cm-style-thumbnail-content{display:block;width:300px;padding:6px;transform:scale(.46);transform-origin:top left;font:14px/1.6 var(--dsw-font-family,system-ui)}.cm-style-thumbnail-content .cm-footer-stack{max-height:none;overflow:visible}.cm-style-caption{font-size:11px;line-height:1.5}.cm-style-thumbnail:after{content:"";position:absolute;inset:auto 0 0;height:10px;background:linear-gradient(transparent,var(--dsw-specific-sidebar-fill,var(--dsw-alias-bg-layer-1)))}@container (max-width:380px){.cm-style-thumbnail{width:90px;height:55px}.cm-style-thumbnail-content{transform:scale(.3)}}.cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(260px,380px) 182px;justify-content:center}.cm-style-thumbnail{height:64px}.cm-preview-style-options>[role=button]{padding:7px;gap:4px}.cm-inspector-divider{margin:12px 0}.cm-inspector-back{padding:0;border:0;background:transparent;color:var(--cm-preview-accent);font:inherit;cursor:pointer;text-align:left}.cm-inspector-controls{max-height:510px;overflow-y:auto;scrollbar-width:thin;padding-right:2px}.cm-display-general .cm-input{box-sizing:border-box}@container (max-width:540px){.cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}.cm-inspector-controls{max-height:none}}.cm-inspector-heading>span{display:block;font-size:10px;color:var(--dsw-alias-label-tertiary);font-weight:400;margin-top:3px}.cm-style-thumbnail{height:80px}.cm-region-preview[data-region=sidebar] .cm-preview-workspace:has(>.cm-display-inspector[data-component=peak]){grid-template-columns:minmax(220px,1fr) 220px;gap:16px}.cm-display-inspector[data-component=peak] .cm-inspector-controls{display:flex;flex-direction:column;gap:10px;max-height:none;overflow:visible;padding:0;margin-top:10px}.cm-display-inspector[data-component=peak]{font-size:11px}.cm-display-inspector[data-component=peak] .cm-field{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;font-size:11px}.cm-display-inspector[data-component=peak] .cm-input{box-sizing:border-box;width:100%;min-width:0;height:30px;padding:4px 6px;font:inherit;font-size:11px}.cm-peak-control{min-width:0}.cm-peak-control-heading{font-size:11px;font-weight:600;color:var(--dsw-alias-label-secondary);margin-bottom:6px}.cm-peak-style-choices{display:flex;flex-direction:column;gap:5px}.cm-peak-style-choice{display:block;box-sizing:border-box;width:100%;min-width:0;padding:5px 7px;border:1px solid var(--dsw-alias-border-l1);border-radius:8px;background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);font:inherit;text-align:left;cursor:pointer;appearance:none}.cm-peak-style-choice:hover{border-color:color-mix(in srgb,var(--cm-preview-accent) 55%,var(--dsw-alias-border-l1));background:var(--dsw-alias-interactive-bg-hover)}.cm-peak-style-choice[aria-pressed=true]{border-color:var(--cm-preview-accent);background:color-mix(in srgb,var(--cm-preview-accent) 4%,var(--dsw-alias-bg-base));box-shadow:inset 0 0 0 1px var(--cm-preview-accent)}.cm-peak-style-choice:focus-visible{outline:2px solid var(--cm-preview-accent);outline-offset:3px}.cm-peak-choice-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:16px}.cm-peak-choice-heading strong{font-size:11px;font-weight:600}.cm-peak-choice-status{display:inline-flex;align-items:center;gap:4px;min-height:16px;font-size:9px;color:var(--cm-preview-accent)}.cm-peak-choice-status i{box-sizing:border-box;width:12px;height:12px;border-radius:50%;border:1px solid var(--dsw-alias-border-l1)}.cm-peak-style-choice[aria-pressed=true] .cm-peak-choice-status:before{content:"\\2713";font-size:10px}.cm-peak-choice-sample{display:block;min-width:0;margin-top:3px;padding:3px 5px;border-radius:5px;background:var(--dsw-specific-sidebar-fill,var(--dsw-alias-bg-layer-1));color:var(--dsw-alias-label-primary);font:12px/1.5 var(--dsw-font-family,system-ui);pointer-events:none}.cm-display-inspector .cm-peak-choice-sample .cm-footer-stack{width:100%;max-height:none;overflow:visible;border:0;border-radius:0;background:transparent;padding:0;gap:0}.cm-peak-choice-sample .cm-footer-stack.simple>.cm-peak-progress{padding-left:0;padding-right:0}.cm-peak-choice-sample .cm-footer-stack.simple>.cm-peak-strip,.cm-peak-choice-sample .cm-footer-stack.simple>.cm-peak-classic{padding-left:0;padding-right:0}.cm-peak-choice-sample .cm-peak-chip{max-width:calc(100% - 52px);overflow:hidden;text-overflow:ellipsis}.cm-peak-choice-sample .cm-peak-classic-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}.cm-sidebar-live .cm-peak-strip .cm-peak-track{flex:1 0 38px;min-width:38px}.cm-sidebar-live .cm-peak-strip .cm-peak-chip{flex:0 1 auto;min-width:0;max-width:calc(100% - 44px);overflow:hidden;text-overflow:ellipsis}.cm-sidebar-live .cm-peak-classic-chip{box-sizing:border-box;max-width:100%;overflow:hidden;text-overflow:ellipsis}.cm-peak-choice-sample .variant-compact .cm-peak-progress-time{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.cm-peak-choice-sample .cm-peak-chip,.cm-peak-choice-sample .cm-peak-classic-chip,.cm-peak-choice-sample .cm-peak-progress-phase{font-size:10px}.cm-peak-choice-sample .cm-peak-progress-time,.cm-peak-choice-sample .cm-peak-progress-meta{font-size:9px}@container (max-width:540px){.cm-region-preview[data-region=sidebar] .cm-preview-workspace:has(>.cm-display-inspector[data-component=peak]){grid-template-columns:minmax(0,1fr)}.cm-display-inspector[data-component=peak]{border-top:1px solid var(--dsw-alias-border-l3);padding-top:14px}}body[data-dsh-pocket-layout=mobile] .cm-region-preview[data-region=sidebar] .cm-preview-workspace:has(>.cm-display-inspector[data-component=peak]){grid-template-columns:minmax(0,1fr)}.cm-display-inspector{container:cm-inspector / inline-size}.cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(240px,380px) minmax(182px,1fr);justify-content:stretch}.cm-display-dialog .cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(240px,380px) minmax(182px,1fr)}@container cm-inspector (min-width:280px){.cm-preview-style-options{grid-template-columns:repeat(3,minmax(0,1fr))}.cm-inspector-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.cm-inspector-controls>.cm-grid{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.cm-inspector-controls>.cm-check:first-child,.cm-inspector-controls>.cm-inspector-note{grid-column:1/-1}}@container (max-width:540px){.cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}}@media(max-width:600px){.cm-display-dialog .cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}}.cm-display-preview-options{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin:0 0 14px}.cm-display-preview-options .cm-check{font-size:12px;gap:6px;margin:0}.cm-display-preview-options>span{font-size:11px;color:var(--dsw-alias-label-tertiary)}.cm-sidebar-live [data-preview-hidden=true]{opacity:.28;filter:grayscale(1)}.cm-inspector-controls>.cm-inspector-help{margin-top:-7px;grid-column:1/-1}.cm-display-inspector:is([data-component=codex],[data-component=strip-codex]) .cm-inspector-controls{grid-template-columns:minmax(0,1fr)}.cm-display .cm-region-preview[data-region] .cm-preview-workspace:has(>.cm-inspector-unified){grid-template-columns:minmax(240px,380px) minmax(260px,1fr);gap:28px;align-items:start}.cm-display-inspector.cm-inspector-unified{font-size:13px;min-width:0;padding:2px 0}.cm-display-inspector.cm-inspector-unified>.cm-field{margin-bottom:14px}.cm-inspector-visibility{padding:12px;border:1px solid var(--dsw-alias-border-l3);border-radius:10px;background:var(--dsw-alias-bg-base);margin:0 0 18px}.cm-inspector-visibility .cm-check{font-weight:600}.cm-inspector-scope{display:block;font-size:11px;line-height:1.5;color:var(--dsw-alias-label-tertiary);margin-top:3px}.cm-display-inspector.cm-inspector-unified .cm-inspector-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;max-height:none;overflow:visible;padding:0;margin:0}.cm-inspector-unified .cm-inspector-controls>.cm-grid{grid-template-columns:minmax(0,1fr);gap:14px}.cm-display-inspector.cm-inspector-unified .cm-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-size:12px}.cm-display-inspector.cm-inspector-unified .cm-input{box-sizing:border-box;width:100%;min-width:0;min-height:34px;height:auto;padding:7px 9px;font-size:13px}.cm-inspector-unified .cm-inspector-note{font-size:12px;line-height:1.65}.cm-inspector-unified .cm-inspector-controls>.cm-btn{width:100%;min-height:34px}.cm-display-inspector .cm-display-switch,.cm-inspector-unified .cm-check{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:30px;box-sizing:border-box;margin:0;line-height:1.55;font-size:12px;cursor:pointer}.cm-display-switch>span,.cm-inspector-unified .cm-check>span{min-width:0;flex:1}.cm-display-switch input,.cm-inspector-unified .cm-check input{order:2;appearance:none;-webkit-appearance:none;position:relative;flex:none;width:34px;height:20px;margin:0 0 0 auto;padding:0;border:1px solid var(--dsw-alias-border-l2);border-radius:20px;background:var(--dsw-alias-bg-layer-3,var(--dsw-alias-border-l1));cursor:pointer;transition:background .15s}.cm-display-switch input:before,.cm-inspector-unified .cm-check input:before{content:"";display:block;position:absolute;width:14px;height:14px;top:2px;left:2px;border-radius:50%;background:var(--dsw-alias-label-secondary);transition:transform .15s}.cm-display-switch input:checked,.cm-inspector-unified .cm-check input:checked{background:var(--cm-preview-accent);border-color:var(--cm-preview-accent)}.cm-display-switch input:checked:before,.cm-inspector-unified .cm-check input:checked:before{background:#fff;transform:translate(14px)}.cm-display-switch input:focus-visible,.cm-inspector-unified .cm-check input:focus-visible{outline:2px solid var(--cm-preview-accent);outline-offset:3px}.cm-inspector-layout{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:22px;padding:14px 0 0;border:0;border-top:1px solid var(--dsw-alias-border-l3);background:transparent;font:inherit;color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer}.cm-inspector-layout>span{color:var(--dsw-alias-label-tertiary);font-size:12px}.cm-inspector-unified>.cm-inspector-heading{margin-top:14px}.cm-inspector-unified .cm-preview-style-options{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.cm-inspector-unified .cm-style-thumbnail{width:90px;height:55px}.cm-inspector-unified .cm-style-thumbnail-content{transform:scale(.3)}.cm-display-general .cm-display-switch{grid-column:1/-1;max-width:none;padding:8px 0}.cm-display-general .cm-display-switch+.cm-inspector-note{grid-column:1/-1}@container (max-width:680px){.cm-display .cm-region-preview[data-region] .cm-preview-workspace:has(>.cm-inspector-unified){grid-template-columns:minmax(0,1fr);gap:22px}.cm-inspector-unified{border-top:1px solid var(--dsw-alias-border-l3);padding-top:18px!important}.cm-inspector-unified .cm-preview-style-options{max-width:380px}}@media(max-width:1023px){.cm-display-dialog{width:calc(100vw - 24px);max-width:none;max-height:90dvh;padding:14px;overflow:auto}.cm-display-dialog .cm-preview-workspace,.cm-preview-workspace{grid-template-columns:minmax(0,1fr)}.cm-general-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-display-preview-options{gap:6px 10px}}body[data-dsh-pocket-layout=mobile] .cm-display-dialog{width:calc(100vw - 24px);max-height:90dvh;overflow:auto}body[data-dsh-pocket-layout=mobile] .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}body[data-dsh-pocket-layout=mobile] .cm-display .cm-region-preview[data-region] .cm-preview-workspace:has(>.cm-inspector-unified){grid-template-columns:minmax(0,1fr)}
|
|
2
|
-
`;function Me(){const g={sidebar:"._2H3hWW_root",composer:".RlGAzG_card",header:".Dc7zOa_header"},e=["backgroundColor","color","borderColor","borderRadius","boxShadow","fontFamily"],r={};for(const[t,v]of Object.entries(g)){const x=document.querySelector(v);if(!x||x.closest(".cm-display"))continue;const S=getComputedStyle(x),p={};for(const f of e)f==="borderColor"&&parseFloat(S.borderTopWidth)===0||S[f]&&!/url\(/i.test(S[f])&&(p[f]=S[f]);if(r[t]=p,t==="sidebar"){const f=x.querySelector(".cm-footer-stack")?.getBoundingClientRect().width;f>=180&&f<=420&&(r.sidebarFooterWidth=f)}}return r}function Se(){const[g,e]=R.useState({});return R.useEffect(()=>{let r=0;const t=()=>{cancelAnimationFrame(r),r=requestAnimationFrame(()=>e(Me()))};t();const v=new MutationObserver(t),x={attributes:!0,attributeFilter:["class","style","data-theme","data-ds-dark-theme"]};return v.observe(document.documentElement,x),v.observe(document.body,x),()=>{cancelAnimationFrame(r),v.disconnect()}},[]),g}function Le({renderSidebar:g,config:e,selected:r,selectedPlan:t,select:v,labels:x,appearance:S,text:p,icon:f,visibility:s}){const c=R.useRef(null),[k,n]=Y([]);R.useLayoutEffect(()=>{const u=c.current;let L=0;const h=()=>{const F=u.getBoundingClientRect(),q=[...u.querySelectorAll("[data-cm-display]")].slice(0,32).map(O=>{O.dataset.previewHidden=String(s?.[O.dataset.cmDisplay]===!1);const w=O.getBoundingClientRect();return{key:O.dataset.cmDisplay,planId:O.dataset.cmPlan,x:w.left-F.left,y:w.top-F.top,width:w.width,height:w.height}}).filter(O=>O.width>0&&O.height>0);n(O=>JSON.stringify(O)===JSON.stringify(q)?O:q)};h();const U=new ResizeObserver(()=>{cancelAnimationFrame(L),L=requestAnimationFrame(h)});return U.observe(u),()=>{U.disconnect(),cancelAnimationFrame(L)}},[e,s]);const b=new Set(k.map(u=>u.key)),N=u=>{if(u.currentTarget.dataset.display!=="peak")return;const L=c.current?.querySelector('[data-cm-display="peak"]');u.currentTarget.title=(L?.getAttribute("title")||L?.textContent||x.peak)+p(" · 点击调整"," · Click to customize")};return a("div",{className:"cm-preview-sidebar",style:S},a("div",{className:"cm-preview-region-head"},a("span",null,f("IconPanelLeftOutlineRegular"),p("侧栏底部","Sidebar footer"))),a("div",{className:"cm-preview-history","aria-hidden":!0},f("IconFolderCloseRegular"),p("工作区","Workspace"),a("span",null,"···")),a("div",{className:"cm-sidebar-canvas"},a("div",{ref:c,className:"cm-sidebar-live",inert:""},g(e)),a("div",{className:"cm-sidebar-selection"},...k.map((u,L)=>a("button",{key:u.key+L,type:"button",className:"cm-sidebar-target","data-display":u.key,"aria-label":x[u.key]??u.key,"aria-pressed":r===u.key&&(u.key!=="plan"||u.planId===t),title:(x[u.key]??u.key)+p(" · 点击调整"," · Click to customize"),onPointerEnter:N,onFocus:N,style:{left:u.x,top:u.y,width:u.width,height:u.height},onClick:()=>v(u.key,u.planId)},a("span",{className:"cm-display-item-tag"},x[u.key]??u.key))))),a("div",{className:"cm-preview-account","aria-hidden":!0},f("IconUserOutlineRegular",18),p("已登录 DeepSeek","Signed in to DeepSeek")),a("div",{className:"cm-sidebar-unplaced"},a("p",null,p("未显示的组件","Components not shown")),...["balance","budget","today","peak","models","go"].filter(u=>!b.has(u)).map(u=>a("button",{key:u,type:"button","data-display":u,"aria-pressed":r===u,onClick:()=>v(u)},x[u]))))}function He({render:g,config:e,mode:r,data:t,examples:v}){const x=R.useMemo(()=>g({...e,sidebarSimple:r==="simple",sidebarStyle:r==="compact"?"compact":"standard"},t,v),[g,e,r,t,v]);return a("div",{className:"cm-style-thumbnail","aria-hidden":!0,inert:""},a("div",{className:"cm-style-thumbnail-content"},x))}function Be({render:g,config:e,data:r,style:t}){const v=R.useMemo(()=>({...e,peakStyle:t,peakEnabled:!0,peakNotice:!0,peakEffectiveAt:"",sidebar:!1,hideTodayCost:!0,hideOfficialBalance:!0,hideBudget:!0,codexQuotaEnabled:!1,budget:{...e.budget,enabled:!1},balance:{...e.balance,display:"off"},goQuota:{...e.goQuota,enabled:!1},sidebarModels:{...e.sidebarModels,enabled:!1},codingPlans:{},gatewayQuotas:{sources:[]},customBalances:[],customBalance:{enabled:!1}}),[e,t]),x=R.useMemo(()=>g(v,r),[g,v,r]);return a("span",{className:"cm-peak-choice-sample","aria-hidden":!0,inert:""},x)}function xe({props:g,config:e,set:r,selected:t,selectedPlan:v,selectPlan:x,openQuota:S,select:p,labels:f,registry:s,text:c,region:k,general:n=!1,examples:b,previewData:N,stylesOpen:u=!1,setStylesOpen:L}){const{t:h,numInput:U,CURRENCY_PRESETS:F,displayOptions:q,USAGE_POSITION_SWITCHABLE:O}=g,w=(o,y)=>r({[o]:{...e[o],...y}}),Z=(o,y,M,P={})=>a("label",{className:"cm-check cm-display-switch",key:o},a("span",null,o),a("input",{type:"checkbox",role:"switch","aria-label":o,checked:y,onChange:D=>M(D.target.checked),...P})),I=(o,y)=>a("label",{className:"cm-field",key:o},a("span",null,o),R.cloneElement(y,{"aria-label":o})),A=(o,y,M,P)=>I(o,a("select",{className:"cm-input",value:y,onChange:D=>P(D.target.value)},...M.map(([D,J])=>a("option",{key:D,value:D},J)))),z=(o,y,M,P=0,D=1440)=>I(o,U({value:y,emptyMode:"ignore"},J=>M(Math.max(P,Math.min(D,J))))),T=(o,y=h("barDirectionsTitle"))=>A(y,e.barDirections?.[o]??(o==="balance"?"remaining":"used"),[["used",h("barDirectionUsed")],["remaining",h("barDirectionRemaining")]],M=>w("barDirections",{[o]:M})),H=o=>I(c("显示位置","Placement"),a("select",{className:"cm-input",value:e[o]?.display==="off"?"sidebar":e[o]?.display??"both",onChange:y=>r({[o]:{...e[o],display:y.target.value},...o==="balance"?{hideOfficialBalance:!1}:{}})},...q(h).filter(y=>y.props.value!=="off"))),K=()=>[A(h("sidebarTodayMetric"),e.sidebarTodayMetric??"cost",[["cost",h("sidebarTodayCost")],["tokens",h("sidebarTodayTokens")]],o=>r({sidebarTodayMetric:o}))],$=()=>[A(h("positionLabel"),e.position==="off"?k==="conversation"?"header":"dock":e.position??"dock",[["dock",h("positionDock")],["header",h("positionHeader")]],o=>r({position:o})),Z(h("sessionCostCompact"),e.sessionCostCompact===!0,o=>r({sessionCostCompact:o})),a("p",{className:"cm-inspector-note cm-inspector-help"},c("悬停查看费用分项。","Hover to see the cost breakdown.")),Z(h("showSessionIdLabel"),e.showSessionId===!0,o=>r({showSessionId:o})),Z(h("includeSubagentCost"),e.includeSubagentCost===!0,o=>r({includeSubagentCost:o}))];let B=[];if(t==="budget"&&(B=[e.budget?.enabled!==!0&&!b?a("p",{className:"cm-inspector-note"},c("先在“概览”中设置预算,启用后会在这里显示。","Set up a budget in Overview to show it here.")):null,Z(h("budgetDetailLabel"),e.budget?.detail!==!1,o=>w("budget",{detail:o})),T("budget")]),t==="today"&&(B=K()),t==="balance"&&(B=[H("balance"),Z(h("balanceShowProgressBar"),e.balance?.showProgressBar===!0,o=>w("balance",{showProgressBar:o})),e.balance?.showProgressBar===!0?z(h("balanceBudgetCapLabel"),e.balance?.budgetCap??"",o=>w("balance",{budgetCap:o||null}),0,1e12):null,T("balance"),z(h("refreshIntervalLabel"),e.balance?.refreshMinutes??5,o=>w("balance",{refreshMinutes:Math.floor(o)}),1)]),t==="go"&&(B=[g.state.goQuota?.status!=="ok"&&!b?a("p",{className:"cm-inspector-note"},c("配置并获取 Go 额度后显示;这里只调整外观。","Shown after Go quota is configured and available.")):null,H("goQuota"),A(c("主进度条","Primary window"),e.goQuota?.main??"rolling",[["rolling","5h"],["weekly",c("周","Week")],["monthly",c("月","Month")]],o=>w("goQuota",{main:o})),Z(h("goDetailLabel"),e.goQuota?.detail!==!1,o=>w("goQuota",{detail:o})),T("go"),z(h("refreshIntervalLabel"),e.goQuota?.refreshMinutes??15,o=>w("goQuota",{refreshMinutes:Math.floor(o)}),1)]),t==="peak"&&(B=[a("div",{className:"cm-peak-control"},a("div",{className:"cm-peak-control-heading"},c("样式","Style")),a("div",{className:"cm-peak-style-choices",role:"group","aria-label":c("峰谷条样式","Peak bar style")},...[["progress",c("进度条","Progress"),c("时间进度 · 倒计时与切换时刻","Time progress, countdown and switch time")],["compact",c("细条","Slim"),c("橙蓝细条 · 单行显示","Orange and blue strip in one line")],["classic",c("分段","Segmented"),c("分段轨道 · 标记与胶囊提示","Segments, a marker and a status pill")]].map(([o,y,M])=>{const P=(e.peakStyle??"compact")===o;return a("button",{key:o,type:"button",className:"cm-peak-style-choice",title:M,"aria-label":y,"aria-pressed":P,onClick:()=>r({peakStyle:o})},a("span",{className:"cm-peak-choice-heading"},a("strong",null,y),a("span",{className:"cm-peak-choice-status","aria-hidden":!0},P?c("已选","Selected"):a("i"))),a(Be,{render:g.renderSidebar,config:N.config,data:N.state,style:o}))}))),e.peakStyle==="progress"?A(c("显示时间","Time display"),e.peakTimeDisplay??"both",[["both",c("倒计时 + 切换时间","Countdown + switch time")],["countdown",c("只看倒计时","Countdown")],["switch",c("只看切换时间","Switch time")]],o=>r({peakTimeDisplay:o})):null]),t==="models"&&(B=[g.renderModelsSettings({visibilityControl:!1})]),t==="badge"&&(B=$()),t==="corner"&&(B=[["goRolling","cornerGoRolling"],["goWeekly","cornerGoWeekly"],["goMonthly","cornerGoMonthly"],["budget","cornerBudget"]].map(([o,y])=>Z(h(y),e.corner?.[o]!==!1,M=>w("corner",{[o]:M})))),t?.startsWith("strip-")&&(B=[T(t==="strip-plans"?"plan":t.slice(6))]),t==="customBalance"&&(B=[H("customBalance"),z(h("customBalanceRefreshInterval"),e.customBalance?.refreshMinutes??15,o=>w("customBalance",{refreshMinutes:Math.floor(o)}),1)]),t==="plan"){const o=e.codingPlans?.[v]??{},y=M=>r({codingPlans:{...e.codingPlans,[v]:{...o,display:M}}});B=[A(c("套餐","Plan"),v,g.planOptions,x),I(c("显示位置","Placement"),a("select",{className:"cm-input",value:o.display==="off"?"sidebar":o.display??(v==="minimax"?"both":"settings"),onChange:M=>y(M.target.value)},...q(h).filter(M=>M.props.value!=="off"))),T("plan",c("所有套餐的进度条方向","Bar direction for all plans")),a("button",{type:"button",className:"cm-btn small",onClick:S},c("账户与额度设置 →","Account and quota settings →"))]}if((t==="codex"||t==="strip-codex")&&(B=[A(c("数据源","Data source"),e.codexQuotaSource??"auto",[["auto",c("自动检测","Auto-detect")],["connect","dsh-codex-connect"],["subscription","dsh-codex-subscription"]],o=>r({codexQuotaSource:o})),a("p",{className:"cm-inspector-note cm-inspector-help"},c("自动检测优先 dsh-codex-subscription,失败回退 dsh-codex-connect。","Auto prefers dsh-codex-subscription, then falls back to dsh-codex-connect.")),e.codexQuotaEnabled!==!0?a("p",{className:"cm-inspector-note"},c("先在账户与额度设置中启用 Codex 额度。","Enable Codex quota in account and quota settings first.")):null,a("button",{type:"button",className:"cm-btn small",onClick:S},c("账户与额度设置 →","Account and quota settings →"))]),t==="general"&&(B=[A(h("languageLabel"),e.locale??"auto",[["auto",h("localeAuto")],["zh","简体中文"],["en","English"]],o=>r({locale:o})),A(h("currencyLabel"),e.currency??"CNY",[["CNY",h("currencyCny")],["USD",h("currencyUsd")],["EUR",h("currencyEur")]],o=>r({currency:o,...F[o],exchangeRate:e.exchangeRateAuto!==!1?e.fxRates?.[o]??F[o].exchangeRate:F[o].exchangeRate})),Z(c("每日自动更新汇率","Update exchange rates daily"),e.exchangeRateAuto!==!1,o=>r({exchangeRateAuto:o})),e.exchangeRateAuto!==!1?a("p",{className:"cm-inspector-note"},c("参考汇率每日更新;历史费用保留记录时的汇率。","Daily reference rates; past costs retain their recorded rates."),e.exchangeRateDate?" · "+e.exchangeRateDate:""):null,z(h("rateLabel"),e.exchangeRate??1,o=>r({exchangeRate:o,exchangeRateAuto:!1}),1e-6,1e9),z(h("decimalsLabel"),e.decimals??2,o=>r({decimals:Math.floor(o)}),0,10),O?A(h("usagePositionLabel"),e.usage?.position??"cost",[["cost",h("usagePositionCost")],["general",h("usagePositionGeneral")],["section",h("usagePositionSection")]],o=>w("usage",{position:o})):null]),n)return a("section",{className:"cm-display-general cm-display-inspector"},a("h4",null,c("金额与语言","Currency and language")),a("p",null,c("统一应用于所有费用组件。","Applies to all cost components.")),a("div",{className:"cm-general-grid"},...B));const Q=e.sidebarSimple?"simple":e.sidebarStyle==="compact"?"compact":"standard",ee=k==="sidebar"&&u,_=s[t],ae=k==="sidebar"?c("在侧栏显示","Show in sidebar"):k==="composer"?c("在输入区显示","Show in composer"):c("在会话内容显示","Show in conversation");return a("aside",{className:"cm-display-inspector cm-inspector-unified","data-component":t??"","aria-label":c("外观与组件设置","Appearance and component settings")},I(c("调整组件","Customize"),a("select",{className:"cm-input",value:t??"",onChange:o=>p(o.target.value)},...(k==="sidebar"?["budget","balance","today","peak","models","go","plan","customBalance","codex"]:k==="composer"?["strip-budget","strip-go","strip-plans","strip-codex","session-dock","badge","corner","models"]:["session-header","badge","turn"]).map(o=>a("option",{key:o,value:o},f[o])))),_?a("div",{className:"cm-inspector-visibility"},Z(c("显示此组件","Show this component"),_.on,()=>r(_.patch),{"data-display-toggle":t}),a("span",{className:"cm-inspector-scope"},ae)):null,t?a("div",{className:"cm-inspector-controls",key:t,"data-inspector":t},...B):null,k==="sidebar"?a("button",{type:"button",className:"cm-inspector-layout","aria-expanded":u,onClick:()=>L?.(!u)},c("侧栏布局","Sidebar layout"),a("span",null,c(Q==="simple"?"简洁":Q==="compact"?"紧凑":"标准",Q==="simple"?"Simple":Q==="compact"?"Compact":"Standard"),u?" ▴":" ▾")):null,ee?a("div",{className:"cm-inspector-heading"},c("侧栏样式","Sidebar style"),a("span",null,c("进度卡片示例","Progress card examples"))):null,ee?a("div",{className:"cm-preview-style-options",role:"group","aria-label":c("侧栏布局","Sidebar layout")},...[["simple",c("简洁","Simple")],["standard",c("标准","Standard")],["compact",c("紧凑","Compact")]].map(([o,y])=>a("div",{key:o,role:"button",tabIndex:0,"aria-pressed":Q===o,onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),M.currentTarget.click())},onClick:()=>r({sidebarSimple:o==="simple",sidebarSimplePromptSeen:!0,...o==="simple"?{}:{sidebarStyle:o}})},a(He,{render:g.renderStyleSample,config:N.config,data:N.state,examples:b,mode:o}),a("span",{className:"cm-style-caption"},y)))):null,ee&&Q==="compact"?a("p",{className:"cm-inspector-note"},c("多时段额度并排,预算卡保持完整。","Quota windows sit side by side; the budget card stays intact.")):null,null)}function Re(g,e,r,t,v="minimax"){if(!r)return{state:g,config:e};const x=Number(e.exchangeRate)>0?Number(e.exchangeRate):1,S=Number(e.budget?.amount)>0?Number(e.budget.amount):200,p=g.displayPreviewCodex?.status==="ok"&&Object.keys(g.displayPreviewCodex.windows??{}).length?g.displayPreviewCodex.windows:{weekly:{}},f=(b,N,u,L,h)=>({cost:b/x,apiCost:b/x,input:N,output:u,cacheRead:L,cacheWrite:0,reasoning:0,calls:h}),s=S*.04608,c={...f(s,48e3,6400,192e3,14),byProviderModel:{"deepseek:deepseek-v4-flash":f(s*.6,24e3,3200,128e3,8),"deepseek:deepseek-v4-pro":f(s*.3,16e3,2e3,48e3,4),"openai:gpt-5":f(s*.1,8e3,1200,16e3,2)}},k={...e,sidebar:!0,hideOfficialBalance:!1,hideBudget:!1,hideTodayCost:!1,balance:{...e.balance,display:"both"},budget:{...e.budget,enabled:!0,amount:S},goQuota:{...e.goQuota,enabled:!0,display:"both"},sidebarModels:{...e.sidebarModels,enabled:!0},peakEnabled:!0,peakNotice:!0,codingPlans:{[v]:{...e.codingPlans?.[v],enabled:!0,display:"both"}},customBalances:[],customBalance:{...e.customBalance,enabled:t==="customBalance",display:"both"},codexQuotaEnabled:t==="codex",codexQuotaSidebar:!0,gatewayQuotas:{sources:[]}},n=new Date().toISOString().slice(0,10);return{config:k,state:{config:k,today:c,month:f(S*.57,16e4,24e3,64e4,72),total:f(S*1.4,48e4,8e4,192e4,220),budgetUsed:S*.57/x,history:[{date:n,...c}],meta:{dayKey:n},balance:{status:"ok",totalBalance:68,grantedBalance:8,toppedUpBalance:60,currency:e.currency??"CNY",fetchedAt:0},goQuota:{status:"ok",rolling:{percent:24},weekly:{percent:18},monthly:{percent:12},fetchedAt:0},codingPlans:{[v]:{status:"ok",windows:{"5h":{percent:35},weekly:{percent:62}},fetchedAt:0}},customBalances:[],customBalance:{status:"ok",remaining:68,spend:32,maxBudget:100,unit:"USD",fetchedAt:0},displayPreviewCodex:{status:"ok",windows:Object.fromEntries(["five","weekly"].filter(b=>p[b]).map(b=>[b,{percent:b==="five"?35:42}])),fetchedAt:0},gatewayQuotas:{sources:[]}}}}function Ce(g){const{draft:e,setDraft:r,t,locale:v,formatMoneyUsd:x,renderSidebar:S}=g,p=e??g.state.config,f=v==="en",s=(l,C)=>f?C:l,[c,k]=Y("sidebar"),[n,b]=Y(!1),[N,u]=Y("budget"),[L,h]=Y("minimax"),[U,F]=Y(!1),q=(l,C)=>{u(l),C&&h(C)},O=l=>{k(l),u(l==="sidebar"?"budget":l==="composer"?"strip-budget":"session-header")},[w,Z]=Y(()=>{try{return localStorage.getItem("dsh-cost-meter:display-examples")!=="false"}catch{return!0}}),I=R.useMemo(()=>Re(g.state,p,w,N,L),[g.state,p,w,N,L]),A=R.useCallback(l=>S(l,I.state),[S,I.state]),z=Se(),T={balance:s("官方余额","Official balance"),budget:s("侧栏预算","Sidebar budget"),today:s("今日用量","Today’s usage"),peak:s("峰谷时段","Peak / off-peak"),models:s("模型花费","Model costs"),go:s("Go 额度","Go quota"),plan:s("套餐进度条","Plan bars"),customBalance:s("自定义余额","Custom balance"),codex:s("Codex 额度","Codex quota"),badge:s("会话费用摘要","Session cost summary"),"session-header":s("顶部费用明细","Header cost details"),"session-dock":s("输入框下方费用明细","Composer cost details"),turn:s("每轮费用","Per-turn cost"),corner:s("右下角额度","Corner quota"),"strip-budget":s("预算进度条","Budget strip"),"strip-go":s("Go 进度条","Go strip"),"strip-plans":s("套餐进度条","Plan strip")};T["strip-codex"]=s("Codex 额度","Codex quota");const H={},K=R.useId(),$=R.useRef(null),B=R.useRef(null);R.useEffect(()=>{if(!n)return;const l=$.current;return l.showModal(),()=>{l.close(),B.current?.focus()}},[n]);const Q=l=>x(l,p),_=((l,C)=>C>0&&Number.isFinite(Number(l))?Math.min(100,Math.max(0,Number(l)/C*100)):null)(Number(I.state.budgetUsed)*(Number(p.exchangeRate)||1),Number(I.config.budget?.amount)),ae=I.state.goQuota?.rolling?.percent??null,o=Object.values(I.state.codingPlans??{}).flatMap(l=>Object.values(l.windows??{})).find(l=>Number.isFinite(l?.percent))?.percent??null,y=l=>l===null?"—":Number(l.toFixed(1))+"%",M=l=>r(C=>({...C??p,...l})),P=(l,C,j,G,X,ue="")=>(H[l]={on:j,patch:G},a("div",{key:l,role:"button",tabIndex:0,className:"cm-display-item "+ue,"data-display":l,"aria-pressed":N===l,"data-visible":j,"aria-label":C+s(",点击调整",", click to customize"),title:C+s(" · 点击调整"," · Click to customize"),onClick:()=>q(l),onKeyDown:ge=>{(ge.key===" "||ge.key==="Enter")&&(ge.preventDefault(),q(l))}},a("span",{className:"cm-display-item-content",inert:""},X),a("span",{className:"cm-display-item-tag","aria-hidden":!0},s("点击调整","Customize")))),D=p.hideOfficialBalance!==!0&&["both","sidebar"].includes(p.balance?.display??"both"),J=D?{hideOfficialBalance:!0}:{hideOfficialBalance:!1,balance:{...p.balance,display:p.balance?.display==="settings"||p.balance?.display==="both"?"both":"sidebar"}};H.balance={on:D,patch:J},H.budget={on:p.hideBudget!==!0,patch:{hideBudget:p.hideBudget!==!0}},H.peak={on:p.peakNotice!==!1,patch:{peakNotice:p.peakNotice===!1}};const ie=p.sidebar!==!1&&p.hideTodayCost!==!0;H.today={on:ie,patch:ie?{sidebar:!1}:{sidebar:!0,hideTodayCost:!1}},H.models={on:p.sidebarModels?.enabled===!0,patch:{sidebarModels:{...p.sidebarModels,enabled:p.sidebarModels?.enabled!==!0}}},H.go={on:["both","sidebar"].includes(p.goQuota?.display??"both"),patch:{goQuota:{...p.goQuota,display:["both","sidebar"].includes(p.goQuota?.display??"both")?"settings":"both"}}};const ne=p.codingPlans?.[L]??{},te=["both","sidebar"].includes(ne.display??(L==="minimax"?"both":"settings"));H.plan={on:te,patch:{codingPlans:{...p.codingPlans,[L]:{...ne,display:te?"settings":"both"}}}},H.customBalance={on:["both","sidebar"].includes(p.customBalance?.display??"both"),patch:{customBalance:{...p.customBalance,display:["both","sidebar"].includes(p.customBalance?.display??"both")?"settings":"both"}}},H.codex={on:p.codexQuotaSidebar!==!1,patch:{codexQuotaSidebar:p.codexQuotaSidebar===!1}};const E=p.quotaStrip??{},se=I.state.displayPreviewCodex,oe=se?.status==="ok"?Object.entries(se.windows??{}).map(([l,C])=>({key:l,pct:Number.isFinite(C?.percent)?Math.max(0,Math.min(100,100-C.percent)):null})):[],de=P("strip-codex",s("输入框上方 · Codex 额度","Above composer · Codex quota"),E.enabled===!0&&p.codexQuotaStrip!==!1,{codexQuotaStrip:!(E.enabled===!0&&p.codexQuotaStrip!==!1),...E.enabled?{}:{quotaStrip:{...E,enabled:!0,budget:!1,go:!1,plans:!1,promptSeen:!0}}},a("span",{className:"cm-qchip"},a("span",{className:"cm-qlabel"},"Codex"),...(oe.length?oe:[{pct:null}]).map(({key:l,pct:C},j)=>a("span",{key:j,className:"cm-qseg"},a("span",{className:"cm-qbar"},a("span",{className:"cm-qfill",style:{width:(C??0)+"%"}})),a("span",{className:"cm-qtext"},C===null?"—":(oe.length>1?(l==="five"?"5h":t("goShortWeekly"))+" ":"")+t("quotaRemaining",{pct:C})))))),re=(l,C,j,G)=>{const X=E.enabled===!0&&E[l]!==!1,ue=E.enabled?{...E,[l]:!X}:{...E,budget:!1,go:!1,plans:!1,[l]:!0},he=j===null?null:(p.barDirections?.[G]??"used")==="remaining"?100-j:j;return P("strip-"+l,s("输入框上方 · ","Above composer · ")+C,X,{quotaStrip:{...ue,enabled:!0,promptSeen:!0},...E.enabled?{}:{codexQuotaStrip:!1}},a("span",{className:"cm-qchip"},a("span",{className:"cm-qlabel"},C),a("span",{className:"cm-qbar"},a("span",{className:"cm-qfill",style:{width:(he??0)+"%"}})),a("span",{className:"cm-qtext"},y(he))))},ce=l=>P("session-"+l,s(l==="header"?"顶部费用明细":"输入框下方费用明细",l==="header"?"Header cost details":"Composer cost details"),p[l==="header"?"hideSessionCostHeader":"hideSessionCostDock"]!==!0,{[l==="header"?"hideSessionCostHeader":"hideSessionCostDock"]:p[l==="header"?"hideSessionCostHeader":"hideSessionCostDock"]!==!0},a("span",{className:"cm-btn cm-stat-entry"},s("费用明细","Cost details"))),le=l=>(p.position==="header"?"header":"dock")===l?P("badge",s("会话费用摘要","Session cost summary"),p.position!=="off",{position:p.position==="off"?l:"off"},a("span",{className:"cm-root cm-session-cost"},a("span",{className:"cm-session-amount"},t("sessionLineCompact",{amount:w?Q(.32):"—"})),p.sessionCostCompact===!0?null:a("span",{className:"cm-session-detail"},w?s(" · 输入 128K · 输出 4K"," · In 128K · Out 4K"):s(" · 暂无会话缓存"," · No cached session data")))):null,pe=p.corner?.enabled===!0,W=(l,...C)=>a("div",{className:"cm-native-"+l},...C),V=(l,C=16)=>a(ke[l],{size:C}),me=P("corner",s("右下角额度","Corner quota"),pe,{corner:{...p.corner,enabled:!pe}},a("span",{className:"cm-corner-chip"},t("budget")+" "+y(_)));H.badge={on:p.position===(c==="conversation"?"header":"dock"),patch:{position:p.position===(c==="conversation"?"header":"dock")?"off":c==="conversation"?"header":"dock"}},c==="composer"&&(H.models={on:p.sidebarModels?.dock===!0,patch:{sidebarModels:{...p.sidebarModels,dock:p.sidebarModels?.dock!==!0}}});const i=[["sidebar",s("侧栏","Sidebar")],["composer",s("输入区","Composer")],["conversation",s("会话内容","Conversation")]],m=c==="sidebar"?a(Le,{renderSidebar:A,config:I.config,selected:N,selectedPlan:L,select:q,labels:T,visibility:w?{balance:D,budget:H.budget.on,today:ie,go:H.go.on,peak:H.peak.on,models:H.models.on,plan:te}:null,appearance:{...z.sidebar,...z.sidebarFooterWidth?{maxWidth:z.sidebarFooterWidth+28}:{}},text:s,icon:V}):c==="composer"?a("div",{className:"cm-preview-composer"},a("div",{className:"cm-preview-region-head"},a("span",null,V("IconPlusOutlineRegular"),s("输入区域","Composer area"))),a("div",{className:"cm-preview-strip"},re("budget",t("budget"),_,"budget"),re("go","Go",ae,"go"),re("plans","Plan",o,"plan"),de),a("div",{className:"cm-native-input-card",style:z.composer,"aria-hidden":!0},W("input-placeholder",s("发消息或创建任务,/ 调用指令,@ 文件或对话","Send a message, / commands, @ files or conversations")),W("input-row",W("input-tools",W("input-add",V("IconPlusOutlineRegular",20)),W("permission",V("PermissionIconFullAccessRegular"),s("完全权限","Full access"))),W("input-trailing",W("model",w?"DeepSeek-V41-Flash":s("当前模型","Current model"),V("IconChevronDownOutlineRegular",12)),V("IconMicrophoneOutlineRegular",20),W("input-primary",V("IconSendOutlineRegular",24))))),W("input-dock",a("span",{className:"cm-native-dock-stat","aria-hidden":!0},V("IconGaugeOutlineRegular",14),w?s("2 轮 6 步 · 273 tok/s","2 turns · 6 steps · 273 tok/s"):"—"),a("span",{className:"cm-native-dock-stat","aria-hidden":!0},V("IconDatabaseOutlineRegular",14),w?s("128K tok · 缓存命中 98%","128K tok · 98% cache"):"—"),ce("dock"),le("dock"),me,a("span",{className:"cm-native-dock-context","aria-hidden":!0},a("i",{className:"cm-native-context-ring"}),w?"29%":"—"))):a("div",{className:"cm-preview-conversation"},a("div",{className:"cm-native-chat-header",style:z.header},a("div",{className:"cm-native-chat-titleRow"},a("span",null,w?s("整理项目计划","Organize the project plan"):s("会话费用显示位置","Conversation cost placement")),ce("header"),le("header")),a("div",{className:"cm-native-chat-tabs","aria-hidden":!0},...[s("对话","Chat"),s("轨迹","Trace"),s("上下文","Context")].map((l,C)=>a("span",{key:l,className:C===0?"active":""},l)))),a("div",{className:"cm-preview-response"},a("p",{"aria-hidden":!0},w?s("已整理好项目资料,接下来可以确认计划与时间安排。","The project materials are ready. Next, review the plan and schedule."):s("当前会话数据暂不可用,可开启示例数据查看完整效果。","Enable example data to see the complete conversation preview.")),P("turn",s("每轮费用","Per-turn cost"),p.hideTurnCost!==!0,{hideTurnCost:p.hideTurnCost!==!0},a("span",{className:"cm-native-turn"},s("▸ 本轮费用 ≈ ","▸ Turn cost ≈ ")+(w?Q(.08):"—"))),a("div",{className:"cm-native-response-actions","aria-hidden":!0},V("IconCopyOutlineRegular"),V("IconLikeOutlineRegular"),V("IconDislikeOutlineRegular"),V("IconShareOutlineRegular"),a("span",null,w?"14:32":"—")))),d=a(ve,null,a("div",{className:"cm-display-preview-options"},a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:w,onChange:l=>{Z(l.target.checked);try{localStorage.setItem("dsh-cost-meter:display-examples",String(l.target.checked))}catch{}}}),s("使用示例数据","Use example data")),a("span",null,w?s("展示完整效果,示例不计入账本","Full preview · example data is not recorded"):s("展示当前数据,缺失内容显示 —","Current data · unavailable values show —"))),a("div",{className:"cm-display-region-tabs",role:"tablist","aria-label":s("预览区域","Preview area")},...i.map(([l,C],j)=>a("button",{key:l,type:"button",role:"tab",id:K+l,"aria-selected":c===l,"aria-controls":K+"-panel",tabIndex:c===l?0:-1,onClick:()=>O(l),onKeyDown:G=>{if(!["ArrowLeft","ArrowRight","Home","End"].includes(G.key))return;G.preventDefault();const X=G.key==="Home"?0:G.key==="End"?i.length-1:(j+(G.key==="ArrowLeft"?-1:1)+i.length)%i.length;O(i[X][0]),G.currentTarget.parentElement.children[X].focus()}},C))),a("div",{className:"cm-preview cm-region-preview",role:"tabpanel",id:K+"-panel","aria-labelledby":K+c,"data-region":c},a("div",{className:"cm-preview-workspace"},a("div",{className:"cm-preview-scene"},m),a(xe,{props:g,config:p,set:M,selected:N,selectedPlan:L,selectPlan:h,select:q,labels:T,registry:H,text:s,region:c,examples:w,previewData:I,stylesOpen:U,setStylesOpen:F,openQuota:()=>{b(!1),g.onNavigate("quotas",N==="codex"||N==="strip-codex"?"codex":L)}}))));return a("section",{className:"cm-display","aria-label":s("交互式显示设置","Interactive display settings")},a("div",{className:"cm-display-heading"},a("div",null,a("h3",null,s("设置你看到的界面","Make the screen yours")),a("p",null,s("点击虚线框,在右侧调整显示与样式。淡化表示已隐藏。","Select an outlined item, then customize it on the right. Faded components are hidden."))),a("button",{ref:B,type:"button",className:"cm-btn small cm-display-expand",onClick:()=>b(!0)},V("IconFullscreenOutlineRegular",14),s("放大预览","Expand preview"))),n?a("dialog",{ref:$,className:"cm-display-dialog","aria-label":s("桌面显示预览","Desktop display preview"),onCancel:l=>{l.preventDefault(),l.stopPropagation(),b(!1)},onKeyDown:l=>{l.key==="Escape"&&l.stopPropagation()}},a("div",{className:"cm-display-dialog-head"},s("显示设置","Display settings"),a("button",{type:"button",className:"cm-display-dialog-close","aria-label":s("关闭预览","Close preview"),autoFocus:!0,onClick:()=>b(!1)},V("IconCloseOutlineRegular"))),d):d,a(xe,{props:g,config:p,set:M,selected:"general",text:s,general:!0}))}class Oe extends R.Component{constructor(e){super(e),this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){if(!this.state.failed)return a(Ce,this.props);const e=this.props.locale==="en";return a("section",{className:"cm-display"},a("p",{role:"alert"},e?"Preview unavailable. Display options are still available below.":"预览暂不可用,可在下方继续调整显示选项。"),a("button",{type:"button",className:"cm-btn small",onClick:()=>this.setState({failed:!1})},e?"Retry preview":"重试预览"),a(Ie,{...this.props,open:!0}),this.props.renderModelsSettings?.())}}function Ie({state:g,draft:e,setDraft:r,t,locale:v,numInput:x,displayOptions:S,CURRENCY_PRESETS:p,USAGE_POSITION_SWITCHABLE:f,open:s=!1}){const c=g.config,k=(n,b)=>r(N=>({...N,[n]:b}));return a("details",{className:"cm-display-details",open:s||void 0},a("summary",null,v==="en"?"More options · layout, currency and refresh intervals":"详细设置 · 布局、金额格式与刷新频率"),a("div",{className:"cm-grid"},a("div",{className:"cm-grid-group"},t("groupGeneral")),...["includeSubagentCost","codexQuotaEnabled","codexQuotaSidebar","codexQuotaStrip"].map(n=>a("label",{key:n,className:"cm-check"},a("input",{type:"checkbox",checked:e?.[n]===!0,onChange:b=>k(n,b.target.checked)}),a("span",null,t(n)))),f?a("div",{className:"cm-field"},a("label",null,t("usagePositionLabel")),a("select",{className:"cm-input",value:e?.usage?.position??"cost",onChange:n=>{e!==null&&r({...e,usage:{...e.usage??{position:"cost"},position:n.target.value}})}},a("option",{value:"cost"},t("usagePositionCost")),a("option",{value:"general"},t("usagePositionGeneral")),a("option",{value:"section"},t("usagePositionSection")))):null,a("div",{className:"cm-field"},a("label",null,t("positionLabel")),a("select",{className:"cm-input",value:e?.position??"dock",onChange:n=>k("position",n.target.value)},a("option",{value:"dock"},t("positionDock")),a("option",{value:"header"},t("positionHeader")),a("option",{value:"off"},t("off")))),a("div",{className:"cm-field"},a("label",null,t("sidebarLabel")),a("select",{className:"cm-input",value:e?.sidebar===!1?"off":"on",onChange:n=>k("sidebar",n.target.value==="on")},a("option",{value:"on"},t("sidebarOn")),a("option",{value:"off"},t("off")))),a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.showSessionId===!0,onChange:n=>k("showSessionId",n.target.checked)}),a("span",null,t("showSessionIdLabel"))),...["hideSessionCostHeader","hideSessionCostDock","hideTurnCost","sessionCostCompact"].map(n=>a("label",{key:n,className:"cm-check"},a("input",{type:"checkbox",checked:e?.[n]===!0,onChange:b=>k(n,b.target.checked)}),a("span",null,t(n)))),a("div",{className:"cm-grid-group"},t("groupMoney")),a("div",{className:"cm-field"},a("label",null,t("currencyLabel")),a("select",{className:"cm-input",value:e?.currency??"CNY",onChange:n=>{const b=p[n.target.value];b!==void 0&&e!==null&&r({...e,currency:n.target.value,...b,exchangeRate:e.exchangeRateAuto!==!1?e.fxRates?.[n.target.value]??b.exchangeRate:b.exchangeRate})}},a("option",{value:"CNY"},t("currencyCny")),a("option",{value:"USD"},t("currencyUsd")),a("option",{value:"EUR"},t("currencyEur")))),a("div",{className:"cm-field"},a("label",null,t("rateLabel")),x({value:e?.exchangeRate??1,emptyMode:"ignore"},n=>r({...e,exchangeRate:n,exchangeRateAuto:!1}))),a("div",{className:"cm-field"},a("label",null,t("decimalsLabel")),x({value:e?.decimals??2},n=>k("decimals",Math.min(10,Math.floor(n))))),a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.hideOfficialBalance===!0,onChange:n=>k("hideOfficialBalance",n.target.checked)}),a("span",null,t("hideOfficialBalanceLabel"))),a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.hideTodayCost===!0,onChange:n=>k("hideTodayCost",n.target.checked)}),a("span",null,t("hideTodayCostLabel"))),a("div",{className:"cm-grid-group"},t("groupSidebar")),a("div",{className:"cm-field"},a("label",null,t("sidebarTodayMetric")),a("select",{className:"cm-input",value:e?.sidebarTodayMetric??"cost",onChange:n=>k("sidebarTodayMetric",n.target.value)},a("option",{value:"cost"},t("sidebarTodayCost")),a("option",{value:"tokens"},t("sidebarTodayTokens")))),a("div",{className:"cm-field"},a("label",null,t("balanceDisplayLabel")),a("select",{className:"cm-input",value:e?.balance?.display??"both",onChange:n=>{e!==null&&r({...e,balance:{...e.balance??{display:"both",refreshMinutes:5},display:n.target.value}})}},...S(t))),a("div",{className:"cm-field"},a("label",null,t("refreshIntervalLabel")),x({value:e?.balance?.refreshMinutes??5},n=>{e!==null&&r({...e,balance:{...e.balance??{display:"both",refreshMinutes:5,showProgressBar:!1,budgetCap:null},refreshMinutes:Math.min(1440,Math.max(1,Math.floor(n)))}})})),a("div",{className:"cm-field"},a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.balance?.showProgressBar===!0,onChange:n=>{e!==null&&r({...e,balance:{...e.balance??{display:"both",refreshMinutes:5,showProgressBar:!1,budgetCap:null},showProgressBar:n.target.checked}})}}),a("span",null,t("balanceShowProgressBar")))),a("div",{className:"cm-field"},a("label",null,t("balanceBudgetCapLabel")),x({value:e?.balance?.budgetCap??""},n=>{e!==null&&r({...e,balance:{...e.balance??{display:"both",refreshMinutes:5,showProgressBar:!1,budgetCap:null},budgetCap:n>0?n:null}})}),a("span",{className:"cm-hint"},t("balanceBudgetCapHint"))),a("div",{className:"cm-field"},a("label",null,t("barDirectionsTitle")),["balance","budget","go","plan"].map(n=>a("div",{className:"cm-dir-row",key:n},a("span",{className:"cm-dir-label"},t("barDirection_"+n)),a("select",{className:"cm-input",value:e?.barDirections?.[n]??(n==="balance"?"remaining":"used"),onChange:b=>{if(e===null)return;const N={balance:"remaining",budget:"used",go:"used",plan:"used"};r({...e,barDirections:{...e.barDirections??N,[n]:b.target.value}})}},a("option",{value:"remaining"},t("barDirectionRemaining")),a("option",{value:"used"},t("barDirectionUsed"))))),a("span",{className:"cm-hint"},t("barDirectionsHint"))),a("div",{className:"cm-field"},a("label",null,t("customBalanceDisplayLabel")),a("select",{className:"cm-input",value:e?.customBalance?.display??c.customBalance?.display??"both",onChange:n=>{e!==null&&r({...e,customBalance:{...e.customBalance??c.customBalance??{},display:n.target.value}})}},...S(t))),a("div",{className:"cm-field"},a("label",null,t("customBalanceRefreshInterval")),x({value:e?.customBalance?.refreshMinutes??c.customBalance?.refreshMinutes??15},n=>{e!==null&&r({...e,customBalance:{...e.customBalance??c.customBalance??{},refreshMinutes:Math.min(1440,Math.max(1,Math.floor(n)))}})})),a("div",{className:"cm-grid-group"},t("quotaStripGroup")),a("div",{className:"cm-field"},a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.quotaStrip?.enabled===!0,onChange:n=>{e!==null&&r({...e,quotaStrip:{...e.quotaStrip??{enabled:!1,budget:!0,go:!0,plans:!0},enabled:n.target.checked,promptSeen:!0}})}}),a("span",null,t("quotaStripEnable")))),e?.quotaStrip?.enabled===!0?[["budget","quotaStripShowBudget"],["go","quotaStripShowGo"],["plans","quotaStripShowPlans"]].map(([n,b])=>a("label",{key:n,className:"cm-check"},a("input",{type:"checkbox",checked:e.quotaStrip[n]!==!1,onChange:N=>{e!==null&&r({...e,quotaStrip:{...e.quotaStrip,[n]:N.target.checked}})}}),a("span",null,t(b)))):null,a("div",{className:"cm-field"},a("span",{className:"cm-hint"},t("quotaStripNote"))),a("div",{className:"cm-grid-group"},t("groupCorner")),a("div",{className:"cm-field"},a("label",null,t("cornerLabel")),a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.corner?.enabled===!0,onChange:n=>{e!==null&&r({...e,corner:{...e.corner??{enabled:!1,goRolling:!0,goWeekly:!0,goMonthly:!0,budget:!0},enabled:n.target.checked}})}}),a("span",null,t("cornerEnabledLabel"))),e?.corner?.enabled===!0?[["goRolling","cornerGoRolling"],["goWeekly","cornerGoWeekly"],["goMonthly","cornerGoMonthly"],["budget","cornerBudget"]].map(([n,b])=>a("label",{key:n,className:"cm-check"},a("input",{type:"checkbox",checked:e.corner[n]!==!1,onChange:N=>{e!==null&&r({...e,corner:{...e.corner,[n]:N.target.checked}})}}),a("span",null,t(b)))):null),a("div",{className:"cm-grid-group"},t("groupDetail")),a("div",{className:"cm-field"},a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.goQuota?.detail!==!1,onChange:n=>{e!==null&&r({...e,goQuota:{...e.goQuota??{display:"both",refreshMinutes:15,apiKey:"",main:"rolling",detail:!0},detail:n.target.checked}})}}),a("span",null,t("goDetailLabel")))),a("div",{className:"cm-field"},a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.budget?.detail!==!1,onChange:n=>{e!==null&&r({...e,budget:{...e.budget??{enabled:!1,amount:100,period:"month",customStart:null,customEnd:null,detail:!0},detail:n.target.checked}})}}),a("span",null,t("budgetDetailLabel"))))))}function Pe(g){const e=document.createElement("style");return e.textContent=Ne,document.head.appendChild(e),g.effect(()=>()=>e.remove(),"cost-meter: display settings styles"),Oe}return{mount:Pe,DisplaySettings:Ce}}});
|
|
1
|
+
window.__ModuleLoader__.load({id:"dsh-cost-meter",chunk:"client.display.js",factory:we=>{const O=we("react"),{createElement:a,useState:J}=O,ke=O.Fragment;function Ne(p){const e=(i,g)=>p.createElement(i,g),r=e,t=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M2.37091 11.2501C1.58745 9.89288 1.32067 8.29835 1.61969 6.76006C1.91872 5.22177 2.76342 3.8433 3.99826 2.87846C5.2331 1.91362 6.77494 1.42737 8.33988 1.50925C9.90482 1.59113 11.3875 2.23562 12.5149 3.32406C13.6425 4.41269 14.3387 5.87206 14.4754 7.4334C14.612 8.99474 14.18 10.5529 13.2587 11.8209C12.3375 13.0888 10.9891 13.9813 9.46194 14.3337C8.18691 14.628 6.85895 14.5294 5.64989 14.0605C5.1712 13.8748 4.76962 13.4932 4.26534 13.3967C3.67413 13.2835 2.95257 13.5598 2.03794 14.3337",stroke:"currentColor"}),e("path",{d:"M8 5V11",stroke:"currentColor"}),e("path",{d:"M5 8H11",stroke:"currentColor"})]}),v=({size:i=14,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M4.67398 4.25061L1.36094 7.86484C1.29085 7.9413 1.29085 8.05866 1.36094 8.13513L4.67398 11.7494",stroke:"currentColor"}),e("path",{d:"M11.3262 4.25061L14.6392 7.86484C14.7093 7.9413 14.7093 8.05866 14.6392 8.13513L11.3262 11.7494",stroke:"currentColor"}),e("path",{d:"M9.56222 3.62573L6.43774 12.3743",stroke:"currentColor"})]}),y=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M1.50439 3.11059C1.50439 2.55831 1.95211 2.1106 2.50439 2.1106H5.43389C5.67773 2.1106 5.91318 2.19969 6.09593 2.36113L7.71649 3.79265C7.89924 3.95409 8.1347 4.04319 8.3785 4.04319H13.4958C14.0481 4.04319 14.4958 4.4909 14.4958 5.04319V12.8894C14.4958 13.4417 14.0481 13.8894 13.4958 13.8894H2.50439C1.95211 13.8894 1.50439 13.4417 1.50439 12.8894V4.04319V3.11059Z",stroke:"currentColor"}),e("path",{d:"M3.63501 7.66614H12.3647",stroke:"currentColor"})]}),C=i=>e(t,{...i,strokeWidth:1}),d=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M6.58727 11.8586C9.55061 11.8586 11.9529 9.45637 11.9529 6.49304C11.9529 3.5297 9.55061 1.12744 6.58727 1.12744C3.62394 1.12744 1.22168 3.5297 1.22168 6.49304C1.22168 9.45637 3.62394 11.8586 6.58727 11.8586Z",stroke:"currentColor"}),e("path",{d:"M10.2991 10.3933L14.7783 14.8725",stroke:"currentColor"})]}),h=i=>e(d,{...i,strokeWidth:1}),s=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M13.5 1.5H2.5C1.94772 1.5 1.5 1.94772 1.5 2.5V13.5C1.5 14.0523 1.94772 14.5 2.5 14.5H13.5C14.0523 14.5 14.5 14.0523 14.5 13.5V2.5C14.5 1.94772 14.0523 1.5 13.5 1.5Z",stroke:"currentColor"}),e("path",{d:"M5.5 1.5V14.5",stroke:"currentColor"})]}),n=i=>e(s,{...i,strokeWidth:1}),M=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M3 9C3.55228 9 4 8.55228 4 8C4 7.44772 3.55228 7 3 7C2.44772 7 2 7.44772 2 8C2 8.55228 2.44772 9 3 9Z",fill:"currentColor"}),e("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),e("path",{d:"M13 9C13.5523 9 14 8.55228 14 8C14 7.44772 13.5523 7 13 7C12.4477 7 12 7.44772 12 8C12 8.55228 12.4477 9 13 9Z",fill:"currentColor"})]}),c=i=>e(M,{...i,strokeWidth:1}),x=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M8 2V14",stroke:"currentColor"}),e("path",{d:"M2 8H14",stroke:"currentColor"})]}),B=i=>e(x,{...i,strokeWidth:1}),E=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M1.01503 8.0001L5.6964 8.0001C6.41913 8.0001 6.78049 8.0001 7.12115 7.91951C7.4232 7.84804 7.71233 7.73014 7.97821 7.57C8.27809 7.38939 8.5364 7.13669 9.05303 6.63129L11.3281 4.40564",stroke:"currentColor"}),e("path",{d:"M1.01221 7.9999L5.6964 7.9999C6.41913 7.9999 6.78049 7.9999 7.12115 8.08049C7.4232 8.15196 7.71233 8.26986 7.97821 8.43C8.27809 8.61061 8.5364 8.86331 9.05303 9.36871L11.3281 11.5944",stroke:"currentColor"}),e("circle",{cx:"12.4502",cy:"3.3079",r:"1.56962",stroke:"currentColor"}),e("circle",{cx:"12.4502",cy:"12.6921",r:"1.56962",stroke:"currentColor"})]}),z=i=>e(E,{...i,strokeWidth:1}),b=({size:i=14,className:g,strokeWidth:u})=>e("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:e("path",{d:"M4 6L7.29289 9.29289C7.68342 9.68342 8.31658 9.68342 8.70711 9.29289L12 6",stroke:"currentColor"})}),Y=i=>e(b,{...i,strokeWidth:1}),G=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M2.5 2.5L13.5 13.5",stroke:"currentColor"}),e("path",{d:"M13.5 2.5L2.5 13.5",stroke:"currentColor"})]}),Q=i=>e(G,{...i,strokeWidth:1}),m=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("rect",{x:"1.52075",y:"4.07373",width:"10.3932",height:"10.3932",rx:"2",stroke:"currentColor"}),e("path",{d:"M11.9792 1.53296C13.36 1.53296 14.4792 2.65225 14.4792 4.03296V9.42847C14.4792 10.3756 13.9521 11.1987 13.1755 11.6228V10.3298C13.3652 10.0787 13.4792 9.7674 13.4792 9.42847V4.03296C13.4792 3.20453 12.8077 2.53296 11.9792 2.53296H6.58374C6.27966 2.53301 5.99684 2.6235 5.7605 2.77905H4.42358C4.85652 2.03463 5.66056 1.53304 6.58374 1.53296H11.9792Z",fill:"currentColor"})]}),w=i=>e(m,{...i,strokeWidth:1}),D=({size:i=16,className:g,strokeWidth:u})=>e("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:e("path",{d:"M13.537 8.12098L12.3983 12.8455C12.1818 13.7438 11.378 14.3769 10.454 14.3769L9.35595 14.3769H7.43799H5.16577C3.50892 14.3769 2.16577 13.0337 2.16577 11.3769V7.88668C2.16577 7.33439 2.61349 6.88668 3.16577 6.88668H4.02665C5.84943 6.88668 7.38083 3.28711 7.67689 2.54578C7.71259 2.45639 7.73501 2.36373 7.77922 2.27824C7.86506 2.11221 8.08228 1.87578 8.59039 2.07775C10.3291 2.76886 9.23144 6.04071 8.96955 6.75058C8.94502 6.81707 8.99495 6.88668 9.06581 6.88668H12.5648C13.2119 6.88668 13.6886 7.49192 13.537 8.12098Z",stroke:"currentColor"})}),P=i=>e(D,{...i,strokeWidth:1}),R=({size:i=16,className:g,strokeWidth:u})=>e("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:e("path",{d:"M2.46302 8.06749L3.60171 3.34299C3.81822 2.44467 4.62196 1.81162 5.546 1.8116L6.64406 1.81158L8.56202 1.81158L10.8342 1.81158C12.4911 1.81158 13.8342 3.15473 13.8342 4.81158L13.8342 8.3018C13.8342 8.85408 13.3865 9.3018 12.8342 9.3018L11.9734 9.3018C10.1506 9.3018 8.61918 12.9014 8.32311 13.6427C8.28741 13.7321 8.26499 13.8247 8.22078 13.9102C8.13494 14.0763 7.91772 14.3127 7.40961 14.1107C5.67089 13.4196 6.76856 10.1478 7.03045 9.43789C7.05498 9.37141 7.00505 9.3018 6.93419 9.3018L3.43519 9.3018C2.78811 9.3018 2.31141 8.69656 2.46302 8.06749Z",stroke:"currentColor"})}),T=i=>e(R,{...i,strokeWidth:1}),I=({size:i=16,className:g,strokeWidth:u})=>e("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:e("path",{d:"M14.1256 7.58723C14.3483 7.81942 14.3482 8.18589 14.1254 8.41799L8.6646 14.1077C8.53985 14.2377 8.32031 14.1494 8.32031 13.9692L8.32035 10.2039C8.32035 10.1943 8.31534 10.1864 8.30592 10.1849C8.08306 10.148 5.30067 9.7729 1.50993 13.2904C1.49711 13.3023 1.47561 13.2943 1.4757 13.2768C1.49273 9.87168 3.42001 5.07166 8.29999 5.05835C8.31103 5.05832 8.32035 5.04937 8.32035 5.03832L8.32031 2.03109C8.32031 1.85088 8.53993 1.76259 8.66466 1.89266L14.1256 7.58723Z",stroke:"currentColor"})}),N=i=>e(I,{...i,strokeWidth:1}),S=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M8 8.25C9.51878 8.25 10.75 7.01878 10.75 5.5C10.75 3.98122 9.51878 2.75 8 2.75C6.48122 2.75 5.25 3.98122 5.25 5.5C5.25 7.01878 6.48122 8.25 8 8.25Z",stroke:"currentColor"}),e("path",{d:"M2.5 14.5C2.5 11.5 5.25 10.25 8 10.25C10.75 10.25 13.5 11.5 13.5 14.5",stroke:"currentColor"})]}),Z=i=>e(S,{...i,strokeWidth:1}),H=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M6 8.25C7.51878 8.25 8.75 7.01878 8.75 5.5C8.75 3.98122 7.51878 2.75 6 2.75C4.48122 2.75 3.25 3.98122 3.25 5.5C3.25 7.01878 4.48122 8.25 6 8.25Z",stroke:"currentColor"}),e("path",{d:"M1 14.5C1 11.5 3.5 10.25 6 10.25C8.5 10.25 11 11.5 11 14.5",stroke:"currentColor"}),e("path",{d:"M10.5 2.9C11.65 3.35 12.45 4.35 12.45 5.5C12.45 6.65 11.65 7.65 10.5 8.1",stroke:"currentColor"}),e("path",{d:"M12.4 10.6C13.9 11.3 15 12.6 15 14.5",stroke:"currentColor"})]}),A=i=>e(H,{...i,strokeWidth:1}),se=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M2.33154 9.40576V13.1685C2.3318 13.4444 2.55556 13.6685 2.83154 13.6685H6.49463V14.6685H2.83154C2.00328 14.6685 1.3318 13.9967 1.33154 13.1685V9.40576H2.33154ZM13.1685 1.33154C13.9964 1.33199 14.6683 2.00352 14.6685 2.83154V6.40576H13.6685V2.83154C13.6683 2.5558 13.4441 2.33199 13.1685 2.33154H9.49463V1.33154H13.1685Z",fill:"currentColor"}),e("path",{d:"M9.4292 6.57077L13.914 2.08594",stroke:"currentColor"}),e("path",{d:"M6.57077 9.4292L2.08594 13.914",stroke:"currentColor"})]}),X=i=>e(se,{...i,strokeWidth:1}),ee=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M5.54492 2.06738C5.91034 2.06754 6.26318 2.20149 6.53711 2.44336L7.94043 3.68164V4.7998C7.71462 4.74105 7.50367 4.63139 7.32617 4.47461L5.87598 3.19238C5.78477 3.11185 5.66658 3.06754 5.54492 3.06738H2.94922C2.67322 3.06738 2.44946 3.29145 2.44922 3.56738V12.4326C2.44927 12.7087 2.67311 12.9326 2.94922 12.9326H12.9326C13.2086 12.9325 13.4326 12.7086 13.4326 12.4326V8.53613H14.4326V12.4326C14.4326 13.2609 13.7609 13.9325 12.9326 13.9326H2.94922C2.12083 13.9326 1.44927 13.261 1.44922 12.4326V3.56738C1.44946 2.73916 2.12094 2.06738 2.94922 2.06738H5.54492Z",fill:"currentColor"}),e("path",{d:"M9.75977 4.50208H14.5509",stroke:"currentColor"}),e("path",{d:"M12.1492 6.89758L12.1492 2.10642",stroke:"currentColor"})]}),o=i=>e(ee,{...i,strokeWidth:1}),k=i=>e(y,{...i,strokeWidth:1}),L=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M13.1967 5.1869C13.7232 4.77378 14.0003 4.30517 14.0001 3.82819C14.0003 3.3512 13.7232 2.88259 13.1967 2.46947C12.6702 2.05635 11.9128 1.71328 11.0006 1.47475C10.0885 1.23621 9.05371 1.11062 8.00039 1.1106C6.94707 1.11057 5.9123 1.23612 5.00009 1.47461C4.08742 1.71301 3.32948 2.05604 2.80249 2.46919C2.2755 2.88235 1.99805 3.35106 1.99805 3.82819C1.99805 4.30531 2.2755 4.77402 2.80249 5.18718C3.32948 5.60033 4.08742 5.94336 5.00009 6.18176C5.9123 6.42025 6.94707 6.5458 8.00039 6.54578C9.05371 6.54575 10.0885 6.42016 11.0006 6.18163C11.9128 5.94309 12.6702 5.60002 13.1967 5.1869Z",stroke:"currentColor"}),e("path",{d:"M2 3.80371V11.7848",stroke:"currentColor"}),e("path",{d:"M14 3.80371V11.7848",stroke:"currentColor"}),e("path",{d:"M2 7.81396C2 8.60524 2.63214 9.36411 3.75736 9.92363C4.88258 10.4832 6.4087 10.7975 8 10.7975C9.5913 10.7975 11.1174 10.4832 12.2426 9.92363C13.3679 9.36411 14 8.60524 14 7.81396",stroke:"currentColor"}),e("path",{d:"M2 11.7847C2 12.6081 2.63214 13.3977 3.75736 13.98C4.88258 14.5622 6.4087 14.8893 8 14.8893C9.5913 14.8893 11.1174 14.5622 12.2426 13.98C13.3679 13.3977 14 12.6081 14 11.7847",stroke:"currentColor"})]}),W=i=>e(L,{...i,strokeWidth:1}),V=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:"currentColor"}),e("path",{d:"M8 4.31V8.46L11 10.08",stroke:"currentColor"})]}),K=i=>e(V,{...i,strokeWidth:1}),me=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M3.4041 13.096C2.49514 12.187 1.87614 11.0288 1.62537 9.76798C1.37459 8.50716 1.50331 7.20028 1.99525 6.01261C2.48719 4.82494 3.32025 3.80981 4.3891 3.09557C5.45795 2.38134 6.71458 2.00008 8.0001 2C9.28563 2.00008 10.5423 2.38134 11.6111 3.09557C12.68 3.80981 13.513 4.82494 14.005 6.01261C14.4969 7.20028 14.6256 8.50716 14.3748 9.76798C14.1241 11.0288 13.5051 12.187 12.5961 13.096",stroke:"currentColor"}),e("path",{d:"M8 8.49994L11.6114 4.88855",stroke:"currentColor"}),e("path",{d:"M8 9.75C8.69036 9.75 9.25 9.19036 9.25 8.5C9.25 7.80964 8.69036 7.25 8 7.25C7.30964 7.25 6.75 7.80964 6.75 8.5C6.75 9.19036 7.30964 9.75 8 9.75Z",fill:"currentColor"})]}),ae=i=>e(me,{...i,strokeWidth:1}),ne=({size:i=14,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M6.97211 1.94476C7.55785 1.35914 8.50767 1.35919 9.09343 1.94476L13.921 6.77228L13.2138 7.47939L8.38632 2.65187C8.19108 2.45682 7.87443 2.45677 7.67922 2.65187L2.74397 7.58711L2.03687 6.88L6.97211 1.94476Z",fill:"currentColor"}),e("path",{d:"M7.97571 14.5732L8.02421 2.34139",stroke:"currentColor"})]}),ie=i=>e(ne,{...i,strokeWidth:1}),F=i=>e(v,{...i,size:i.size??12,strokeWidth:1}),le=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M7.84457 5.06199C11.6605 4.93876 14.7962 6.14848 14.8484 7.76397C14.8875 8.97461 13.1838 10.0696 10.7215 10.5942",stroke:"currentColor"}),e("path",{d:"M5.12742 8.07731C5.00419 4.26138 6.21391 1.12568 7.8294 1.07351C9.04004 1.03441 10.135 2.73808 10.6596 5.20037",stroke:"currentColor"}),e("path",{d:"M8.02457 10.6802C4.20865 10.8034 1.07294 9.5937 1.02077 7.97821C0.981678 6.76758 2.68535 5.67262 5.14763 5.14798",stroke:"currentColor"}),e("path",{d:"M10.7476 7.89535C10.8708 11.7113 9.66109 14.847 8.0456 14.8991C6.83496 14.9382 5.74 13.2346 5.21536 10.7723",stroke:"currentColor"})]}),te=i=>e(le,{...i,strokeWidth:1}),ue=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M2.3 5h5.85M12.05 5h1.65"}),e("circle",{cx:"9.95",cy:"5",r:"1.45"}),e("path",{d:"M2.3 11h1.65M7.85 11h5.85"}),e("circle",{cx:"5.75",cy:"11",r:"1.45"})]}),oe=i=>e(ue,{...i,strokeWidth:1}),ce=({size:i=16,className:g,strokeWidth:u})=>r("svg",{width:i,height:i,viewBox:"0 0 16 16",className:g,fill:"none",stroke:"currentColor",strokeWidth:u,"aria-hidden":"true",children:[e("rect",{x:4.5+u/2,y:1+u/2,width:7-u,height:10-u,rx:(7-u)/2}),e("path",{d:"M2.35 8.675C3.075 11.3 5.2 13.125 8 13.125C10.8 13.125 12.925 11.3 13.65 8.675M8 13.125V15"})]}),de=i=>e(ce,{...i,strokeWidth:1});function pe({size:i=24,className:g,includeMark:u=!0}){return r("svg",{width:i*(u?182:156)/24,height:i,className:g,viewBox:u?"0 0 182 24":"26 0 156 24",fill:"none","aria-hidden":"true",children:[e("path",{d:"M68.416 18.2447H67.0501V16.1272H68.416C69.2619 16.1272 70.1166 15.9163 70.6671 15.3304C71.2181 14.7444 71.426 13.8455 71.426 12.9471C71.426 12.0487 71.2268 11.1498 70.6671 10.5643C70.1083 9.97831 69.2619 9.76744 68.416 9.76744C67.5701 9.76744 66.7154 9.97831 66.1639 10.5643C65.6129 11.1503 65.4049 12.0487 65.4049 12.9471V21.6435H63.009V7.6582H65.4049V8.54883H65.8442C65.8918 8.49393 65.9394 8.44728 65.9875 8.40064C66.5871 7.85353 67.5049 7.6582 68.4072 7.6582C69.8212 7.6582 71.2341 8.00998 72.1607 8.98662C73.0868 9.96325 73.4143 11.4632 73.4143 12.9558C73.4143 14.4485 73.0785 15.9406 72.1607 16.925C71.2424 17.9094 69.8212 18.2457 68.416 18.2457V18.2447Z",fill:"currentColor"}),e("path",{d:"M31.9551 8.03497H33.3204V10.1525H31.9551C31.1087 10.1525 30.2545 10.3633 29.7035 10.9493C29.1525 11.5353 28.945 12.4342 28.945 13.3326C28.945 14.231 29.1447 15.1294 29.7035 15.7154C30.2623 16.3014 31.1087 16.5122 31.9551 16.5122C32.8015 16.5122 33.6562 16.3014 34.2072 15.7154C34.7582 15.1294 34.9657 14.231 34.9657 13.3326V4.62842H37.3611V18.6219H34.9657V17.7313H34.5264C34.4783 17.7857 34.4307 17.8329 34.3826 17.8795C33.7835 18.4261 32.8652 18.6219 31.9629 18.6219C30.5494 18.6219 29.136 18.2707 28.2099 17.294C27.2838 16.3174 26.9563 14.817 26.9563 13.3248C26.9563 11.8327 27.2916 10.34 28.2099 9.35561C29.136 8.37898 30.5494 8.03497 31.9551 8.03497Z",fill:"currentColor"}),e("path",{d:"M49.3786 13.1431V13.9948H42.9984V12.2996H47.2305C47.1348 11.6825 46.9113 11.1043 46.5119 10.682C45.9371 10.0727 45.0503 9.85409 44.1723 9.85409C43.2943 9.85409 42.4076 10.0727 41.8328 10.682C41.258 11.2913 41.05 12.2213 41.05 13.1435C41.05 14.0658 41.2575 15.003 41.8328 15.6046C42.4076 16.2061 43.2939 16.433 44.1723 16.433C45.0508 16.433 45.9371 16.2143 46.5119 15.6046C46.5916 15.5186 46.6635 15.4248 46.7354 15.331H49.0992C48.8918 16.0657 48.5643 16.7299 48.0691 17.2454C47.111 18.2531 45.6339 18.6205 44.1723 18.6205C42.7108 18.6205 41.2337 18.2609 40.2755 17.2454C39.3174 16.2299 38.9661 14.6828 38.9661 13.1435C38.9661 11.6043 39.3096 10.0494 40.2755 9.04168C41.242 8.03396 42.7108 7.66663 44.1723 7.66663C45.6339 7.66663 47.111 8.02618 48.0691 9.04168C49.0351 10.0572 49.3786 11.6043 49.3786 13.1435V13.1431Z",fill:"currentColor"}),e("path",{d:"M61.4045 13.1431V13.9948H55.0243V12.2996H59.2564C59.1602 11.6825 58.9372 11.1043 58.5378 10.682C57.963 10.0727 57.0762 9.85409 56.1982 9.85409C55.3202 9.85409 54.4335 10.0727 53.8587 10.682C53.2839 11.2913 53.0759 12.2213 53.0759 13.1435C53.0759 14.0658 53.2834 15.003 53.8587 15.6046C54.4335 16.2061 55.3202 16.433 56.1982 16.433C57.0762 16.433 57.963 16.2143 58.5378 15.6046C58.6179 15.5186 58.6894 15.4248 58.7608 15.331H61.1251C60.9171 16.0657 60.5897 16.7299 60.0945 17.2454C59.1364 18.2531 57.6593 18.6205 56.1982 18.6205C54.7372 18.6205 53.2596 18.2609 52.3014 17.2454C51.3432 16.2299 50.9919 14.6828 50.9919 13.1435C50.9919 11.6043 51.3355 10.0494 52.3014 9.04168C53.2678 8.03396 54.7367 7.66663 56.1982 7.66663C57.6598 7.66663 59.1364 8.02618 60.0945 9.04168C61.061 10.0572 61.4045 11.6043 61.4045 13.1435V13.1431Z",fill:"currentColor"}),e("path",{d:"M80.242 18.6214C81.7035 18.6214 83.1801 18.4105 84.1383 17.809C85.0965 17.2075 85.4482 16.2931 85.4482 15.3869C85.4482 14.4807 85.1042 13.5585 84.1383 12.9647C83.1801 12.371 81.703 12.1518 80.242 12.1518C79.6186 12.1518 79.0438 12.0658 78.6366 11.8394C78.2294 11.6047 78.0778 11.2534 78.0778 10.9017C78.0778 10.5499 78.2216 10.1908 78.6366 9.9639C79.0438 9.72921 79.6749 9.65147 80.2973 9.65147C80.9198 9.65147 81.5509 9.73747 81.9591 9.9639C82.3663 10.1986 82.5179 10.5499 82.5179 10.9017H84.9531C84.9531 9.99499 84.6421 9.07327 83.7719 8.47951C82.9017 7.88576 81.5679 7.66663 80.2424 7.66663C78.9169 7.66663 77.5837 7.8775 76.713 8.47951C75.8427 9.08104 75.5308 9.99499 75.5308 10.9017C75.5308 11.8083 75.8423 12.73 76.713 13.3238C77.5832 13.9176 78.9165 14.1367 80.2424 14.1367C80.929 14.1367 81.688 14.2227 82.1428 14.4491C82.5985 14.676 82.7579 15.0351 82.7579 15.3869C82.7579 15.7387 82.5985 16.0977 82.1428 16.3246C81.688 16.5511 80.9931 16.6371 80.3066 16.6371C79.62 16.6371 78.9169 16.5511 78.4694 16.3246C78.0224 16.0982 77.8543 15.7387 77.8543 15.3869H75.0435C75.0435 16.2935 75.3865 17.2153 76.3534 17.809C77.3194 18.4028 78.7809 18.6214 80.2424 18.6214H80.242Z",fill:"currentColor"}),e("path",{d:"M97.4733 13.1431V13.9948H91.0932V12.2996H95.3252C95.23 11.6825 95.006 11.1043 94.6071 10.682C94.0313 10.0727 93.1456 9.85409 92.2666 9.85409C91.3876 9.85409 90.5018 10.0727 89.927 10.682C89.3522 11.2913 89.1452 12.2213 89.1452 13.1435C89.1452 14.0658 89.3522 15.003 89.927 15.6046C90.5018 16.2061 91.3886 16.433 92.2666 16.433C93.1446 16.433 94.0313 16.2143 94.6071 15.6046C94.6863 15.5186 94.7587 15.4248 94.8301 15.331H97.1935C96.9855 16.0657 96.6585 16.7299 96.1639 17.2454C95.2057 18.2531 93.7281 18.6205 92.2666 18.6205C90.805 18.6205 89.3284 18.2609 88.3703 17.2454C87.4121 16.2299 87.0613 14.6828 87.0613 13.1435C87.0613 11.6043 87.4043 10.0494 88.3703 9.04168C89.3367 8.03396 90.806 7.66663 92.2666 7.66663C93.7272 7.66663 95.2057 8.02618 96.1639 9.04168C97.1298 10.0572 97.4729 11.6043 97.4729 13.1435L97.4733 13.1431Z",fill:"currentColor"}),e("path",{d:"M109.499 13.1431V13.9948H103.119V12.2996H107.351C107.256 11.6825 107.032 11.1043 106.632 10.682C106.057 10.0727 105.172 9.85409 104.293 9.85409C103.414 9.85409 102.528 10.0727 101.953 10.682C101.378 11.2913 101.17 12.2213 101.17 13.1435C101.17 14.0658 101.378 15.003 101.953 15.6046C102.528 16.2061 103.415 16.433 104.293 16.433C105.171 16.433 106.057 16.2143 106.632 15.6046C106.712 15.5186 106.784 15.4248 106.856 15.331H109.22C109.012 16.0657 108.685 16.7299 108.19 17.2454C107.231 18.2531 105.754 18.6205 104.293 18.6205C102.831 18.6205 101.355 18.2609 100.396 17.2454C99.4382 16.2299 99.0864 14.6828 99.0864 13.1435C99.0864 11.6043 99.4295 10.0494 100.396 9.04168C101.362 8.03396 102.832 7.66663 104.293 7.66663C105.754 7.66663 107.231 8.02618 108.19 9.04168C109.156 10.0572 109.499 11.6043 109.499 13.1435V13.1431Z",fill:"currentColor"}),e("path",{d:"M113.5 4.62817H111.104V18.6217H113.5V4.62817Z",fill:"currentColor"}),e("path",{d:"M117.589 12.8154L121.517 18.6208H118.554L114.625 12.8154L118.554 8.15088H121.517L117.589 12.8154Z",fill:"currentColor"}),e("g",{clipPath:"url(#dsh-wordmark-whale-clip)",children:e("path",{d:"M23.0584 4.95203C22.8129 4.83203 22.7074 5.06103 22.5639 5.17704C22.5149 5.21454 22.4734 5.26354 22.4319 5.30854C22.0734 5.69155 21.6543 5.94306 21.1073 5.91306C20.3073 5.86806 19.6243 6.11957 19.0203 6.73158C18.8918 5.97706 18.4652 5.52655 17.8162 5.23754C17.4767 5.08753 17.1332 4.93703 16.8952 4.61052C16.7292 4.37801 16.6837 4.11901 16.6007 3.8635C16.5477 3.70949 16.4952 3.55199 16.3177 3.52549C16.1252 3.49549 16.0497 3.65699 15.9742 3.792C15.6722 4.34401 15.5552 4.95203 15.5667 5.56805C15.5932 6.95359 16.1782 8.05712 17.3407 8.84215C17.4727 8.93215 17.5067 9.02215 17.4652 9.15366C17.3857 9.42416 17.2917 9.68667 17.2087 9.95718C17.1557 10.1297 17.0767 10.1677 16.8917 10.0922C16.2537 9.82568 15.7027 9.43117 15.2156 8.95465C14.3891 8.15513 13.6416 7.2726 12.7096 6.58158C12.4906 6.42007 12.2716 6.27007 12.045 6.12707C11.094 5.20354 12.1696 4.44502 12.4186 4.35501C12.6791 4.26101 12.5091 3.938 11.6675 3.942C10.826 3.9455 10.056 4.22751 9.07446 4.60302C8.93096 4.65952 8.77995 4.70052 8.62545 4.73452C7.73492 4.56552 6.80989 4.52802 5.84386 4.63702C4.02481 4.83953 2.57177 5.69955 1.50373 7.1676C0.220694 8.93215 -0.0813148 10.9372 0.288196 13.0283C0.676708 15.2323 1.80174 17.0569 3.53029 18.4834C5.32285 19.9625 7.38741 20.6875 9.74298 20.5485C11.1735 20.466 12.7661 20.2745 14.5626 18.7539C15.0156 18.9795 15.4912 19.0695 16.2797 19.137C16.8872 19.1935 17.4722 19.107 17.9252 19.013C18.6347 18.8629 18.5857 18.2059 18.3292 18.0854C16.2497 17.1169 16.7062 17.5109 16.2912 17.1919C17.3477 15.9419 18.9618 13.7198 19.4598 10.6942C19.5088 10.3602 19.5713 9.88968 19.5638 9.61917C19.5598 9.45417 19.5978 9.39016 19.7863 9.37116C20.3073 9.31116 20.8128 9.16866 21.2773 8.91315C22.6249 8.17713 23.1684 6.96809 23.2964 5.51905C23.3154 5.29754 23.2924 5.06853 23.0584 4.95203ZM11.3165 17.9954C9.30097 16.4109 8.32344 15.8894 7.91992 15.9119C7.54241 15.9344 7.61042 16.3664 7.69342 16.6479C7.78042 16.9259 7.89342 17.1174 8.05193 17.3614C8.16143 17.5229 8.23694 17.7629 7.94243 17.9434C7.29341 18.3449 6.16487 17.8084 6.11187 17.7819C4.79833 17.0084 3.7003 15.9874 2.92628 14.5908C2.17875 13.2468 1.74474 11.8047 1.67324 10.2657C1.65424 9.89418 1.76374 9.76267 2.13375 9.69517C2.62077 9.60517 3.12278 9.58617 3.6093 9.65767C5.66636 9.95818 7.41741 10.8777 8.88545 12.3348C9.72348 13.1643 10.3575 14.1558 11.0105 15.1243C11.705 16.1529 12.4521 17.1329 13.4036 17.9364C13.7396 18.2179 14.0076 18.4319 14.2641 18.5899C13.4906 18.6764 12.1996 18.6949 11.3165 17.9964V17.9954ZM12.2826 11.7817C12.2826 11.6167 12.4146 11.4852 12.5806 11.4852C12.6181 11.4852 12.6521 11.4927 12.6826 11.5037C12.7241 11.5187 12.7621 11.5412 12.7921 11.5752C12.8451 11.6277 12.8751 11.7027 12.8751 11.7817C12.8751 11.9467 12.7431 12.0782 12.5771 12.0782C12.4111 12.0782 12.2826 11.9467 12.2826 11.7817ZM15.2831 13.3208C15.0906 13.3998 14.8981 13.4673 14.7131 13.4748C14.4261 13.4898 14.1131 13.3733 13.9431 13.2308C13.6791 13.0093 13.4901 12.8853 13.4111 12.4988C13.3771 12.3338 13.3961 12.0782 13.4261 11.9317C13.4941 11.6162 13.4186 11.4137 13.1961 11.2297C13.0151 11.0797 12.7846 11.0382 12.5316 11.0382C12.4371 11.0382 12.3506 10.9967 12.2861 10.9632C12.1806 10.9107 12.0936 10.7792 12.1766 10.6177C12.2031 10.5652 12.3316 10.4377 12.3616 10.4152C12.7051 10.2197 13.1011 10.2837 13.4676 10.4302C13.8071 10.5692 14.0641 10.8242 14.4336 11.1847C14.8111 11.6202 14.8791 11.7402 15.0941 12.0672C15.2641 12.3228 15.4186 12.5853 15.5247 12.8858C15.5887 13.0733 15.5057 13.2268 15.2831 13.3208Z",fill:"currentColor"})}),e("rect",{x:"129.348",y:"5.5",width:"52",height:"14",rx:"2",fill:"currentColor"}),r("g",{clipPath:"url(#dsh-wordmark-badge-clip)",children:[e("path",{d:"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"}),e("path",{d:"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"})]}),r("defs",{children:[e("clipPath",{id:"dsh-wordmark-whale-clip",children:e("rect",{width:"23.16",height:"17.0435",fill:"white",transform:"translate(0.141602 3.52185)"})}),e("clipPath",{id:"dsh-wordmark-badge-clip",children:e("rect",{width:"46",height:"14",fill:"white",transform:"translate(132.348 5.5)"})})]})]})}function U({size:i=16,className:g,strokeWidth:u}){return r("svg",{width:i,height:i,className:g,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:u,children:[e("path",{d:"M6.59624 2.14853C7.50155 1.80917 8.49914 1.80919 9.40444 2.14859L13.9245 3.84317V7.11961C13.9245 11.6089 10.5565 13.5975 8.00035 14.5779C5.44423 13.5975 2.07544 11.6089 2.07544 7.11961V3.84317L6.59624 2.14853Z",stroke:"currentColor",strokeLinejoin:"round"}),e("path",{d:"M8 4.39209V9.89209",stroke:"currentColor"}),e("path",{d:"M8 10.8081V11.8081",stroke:"currentColor"})]})}function q(i){return e(U,{...i,strokeWidth:1})}return{BrandWordmark:pe,IconPanelLeftOutlineRegular:n,IconNewChatOutlineRegular:C,IconPluginPinwheelOutlineRegular:te,IconClockOutlineRegular:K,IconInspectOutlineRegular:F,IconFolderCloseRegular:k,IconSearchOutlineRegular:h,IconSlidersTwoOutlineRegular:oe,IconProjectAddOutlineRegular:o,IconUserOutlineRegular:Z,IconUsersOutlineRegular:A,IconBranchOutlineRegular:z,IconEllipsisOutlineRegular:c,IconChevronDownOutlineRegular:Y,IconPlusOutlineRegular:B,PermissionIconFullAccessRegular:q,IconMicrophoneOutlineRegular:de,IconSendOutlineRegular:ie,IconCopyOutlineRegular:w,IconLikeOutlineRegular:P,IconDislikeOutlineRegular:T,IconShareOutlineRegular:N,IconGaugeOutlineRegular:ae,IconDatabaseOutlineRegular:W,IconFullscreenOutlineRegular:X,IconCloseOutlineRegular:Q}}const Me=Ne(O);let xe={};try{xe=we("@deepseek-ai/dsh-client-ui-primitives")}catch{}const Se=Object.fromEntries(Object.entries(Me).map(([p,e])=>[p,xe[p]??e])),Le=`.cm-display{--cm-preview-accent:var(--dsw-alias-state-business-primary,#4d6bfe);color:var(--dsw-alias-label-primary);container:cm-display / inline-size}.cm-display-toggles{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;margin:0 0 14px;font-size:12px}.cm-display-toggles .cm-check{display:flex;align-items:center;gap:6px;cursor:pointer}.cm-display-toggles input{margin:0;accent-color:var(--cm-preview-accent)}.cm-display-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 18px}.cm-display-heading h3{margin:0 0 5px;font-size:16px;font-weight:600}.cm-display p{margin:0;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:1.7}.cm-display-expand{display:flex;align-items:center;gap:5px;white-space:nowrap}.cm-display-region-tabs{display:flex;gap:3px;margin-bottom:14px;padding:3px;width:fit-content;max-width:100%;background:var(--dsw-alias-bg-layer-1);border-radius:9px}.cm-display-region-tabs button{padding:6px 18px;min-height:32px;border:0;border-radius:7px;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:13px;cursor:pointer}.cm-display-region-tabs button[aria-selected=true]{background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);box-shadow:0 1px 4px #0000000c}.cm-preview{position:relative;box-sizing:border-box;width:100%;border-radius:14px;background:var(--dsw-alias-bg-layer-1);padding:24px;isolation:isolate}.cm-region-preview{font:14px/1.6 var(--dsw-font-family,system-ui);color:var(--dsw-alias-label-primary);text-align:left}.cm-region-preview *{box-sizing:border-box}.cm-region-preview svg{display:block;flex:none}.cm-preview-region-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;color:var(--dsw-alias-label-secondary);font-size:12px}.cm-preview-region-head>span{display:flex;align-items:center;gap:7px}.cm-preview-sidebar{width:100%;max-width:340px;margin:0 auto;padding:16px;border-radius:12px;background:var(--dsw-specific-sidebar-fill,var(--dsw-alias-bg-layer-1))}.cm-preview-history{display:flex;align-items:center;gap:9px;padding:6px 3px 16px;color:var(--dsw-alias-label-tertiary)}.cm-preview-history>span{margin-left:auto}.cm-preview-account{display:flex;align-items:center;gap:9px;padding:16px 3px 2px;color:var(--dsw-alias-label-secondary)}.cm-preview-sidebar .cm-footer-stack{width:100%;max-height:none;overflow:visible}.cm-preview-composer,.cm-preview-conversation{max-width:760px;margin:auto;min-width:0}.cm-preview-strip{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:8px 0 12px;min-height:24px}.cm-native-input-card{padding:14px 12px 8px;border:1px solid var(--dsw-alias-border-l3);border-radius:24px;background:var(--dsw-specific-input-major,var(--dsw-alias-bg-base));box-shadow:0 3px 16px #00000006;min-width:0}.cm-native-input-placeholder{min-height:64px;padding:0 2px;color:var(--dsw-alias-label-caption,var(--dsw-alias-label-tertiary));font-size:14px}.cm-native-input-row,.cm-native-input-tools,.cm-native-input-trailing,.cm-native-permission,.cm-native-model{display:flex;align-items:center;gap:8px}.cm-native-input-row{justify-content:space-between;flex-wrap:wrap;row-gap:10px}.cm-native-input-trailing{margin-left:auto}.cm-native-permission,.cm-native-model{font-size:12px;color:var(--dsw-alias-label-secondary)}.cm-native-input-add{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--dsw-specific-selector,var(--dsw-alias-bg-layer-1))}.cm-native-input-primary{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:#fff;background:var(--cm-preview-accent);opacity:.45}.cm-native-input-dock{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 12px;margin:12px 0 0;color:var(--dsw-alias-label-tertiary);font-size:12px}.cm-native-dock-stat,.cm-native-dock-context{display:flex;align-items:center;gap:5px}.cm-native-context-ring{width:13px;height:13px;border-radius:50%;border:2px solid var(--dsw-alias-border-l3);border-top-color:var(--dsw-alias-label-tertiary)}.cm-region-preview .cm-corner-chip{position:static;font-size:12px}.cm-region-preview .cm-session-cost{font-size:12px;white-space:normal}.cm-region-preview .cm-stat-entry{font-size:12px;padding:2px 6px}.cm-preview-conversation{border-radius:12px;background:var(--dsw-alias-bg-base);overflow:hidden}.cm-native-chat-header{padding:16px 18px 0;border-bottom:1px solid var(--dsw-alias-border-l3)}.cm-native-chat-titleRow{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px}.cm-native-chat-tabs{display:flex;align-items:center;gap:28px;margin-top:16px;font-size:13px;color:var(--dsw-alias-label-tertiary)}.cm-native-chat-tabs>span{padding-bottom:9px}.cm-native-chat-tabs>.active{color:var(--cm-preview-accent);border-bottom:2px solid currentColor}.cm-preview-response{padding:24px 18px}.cm-preview-response p{font-size:14px;color:var(--dsw-alias-label-primary);margin-bottom:20px}.cm-native-turn{color:var(--dsw-alias-label-tertiary);font-size:13px}.cm-native-response-actions{display:flex;align-items:center;gap:20px;color:var(--dsw-alias-label-tertiary);font-size:12px;margin-top:18px}.cm-display-item{position:relative;display:block;min-width:0;max-width:100%;padding:0;border:1px dashed color-mix(in srgb,var(--cm-preview-accent) 27%,transparent);border-radius:6px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.cm-display-item:hover{background:var(--dsw-alias-interactive-bg-hover);border-color:var(--cm-preview-accent)}.cm-display-item:focus-visible,.cm-display-region-tabs button:focus-visible{outline:2px solid var(--cm-preview-accent);outline-offset:2px}.cm-display-item-content{display:block;pointer-events:none}.cm-display-item[data-visible=false]>.cm-display-item-content{opacity:.28;filter:grayscale(1)}.cm-display-item[data-visible=false]:hover>.cm-display-item-content{opacity:.55}.cm-display-item-tag{position:absolute;right:0;top:-20px;z-index:3;display:none;background:var(--dsw-alias-bg-base);box-shadow:0 1px 8px #0001;color:var(--cm-preview-accent);font-size:10px;padding:1px 5px;line-height:16px;border-radius:4px;pointer-events:none;white-space:nowrap}.cm-display-item:hover .cm-display-item-tag,.cm-display-item:focus-visible .cm-display-item-tag{display:block}.cm-preview-value{font-variant-numeric:tabular-nums}.cm-preview-line{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%}.cm-display-toolbar{padding:12px 0}.cm-display-feedback{font-size:11px;color:var(--dsw-alias-label-tertiary);min-height:18px}.cm-display-details,.cm-display-model-options{border-top:1px solid var(--dsw-alias-border-l1)}.cm-display-details>summary,.cm-display-model-options>summary{cursor:pointer;padding:14px 0;font-size:12px;font-weight:500}.cm-display-details>.cm-grid{padding:4px 0 18px}.cm-display-details .cm-grid-group{margin-top:12px}.cm-display-details .cm-grid-group:first-child{margin-top:0}.cm-preview-style-picker{position:relative;z-index:4;font-size:12px}.cm-display-dialog{padding:20px;width:min(960px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);border:1px solid var(--dsw-alias-border-l3);border-radius:16px;background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);box-shadow:0 12px 80px #0003;overflow:auto}.cm-display-dialog::backdrop{background:#0005}.cm-display-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;font-size:14px;font-weight:600}.cm-display-dialog-close{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer}.cm-display-dialog-close:hover{background:var(--dsw-alias-interactive-bg-hover)}@container (max-width:480px){.cm-display-heading{align-items:flex-start}.cm-display-heading h3{font-size:15px}.cm-preview{padding:12px}.cm-preview-sidebar{padding:10px;max-width:100%}.cm-display-region-tabs button{padding:6px 14px}.cm-native-model{max-width:160px;overflow:hidden;font-size:11px}.cm-display-expand{font-size:11px}.cm-native-input-trailing{gap:6px}}.cm-preview-peak-title{font-size:11px;color:var(--dsw-alias-label-secondary);margin:12px 0 6px}.cm-preview-peak-options{display:flex;gap:6px}.cm-preview-peak-options>button{flex:1;padding:7px 6px}.cm-style-peak-sample{display:block;position:relative;width:28px;height:4px;background:linear-gradient(to right,#ff9800 0 50%,#4d79e8 50%);border-radius:2px}.cm-style-peak-sample.classic{height:12px;border-radius:3px}.cm-style-peak-sample:after{content:"";position:absolute;left:17px;top:-2px;bottom:-2px;width:2px;background:var(--dsw-alias-bg-base);border-radius:1px}.cm-display .cm-preview-style-panel>p{font-size:10px;line-height:1.5;margin-top:10px;color:var(--dsw-alias-label-tertiary)}.cm-region-preview{padding:16px;background:transparent;border:1px solid var(--dsw-alias-border-l3)}.cm-preview-workspace{display:grid;grid-template-columns:minmax(260px,1fr) 182px;gap:18px;align-items:start}.cm-preview-scene{min-width:0}.cm-preview-sidebar{max-width:380px;margin:0 auto;padding:14px;border-radius:12px}.cm-display-inspector{min-width:0;font-size:12px;padding:2px 0 8px;color:var(--dsw-alias-label-primary)}.cm-inspector-heading{font-size:12px;font-weight:600;margin:0 0 10px}.cm-inspector-divider{height:1px;background:var(--dsw-alias-border-l3);margin:16px 0}.cm-preview-style-options{display:grid;gap:7px}.cm-preview-style-options>[role=button]{display:flex;align-items:center;gap:12px;min-height:48px;padding:7px 11px;border:1px solid var(--dsw-alias-border-l3);border-radius:9px;background:var(--dsw-alias-bg-base);font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer}.cm-display-inspector [role=button][aria-pressed=true],.cm-display-inspector button[aria-pressed=true]{color:var(--cm-preview-accent);border-color:var(--cm-preview-accent);background:color-mix(in srgb,var(--cm-preview-accent) 5%,var(--dsw-alias-bg-base))}.cm-display-inspector [role=button]:focus-visible,.cm-display-inspector button:focus-visible,.cm-sidebar-target:focus-visible,.cm-sidebar-unplaced button:focus-visible{outline:2px solid var(--cm-preview-accent);outline-offset:2px}.cm-display-inspector .cm-field{display:flex;flex-direction:column;gap:6px;margin:0 0 13px;min-width:0;grid-column:auto;font-size:12px}.cm-display-inspector .cm-field>span{color:var(--dsw-alias-label-secondary);line-height:1.5}.cm-display-inspector .cm-input{width:100%;min-width:0;max-width:100%;height:32px;font-size:12px;padding:5px 8px;border-radius:7px}.cm-inspector-controls{display:grid;gap:11px;margin-top:14px}.cm-inspector-controls .cm-field{margin:0}.cm-display-inspector .cm-check{font-size:12px;gap:7px;line-height:1.5;align-items:flex-start}.cm-display-inspector .cm-check input{margin-top:3px;accent-color:var(--cm-preview-accent)}.cm-display-inspector .cm-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:0;padding:0}.cm-display-inspector .cm-grid-group{display:none}.cm-display .cm-inspector-note{font-size:11px;line-height:1.6;margin-top:9px;color:var(--dsw-alias-label-tertiary)}.cm-sidebar-canvas{position:relative}.cm-sidebar-live{pointer-events:none}.cm-sidebar-selection{position:absolute;inset:0;pointer-events:none}.cm-sidebar-target{position:absolute;pointer-events:auto;cursor:pointer;padding:0;background:transparent;border:1px dashed color-mix(in srgb,var(--cm-preview-accent) 27%,transparent);border-radius:7px;box-sizing:border-box;color:var(--cm-preview-accent)}.cm-sidebar-target:hover,.cm-sidebar-target[aria-pressed=true],.cm-display-item[aria-pressed=true]{border-style:solid;border-color:var(--cm-preview-accent);background:color-mix(in srgb,var(--cm-preview-accent) 4%,transparent)}.cm-sidebar-target:hover>.cm-display-item-tag,.cm-sidebar-target:focus-visible>.cm-display-item-tag{display:block;top:-18px;font-size:10px}.cm-sidebar-unplaced{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px;border-top:1px solid var(--dsw-alias-border-l3);padding-top:10px}.cm-sidebar-unplaced p{width:100%;font-size:10px!important;margin-bottom:2px;color:var(--dsw-alias-label-tertiary)}.cm-sidebar-unplaced button{padding:3px 7px;border:1px dashed var(--dsw-alias-border-l3);border-radius:6px;background:transparent;font:inherit;font-size:11px;color:var(--dsw-alias-label-tertiary);cursor:pointer;opacity:.65}.cm-sidebar-unplaced button:hover,.cm-sidebar-unplaced button[aria-pressed=true]{opacity:1;color:var(--cm-preview-accent);border-color:var(--cm-preview-accent)}.cm-display-dialog{width:min(1120px,calc(100vw - 48px))}.cm-display-dialog .cm-preview-workspace{grid-template-columns:minmax(0,1fr) 210px}.cm-region-preview[data-region=composer] .cm-preview-workspace,.cm-region-preview[data-region=conversation] .cm-preview-workspace{grid-template-columns:minmax(0,1fr) 182px}.cm-preview-peak-options{flex-wrap:wrap}.cm-style-peak-sample.progress{background:var(--dsw-alias-bg-layer-3)}.cm-style-peak-sample.progress:before{content:"";position:absolute;inset:0 35% 0 0;border-radius:inherit;background:#ff9800}.cm-style-peak-sample.progress:after{left:calc(65% - 2px);width:2px;top:1px;bottom:1px}.cm-display-heading p{max-width:490px}.cm-display-toolbar{padding-bottom:0}@container (max-width:540px){.cm-preview-workspace,.cm-region-preview[data-region=composer] .cm-preview-workspace,.cm-region-preview[data-region=conversation] .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}.cm-display-inspector{border-top:1px solid var(--dsw-alias-border-l3);padding-top:14px}.cm-preview-style-options{grid-template-columns:repeat(3,minmax(0,1fr))}.cm-preview-style-options>[role=button]{flex-direction:column;gap:3px;padding:7px 4px}.cm-inspector-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cm-inspector-controls>.cm-grid,.cm-inspector-controls>.cm-inspector-note{grid-column:1/-1}.cm-display-heading{gap:10px}.cm-preview{padding:12px}}@media(max-width:600px){.cm-display-dialog .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}}.cm-display-general{margin-top:20px;padding:18px;border:1px solid var(--dsw-alias-border-l3);border-radius:12px}.cm-display-general h4{font-size:13px;font-weight:600;margin:0 0 3px}.cm-display-general p{font-size:11px}.cm-general-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px;margin-top:16px}.cm-display-general .cm-field{margin:0}@container (max-width:540px){.cm-general-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.cm-preview-style-options>[role=button]{flex-direction:column;gap:5px;padding:8px}.cm-style-thumbnail{display:block;position:relative;overflow:hidden;width:138px;max-width:100%;height:80px;pointer-events:none;border-radius:5px;background:var(--dsw-specific-sidebar-fill,var(--dsw-alias-bg-layer-1));color:var(--dsw-alias-label-primary);text-align:left}.cm-style-thumbnail-content{display:block;width:300px;padding:6px;transform:scale(.46);transform-origin:top left;font:14px/1.6 var(--dsw-font-family,system-ui)}.cm-style-thumbnail-content .cm-footer-stack{max-height:none;overflow:visible}.cm-style-caption{font-size:11px;line-height:1.5}.cm-style-thumbnail:after{content:"";position:absolute;inset:auto 0 0;height:10px;background:linear-gradient(transparent,var(--dsw-specific-sidebar-fill,var(--dsw-alias-bg-layer-1)))}@container (max-width:380px){.cm-style-thumbnail{width:90px;height:55px}.cm-style-thumbnail-content{transform:scale(.3)}}.cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(260px,380px) 182px;justify-content:center}.cm-style-thumbnail{height:64px}.cm-preview-style-options>[role=button]{padding:7px;gap:4px}.cm-inspector-divider{margin:12px 0}.cm-inspector-back{padding:0;border:0;background:transparent;color:var(--cm-preview-accent);font:inherit;cursor:pointer;text-align:left}.cm-inspector-controls{max-height:510px;overflow-y:auto;scrollbar-width:thin;padding-right:2px}.cm-display-general .cm-input{box-sizing:border-box}@container (max-width:540px){.cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}.cm-inspector-controls{max-height:none}}.cm-inspector-heading>span{display:block;font-size:10px;color:var(--dsw-alias-label-tertiary);font-weight:400;margin-top:3px}.cm-style-thumbnail{height:80px}.cm-region-preview[data-region=sidebar] .cm-preview-workspace:has(>.cm-display-inspector[data-component=peak]){grid-template-columns:minmax(220px,1fr) 220px;gap:16px}.cm-display-inspector[data-component=peak] .cm-inspector-controls{display:flex;flex-direction:column;gap:10px;max-height:none;overflow:visible;padding:0;margin-top:10px}.cm-display-inspector[data-component=peak]{font-size:11px}.cm-display-inspector[data-component=peak] .cm-field{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;font-size:11px}.cm-display-inspector[data-component=peak] .cm-input{box-sizing:border-box;width:100%;min-width:0;height:30px;padding:4px 6px;font:inherit;font-size:11px}.cm-peak-control{min-width:0}.cm-peak-control-heading{font-size:11px;font-weight:600;color:var(--dsw-alias-label-secondary);margin-bottom:6px}.cm-peak-style-choices{display:flex;flex-direction:column;gap:5px}.cm-peak-style-choice{display:block;box-sizing:border-box;width:100%;min-width:0;padding:5px 7px;border:1px solid var(--dsw-alias-border-l1);border-radius:8px;background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);font:inherit;text-align:left;cursor:pointer;appearance:none}.cm-peak-style-choice:hover{border-color:color-mix(in srgb,var(--cm-preview-accent) 55%,var(--dsw-alias-border-l1));background:var(--dsw-alias-interactive-bg-hover)}.cm-peak-style-choice[aria-pressed=true]{border-color:var(--cm-preview-accent);background:color-mix(in srgb,var(--cm-preview-accent) 4%,var(--dsw-alias-bg-base));box-shadow:inset 0 0 0 1px var(--cm-preview-accent)}.cm-peak-style-choice:focus-visible{outline:2px solid var(--cm-preview-accent);outline-offset:3px}.cm-peak-choice-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:16px}.cm-peak-choice-heading strong{font-size:11px;font-weight:600}.cm-peak-choice-status{display:inline-flex;align-items:center;gap:4px;min-height:16px;font-size:9px;color:var(--cm-preview-accent)}.cm-peak-choice-status i{box-sizing:border-box;width:12px;height:12px;border-radius:50%;border:1px solid var(--dsw-alias-border-l1)}.cm-peak-style-choice[aria-pressed=true] .cm-peak-choice-status:before{content:"\\2713";font-size:10px}.cm-peak-choice-sample{display:block;min-width:0;margin-top:3px;padding:3px 5px;border-radius:5px;background:var(--dsw-specific-sidebar-fill,var(--dsw-alias-bg-layer-1));color:var(--dsw-alias-label-primary);font:12px/1.5 var(--dsw-font-family,system-ui);pointer-events:none}.cm-display-inspector .cm-peak-choice-sample .cm-footer-stack{width:100%;max-height:none;overflow:visible;border:0;border-radius:0;background:transparent;padding:0;gap:0}.cm-peak-choice-sample .cm-footer-stack.simple>.cm-peak-progress{padding-left:0;padding-right:0}.cm-peak-choice-sample .cm-footer-stack.simple>.cm-peak-strip,.cm-peak-choice-sample .cm-footer-stack.simple>.cm-peak-classic{padding-left:0;padding-right:0}.cm-peak-choice-sample .cm-peak-chip{max-width:calc(100% - 52px);overflow:hidden;text-overflow:ellipsis}.cm-peak-choice-sample .cm-peak-classic-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}.cm-sidebar-live .cm-peak-strip .cm-peak-track{flex:1 0 38px;min-width:38px}.cm-sidebar-live .cm-peak-strip .cm-peak-chip{flex:0 1 auto;min-width:0;max-width:calc(100% - 44px);overflow:hidden;text-overflow:ellipsis}.cm-sidebar-live .cm-peak-classic-chip{box-sizing:border-box;max-width:100%;overflow:hidden;text-overflow:ellipsis}.cm-peak-choice-sample .variant-compact .cm-peak-progress-time{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.cm-peak-choice-sample .cm-peak-chip,.cm-peak-choice-sample .cm-peak-classic-chip,.cm-peak-choice-sample .cm-peak-progress-phase{font-size:10px}.cm-peak-choice-sample .cm-peak-progress-time,.cm-peak-choice-sample .cm-peak-progress-meta{font-size:9px}@container (max-width:540px){.cm-region-preview[data-region=sidebar] .cm-preview-workspace:has(>.cm-display-inspector[data-component=peak]){grid-template-columns:minmax(0,1fr)}.cm-display-inspector[data-component=peak]{border-top:1px solid var(--dsw-alias-border-l3);padding-top:14px}}body[data-dsh-pocket-layout=mobile] .cm-region-preview[data-region=sidebar] .cm-preview-workspace:has(>.cm-display-inspector[data-component=peak]){grid-template-columns:minmax(0,1fr)}.cm-display-inspector{container:cm-inspector / inline-size}.cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(240px,380px) minmax(182px,1fr);justify-content:stretch}.cm-display-dialog .cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(240px,380px) minmax(182px,1fr)}@container cm-inspector (min-width:280px){.cm-preview-style-options{grid-template-columns:repeat(3,minmax(0,1fr))}.cm-inspector-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.cm-inspector-controls>.cm-grid{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.cm-inspector-controls>.cm-check:first-child,.cm-inspector-controls>.cm-inspector-note{grid-column:1/-1}}@container (max-width:540px){.cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}}@media(max-width:600px){.cm-display-dialog .cm-region-preview[data-region=sidebar] .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}}.cm-display-preview-options{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin:0 0 14px}.cm-display-preview-options .cm-check{font-size:12px;gap:6px;margin:0}.cm-display-preview-options>span{font-size:11px;color:var(--dsw-alias-label-tertiary)}.cm-sidebar-live [data-preview-hidden=true]{opacity:.28;filter:grayscale(1)}.cm-inspector-controls>.cm-inspector-help{margin-top:-7px;grid-column:1/-1}.cm-display-inspector:is([data-component=codex],[data-component=strip-codex]) .cm-inspector-controls{grid-template-columns:minmax(0,1fr)}.cm-display .cm-region-preview[data-region] .cm-preview-workspace:has(>.cm-inspector-unified){grid-template-columns:minmax(0,1fr) clamp(208px,36cqi,270px);gap:20px;align-items:start}.cm-display-inspector.cm-inspector-unified{font-size:13px;min-width:0;max-width:100%;padding:2px 0 2px 18px;border-top:0;border-left:1px solid var(--dsw-alias-border-l3);overflow-wrap:anywhere}.cm-display-inspector.cm-inspector-unified>.cm-field{margin-bottom:14px}.cm-inspector-visibility{padding:0 0 8px;border:0;border-bottom:1px solid var(--dsw-alias-border-l3);border-radius:0;background:transparent;margin:0 0 12px}.cm-inspector-visibility .cm-check{font-weight:500;min-height:28px}.cm-inspector-scope{display:block;font-size:11px;line-height:1.5;color:var(--dsw-alias-label-tertiary);margin-top:3px}.cm-display-inspector.cm-inspector-unified .cm-inspector-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:9px 10px;max-height:none;overflow:visible;padding:0;margin:0}.cm-inspector-unified .cm-inspector-controls>.cm-grid{grid-template-columns:minmax(0,1fr);gap:14px}.cm-display-inspector.cm-inspector-unified .cm-field{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;font-size:11px}.cm-display-inspector.cm-inspector-unified .cm-input{box-sizing:border-box;width:100%;min-width:0;min-height:30px;height:30px;padding:4px 7px;font-size:12px}.cm-inspector-unified .cm-inspector-note{font-size:12px;line-height:1.65}.cm-inspector-unified .cm-inspector-controls>.cm-btn{width:100%;min-height:30px}.cm-display-inspector .cm-display-switch,.cm-inspector-unified .cm-check{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:26px;box-sizing:border-box;margin:0;line-height:1.45;font-size:12px;cursor:pointer}.cm-display-switch>span,.cm-inspector-unified .cm-check>span{min-width:0;flex:1}.cm-display-switch input,.cm-inspector-unified .cm-check input{order:2;appearance:none;-webkit-appearance:none;position:relative;flex:none;width:34px;height:20px;margin:0 0 0 auto;padding:0;border:1px solid var(--dsw-alias-border-l2);border-radius:20px;background:var(--dsw-alias-bg-layer-3,var(--dsw-alias-border-l1));cursor:pointer;transition:background .15s}.cm-display-switch input:before,.cm-inspector-unified .cm-check input:before{content:"";display:block;position:absolute;width:14px;height:14px;top:2px;left:2px;border-radius:50%;background:var(--dsw-alias-label-secondary);transition:transform .15s}.cm-display-switch input:checked,.cm-inspector-unified .cm-check input:checked{background:var(--cm-preview-accent);border-color:var(--cm-preview-accent)}.cm-display-switch input:checked:before,.cm-inspector-unified .cm-check input:checked:before{background:#fff;transform:translate(14px)}.cm-display-switch input:focus-visible,.cm-inspector-unified .cm-check input:focus-visible{outline:2px solid var(--cm-preview-accent);outline-offset:3px}.cm-inspector-layout{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:16px;padding:12px 0 0;border:0;border-top:1px solid var(--dsw-alias-border-l3);background:transparent;font:inherit;color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer}.cm-inspector-layout>span{color:var(--dsw-alias-label-tertiary);font-size:12px}.cm-inspector-unified>.cm-inspector-heading{margin-top:14px}.cm-inspector-unified .cm-preview-style-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}.cm-inspector-unified .cm-preview-style-options>[role=button]{flex-direction:column;justify-content:center;gap:4px;padding:5px 3px}.cm-inspector-unified .cm-style-thumbnail{width:54px;height:34px}.cm-inspector-unified .cm-style-thumbnail-content{transform:scale(.18)}.cm-display-general .cm-display-switch{grid-column:1/-1;max-width:none;padding:8px 0}.cm-display-general .cm-display-switch+.cm-inspector-note{grid-column:1/-1}@container cm-display (max-width:600px){.cm-display .cm-region-preview[data-region] .cm-preview-workspace:has(>.cm-inspector-unified){gap:14px}.cm-display-inspector.cm-inspector-unified{padding-left:12px}.cm-preview-sidebar{padding:10px}.cm-inspector-visibility{padding:0 0 8px}.cm-inspector-unified .cm-check{gap:8px}.cm-display-inspector.cm-inspector-unified .cm-input{font-size:12px}.cm-inspector-unified .cm-preview-style-options>[role=button]{gap:8px}.cm-inspector-unified .cm-style-thumbnail{width:46px;height:30px}.cm-inspector-unified .cm-style-thumbnail-content{transform:scale(.15)}}@container cm-display (max-width:419px){.cm-display .cm-region-preview[data-region] .cm-preview-workspace:has(>.cm-inspector-unified){grid-template-columns:minmax(0,1fr);gap:18px}.cm-display-inspector.cm-inspector-unified{border-left:0;border-top:1px solid var(--dsw-alias-border-l3);padding:16px 0 0}.cm-inspector-unified .cm-preview-style-options{grid-template-columns:repeat(3,minmax(0,1fr))}.cm-inspector-unified .cm-preview-style-options>[role=button]{flex-direction:column;gap:5px}}.cm-preview-scene{container:cm-preview-scene / inline-size}.cm-preview-sidebar,.cm-preview-composer,.cm-preview-conversation{max-width:100%;min-width:0}.cm-preview-sidebar .cm-sidebar-live{max-width:100%}.cm-native-input-tools,.cm-native-input-trailing,.cm-native-model{min-width:0;max-width:100%}.cm-native-input-trailing{flex-wrap:wrap;justify-content:flex-end}.cm-native-model>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-native-chat-tabs{gap:clamp(8px,3cqi,28px);flex-wrap:wrap}.cm-native-response-actions{flex-wrap:wrap;gap:12px}.cm-display-item-tag{max-width:100%;overflow:hidden;text-overflow:ellipsis}@container cm-preview-scene (max-width:300px){.cm-sidebar-live .cm-footer-stack.compact .cm-mm-rows{grid-template-columns:minmax(0,1fr)}.cm-sidebar-live .cm-bbox-head{flex-wrap:wrap}.cm-sidebar-live .cm-go-row{gap:5px}.cm-preview-response{padding:18px 12px}.cm-native-chat-header{padding:12px 12px 0}.cm-native-dock-stat{flex-wrap:wrap}.cm-preview-sidebar .cm-preview-account,.cm-native-input-placeholder{font-size:12px}}@media(max-width:1023px){.cm-display-dialog{width:calc(100vw - 24px);max-width:none;max-height:90dvh;padding:14px;overflow:auto}.cm-display-dialog .cm-preview-workspace,.cm-preview-workspace{grid-template-columns:minmax(0,1fr)}.cm-general-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-display-preview-options{gap:6px 10px}}body[data-dsh-pocket-layout=mobile] .cm-display-dialog{width:calc(100vw - 24px);max-height:90dvh;overflow:auto}body[data-dsh-pocket-layout=mobile] .cm-preview-workspace{grid-template-columns:minmax(0,1fr)}body[data-dsh-pocket-layout=mobile] .cm-display .cm-region-preview[data-region] .cm-preview-workspace:has(>.cm-inspector-unified){grid-template-columns:minmax(0,1fr)}.cm-display-dialog{--cm-display-top:var(--dsh-frame-chrome-top,var(--dsh-frame-top-clearance,0px));inset:var(--cm-display-top) 0 0;margin:auto;box-sizing:border-box;padding:0;width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - var(--cm-display-top) - 24px);overflow:hidden;-webkit-app-region:no-drag;pointer-events:auto}.cm-display-dialog[open]{display:flex;flex-direction:column}.cm-display-dialog::backdrop{inset:var(--cm-display-top) 0 0}.cm-display-dialog-head{box-sizing:border-box;position:relative;z-index:2;display:flex;align-items:center;flex:none;gap:16px;min-height:60px;margin:0;padding:10px 16px 10px 22px;border-bottom:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-bg-base);-webkit-app-region:no-drag;pointer-events:auto}.cm-display-dialog-body{container:cm-display / inline-size;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 22px 22px}.cm-display-dialog .cm-display-dialog-close{box-sizing:border-box;display:grid;place-items:center;position:relative;flex:0 0 40px;min-width:40px;max-width:40px;width:40px;min-height:40px;max-height:40px;height:40px;padding:0;margin:0;border:1px solid var(--dsw-alias-border-l3);border-radius:10px;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);line-height:1;cursor:pointer;-webkit-app-region:no-drag;pointer-events:auto;touch-action:manipulation}.cm-display-dialog .cm-display-dialog-close:hover{background:var(--dsw-alias-interactive-bg-hover);border-color:var(--dsw-alias-label-tertiary)}.cm-display-dialog-close>*{pointer-events:none}.cm-display-dialog-close:focus-visible{outline:2px solid var(--cm-preview-accent);outline-offset:2px}@media(max-width:600px){.cm-display-dialog-head{padding:8px 12px 8px 16px;min-height:56px}.cm-display-dialog-body{padding:12px}.cm-display-dialog .cm-display-dialog-close{flex-basis:44px;min-width:44px;max-width:44px;width:44px;min-height:44px;max-height:44px;height:44px}}body[data-dsh-pocket-layout=mobile] .cm-display-inspector.cm-inspector-unified{border-left:0;border-top:1px solid var(--dsw-alias-border-l3);padding:16px 0 0}.cm-display-inspector.cm-inspector-unified>.cm-field{margin-bottom:8px}.cm-inspector-unified .cm-inspector-controls>.cm-grid{gap:10px}.cm-inspector-unified .cm-inspector-note{overflow-wrap:anywhere}.cm-preview-sidebar{max-width:380px}@container cm-inspector (min-width:184px){.cm-display-inspector.cm-inspector-unified .cm-inspector-controls,.cm-inspector-unified .cm-inspector-controls>.cm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px}.cm-inspector-controls>.cm-grid,.cm-inspector-controls>.cm-inspector-note,.cm-inspector-controls>.cm-btn,.cm-inspector-controls>.cm-peak-control,.cm-inspector-controls>[data-inspector-wide]{grid-column:1/-1}.cm-inspector-unified [data-model-field=summary],.cm-inspector-unified [data-model-field=dock]{grid-column:1/-1}.cm-inspector-unified .cm-inspector-controls>.cm-check{grid-column:1/-1}.cm-inspector-unified .cm-check{gap:6px}.cm-inspector-unified .cm-inspector-controls>.cm-check:first-child{grid-column:1/-1}.cm-display-inspector.cm-inspector-unified:is([data-component=codex],[data-component=strip-codex],[data-component=peak]) .cm-inspector-controls{grid-template-columns:minmax(0,1fr)}}.cm-inspector-unified>.cm-display-general{margin:14px 0 0;padding:10px 0 0;border:0;border-top:1px solid var(--dsw-alias-border-l3);border-radius:0;background:transparent}.cm-display-general>summary{cursor:pointer;font-size:12px;font-weight:500;line-height:24px}.cm-display-general[open]>summary{margin-bottom:8px}.cm-inspector-unified .cm-general-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px;margin-top:9px}.cm-inspector-unified .cm-display-general .cm-display-switch{padding:0;min-height:26px}.cm-display-general .cm-inspector-note{font-size:11px}.cm-inspector-controls>.cm-field:only-child{grid-column:1/-1}.cm-sidebar-canvas{margin-right:calc(-1 * var(--cm-preview-gutter,0px));max-height:clamp(240px,calc(100dvh - 330px),450px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable}.cm-sidebar-selection{bottom:auto}.cm-sidebar-live [data-preview-hidden=true],.cm-display-item[data-visible=false]>.cm-display-item-content{opacity:.42;filter:grayscale(1);background:color-mix(in srgb,var(--dsw-alias-label-tertiary) 7%,transparent)}.cm-sidebar-live [data-preview-hidden=true] [data-preview-hidden=true]{opacity:1}.cm-sidebar-target[data-display-part]{border-color:color-mix(in srgb,var(--dsw-alias-label-tertiary) 35%,transparent);border-style:dotted;border-radius:4px}.cm-sidebar-target[data-display-part]:hover{border-color:var(--cm-preview-accent);background:color-mix(in srgb,var(--cm-preview-accent) 7%,transparent)}.cm-preview-supplement{margin-top:8px;border-top:1px dashed var(--dsw-alias-border-l3);padding-top:6px}.cm-preview-supplement>p{font-size:10px;margin-bottom:5px}.cm-preview-supplement .cm-collapse-h{display:none}.cm-sidebar-unplaced button{background:color-mix(in srgb,var(--dsw-alias-label-tertiary) 7%,transparent);filter:grayscale(1)}.cm-preview-part{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-width:0;flex-wrap:wrap}.cm-preview-part[data-preview-hidden=true]{opacity:.42;filter:grayscale(1);background:color-mix(in srgb,var(--dsw-alias-label-tertiary) 7%,transparent);border-radius:3px}.cm-display-item[data-visible=false] .cm-preview-part[data-preview-hidden=true]{opacity:1}.cm-preview-corner{display:flex;flex-wrap:wrap;gap:6px}.cm-preview .cm-corner{position:static;max-width:100%;padding:0}.cm-preview .cm-corner-chip{max-width:100%;height:auto;min-height:20px;white-space:normal}.cm-preview [data-placeholder]:empty:before{content:attr(data-placeholder);color:var(--dsw-alias-label-tertiary);background:color-mix(in srgb,var(--dsw-alias-label-tertiary) 7%,transparent);border-radius:4px;padding:1px 5px}
|
|
2
|
+
`;function Be(){const p={sidebar:"._2H3hWW_root",composer:".RlGAzG_card",header:".Dc7zOa_header"},e=["backgroundColor","color","borderColor","borderRadius","boxShadow","fontFamily"],r={};for(const[t,v]of Object.entries(p)){const y=document.querySelector(v);if(!y||y.closest(".cm-display"))continue;const C=getComputedStyle(y),d={};for(const h of e)h==="borderColor"&&parseFloat(C.borderTopWidth)===0||C[h]&&!/url\(/i.test(C[h])&&(d[h]=C[h]);if(r[t]=d,t==="sidebar"){const h=y.querySelector(".cm-footer-stack")?.getBoundingClientRect().width;h>=180&&h<=420&&(r.sidebarFooterWidth=h)}}return r}function He(){const[p,e]=O.useState({});return O.useEffect(()=>{let r=0;const t=()=>{cancelAnimationFrame(r),r=requestAnimationFrame(()=>e(Be()))};t();const v=new MutationObserver(t),y={attributes:!0,attributeFilter:["class","style","data-theme","data-ds-dark-theme"]};return v.observe(document.documentElement,y),v.observe(document.body,y),()=>{cancelAnimationFrame(r),v.disconnect()}},[]),p}function Oe(p,e){return{...p,sidebar:!0,hideOfficialBalance:!1,hideBudget:!1,hideTodayCost:!1,balance:{...p.balance,display:"both",...["balance","customBalance"].includes(e)?{showProgressBar:!0}:{}},goQuota:{...p.goQuota,...e==="go"?{detail:!0}:{}},budget:{...p.budget,...e==="budget"?{detail:!0}:{}},sidebarModels:{...p.sidebarModels,...e==="models"?{defaultOpen:!0,remember:!1,tokens:!0,shares:!0}:{}},...e==="peak"&&p.peakStyle==="progress"?{peakTimeDisplay:"both"}:{}}}function Pe(p,e,r){const t=p.sidebarSimple!==!0,v=(y,C,d,h,s)=>({key:e,part:y,label:C,selector:d,on:h,control:s});return e==="balance"||e==="customBalance"?[v("balance-progress",r("余额进度条","Balance progress"),".cm-bbox-bar.segments",p.balance?.showProgressBar===!0,'[data-display-option="balance-progress"]')]:e==="budget"?[v("budget-detail",r("预算明细","Budget details"),".cm-bbox-line",t&&p.budget?.detail!==!1,'[data-display-option="budget-detail"]')]:e==="go"?[v("go-detail",r("其他时段与重置时间","Other windows and reset time"),".cm-bbox-line",t&&p.goQuota?.detail!==!1,'[data-display-option="go-detail"]')]:e==="models"?[v("models-expanded",r("展开的模型明细","Expanded model details"),":scope > .cm-buttons, :scope > div:has(.cm-bbox-head)",t&&p.sidebarModels?.defaultOpen===!0,'[data-model-field="defaultOpen"] input'),v("models-tokens","Token",".cm-mstats-note",t&&p.sidebarModels?.tokens===!0,'[data-model-field="tokens"] input'),v("models-shares",r("费用占比","Cost share"),".cm-bbox-bar",t&&p.sidebarModels?.shares!==!1,'[data-model-field="shares"] input')]:e==="peak"&&p.peakStyle==="progress"?[v("peak-countdown",r("倒计时","Countdown"),".cm-peak-progress-time",p.peakTimeDisplay!=="switch",'[data-display-option="peak-time"] select'),v("peak-switch",r("切换时间","Switch time"),".cm-peak-progress-meta",p.peakTimeDisplay!=="countdown",'[data-display-option="peak-time"] select')]:[]}function Re(p,e){return{...p,sidebarSimple:!1,sidebar:!1,hideTodayCost:!0,hideOfficialBalance:!0,hideBudget:e!=="budget",balance:{...p.balance,display:"off"},budget:{...p.budget,enabled:e==="budget",detail:!0},goQuota:{...p.goQuota,enabled:e==="go",display:"both",detail:!0},sidebarModels:{...p.sidebarModels,enabled:e==="models",defaultOpen:!0,remember:!1,tokens:!0,shares:!0},peakNotice:!1,codexQuotaEnabled:!1,codingPlans:{},gatewayQuotas:{sources:[]},customBalances:[],customBalance:{enabled:!1}}}function Ie({renderSidebar:p,config:e,displayConfig:r=e,selected:t,selectedPlan:v,select:y,labels:C,appearance:d,text:h,icon:s,visibility:n,listPreview:M}){const c=O.useRef(null),[x,B]=J([]),E=O.useMemo(()=>Oe(e,t),[e,t]),z=Pe(r,t,h),b=e.sidebarSimple===!0&&["models","budget","go"].includes(t),Y=m=>{y(m.key),requestAnimationFrame(()=>c.current?.closest(".cm-preview-workspace")?.querySelector(m.control)?.focus({preventScroll:!0}))};O.useLayoutEffect(()=>{const m=c.current;let w=0;const D=()=>{const R=m.parentElement,T=R.offsetWidth-R.clientWidth;R.style.getPropertyValue("--cm-preview-gutter")!==T+"px"&&R.style.setProperty("--cm-preview-gutter",T+"px");const I=m.getBoundingClientRect();for(const S of m.querySelectorAll("[data-display-part]"))delete S.dataset.previewHidden,delete S.dataset.displayPart;const N=[...m.querySelectorAll("[data-cm-display]")].slice(0,32).map(S=>{S.dataset.previewHidden=String(n?.[S.dataset.cmDisplay]===!1);const Z=S.getBoundingClientRect();return{key:S.dataset.cmDisplay,planId:S.dataset.cmPlan,x:Z.left-I.left,y:Z.top-I.top,width:Z.width,height:Z.height}}).filter(S=>S.width>0&&S.height>0);for(const S of z)for(const Z of m.querySelectorAll('[data-cm-display="'+S.key+'"]'))for(const H of Z.querySelectorAll(S.selector)){H.dataset.previewHidden=String(!S.on),H.dataset.displayPart=S.part;const A=H.getBoundingClientRect();A.width>0&&A.height>0&&N.push({...S,x:A.left-I.left,y:A.top-I.top,width:A.width,height:A.height})}B(S=>JSON.stringify(S)===JSON.stringify(N)?S:N)};D();const P=new ResizeObserver(()=>{cancelAnimationFrame(w),w=requestAnimationFrame(D)});return P.observe(m),()=>{P.disconnect(),cancelAnimationFrame(w)}},[E,n,r,t]);const G=new Set(x.map(m=>m.key)),Q=m=>{if(m.currentTarget.dataset.display!=="peak")return;const w=c.current?.querySelector('[data-cm-display="peak"]');m.currentTarget.title=(w?.getAttribute("title")||w?.textContent||C.peak)+h(" · 点击调整"," · Click to customize")};return a("div",{className:"cm-preview-sidebar",style:d},a("div",{className:"cm-preview-region-head"},a("span",null,s("IconPanelLeftOutlineRegular"),h("侧栏底部","Sidebar footer"))),a("div",{className:"cm-preview-history","aria-hidden":!0},s("IconFolderCloseRegular"),h("工作区","Workspace"),a("span",null,"···")),M,a("div",{className:"cm-sidebar-canvas"},a("div",{ref:c,className:"cm-sidebar-live",inert:""},p(E),b?a("div",{className:"cm-preview-supplement","data-preview-hidden":!0},a("p",null,h("内嵌内容 · 当前简洁布局未显示","Nested content · hidden in Simple layout")),p(Re(E,t))):null),a("div",{className:"cm-sidebar-selection"},...x.map((m,w)=>a("button",{key:m.key+w,type:"button",className:"cm-sidebar-target","data-display":m.key,"data-display-part":m.part,"aria-label":m.label??C[m.key]??m.key,"aria-pressed":!m.part&&t===m.key&&(m.key!=="plan"||m.planId===v),title:(m.label??C[m.key]??m.key)+h(" · 点击调整"," · Click to customize"),onPointerEnter:Q,onFocus:Q,style:{left:m.x,top:m.y,width:m.width,height:m.height},onClick:()=>m.part?Y(m):y(m.key,m.planId)},a("span",{className:"cm-display-item-tag"},m.label??C[m.key]??m.key))))),a("div",{className:"cm-preview-account","aria-hidden":!0},s("IconUserOutlineRegular",18),h("已登录 DeepSeek","Signed in to DeepSeek")),a("div",{className:"cm-sidebar-unplaced"},a("p",null,h("未显示的组件","Components not shown")),...["balance","budget","today","peak","models","go","plan","customBalance","codex"].filter(m=>!G.has(m)).map(m=>a("button",{key:m,type:"button","data-display":m,"aria-pressed":t===m,onClick:()=>y(m)},C[m])),...z.filter(m=>!x.some(w=>w.part===m.part)).map(m=>a("button",{key:m.part,type:"button","data-display-part":m.part,"data-preview-hidden":!0,onClick:()=>Y(m)},m.label," —"))))}function ve({draft:p,setDraft:e,t:r,visibilityControl:t=!0,numInput:v}){const y={enabled:!1,period:"today",topN:5,summary:"total",position:"last",defaultOpen:!1,remember:!0,tokens:!1,shares:!0,refreshSeconds:60,dock:!1,...p?.sidebarModels},C=(h,s)=>{p&&e({...p,sidebarModels:{...y,[h]:s}})},d=(h,s)=>a("div",{className:"cm-field",key:h,"data-model-field":h},a("label",null,r("models_"+h)),a("select",{className:"cm-input",value:y[h],onChange:n=>C(h,n.target.value)},s.map(([n,M])=>a("option",{key:n,value:n},r(M)))));return a("div",{className:"cm-grid"},t?a("div",{className:"cm-grid-group"},r("modelsTitle")):null,["enabled","defaultOpen","remember","tokens","shares","dock"].filter(h=>t||h!=="enabled").map(h=>a("label",{key:h,className:"cm-check","data-model-field":h},a("input",{type:"checkbox",role:t?void 0:"switch",checked:y[h],onChange:s=>C(h,s.target.checked)}),r("models_"+h))),d("period",[["today","modelStatsToday"],["history","modelStatsHistory"]]),d("position",[["first","modelsFirst"],["afterBalance","modelsAfter"],["last","modelsLast"]]),d("summary",[["total","modelsTotal"],["top","modelsTop"]]),["topN","refreshSeconds"].map(h=>a("div",{key:h,className:"cm-field"},a("label",null,r("models_"+h)),v({value:y[h]},s=>C(h,Math.max(h==="topN"?1:10,Math.min(h==="topN"?10:60,Math.floor(s))))))))}function Ve({render:p,config:e,mode:r,data:t,examples:v}){const y=O.useMemo(()=>p({...e,sidebarSimple:r==="simple",sidebarStyle:r==="compact"?"compact":"standard"},t,v),[p,e,r,t,v]);return a("div",{className:"cm-style-thumbnail","aria-hidden":!0,inert:""},a("div",{className:"cm-style-thumbnail-content"},y))}function Ae({render:p,config:e,data:r,style:t}){const v=O.useMemo(()=>({...e,peakStyle:t,peakEnabled:!0,peakNotice:!0,peakEffectiveAt:"",sidebar:!1,hideTodayCost:!0,hideOfficialBalance:!0,hideBudget:!0,codexQuotaEnabled:!1,budget:{...e.budget,enabled:!1},balance:{...e.balance,display:"off"},goQuota:{...e.goQuota,enabled:!1},sidebarModels:{...e.sidebarModels,enabled:!1},codingPlans:{},gatewayQuotas:{sources:[]},customBalances:[],customBalance:{enabled:!1}}),[e,t]),y=O.useMemo(()=>p(v,r),[p,v,r]);return a("span",{className:"cm-peak-choice-sample","aria-hidden":!0,inert:""},y)}function ye({props:p,config:e,set:r,selected:t,selectedPlan:v,selectPlan:y,openQuota:C,select:d,labels:h,registry:s,text:n,region:M,general:c=!1,examples:x,previewData:B,stylesOpen:E=!1,setStylesOpen:z}){const{t:b,numInput:Y,CURRENCY_PRESETS:G,displayOptions:Q,USAGE_POSITION_SWITCHABLE:m}=p,w=(o,k)=>r({[o]:{...e[o],...k}}),D=(o,k,L,W={})=>a("label",{className:"cm-check cm-display-switch",key:o},a("span",null,o),a("input",{type:"checkbox",role:"switch","aria-label":o,checked:k,onChange:V=>L(V.target.checked),...W})),P=(o,k)=>a("label",{className:"cm-field",key:o},a("span",null,o),O.cloneElement(k,{"aria-label":o})),R=(o,k,L,W)=>P(o,a("select",{className:"cm-input",value:k,onChange:V=>W(V.target.value)},...L.map(([V,K])=>a("option",{key:V,value:V},K)))),T=(o,k,L,W=0,V=1440)=>P(o,Y({value:k,emptyMode:"ignore"},K=>L(Math.max(W,Math.min(V,K))))),I=(o,k=b("barDirectionsTitle"))=>O.cloneElement(R(k,e.barDirections?.[o]??(o==="balance"?"remaining":"used"),[["used",b("barDirectionUsed")],["remaining",b("barDirectionRemaining")]],L=>w("barDirections",{[o]:L})),{"data-inspector-wide":!0}),N=o=>P(n("显示位置","Placement"),a("select",{className:"cm-input",value:e[o]?.display==="off"?"sidebar":e[o]?.display??"both",onChange:k=>r({[o]:{...e[o],display:k.target.value},...o==="balance"?{hideOfficialBalance:!1}:{}})},...Q(b).filter(k=>k.props.value!=="off"))),S=()=>[R(b("sidebarTodayMetric"),e.sidebarTodayMetric??"cost",[["cost",b("sidebarTodayCost")],["tokens",b("sidebarTodayTokens")]],o=>r({sidebarTodayMetric:o}))],Z=()=>[R(b("positionLabel"),e.position==="off"?M==="conversation"?"header":"dock":e.position??"dock",[["dock",b("positionDock")],["header",b("positionHeader")]],o=>r({position:o})),D(b("sessionCostCompact"),e.sessionCostCompact===!0,o=>r({sessionCostCompact:o})),a("p",{className:"cm-inspector-note cm-inspector-help"},n("悬停查看费用分项。","Hover to see the cost breakdown.")),D(b("showSessionIdLabel"),e.showSessionId===!0,o=>r({showSessionId:o})),D(b("includeSubagentCost"),e.includeSubagentCost===!0,o=>r({includeSubagentCost:o}))];let H=[];if(t==="budget"&&(H=[e.budget?.enabled!==!0&&!x?a("p",{className:"cm-inspector-note"},n("先在“概览”中设置预算,启用后会在这里显示。","Set up a budget in Overview to show it here.")):null,D(b("budgetDetailLabel"),e.budget?.detail!==!1,o=>w("budget",{detail:o}),{"data-display-option":"budget-detail"}),I("budget")]),t==="today"&&(H=S()),t==="balance"&&(H=[N("balance"),D(b("balanceShowProgressBar"),e.balance?.showProgressBar===!0,o=>w("balance",{showProgressBar:o}),{"data-display-option":"balance-progress"}),e.balance?.showProgressBar===!0?T(b("balanceBudgetCapLabel"),e.balance?.budgetCap??"",o=>w("balance",{budgetCap:o||null}),0,1e12):null,I("balance"),T(b("refreshIntervalLabel"),e.balance?.refreshMinutes??5,o=>w("balance",{refreshMinutes:Math.floor(o)}),1)]),t==="go"&&(H=[p.state.goQuota?.status!=="ok"&&!x?a("p",{className:"cm-inspector-note"},n("配置并获取 Go 额度后显示;这里只调整外观。","Shown after Go quota is configured and available.")):null,N("goQuota"),R(n("主进度条","Primary window"),e.goQuota?.main??"rolling",[["rolling","5h"],["weekly",n("周","Week")],["monthly",n("月","Month")]],o=>w("goQuota",{main:o})),D(b("goDetailLabel"),e.goQuota?.detail!==!1,o=>w("goQuota",{detail:o}),{"data-display-option":"go-detail"}),I("go"),T(b("refreshIntervalLabel"),e.goQuota?.refreshMinutes??15,o=>w("goQuota",{refreshMinutes:Math.floor(o)}),1)]),t==="peak"&&(H=[a("div",{className:"cm-peak-control"},a("div",{className:"cm-peak-control-heading"},n("样式","Style")),a("div",{className:"cm-peak-style-choices",role:"group","aria-label":n("峰谷条样式","Peak bar style")},...[["progress",n("进度条","Progress"),n("时间进度 · 倒计时与切换时刻","Time progress, countdown and switch time")],["compact",n("细条","Slim"),n("橙蓝细条 · 单行显示","Orange and blue strip in one line")],["classic",n("分段","Segmented"),n("分段轨道 · 标记与胶囊提示","Segments, a marker and a status pill")]].map(([o,k,L])=>{const W=(e.peakStyle??"compact")===o;return a("button",{key:o,type:"button",className:"cm-peak-style-choice",title:L,"aria-label":k,"aria-pressed":W,onClick:()=>r({peakStyle:o})},a("span",{className:"cm-peak-choice-heading"},a("strong",null,k),a("span",{className:"cm-peak-choice-status","aria-hidden":!0},W?n("已选","Selected"):a("i"))),a(Ae,{render:p.renderSidebar,config:B.config,data:B.state,style:o}))}))),e.peakStyle==="progress"?O.cloneElement(R(n("显示时间","Time display"),e.peakTimeDisplay??"both",[["both",n("倒计时 + 切换时间","Countdown + switch time")],["countdown",n("只看倒计时","Countdown")],["switch",n("只看切换时间","Switch time")]],o=>r({peakTimeDisplay:o})),{"data-display-option":"peak-time"}):null]),t==="models"){const o={models_remember:n("记住展开","Remember"),models_tokens:"Token",models_shares:n("费用占比","Cost share")};H=[a(ve,{...p,visibilityControl:!1,t:k=>o[k]??b(k)})],M==="composer"&&(H=[R(n("统计周期","Period"),e.sidebarModels?.period??"today",[["today",b("modelStatsToday")],["history",b("modelStatsHistory")]],k=>w("sidebarModels",{period:k})),a("p",{className:"cm-inspector-note"},n("显示花费最高的模型。侧栏明细在“侧栏”页调整。","Shows the highest-cost model. Customize sidebar details in Sidebar."))])}if(t==="badge"&&(H=Z()),t==="sessionList"&&(H=[R(n("统计周期","Period"),e.sessionListCostPeriod??"total",[["total",n("累计","Total")],["today",n("今日","Today")]],o=>r({sessionListCostPeriod:o})),a("p",{className:"cm-inspector-note"},n("只读取可见会话的账本费用,沿用金额口径。窄栏不显示。","Reads ledger amounts for visible sessions using the current cost basis. Hidden in the narrow rail."))]),t==="corner"&&(H=[["goRolling","cornerGoRolling"],["goWeekly","cornerGoWeekly"],["goMonthly","cornerGoMonthly"],["budget","cornerBudget"]].map(([o,k])=>D(b(k),e.corner?.[o]!==!1,L=>w("corner",{[o]:L})))),t?.startsWith("strip-")&&(H=[I(t==="strip-plans"?"plan":t.slice(6))]),t==="customBalance"&&(H=[N("customBalance"),T(b("customBalanceRefreshInterval"),e.customBalance?.refreshMinutes??15,o=>w("customBalance",{refreshMinutes:Math.floor(o)}),1),D(n("余额进度条(与官方余额共用)","Progress bar (shared with official balance)"),e.balance?.showProgressBar===!0,o=>w("balance",{showProgressBar:o}),{"data-display-option":"balance-progress"}),I("balance")]),t==="plan"){const o=e.codingPlans?.[v]??{},k=L=>r({codingPlans:{...e.codingPlans,[v]:{...o,display:L}}});H=[R(n("套餐","Plan"),v,p.planOptions,y),P(n("显示位置","Placement"),a("select",{className:"cm-input",value:o.display==="off"?"sidebar":o.display??(v==="minimax"?"both":"settings"),onChange:L=>k(L.target.value)},...Q(b).filter(L=>L.props.value!=="off"))),I("plan",n("所有套餐的进度条方向","Bar direction for all plans")),a("button",{type:"button",className:"cm-btn small",onClick:C},n("账户与额度设置 →","Account and quota settings →"))]}if((t==="codex"||t==="strip-codex")&&(H=[R(n("数据源","Data source"),e.codexQuotaSource??"auto",[["auto",n("自动检测","Auto-detect")],["connect","dsh-codex-connect"],["subscription","dsh-codex-subscription"]],o=>r({codexQuotaSource:o})),a("p",{className:"cm-inspector-note cm-inspector-help"},n("自动检测优先 dsh-codex-subscription,失败回退 dsh-codex-connect。","Auto prefers dsh-codex-subscription, then falls back to dsh-codex-connect.")),e.codexQuotaEnabled!==!0?a("p",{className:"cm-inspector-note"},n("先在账户与额度设置中启用 Codex 额度。","Enable Codex quota in account and quota settings first.")):null,a("button",{type:"button",className:"cm-btn small",onClick:C},n("账户与额度设置 →","Account and quota settings →"))]),t==="general"&&(H=[R(b("languageLabel"),e.locale??"auto",[["auto",b("localeAuto")],["zh","简体中文"],["en","English"]],o=>r({locale:o})),R(b("currencyLabel"),e.currency??"CNY",[["CNY",b("currencyCny")],["USD",b("currencyUsd")],["EUR",b("currencyEur")]],o=>r({currency:o,...G[o],exchangeRate:e.exchangeRateAuto!==!1?e.fxRates?.[o]??G[o].exchangeRate:G[o].exchangeRate})),D(n("每日自动更新汇率","Update exchange rates daily"),e.exchangeRateAuto!==!1,o=>r({exchangeRateAuto:o})),e.exchangeRateAuto!==!1?a("p",{className:"cm-inspector-note"},n("参考汇率每日更新;历史费用保留记录时的汇率。","Daily reference rates; past costs retain their recorded rates."),e.exchangeRateDate?" · "+e.exchangeRateDate:""):null,T(b("rateLabel"),e.exchangeRate??1,o=>r({exchangeRate:o,exchangeRateAuto:!1}),1e-6,1e9),T(b("decimalsLabel"),e.decimals??2,o=>r({decimals:Math.floor(o)}),0,10),m?R(b("usagePositionLabel"),e.usage?.position??"cost",[["cost",b("usagePositionCost")],["general",b("usagePositionGeneral")],["section",b("usagePositionSection")]],o=>w("usage",{position:o})):null]),c)return a("details",{className:"cm-display-general cm-display-inspector"},a("summary",null,n("金额与语言","Currency and language")),a("p",null,n("统一应用于所有费用组件。","Applies to all cost components.")),a("div",{className:"cm-general-grid"},...H));const A=e.sidebarSimple?"simple":e.sidebarStyle==="compact"?"compact":"standard",se=M==="sidebar"&&E,X=s[t],ee=M==="sidebar"?n("在侧栏显示","Show in sidebar"):M==="composer"?n("在输入区显示","Show in composer"):n("在会话内容显示","Show in conversation");return a("aside",{className:"cm-display-inspector cm-inspector-unified","data-component":t??"","aria-label":n("外观与组件设置","Appearance and component settings")},P(n("调整组件","Customize"),a("select",{className:"cm-input",value:t??"",onChange:o=>d(o.target.value)},...(M==="sidebar"?["sessionList","budget","balance","today","peak","models","go","plan","customBalance","codex"]:M==="composer"?["strip-budget","strip-go","strip-plans","strip-codex","session-dock","badge","corner","models"]:["session-header","badge","turn"]).map(o=>a("option",{key:o,value:o},h[o])))),X?a("div",{className:"cm-inspector-visibility",title:ee},D(n("显示此组件","Show this component"),X.on,()=>r(X.patch),{"data-display-toggle":t})):null,t?a("div",{className:"cm-inspector-controls",key:t,"data-inspector":t},...H):null,M==="sidebar"?a("button",{type:"button",className:"cm-inspector-layout","aria-expanded":E,onClick:()=>z?.(!E)},n("侧栏布局","Sidebar layout"),a("span",null,n(A==="simple"?"简洁":A==="compact"?"紧凑":"标准",A==="simple"?"Simple":A==="compact"?"Compact":"Standard"),E?" ▴":" ▾")):null,se?a("div",{className:"cm-preview-style-options",role:"group","aria-label":n("侧栏布局","Sidebar layout")},...[["simple",n("简洁","Simple")],["standard",n("标准","Standard")],["compact",n("紧凑","Compact")]].map(([o,k])=>a("div",{key:o,role:"button",tabIndex:0,"aria-pressed":A===o,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),L.currentTarget.click())},onClick:()=>r({sidebarSimple:o==="simple",sidebarSimplePromptSeen:!0,...o==="simple"?{}:{sidebarStyle:o}})},a(Ve,{render:p.renderStyleSample,config:B.config,data:B.state,examples:x,mode:o}),a("span",{className:"cm-style-caption"},k)))):null,a(ye,{props:p,config:e,set:r,selected:"general",text:n,general:!0}))}function ze(p,e,r,t,v="minimax"){if(!r)return{state:p,config:e};const y=Number(e.exchangeRate)>0?Number(e.exchangeRate):1,C=Number(e.budget?.amount)>0?Number(e.budget.amount):200,d=p.displayPreviewCodex?.status==="ok"&&Object.keys(p.displayPreviewCodex.windows??{}).length?p.displayPreviewCodex.windows:{weekly:{}},h=(x,B,E,z,b)=>({cost:x/y,apiCost:x/y,input:B,output:E,cacheRead:z,cacheWrite:0,reasoning:0,calls:b}),s=C*.04608,n={...h(s,48e3,6400,192e3,14),byProviderModel:{"deepseek:deepseek-v4-flash":h(s*.6,24e3,3200,128e3,8),"deepseek:deepseek-v4-pro":h(s*.3,16e3,2e3,48e3,4),"openai:gpt-5":h(s*.1,8e3,1200,16e3,2)}},M={...e,sidebar:!0,hideOfficialBalance:!1,hideBudget:!1,hideTodayCost:!1,balance:{...e.balance,display:"both"},budget:{...e.budget,enabled:!0,amount:C},goQuota:{...e.goQuota,enabled:!0,display:"both"},sidebarModels:{...e.sidebarModels,enabled:!0},peakEnabled:!0,peakNotice:!0,codingPlans:{[v]:{...e.codingPlans?.[v],enabled:!0,display:"both"}},customBalances:[],customBalance:{...e.customBalance,enabled:t==="customBalance",display:"both"},codexQuotaEnabled:t==="codex",codexQuotaSidebar:!0,gatewayQuotas:{sources:[]}},c=new Date().toISOString().slice(0,10);return{config:M,state:{config:M,today:n,month:h(C*.57,16e4,24e3,64e4,72),total:h(C*1.4,48e4,8e4,192e4,220),budgetUsed:C*.57/y,history:[{date:c,...n}],meta:{dayKey:c},balance:{status:"ok",totalBalance:68,grantedBalance:8,toppedUpBalance:60,currency:e.currency??"CNY",fetchedAt:0},goQuota:{status:"ok",rolling:{percent:24},weekly:{percent:18},monthly:{percent:12},fetchedAt:0},codingPlans:{[v]:{status:"ok",windows:{"5h":{percent:35},weekly:{percent:62}},fetchedAt:0}},customBalances:[],customBalance:{status:"ok",remaining:68,spend:32,maxBudget:100,unit:"USD",fetchedAt:0},displayPreviewCodex:{status:"ok",windows:Object.fromEntries(["five","weekly"].filter(x=>d[x]).map(x=>[x,{percent:x==="five"?35:42,resetsAt:new Date(Date.now()+(x==="five"?3:168)*36e5).toISOString()}])),fetchedAt:0},gatewayQuotas:{sources:[]}}}}function fe(p){const{draft:e,setDraft:r,t,locale:v,formatMoneyUsd:y,renderSidebar:C}=p,d=e??p.state.config,h=v==="en",s=(l,f)=>h?f:l,[n,M]=J("sidebar"),[c,x]=J(!1),[B,E]=J("budget"),[z,b]=J("minimax"),[Y,G]=J(!1),Q=(l,f)=>{E(l),G(!1),f&&b(f)},m=l=>{M(l),G(!1),E(l==="sidebar"?"budget":l==="composer"?"strip-budget":"session-header")},[w,D]=J(()=>{try{return localStorage.getItem("dsh-cost-meter:display-examples")!=="false"}catch{return!0}}),P=O.useMemo(()=>ze(p.state,d,w,B,z),[p.state,d,w,B,z]),R=O.useCallback(l=>C(l,P.state),[C,P.state]),T=He(),I={balance:s("官方余额","Official balance"),budget:s("侧栏预算","Sidebar budget"),today:s("今日用量","Today’s usage"),peak:s("峰谷时段","Peak / off-peak"),models:s("模型花费","Model costs"),go:s("Go 额度","Go quota"),plan:s("套餐进度条","Plan bars"),customBalance:s("自定义余额","Custom balance"),codex:s("Codex 额度","Codex quota"),badge:s("会话费用摘要","Session cost summary"),"session-header":s("顶部费用明细","Header cost details"),"session-dock":s("输入框下方费用明细","Composer cost details"),turn:s("每轮费用","Per-turn cost"),corner:s("右下角额度","Corner quota"),"strip-budget":s("预算进度条","Budget strip"),"strip-go":s("Go 进度条","Go strip"),"strip-plans":s("套餐进度条","Plan strip")};I["strip-codex"]=s("Codex 额度","Codex quota"),I.sessionList=s("会话列表金额","Session list amounts");const N={},S=O.useId(),Z=O.useRef(null),H=O.useRef(null);O.useEffect(()=>{if(!c)return;const l=Z.current;return l.showModal(),()=>{l.close(),H.current?.focus()}},[c]);const A=l=>y(l,d),X=((l,f)=>f>0&&Number.isFinite(Number(l))?Math.min(100,Math.max(0,Number(l)/f*100)):null)(Number(P.state.budgetUsed)*(Number(d.exchangeRate)||1),Number(P.config.budget?.amount)),ee=P.state.goQuota?.rolling?.percent??null,o=Object.values(P.state.codingPlans??{}).flatMap(l=>Object.values(l.windows??{})).find(l=>Number.isFinite(l?.percent))?.percent??null,k=l=>l===null?"—":Number(l.toFixed(1))+"%",L=(l,f,...j)=>a(l.startsWith("corner-")?"div":"span",{className:"cm-preview-part","data-display-part":l,"data-preview-hidden":!f},...j),W=l=>r(f=>({...f??d,...l})),V=(l,f,j,_,$,he="")=>(N[l]={on:j,patch:_},a("div",{key:l,role:"button",tabIndex:0,className:"cm-display-item "+he,"data-display":l,"aria-pressed":B===l,"data-visible":j,"aria-label":f+s(",点击调整",", click to customize"),title:f+s(" · 点击调整"," · Click to customize"),onClick:()=>Q(l),onKeyDown:be=>{(be.key===" "||be.key==="Enter")&&(be.preventDefault(),Q(l))}},a("div",{className:"cm-display-item-content",inert:"","data-placeholder":f+" —"},$),a("span",{className:"cm-display-item-tag","aria-hidden":!0},s("点击调整","Customize")))),K=d.hideOfficialBalance!==!0&&["both","sidebar"].includes(d.balance?.display??"both"),me=K?{hideOfficialBalance:!0}:{hideOfficialBalance:!1,balance:{...d.balance,display:d.balance?.display==="settings"||d.balance?.display==="both"?"both":"sidebar"}};N.balance={on:K,patch:me},N.budget={on:d.hideBudget!==!0,patch:{hideBudget:d.hideBudget!==!0}},N.peak={on:d.peakNotice!==!1,patch:{peakNotice:d.peakNotice===!1}};const ae=d.sidebar!==!1&&d.hideTodayCost!==!0;N.today={on:ae,patch:ae?{sidebar:!1}:{sidebar:!0,hideTodayCost:!1}},N.models={on:d.sidebarModels?.enabled===!0,patch:{sidebarModels:{...d.sidebarModels,enabled:d.sidebarModels?.enabled!==!0}}},N.go={on:["both","sidebar"].includes(d.goQuota?.display??"both"),patch:{goQuota:{...d.goQuota,display:["both","sidebar"].includes(d.goQuota?.display??"both")?"settings":"both"}}};const ne=d.codingPlans?.[z]??{},ie=["both","sidebar"].includes(ne.display??(z==="minimax"?"both":"settings"));N.plan={on:ie,patch:{codingPlans:{...d.codingPlans,[z]:{...ne,display:ie?"settings":"both"}}}},N.customBalance={on:["both","sidebar"].includes(d.customBalance?.display??"both"),patch:{customBalance:{...d.customBalance,display:["both","sidebar"].includes(d.customBalance?.display??"both")?"settings":"both"}}},N.codex={on:d.codexQuotaSidebar!==!1,patch:{codexQuotaSidebar:d.codexQuotaSidebar===!1}},N.sessionList={on:d.sessionListCosts===!0,patch:{sessionListCosts:d.sessionListCosts!==!0}};const F=d.quotaStrip??{},le=P.state.displayPreviewCodex,te=le?.status==="ok"?Object.entries(le.windows??{}).map(([l,f])=>({key:l,pct:Number.isFinite(f?.percent)?Math.max(0,Math.min(100,100-f.percent)):null})):[],ue=V("strip-codex",s("输入框上方 · Codex 额度","Above composer · Codex quota"),F.enabled===!0&&d.codexQuotaStrip!==!1,{codexQuotaStrip:!(F.enabled===!0&&d.codexQuotaStrip!==!1),...F.enabled?{}:{quotaStrip:{...F,enabled:!0,budget:!1,go:!1,plans:!1,promptSeen:!0}}},a("span",{className:"cm-qchip"},a("span",{className:"cm-qlabel"},"Codex"),...(te.length?te:[{pct:null}]).map(({key:l,pct:f},j)=>a("span",{key:j,className:"cm-qseg"},a("span",{className:"cm-qbar"},a("span",{className:"cm-qfill",style:{width:(f??0)+"%"}})),a("span",{className:"cm-qtext"},f===null?"—":(te.length>1?(l==="five"?"5h":t("goShortWeekly"))+" ":"")+t("quotaRemaining",{pct:f})))))),oe=(l,f,j,_)=>{const $=F.enabled===!0&&F[l]!==!1,he=F.enabled?{...F,[l]:!$}:{...F,budget:!1,go:!1,plans:!1,[l]:!0},ge=j===null?null:(d.barDirections?.[_]??"used")==="remaining"?100-j:j;return V("strip-"+l,s("输入框上方 · ","Above composer · ")+f,$,{quotaStrip:{...he,enabled:!0,promptSeen:!0},...F.enabled?{}:{codexQuotaStrip:!1}},a("span",{className:"cm-qchip"},a("span",{className:"cm-qlabel"},f),a("span",{className:"cm-qbar"},a("span",{className:"cm-qfill",style:{width:(ge??0)+"%"}})),a("span",{className:"cm-qtext"},k(ge))))},ce=l=>V("session-"+l,s(l==="header"?"顶部费用明细":"输入框下方费用明细",l==="header"?"Header cost details":"Composer cost details"),d[l==="header"?"hideSessionCostHeader":"hideSessionCostDock"]!==!0,{[l==="header"?"hideSessionCostHeader":"hideSessionCostDock"]:d[l==="header"?"hideSessionCostHeader":"hideSessionCostDock"]!==!0},a("span",{className:"cm-btn cm-stat-entry"},s("费用明细","Cost details"))),de=l=>V("badge",s("会话费用摘要","Session cost summary"),d.position===l,{position:d.position===l?"off":l},a("span",{className:"cm-root cm-session-cost"},a("span",{className:"cm-session-amount"},t("sessionLineCompact",{amount:w?A(.32):"—"})),L("session-detail",d.sessionCostCompact!==!0,a("span",{className:"cm-session-detail"},w?s(" · 输入 128K · 输出 4K"," · In 128K · Out 4K"):s(" · 暂无会话缓存"," · No cached session data"))))),pe=d.corner?.enabled===!0,U=(l,...f)=>a("div",{className:"cm-native-"+l},...f),q=(l,f=16)=>a(Se[l],{size:f}),i=(l,f=!1)=>p.renderCorner({...P.state,config:{...P.config,sidebarModels:{...d.sidebarModels,dock:f},corner:{enabled:!f,budget:!1,goRolling:!1,goWeekly:!1,goMonthly:!1,[l]:!0}}}),g=V("corner",s("右下角额度","Corner quota"),pe,{corner:{...d.corner,enabled:!pe}},a("div",{className:"cm-preview-corner"},...[["goRolling","Go 5h"],["goWeekly",s("Go 周","Go week")],["goMonthly",s("Go 月","Go month")],["budget",t("budgetShort")]].map(([l,f])=>O.cloneElement(L("corner-"+l,d.corner?.[l]===!0,i(l)),{"data-placeholder":f+" —"})))),u=n==="composer"?V("models",s("模型花费","Model costs"),d.sidebarModels?.dock===!0,{sidebarModels:{...d.sidebarModels,dock:d.sidebarModels?.dock!==!0}},i("model",!0)):null;N.badge={on:d.position===(n==="conversation"?"header":"dock"),patch:{position:d.position===(n==="conversation"?"header":"dock")?"off":n==="conversation"?"header":"dock"}},n==="composer"&&(N.models={on:d.sidebarModels?.dock===!0,patch:{sidebarModels:{...d.sidebarModels,dock:d.sidebarModels?.dock!==!0}}});const re=[["sidebar",s("侧栏","Sidebar")],["composer",s("输入区","Composer")],["conversation",s("会话内容","Conversation")]],Ee=n==="sidebar"?a(Ie,{renderSidebar:R,config:P.config,selected:B,selectedPlan:z,select:Q,labels:I,displayConfig:d,visibility:{balance:K,budget:N.budget.on,today:ae,go:N.go.on,peak:N.peak.on,models:N.models.on,plan:ie,customBalance:N.customBalance.on,codex:N.codex.on},listPreview:V("sessionList",I.sessionList,d.sessionListCosts===!0,N.sessionList.patch,a("div",{style:{display:"flex",alignItems:"center",gap:12,padding:8}},a("span",{style:{flex:1}},s("整理项目计划","Organize the project plan")),a("span",{style:{fontSize:11,fontVariantNumeric:"tabular-nums"}},w?A(.84):"—"))),appearance:{...T.sidebar,...T.sidebarFooterWidth?{maxWidth:T.sidebarFooterWidth+28}:{}},text:s,icon:q}):n==="composer"?a("div",{className:"cm-preview-composer"},a("div",{className:"cm-preview-region-head"},a("span",null,q("IconPlusOutlineRegular"),s("输入区域","Composer area"))),a("div",{className:"cm-preview-strip"},oe("budget",t("budget"),X,"budget"),oe("go","Go",ee,"go"),oe("plans","Plan",o,"plan"),ue),a("div",{className:"cm-native-input-card",style:T.composer,"aria-hidden":!0},U("input-placeholder",s("发消息或创建任务,/ 调用指令,@ 文件或对话","Send a message, / commands, @ files or conversations")),U("input-row",U("input-tools",U("input-add",q("IconPlusOutlineRegular",20)),U("permission",q("PermissionIconFullAccessRegular"),s("完全权限","Full access"))),U("input-trailing",U("model",w?"DeepSeek-V41-Flash":s("当前模型","Current model"),q("IconChevronDownOutlineRegular",12)),q("IconMicrophoneOutlineRegular",20),U("input-primary",q("IconSendOutlineRegular",24))))),U("input-dock",a("span",{className:"cm-native-dock-stat","aria-hidden":!0},q("IconGaugeOutlineRegular",14),w?s("2 轮 6 步 · 273 tok/s","2 turns · 6 steps · 273 tok/s"):"—"),a("span",{className:"cm-native-dock-stat","aria-hidden":!0},q("IconDatabaseOutlineRegular",14),w?s("128K tok · 缓存命中 98%","128K tok · 98% cache"):"—"),ce("dock"),de("dock"),g,u,a("span",{className:"cm-native-dock-context","aria-hidden":!0},a("i",{className:"cm-native-context-ring"}),w?"29%":"—"))):a("div",{className:"cm-preview-conversation"},a("div",{className:"cm-native-chat-header",style:T.header},a("div",{className:"cm-native-chat-titleRow"},a("span",null,w?s("整理项目计划","Organize the project plan"):s("会话费用显示位置","Conversation cost placement")),ce("header"),de("header")),a("div",{className:"cm-native-chat-tabs","aria-hidden":!0},...[s("对话","Chat"),s("轨迹","Trace"),s("上下文","Context")].map((l,f)=>a("span",{key:l,className:f===0?"active":""},l)))),a("div",{className:"cm-preview-response"},a("p",{"aria-hidden":!0},w?s("已整理好项目资料,接下来可以确认计划与时间安排。","The project materials are ready. Next, review the plan and schedule."):s("当前会话数据暂不可用,可开启示例数据查看完整效果。","Enable example data to see the complete conversation preview.")),V("turn",s("每轮费用","Per-turn cost"),d.hideTurnCost!==!0,{hideTurnCost:d.hideTurnCost!==!0},a("span",{className:"cm-native-turn"},s("▸ 本轮费用 ≈ ","▸ Turn cost ≈ ")+(w?A(.08):"—"))),a("div",{className:"cm-native-response-actions","aria-hidden":!0},q("IconCopyOutlineRegular"),q("IconLikeOutlineRegular"),q("IconDislikeOutlineRegular"),q("IconShareOutlineRegular"),a("span",null,w?"14:32":"—")))),Ce=a(ke,null,a("div",{className:"cm-display-preview-options"},a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:w,onChange:l=>{D(l.target.checked);try{localStorage.setItem("dsh-cost-meter:display-examples",String(l.target.checked))}catch{}}}),s("使用示例数据","Use example data")),a("span",null,w?s("展示完整效果,示例不计入账本","Full preview · example data is not recorded"):s("展示当前数据,缺失内容显示 —","Current data · unavailable values show —"))),a("div",{className:"cm-display-region-tabs",role:"tablist","aria-label":s("预览区域","Preview area")},...re.map(([l,f],j)=>a("button",{key:l,type:"button",role:"tab",id:S+l,"aria-selected":n===l,"aria-controls":S+"-panel",tabIndex:n===l?0:-1,onClick:()=>m(l),onKeyDown:_=>{if(!["ArrowLeft","ArrowRight","Home","End"].includes(_.key))return;_.preventDefault();const $=_.key==="Home"?0:_.key==="End"?re.length-1:(j+(_.key==="ArrowLeft"?-1:1)+re.length)%re.length;m(re[$][0]),_.currentTarget.parentElement.children[$].focus()}},f))),a("div",{className:"cm-preview cm-region-preview",role:"tabpanel",id:S+"-panel","aria-labelledby":S+n,"data-region":n},a("div",{className:"cm-preview-workspace"},a("div",{className:"cm-preview-scene"},Ee),a(ye,{props:p,config:d,set:W,selected:B,selectedPlan:z,selectPlan:b,select:Q,labels:I,registry:N,text:s,region:n,examples:w,previewData:P,stylesOpen:Y,setStylesOpen:G,openQuota:()=>{x(!1),p.onNavigate("quotas",B==="codex"||B==="strip-codex"?"codex":z)}}))));return a("section",{className:"cm-display","aria-label":s("交互式显示设置","Interactive display settings")},a("div",{className:"cm-display-heading"},a("div",null,a("h3",null,s("设置你看到的界面","Make the screen yours")),a("p",null,s("点击虚线框,在右侧调整显示与样式。淡化表示已隐藏。","Select an outlined item, then customize it on the right. Faded components are hidden."))),a("button",{ref:H,type:"button",className:"cm-btn small cm-display-expand",onClick:()=>x(!0)},q("IconFullscreenOutlineRegular",14),s("放大预览","Expand preview"))),c?a("dialog",{ref:Z,className:"cm-display-dialog","aria-label":s("桌面显示预览","Desktop display preview"),onCancel:l=>{l.preventDefault(),l.stopPropagation(),x(!1)},onKeyDown:l=>{l.key==="Escape"&&l.stopPropagation()}},a("div",{className:"cm-display-dialog-head"},s("显示设置","Display settings"),a("button",{type:"button",className:"cm-display-dialog-close","aria-label":s("关闭预览","Close preview"),autoFocus:!0,onClick:l=>{l.stopPropagation(),x(!1)}},q("IconCloseOutlineRegular",18))),a("div",{className:"cm-display-dialog-body"},Ce)):Ce)}class De extends O.Component{constructor(e){super(e),this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){if(!this.state.failed)return a(fe,this.props);const e=this.props.locale==="en";return a("section",{className:"cm-display"},a("p",{role:"alert"},e?"Preview unavailable. Display options are still available below.":"预览暂不可用,可在下方继续调整显示选项。"),a("button",{type:"button",className:"cm-btn small",onClick:()=>this.setState({failed:!1})},e?"Retry preview":"重试预览"),a(Te,{...this.props,open:!0}),a(ve,this.props))}}function Te({state:p,draft:e,setDraft:r,t,locale:v,numInput:y,displayOptions:C,CURRENCY_PRESETS:d,USAGE_POSITION_SWITCHABLE:h,open:s=!1}){const n=p.config,M=(c,x)=>r(B=>({...B,[c]:x}));return a("details",{className:"cm-display-details",open:s||void 0},a("summary",null,v==="en"?"More options · layout, currency and refresh intervals":"详细设置 · 布局、金额格式与刷新频率"),a("div",{className:"cm-grid"},a("div",{className:"cm-grid-group"},t("groupGeneral")),...["includeSubagentCost","codexQuotaEnabled","codexQuotaSidebar","codexQuotaStrip"].map(c=>a("label",{key:c,className:"cm-check"},a("input",{type:"checkbox",checked:e?.[c]===!0,onChange:x=>M(c,x.target.checked)}),a("span",null,t(c)))),h?a("div",{className:"cm-field"},a("label",null,t("usagePositionLabel")),a("select",{className:"cm-input",value:e?.usage?.position??"cost",onChange:c=>{e!==null&&r({...e,usage:{...e.usage??{position:"cost"},position:c.target.value}})}},a("option",{value:"cost"},t("usagePositionCost")),a("option",{value:"general"},t("usagePositionGeneral")),a("option",{value:"section"},t("usagePositionSection")))):null,a("div",{className:"cm-field"},a("label",null,t("positionLabel")),a("select",{className:"cm-input",value:e?.position??"dock",onChange:c=>M("position",c.target.value)},a("option",{value:"dock"},t("positionDock")),a("option",{value:"header"},t("positionHeader")),a("option",{value:"off"},t("off")))),a("div",{className:"cm-field"},a("label",null,t("sidebarLabel")),a("select",{className:"cm-input",value:e?.sidebar===!1?"off":"on",onChange:c=>M("sidebar",c.target.value==="on")},a("option",{value:"on"},t("sidebarOn")),a("option",{value:"off"},t("off")))),a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.showSessionId===!0,onChange:c=>M("showSessionId",c.target.checked)}),a("span",null,t("showSessionIdLabel"))),...["hideSessionCostHeader","hideSessionCostDock","hideTurnCost","sessionCostCompact"].map(c=>a("label",{key:c,className:"cm-check"},a("input",{type:"checkbox",checked:e?.[c]===!0,onChange:x=>M(c,x.target.checked)}),a("span",null,t(c)))),a("div",{className:"cm-grid-group"},t("groupMoney")),a("div",{className:"cm-field"},a("label",null,t("currencyLabel")),a("select",{className:"cm-input",value:e?.currency??"CNY",onChange:c=>{const x=d[c.target.value];x!==void 0&&e!==null&&r({...e,currency:c.target.value,...x,exchangeRate:e.exchangeRateAuto!==!1?e.fxRates?.[c.target.value]??x.exchangeRate:x.exchangeRate})}},a("option",{value:"CNY"},t("currencyCny")),a("option",{value:"USD"},t("currencyUsd")),a("option",{value:"EUR"},t("currencyEur")))),a("div",{className:"cm-field"},a("label",null,t("rateLabel")),y({value:e?.exchangeRate??1,emptyMode:"ignore"},c=>r({...e,exchangeRate:c,exchangeRateAuto:!1}))),a("div",{className:"cm-field"},a("label",null,t("decimalsLabel")),y({value:e?.decimals??2},c=>M("decimals",Math.min(10,Math.floor(c))))),a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.hideOfficialBalance===!0,onChange:c=>M("hideOfficialBalance",c.target.checked)}),a("span",null,t("hideOfficialBalanceLabel"))),a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.hideTodayCost===!0,onChange:c=>M("hideTodayCost",c.target.checked)}),a("span",null,t("hideTodayCostLabel"))),a("div",{className:"cm-grid-group"},t("groupSidebar")),a("div",{className:"cm-field"},a("label",null,t("sidebarTodayMetric")),a("select",{className:"cm-input",value:e?.sidebarTodayMetric??"cost",onChange:c=>M("sidebarTodayMetric",c.target.value)},a("option",{value:"cost"},t("sidebarTodayCost")),a("option",{value:"tokens"},t("sidebarTodayTokens")))),a("div",{className:"cm-field"},a("label",null,t("balanceDisplayLabel")),a("select",{className:"cm-input",value:e?.balance?.display??"both",onChange:c=>{e!==null&&r({...e,balance:{...e.balance??{display:"both",refreshMinutes:5},display:c.target.value}})}},...C(t))),a("div",{className:"cm-field"},a("label",null,t("refreshIntervalLabel")),y({value:e?.balance?.refreshMinutes??5},c=>{e!==null&&r({...e,balance:{...e.balance??{display:"both",refreshMinutes:5,showProgressBar:!1,budgetCap:null},refreshMinutes:Math.min(1440,Math.max(1,Math.floor(c)))}})})),a("div",{className:"cm-field"},a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.balance?.showProgressBar===!0,onChange:c=>{e!==null&&r({...e,balance:{...e.balance??{display:"both",refreshMinutes:5,showProgressBar:!1,budgetCap:null},showProgressBar:c.target.checked}})}}),a("span",null,t("balanceShowProgressBar")))),a("div",{className:"cm-field"},a("label",null,t("balanceBudgetCapLabel")),y({value:e?.balance?.budgetCap??""},c=>{e!==null&&r({...e,balance:{...e.balance??{display:"both",refreshMinutes:5,showProgressBar:!1,budgetCap:null},budgetCap:c>0?c:null}})}),a("span",{className:"cm-hint"},t("balanceBudgetCapHint"))),a("div",{className:"cm-field"},a("label",null,t("barDirectionsTitle")),["balance","budget","go","plan"].map(c=>a("div",{className:"cm-dir-row",key:c},a("span",{className:"cm-dir-label"},t("barDirection_"+c)),a("select",{className:"cm-input",value:e?.barDirections?.[c]??(c==="balance"?"remaining":"used"),onChange:x=>{if(e===null)return;const B={balance:"remaining",budget:"used",go:"used",plan:"used"};r({...e,barDirections:{...e.barDirections??B,[c]:x.target.value}})}},a("option",{value:"remaining"},t("barDirectionRemaining")),a("option",{value:"used"},t("barDirectionUsed"))))),a("span",{className:"cm-hint"},t("barDirectionsHint"))),a("div",{className:"cm-field"},a("label",null,t("customBalanceDisplayLabel")),a("select",{className:"cm-input",value:e?.customBalance?.display??n.customBalance?.display??"both",onChange:c=>{e!==null&&r({...e,customBalance:{...e.customBalance??n.customBalance??{},display:c.target.value}})}},...C(t))),a("div",{className:"cm-field"},a("label",null,t("customBalanceRefreshInterval")),y({value:e?.customBalance?.refreshMinutes??n.customBalance?.refreshMinutes??15},c=>{e!==null&&r({...e,customBalance:{...e.customBalance??n.customBalance??{},refreshMinutes:Math.min(1440,Math.max(1,Math.floor(c)))}})})),a("div",{className:"cm-grid-group"},t("quotaStripGroup")),a("div",{className:"cm-field"},a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.quotaStrip?.enabled===!0,onChange:c=>{e!==null&&r({...e,quotaStrip:{...e.quotaStrip??{enabled:!1,budget:!0,go:!0,plans:!0},enabled:c.target.checked,promptSeen:!0}})}}),a("span",null,t("quotaStripEnable")))),e?.quotaStrip?.enabled===!0?[["budget","quotaStripShowBudget"],["go","quotaStripShowGo"],["plans","quotaStripShowPlans"]].map(([c,x])=>a("label",{key:c,className:"cm-check"},a("input",{type:"checkbox",checked:e.quotaStrip[c]!==!1,onChange:B=>{e!==null&&r({...e,quotaStrip:{...e.quotaStrip,[c]:B.target.checked}})}}),a("span",null,t(x)))):null,a("div",{className:"cm-field"},a("span",{className:"cm-hint"},t("quotaStripNote"))),a("div",{className:"cm-grid-group"},t("groupCorner")),a("div",{className:"cm-field"},a("label",null,t("cornerLabel")),a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.corner?.enabled===!0,onChange:c=>{e!==null&&r({...e,corner:{...e.corner??{enabled:!1,goRolling:!0,goWeekly:!0,goMonthly:!0,budget:!0},enabled:c.target.checked}})}}),a("span",null,t("cornerEnabledLabel"))),e?.corner?.enabled===!0?[["goRolling","cornerGoRolling"],["goWeekly","cornerGoWeekly"],["goMonthly","cornerGoMonthly"],["budget","cornerBudget"]].map(([c,x])=>a("label",{key:c,className:"cm-check"},a("input",{type:"checkbox",checked:e.corner[c]!==!1,onChange:B=>{e!==null&&r({...e,corner:{...e.corner,[c]:B.target.checked}})}}),a("span",null,t(x)))):null),a("div",{className:"cm-grid-group"},t("groupDetail")),a("div",{className:"cm-field"},a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.goQuota?.detail!==!1,onChange:c=>{e!==null&&r({...e,goQuota:{...e.goQuota??{display:"both",refreshMinutes:15,apiKey:"",main:"rolling",detail:!0},detail:c.target.checked}})}}),a("span",null,t("goDetailLabel")))),a("div",{className:"cm-field"},a("label",{className:"cm-check"},a("input",{type:"checkbox",checked:e?.budget?.detail!==!1,onChange:c=>{e!==null&&r({...e,budget:{...e.budget??{enabled:!1,amount:100,period:"month",customStart:null,customEnd:null,detail:!0},detail:c.target.checked}})}}),a("span",null,t("budgetDetailLabel"))))))}function qe(p){const e=document.createElement("style");return e.textContent=Le,document.head.appendChild(e),p.effect(()=>()=>e.remove(),"cost-meter: display settings styles"),De}return{mount:qe,DisplaySettings:fe}}});
|