@opencompass-fe/oc-webkit-eval 0.2.6 → 0.2.8
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 +37 -37
- package/dist/assets/svg/top-nav/menu-button.svg.js +1 -1
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/footer/footer.js +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/footer-expansion/footer-expansion.js +1 -1
- package/dist/components/footer-expansion/index.js +1 -1
- package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.js +1 -1
- package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.js +1 -1
- package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.module.less.js +2 -2
- package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.js +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/components/header/hooks/useUrl.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header/secondHeader.js +1 -1
- package/dist/components/md-render/index.js +4 -4
- package/dist/components/online-evaluation/index.js +1 -1
- package/dist/components/online-evaluation/online-evaluation.js +1 -1
- package/dist/components/side-nav/index.js +1 -1
- package/dist/components/side-nav/side-nav.js +1 -1
- package/dist/components/side-nav/side-nav.module.less.js +2 -2
- package/dist/components/top-nav/index.js +1 -1
- package/dist/components/top-nav/shared.js +1 -1
- package/dist/components/top-nav/top-nav.js +1 -1
- package/dist/components/top-nav/top-nav.module.less.js +2 -2
- package/dist/constants/enums.js +1 -1
- package/dist/extraComponents/button/button.js +1 -1
- package/dist/helper/index.js +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/mobile/components/top-nav/top-nav.js +1 -1
- package/dist/providers/OcContext.js +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +34 -34
- package/dist/types/components/md-render/index.d.ts +4 -4
- package/dist/types/constants/enums.d.ts +26 -26
- package/dist/types/google-log/home.d.ts +6 -6
- package/dist/types/helper/index.d.ts +10 -10
- package/dist/types/index.d.ts +149 -149
- package/package.json +149 -150
package/README.md
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<h1>oc-webkit</h1>
|
|
3
|
-
</div>
|
|
4
|
-
|
|
5
|
-
简体中文
|
|
6
|
-
|
|
7
|
-

|
|
8
|
-
|
|
9
|
-
## ✨ 特性
|
|
10
|
-
|
|
11
|
-
提取oc开发过程中公共组件
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## 🖥 兼容环境
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
| 组件 | Chrome | Safari |Edge |Electron |office 365 |
|
|
18
|
-
| --- | --- | --- | --- | --- | --- |
|
|
19
|
-
|ChatBox| last 2 versions | last 2 versions | last 2 versions | last 2 versions |not support |
|
|
20
|
-
| Diff |last 2 versions | last 2 versions | last 2 versions | last 2 versions |not support |
|
|
21
|
-
| ChatManagement |last 2 versions | last 2 versions | last 2 versions | last 2 versions |not support |
|
|
22
|
-
| WordAddinWriter |not support | not support| not support | not support| office365 word 2308+ |
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## 📦 安装
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
npm install oc-webkit --save
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
yarn add oc-webkit
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
pnpm add oc-webkit
|
|
37
|
-
```
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>oc-webkit</h1>
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
简体中文
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## ✨ 特性
|
|
10
|
+
|
|
11
|
+
提取oc开发过程中公共组件
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 🖥 兼容环境
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
| 组件 | Chrome | Safari |Edge |Electron |office 365 |
|
|
18
|
+
| --- | --- | --- | --- | --- | --- |
|
|
19
|
+
|ChatBox| last 2 versions | last 2 versions | last 2 versions | last 2 versions |not support |
|
|
20
|
+
| Diff |last 2 versions | last 2 versions | last 2 versions | last 2 versions |not support |
|
|
21
|
+
| ChatManagement |last 2 versions | last 2 versions | last 2 versions | last 2 versions |not support |
|
|
22
|
+
| WordAddinWriter |not support | not support| not support | not support| office365 word 2308+ |
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 📦 安装
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install oc-webkit --save
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
yarn add oc-webkit
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pnpm add oc-webkit
|
|
37
|
+
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";var
|
|
1
|
+
import"react";var e="data:image/svg+xml,%3csvg width='17' height='12' viewBox='0 0 17 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M16.0417 10.4167C16.3868 10.4167 16.6667 10.6965 16.6667 11.0417C16.6667 11.3868 16.3868 11.6667 16.0417 11.6667H0.625C0.279822 11.6667 0 11.3868 0 11.0417C0 10.6965 0.279822 10.4167 0.625 10.4167H16.0417Z' fill='%23374151'/%3e%3cpath d='M16.0417 5.20833C16.3868 5.20833 16.6667 5.48816 16.6667 5.83333C16.6667 6.17851 16.3868 6.45833 16.0417 6.45833H0.625C0.279822 6.45833 0 6.17851 0 5.83333C0 5.48816 0.279822 5.20833 0.625 5.20833H16.0417Z' fill='%23374151'/%3e%3cpath d='M16.0417 0C16.3868 0 16.6667 0.279822 16.6667 0.625C16.6667 0.970178 16.3868 1.25 16.0417 1.25H0.625C0.279822 1.25 0 0.970178 0 0.625C0 0.279822 0.279822 0 0.625 0H16.0417Z' fill='%23374151'/%3e%3c/svg%3e";export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import s,{useRef as O,useState as v,useEffect as q,useCallback as U}from"react";import c from"classnames";import t from"./dropdown.module.less.js";import X from"../../extraComponents/icon-font/index.js";import{useSize as Z,useClickAway as $}from"ahooks";var ee=Object.defineProperty,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,V=(i,o,l)=>o in i?ee(i,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[o]=l,G=(i,o)=>{for(var l in o||(o={}))te.call(o,l)&&V(i,l,o[l]);if(T)for(var l of T(o))ne.call(o,l)&&V(i,l,o[l]);return i};const oe=i=>{const{children:o,content:l,placement:d="bottom-right",className:N,theme:f="light",menu:a,cascadeMenu:n,trigger:p=["hover"],isFirstLevelOpen:P=!1,isDefaultSelectFirstOne:x=!1}=i,y=O(null),h=O(null),b=0,[B,k]=v(""),[u,m]=v(!1),[I,J]=v({bottom:void 0,right:void 0,top:void 0,left:void 0}),[g,S]=v(),[K,A]=v(),L=O(null),R=Z(L),Q=Boolean(n)||Boolean(i.isCascadeMenu);q(()=>{var e,r,E,_,C,M,z,D,W,Y;!x||(P?(S(((r=(e=n==null?void 0:n.items)==null?void 0:e[0])==null?void 0:r.children)||[]),A((_=(E=n==null?void 0:n.items)==null?void 0:E[0])==null?void 0:_.key),k((D=(z=(M=(C=n==null?void 0:n.items)==null?void 0:C[0])==null?void 0:M.children)==null?void 0:z[0])==null?void 0:D.key)):k((Y=(W=a==null?void 0:a.items)==null?void 0:W[0])==null?void 0:Y.key))},[P,x,n==null?void 0:n.items,a==null?void 0:a.items]);const w=U(()=>{if(!h.current)return;const{right:e,top:r,left:E,bottom:_}=h.current.getBoundingClientRect(),C=window.innerWidth,M=window.innerHeight;J({top:d.includes("bottom")?_+b:void 0,left:d.includes("left")?E:void 0,bottom:d.includes("top")?M-r+b:void 0,right:d.includes("right")?C-e-8:void 0}),m(!0)},[d,b]),j=()=>{p.includes("hover")&&w()},F=()=>{p.includes("click")&&w()},H=e=>{var r;p.includes("hover")&&(((r=y.current)==null?void 0:r.contains(e.nativeEvent.relatedTarget))||m(!1))};return $(()=>{p.includes("click")&&m(!1)},y),q(()=>{const e=()=>{u&&w()};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[u,w]),Q&&n?s.createElement("div",{style:{display:"contents"},ref:y,onMouseLeave:H,onMouseEnter:j},s.createElement("div",{ref:h,onClick:F},o,s.createElement("div",{className:c(t.dropdown,{[t.light]:f==="light",[t.dark]:f==="dark"},N,t.cascadeMenuBox),style:G({},I)},n&&u&&Array.isArray(n.items)&&s.createElement("div",{className:t.yearBox},n.items.map(e=>s.createElement("div",{className:c(t.menuItem,{[t.selectedCascade]:e.key===K}),key:e.key,onMouseEnter:()=>{S(e.children||[]),A(e.key)},onClick:r=>{r.stopPropagation()}},s.createElement("div",null,e.label),s.createElement(X,{type:"icon-qianwang"})))),g&&u&&Array.isArray(g)&&g.length>0&&s.createElement("div",{className:c(t.monthBox,(R==null?void 0:R.height)>=296?t.scrollMonthBox:t.transparentScroll),ref:L},g.map(e=>s.createElement("div",{className:c(t.menuItem,{[t.selectedCascade]:e.key===B}),key:e.key,onClick:r=>{r.stopPropagation(),n.onClick&&n.onClick({key:e.key}),k(e.key),m(!1)}},e.label))),!n&&l))):s.createElement("div",{style:{display:"contents"},ref:y,onMouseLeave:H,onMouseEnter:j},s.createElement("div",{ref:h,onClick:F},o,u&&s.createElement("div",{className:c(t.dropdown,{[t.light]:f==="light",[t.dark]:f==="dark"},N),style:G({},I)},a&&Array.isArray(a.items)&&a.items.map(e=>s.createElement("div",{className:c(t.menuItem,{[t.selected]:e.key===B}),key:e.key,onClick:r=>{r.stopPropagation(),a.onClick&&a.onClick({key:e.key}),k(e.key),m(!1)}},e.label)),!a&&l)))};export{oe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import f from"../../assets/svg/footer/zhihu.svg.js";import
|
|
1
|
+
import f from"../../assets/svg/footer/zhihu.svg.js";import v from"../../assets/svg/footer/github.svg.js";import d from"../../assets/svg/footer/twitter.svg.js";import C from"../../assets/svg/footer/wechat.svg.js";import{Popover as h}from"antd";import s from"./footer.module.less.js";import e,{useContext as r,useEffect as k,useMemo as E}from"react";import{OcContext as N}from"../../providers/OcContext.js";import{OcConfigContext as w}from"../../providers/OcConfigContext.js";import j from"../header/hooks/useUrl.js";import x from"classnames";import O from"../../assets/svg/blueNewLogo.svg.js";import L from"../../assets/svg/blueNewLogoEn.svg.js";const y=o=>{const{setConfig:l,config:c}=r(w),{locales:n}=r(N),{locale:m}=c;k(()=>{l(o)},[o]);const{urls:i}=j(),a=(t,u)=>{u?window.open(t):window.location.href=t},g=[{img:f,link:"https://www.zhihu.com/people/jue-qi-36-21",outlink:!0},{img:v,link:"https://github.com/open-compass",outlink:!0},{img:d,link:"https://x.com/OpenCompassX",outlink:!0}],p=E(()=>m==="en-US"?L:O,[m]);return e.createElement("div",{className:x(s.footer,o.isSticky&&s.stickyFooter,o.customClassname)},e.createElement("img",{className:s.left,src:p,alt:""}),e.createElement("div",{className:s.center},e.createElement("span",null,"\xA9 2023-2025 OpenCompass All Rights Reserved"),e.createElement("div",{className:s.columnLine}),e.createElement("span",{className:s.icp,onClick:()=>{window.open("https://beian.miit.gov.cn/#/Integrated/index")}},"\u6CAAICP\u59072021009351\u53F7-23"),e.createElement("div",{className:s.columnLine}),e.createElement("span",{className:s.link,onClick:()=>a(`${i==null?void 0:i.VITE_COMPASS_URL}policy`)},n==null?void 0:n.agreement)),e.createElement("div",{className:s.right},g.map(t=>e.createElement("div",{key:t.link,onClick:()=>a(t.link,t.outlink),className:s.logo},e.createElement("img",{src:t.img,alt:""}))),e.createElement(h,{content:e.createElement("img",{src:"https://opencompass.oss-cn-shanghai.aliyuncs.com/image/qrcode_compass.png",className:s.qrCode,alt:"qrCode"})},e.createElement("div",{className:s.logo},e.createElement("img",{src:C,alt:""})))))};export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import m from"../../providers/OcContext.js";import p from"../../providers/OcConfigContext.js";import
|
|
1
|
+
import m from"../../providers/OcContext.js";import p from"../../providers/OcConfigContext.js";import i from"./footer.js";import{ConfigProvider as c}from"antd";import o from"react";var f=Object.defineProperty,n=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(t,r,e)=>r in t?f(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,O=(t,r)=>{for(var e in r||(r={}))l.call(r,e)&&a(t,e,r[e]);if(n)for(var e of n(r))s.call(r,e)&&a(t,e,r[e]);return t};const u=t=>o.createElement(p,null,o.createElement(m,null,o.createElement(c,{theme:{components:{}}},o.createElement(i,O({},t)))));export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useContext as
|
|
1
|
+
import e,{useContext as c,useEffect as k}from"react";import E from"../../assets/svg/footer/zhihu.svg.js";import f from"../../assets/svg/footer/github.svg.js";import N from"../../assets/svg/footer/twitter.svg.js";import d from"classnames";import u from"../../extraComponents/icon-font/index.js";import l from"./footer-expansion.module.less.js";import{OcContext as h}from"../../providers/OcContext.js";import{OcConfigContext as C}from"../../providers/OcConfigContext.js";import b from"../header/hooks/useUrl.js";const p="https://opencompass.oss-cn-shanghai.aliyuncs.com/image/open-compass/",L=m=>{const{setConfig:v,config:g}=c(C),{locales:t}=c(h),{locale:i}=g,{urls:a}=b();k(()=>{v(m)},[m]);const r=(n,o)=>{o?window.open(n):window.location.href=n},s=[{title:t==null?void 0:t.evalRank,items:[{name:t==null?void 0:t.closeLeaderboard,link:"/leaderboard-llm"},{name:t==null?void 0:t.openLeaderboard,link:"/leaderboard-llm-academic"},{name:t==null?void 0:t.arenaLeader,link:"/leaderboard-arena"},{name:t==null?void 0:t.mmLeaderboard,link:"/leaderboard-multimodal"}]},{title:t==null?void 0:t.exploreMore,items:[{name:t==null?void 0:t.compassHub,link:a==null?void 0:a.VITE_HUB_URL},{name:t==null?void 0:t.compassKit,link:"https://github.com/open-compass/OpenCompass/",outlink:!0}]},{title:t==null?void 0:t.docsCenter,items:[{name:t==null?void 0:t.rankRules,link:"/rule"},{name:t==null?void 0:t.useGuide,link:i==="en-US"?a==null?void 0:a.VITE_DOC_URL:a==null?void 0:a.VITE_DOC_URL_ZH}]},{title:t==null?void 0:t.compassCommunity,logos:[{img:E,link:"https://www.zhihu.com/people/jue-qi-36-21",outlink:!0},{img:f,link:"https://github.com/open-compass",outlink:!0},{img:N,link:"https://x.com/OpenCompassX",outlink:!0}]}];return e.createElement("div",{className:l.footerExpansion},e.createElement("div",{className:l.top},e.createElement("div",{className:l.left},e.createElement("img",{src:`${p}logo-icon.svg`,alt:"logo-icon"})),e.createElement("div",{className:l.center,style:{marginLeft:80}},e.createElement("div",{key:s[0].title,className:l.section},e.createElement("div",{className:l.sectionTitle},s[0].title),s[0].items&&e.createElement("div",{className:l.items},s[0].items.map(n=>e.createElement("a",{href:`${a==null?void 0:a.VITE_RANK_URL}${n.link}?lang=${i}`,target:n.outlink?"_blank":"_self",key:n.name,className:d(l.sectionLink,{[l.outLink]:n.outlink}),rel:"noreferrer"},n.name,n.outlink&&e.createElement(u,{type:"icon-GotoOutline"}))))),e.createElement("div",{className:l.centerRight},e.createElement("div",{className:l.center},s.slice(1).map(n=>e.createElement("div",{key:n.title,className:l.section},e.createElement("div",{className:l.sectionTitle},n.title),n.items&&e.createElement("div",{className:l.items},n.items.map(o=>e.createElement("a",{href:`${o.link}${o.outlink?"":`?lang=${i}`}`,target:o.outlink?"_blank":"_self",key:o.name,className:d(l.sectionLink,{[l.outLink]:o.outlink}),rel:"noreferrer"},o.name,o.outlink&&e.createElement(u,{type:"icon-GotoOutline"})))),n.logos&&e.createElement("div",{className:l.logos},n.logos.map(o=>e.createElement("div",{key:o.img,onClick:()=>r(o.link,o.outlink)},e.createElement("img",{className:l.logo,src:o.img,alt:"logo"}))))))),e.createElement("div",null,e.createElement("div",{className:l.section},e.createElement("span",{className:l.sectionTitle},t==null?void 0:t.contactUs),e.createElement("span",{className:l.sectionEmail},"opencompass@pjlab.org.cn"))))),e.createElement("div",{className:l.right},e.createElement("img",{src:"https://opencompass.oss-cn-shanghai.aliyuncs.com/image/qrcode_compass.png",className:l.qrCode,alt:"qrCode"}),e.createElement("div",null,t==null?void 0:t.followUs))),e.createElement("div",{className:l.bottom},e.createElement("span",{className:l.agreement,onClick:()=>r(`${a==null?void 0:a.VITE_COMPASS_URL}policy`)},t==null?void 0:t.agreement),e.createElement("span",null,"\xA9 2023-2025 OpenCompass All Rights Reserved"),e.createElement("div",{className:l.columnLine}),e.createElement("span",{className:l.icp,onClick:()=>{window.open("https://beian.miit.gov.cn/#/Integrated/index")}},"\u6CAAICP\u59072021009351\u53F7-23")))};export{L as default,p as imgUrl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import p from"../../providers/OcContext.js";import i from"../../providers/OcConfigContext.js";import m from"./footer-expansion.js";import{ConfigProvider as f}from"antd";import t from"react";var l=Object.defineProperty,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,a=(o,r,e)=>r in o?l(o,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[r]=e,u=(o,r)=>{for(var e in r||(r={}))s.call(r,e)&&a(o,e,r[e]);if(n)for(var e of n(r))c.call(r,e)&&a(o,e,r[e]);return o};const v=o=>t.createElement(i,null,t.createElement(p,null,t.createElement(f,{theme:{components:{}}},t.createElement(m,u({},o)))));export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useContext as
|
|
1
|
+
import e,{useContext as N,useState as b}from"react";import{Form as m,Select as h,Modal as C,Tooltip as x,Input as E,Button as O,message as k}from"antd";import y from"classnames";import a from"./create-evaluation.module.less.js";import _ from"../../../../../../assets/svg/evaluation/quick.svg.js";import z from"../../../../../../assets/svg/evaluation/customize.svg.js";import q from"../../../../../../assets/svg/evaluation/comprehensive.svg.js";import i from"../../../../../../assets/svg/evaluation/part.svg.js";import v from"../../../../../../assets/svg/evaluation/done.svg.js";import{QuestionCircleOutlined as A}from"@ant-design/icons";import{CN as j}from"country-flag-icons/react/3x2";import{OcContext as I}from"../../../../../../providers/OcContext.js";import{OcConfigContext as B}from"../../../../../../providers/OcConfigContext.js";var L=Object.defineProperty,P=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,w=(l,t,r)=>t in l?L(l,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[t]=r,W=(l,t)=>{for(var r in t||(t={}))M.call(t,r)&&w(l,r,t[r]);if(P)for(var r of P(t))T.call(t,r)&&w(l,r,t[r]);return l},$=(l,t,r)=>new Promise((p,c)=>{var g=n=>{try{u(r.next(n))}catch(d){c(d)}},o=n=>{try{u(r.throw(n))}catch(d){c(d)}},u=n=>n.done?p(n.value):Promise.resolve(n.value).then(g,o);u((r=r.apply(l,t)).next())});const{Option:R}=h,F=e.createElement(m.Item,{name:"prefix",noStyle:!0},e.createElement(h,{style:{width:100}},e.createElement(R,{value:"+86"},e.createElement(j,{style:{width:16,marginRight:4}}),"+86"))),V=l=>{const{locales:t}=N(I),{config:r}=N(B),{applyAbilityEval:p}=r,[c]=m.useForm(),[g,o]=b(!1),[u,n]=b(!1),d=()=>{o(!0)},f=()=>{o(!1),c.resetFields()},S=()=>{c.validateFields().then(s=>$(void 0,null,function*(){n(!0),(yield p({orgName:s.orgName,modelName:s.modelName,modelScenarios:s.modelScenarios,phoneNumber:s.phoneNumber,email:s.email})).success&&(k.success(t.submitSuccess),o(!1),c.resetFields()),n(!1)})).catch(s=>{n(!1),k.error(s==null?void 0:s.message)})};return e.createElement(e.Fragment,null,e.createElement(C,W({centered:!0,className:a.modal,width:800,footer:[e.createElement("div",{className:a.footerContainer},l.goPrevStep&&e.createElement("button",{key:"cancel",className:a.prevStep,onClick:l.goPrevStep},t.prevStep),e.createElement("div",{className:a.right},e.createElement("button",{key:"cancel",className:a.cancel,onClick:l.onCancel},t.cancel),e.createElement("button",{key:"create",onClick:l.onOk,className:a.submit},t.create)))]},l),e.createElement("div",{className:a.content},e.createElement("div",{className:y(a.work,l.type===0&&a.active),onClick:()=>l.onTypeChange(0)},e.createElement("img",{src:_,alt:""}),e.createElement("div",{className:a.title},t.quick),e.createElement("div",{className:a.introduce},e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.quickFeatures2,e.createElement("span",{style:{fontWeight:600}},t.quickFeatures21))),e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.quickFeatures1)),e.createElement("div",{className:a.done},e.createElement("img",{src:v,alt:""}),e.createElement("span",null,t.quickFeatures3)))),e.createElement("div",{className:y(a.work,l.type===1&&a.active),onClick:()=>l.onTypeChange(1)},e.createElement("div",{className:a.tip},t.createAbilityCompany,e.createElement(x,{title:e.createElement(e.Fragment,null,e.createElement("span",null,t.createAbilityTip),e.createElement("span",{className:a.applyBtn,onClick:d},t.applyNow)),overlayStyle:{maxWidth:334,zIndex:10001}},e.createElement("span",null,e.createElement(A,null)))),e.createElement("img",{src:q,alt:""}),e.createElement("div",{className:a.title},t.comprehensive),e.createElement("div",{className:a.introduce},e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.abilityFeatures2,e.createElement("span",{style:{fontWeight:600}},t.abilityFeatures21))),e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.abilityFeatures1)),e.createElement("div",{className:a.done},e.createElement("img",{src:v,alt:""}),e.createElement("span",null,t.abilityFeatures3)))),e.createElement("div",{className:y(a.work,l.type===2&&a.active),onClick:()=>l.onTypeChange(2)},e.createElement("img",{src:z,alt:""}),e.createElement("div",{className:a.title},t.customize),e.createElement("div",{className:a.introduce},e.createElement("div",{className:a.introduce},e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.customFeature2)),e.createElement("div",{className:a.part},e.createElement("img",{src:i,alt:""}),e.createElement("span",null,t.customFeature1)),e.createElement("div",{className:a.done},e.createElement("img",{src:v,alt:""}),e.createElement("span",null,t.customFeature3))))))),e.createElement(C,{open:g,centered:!0,className:a.applyModal,width:800,onCancel:f,title:t.abilityPermissionApply,footer:!1},e.createElement("div",{className:a.content},e.createElement(m,{form:c,layout:"vertical",variant:"filled",initialValues:{prefix:"+86"},className:a.form},e.createElement(m.Item,{label:t.orgName,name:"orgName",rules:[{required:!0,message:t.abilityOrganizeNameError}]},e.createElement(E,{maxLength:50,showCount:!0,placeholder:t.abilityOrganizeNameError})),e.createElement(m.Item,{label:t.abilityBaseNameEN,name:"modelName",rules:[{required:!0,message:t.abilityBaseNameENError1}]},e.createElement(E,{maxLength:40,showCount:!0,placeholder:t.abilityBaseNameENError1})),e.createElement(m.Item,{label:t.abilityModelUsage,name:"modelScenarios",rules:[{required:!0,message:t.abilityModelPlaceholder}]},e.createElement(E,{maxLength:100,showCount:!0,placeholder:t.abilityModelPlaceholder})),e.createElement(m.Item,{name:"phoneNumber",label:t.abilityOrganizePhone,rules:[{required:!0,message:t.abilityOrganizePhonePlaceholder},{pattern:/^1[3-9]\d{9}$/,message:t.abilityOrganizeError}]},e.createElement(E,{addonBefore:F,style:{width:"100%"},placeholder:t.abilityOrganizePhonePlaceholder})),e.createElement(m.Item,{label:t.abilityOrganizeEmail,name:"email",rules:[{required:!0,message:t.abilityOrganizeEmailError},{type:"email",message:t.abilityOrganizeEmailError}]},e.createElement(E,{placeholder:t.abilityOrganizeEmailPlaceholder})))),e.createElement("div",{className:a.footer},e.createElement("div",{className:a.footerWarning},t.abilityApplyWarning),e.createElement("div",null,e.createElement(O,{key:"cancel",onClick:f},t.cancel),e.createElement(O,{key:"submit",onClick:S,style:{background:"#1B3882",marginLeft:12,color:"#fff"},disabled:u},t.abilityApplySubmit)))))};export{V as default,F as prefixSelector};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o,{useContext as v,useState as
|
|
1
|
+
import o,{useContext as v,useState as c}from"react";import $ from"./evaluation-button.module.less.js";import y from"../create-evaluation/create-evaluation.js";import T from"../pre-create-evaluation/index.js";import{OcContext as U}from"../../../../../../providers/OcContext.js";import N from"../../../../hooks/useUrl.js";import{OcConfigContext as P}from"../../../../../../providers/OcConfigContext.js";const b=({onclick:u,children:e,style:C,text:f})=>{const{urls:t}=N(),{locales:i}=v(U),{config:d}=v(P),{locale:s}=d,[E,a]=c(!1),[r,O]=c(0),g=()=>{r===0&&(window.location.href=`${t==null?void 0:t.VITE_RANK_URL}/create/quick?lang=${s}`),r===1&&(window.location.href=`${t==null?void 0:t.VITE_RANK_URL}/create/ability?lang=${s}`),r===2&&(window.location.href=`${t==null?void 0:t.VITE_RANK_URL}/create/custom?lang=${s}`),a(!1)},k=()=>{a(!1)},_=l=>{O(l)},w=()=>{n(!0),a(!1)},[R,n]=c(!1),j=()=>{n(!1)},x=()=>{n(!1),a(!0)};return i?o.createElement(o.Fragment,null,f?o.createElement("div",{style:C,className:$.reviewButton,onClick:l=>{n(!0),u&&u(l)}},f):e&&o.cloneElement(e,{onClick:l=>{var p,m;n(!0),((p=e==null?void 0:e.props)==null?void 0:p.onclick)&&((m=e==null?void 0:e.props)==null||m.onclick(l))}}),o.createElement(T,{open:R,onCancel:j,title:i.createOnlineEvaluation,llmClick:x}),o.createElement(y,{goPrevStep:w,open:E,onOk:g,onCancel:k,title:i.createOnlineEvaluation,onTypeChange:_,type:r})):null};export{b as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from"../../../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js";var
|
|
1
|
+
import n from"../../../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js";var e=`.evaluation-button-module_reviewButton__zHdme {
|
|
2
2
|
color: var(--Brand1-6, #1B3882);
|
|
3
3
|
font-family: "PingFang SC";
|
|
4
4
|
font-size: 16px;
|
|
@@ -16,4 +16,4 @@ import n from"../../../../../../node_modules/.pnpm/style-inject@0.3.0/node_modul
|
|
|
16
16
|
border: 1px solid #4568C1;
|
|
17
17
|
background: var(--Brand1-1, #F5F6FD);
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`,o={reviewButton:"evaluation-button-module_reviewButton__zHdme"};n(e);export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r,{useContext as i,useMemo as c}from"react";import{Modal as p}from"antd";import n from"./index.module.less.js";import u from"../../../../../../assets/svg/llm-evaluation.svg.js";import d from"../../../../../../assets/svg/mm-evaluation.svg.js";import{OcContext as v}from"../../../../../../providers/OcContext.js";import f from"../../../../hooks/useUrl.js";import"../../../../../../providers/OcConfigContext.js";import"classnames";import"../../../../firstHeader.module.less.js";import"../../../../../../extraComponents/icon-font/index.js";import"../../../../secondHeader.js";import"react-router-dom";import"@ant-design/icons";import{evaluationTypeEnum as j}from"../../../../../../constants/enums.js";import"../../../../../../mobile/components/top-nav/top-nav.module.less.js";import"../../../../../top-nav/shared.js";import"../../../../../top-nav/top-nav.module.less.js";import"react-device-detect";import"../evaluation-button/evaluation-button.module.less.js";import"../create-evaluation/create-evaluation.js";import"../../../../../side-nav/side-nav.module.less.js";import"../../../../../footer/footer.module.less.js";import"../../../../../dropdown/dropdown.module.less.js";import"ahooks";import"../../../../../footer-expansion/footer-expansion.module.less.js";import"../../../../../md-render/index.js";import"../../../../../../helper/index.js";var E=Object.defineProperty,a=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,m=(o,e,t)=>e in o?E(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,x=(o,e)=>{for(var t in e||(e={}))_.call(e,t)&&m(o,t,e[t]);if(a)for(var t of a(e))g.call(e,t)&&m(o,t,e[t]);return o};const C=o=>{const{locales:e}=i(v),{urls:t}=f(),l=c(()=>[{icon:u,name:e.llmEvaluation,click:()=>{o.llmClick()}},{icon:d,name:e.mmEvaluation,click:()=>{window.open(`${t.VITE_RANK_URL}/create/custom?type=${j.mm}`,"self")}}],[o]);return r.createElement(r.Fragment,null,r.createElement(p,x({centered:!0,className:n.modal,width:800,footer:[r.createElement("button",{key:"cancel",className:n.cancel,onClick:o.onCancel},e.cancel)]},o),r.createElement("div",{className:n.container},l.map(s=>r.createElement("div",{className:n.content,onClick:s.click},r.createElement("img",{src:s.icon}),r.createElement("span",null,s.name))))))};export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o,{useContext as j,useState as H,useEffect as T,useMemo as d}from"react";import{Dropdown as R,message as J}from"antd";import{goCommon as E,goOCHome as Q}from"../../google-log/home.js";import y from"classnames";import{OcContext as X}from"../../providers/OcContext.js";import{OcConfigContext as Z}from"../../providers/OcConfigContext.js";import ee from"./hooks/useUrl.js";import n from"./firstHeader.module.less.js";import te from"../../assets/svg/newLogo.svg.js";import ne from"../../assets/svg/newLogoEn.svg.js";import W from"../../extraComponents/icon-font/index.js";import oe from"../../assets/svg/blueNewLogo.svg.js";import le from"../../assets/svg/blueNewLogoEn.svg.js";import P from"./secondHeader.js";import{useLocation as re}from"react-router-dom";import"@ant-design/icons";import{webTypeEnum as i,langTypeEnum as L}from"../../constants/enums.js";import"../../mobile/components/top-nav/top-nav.module.less.js";import"../top-nav/shared.js";import"../top-nav/top-nav.module.less.js";import"react-device-detect";import"./components/create-online-evaluation/component/evaluation-button/evaluation-button.module.less.js";import"./components/create-online-evaluation/component/create-evaluation/create-evaluation.js";import"./components/create-online-evaluation/component/pre-create-evaluation/index.module.less.js";import"../side-nav/side-nav.module.less.js";import"../footer/footer.module.less.js";import"../dropdown/dropdown.module.less.js";import"ahooks";import"../footer-expansion/footer-expansion.module.less.js";import"../md-render/index.js";import"../../helper/index.js";var ie=Object.defineProperty,ae=Object.defineProperties,se=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,x=(s,t,c)=>t in s?ie(s,t,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[t]=c,$=(s,t)=>{for(var c in t||(t={}))ce.call(t,c)&&x(s,c,t[c]);if(V)for(var c of V(t))ue.call(t,c)&&x(s,c,t[c]);return s},F=(s,t)=>ae(s,se(t)),me=(s,t,c)=>new Promise((v,a)=>{var k=m=>{try{e(c.next(m))}catch(_){a(_)}},u=m=>{try{e(c.throw(m))}catch(_){a(_)}},e=m=>m.done?v(m.value):Promise.resolve(m.value).then(k,u);e((c=c.apply(s,t)).next())});const de=64,ve=57;let z,I=0;const fe=s=>{const{locales:t}=j(X),{setConfig:c,config:v}=j(Z),{locale:a,setLocale:k}=v,{pathname:u}=re(),{urls:e}=ee(),{handleUnauth:m,logout:_,userInfo:B,jumpLogin:G,webType:l,isDefaultShowSecondMenu:U}=s,[b,C]=H(!1),[f,A]=H(!0);T(()=>{c(s)},[s]),T(()=>{U&&C(!0)},[U]);const M=d(()=>[{title:{"zh-CN":"\u5927\u6A21\u578B\u8BC4\u6D4B","en-US":"LLM"},key:"large-model",href:`${e==null?void 0:e.VITE_COMPASS_URL}large-model`,onClick:E,isActive:u.startsWith("/large-model")||u.startsWith("/arena")||u.startsWith("/doc")||u.startsWith("/rule")||u.startsWith("/policy")||window.location.href.startsWith(e==null?void 0:e.VITE_RANK_URL)||window.location.href.startsWith(e==null?void 0:e.VITE_HUB_URL)||window.location.href.startsWith(e==null?void 0:e.VITE_DOC_URL)||window.location.href.startsWith(e==null?void 0:e.VITE_SPECIAL_LIST_URL)||window.location.href.startsWith(e==null?void 0:e.VITE_DATA_URL)},{title:{"zh-CN":"\u79D1\u5B66\u667A\u80FD\u8BC4\u6D4B","en-US":"Scientific Intelligence"},key:"Intern-Discovery-Eval",href:`${e==null?void 0:e.VITE_COMPASS_URL}Intern-Discovery-Eval`,onClick:E,isActive:u.startsWith("/Intern-Discovery-Eval")},{title:{"zh-CN":"\u5177\u8EAB\u667A\u80FD\u8BC4\u6D4B","en-US":"Embodied Intelligence"},key:"Embodied-Intelligence",href:`${e==null?void 0:e.VITE_COMPASS_URL}embodied-intelligence`,onClick:E,isActive:u.startsWith("/embodied-intelligence")},{title:{"zh-CN":"\u5B89\u5168\u8BC4\u6D4B","en-US":"Safety"},key:"security-evaluation",href:`${e==null?void 0:e.VITE_COMPASS_URL}safety`,onClick:E,isActive:u.startsWith("/safety")},{title:{"zh-CN":"AI \u8BA1\u7B97\u7CFB\u7EDF\u8BC4\u6D4B","en-US":"AI Computing System"},key:"computing-system-evaluation",href:`${e==null?void 0:e.VITE_COMPASS_URL}computing-system`,onClick:E,isActive:u.startsWith("/computing-system")||u.startsWith("/evaluation-plan")},{title:{"zh-CN":"\u5782\u7C7B\u9886\u57DF\u8BC4\u6D4B","en-US":"Industry Verticals"},key:"Vertical-domain-evaluation",href:`${e==null?void 0:e.VITE_COMPASS_URL}ecosystem/finance`,onClick:E,isActive:u.startsWith("/ecosystem/finance")}],[e,u,window.location]),q=r=>me(void 0,[r],function*({key:S}){if(S==="logout")try{yield _()}catch(g){J.error("request error!")}finally{m(),window.location.reload()}}),p=d(()=>l!==i.miniWeb&&l!==i.lightMiniWeb,[l]),K=d(()=>[{label:o.createElement("div",null,t==null?void 0:t.finance," ",o.createElement(W,{type:"icon-GotoOutline"})),key:"https://cnfinbench.opencompass.org.cn/"},{label:o.createElement("div",null,t==null?void 0:t.medical," ",o.createElement(W,{type:"icon-GotoOutline"})),key:"https://medbench.opencompass.org.cn/home"}],[t,e]),O=d(()=>l===i.blueWeb||l===i.miniWeb||l===i.transparentWeb?a==="en-US"?ne:te:a==="en-US"?le:oe,[l,a]),Y=({key:r})=>{r.startsWith(e==null?void 0:e.VITE_COMPASS_URL)?location.href=r:window.open(r)},h=d(()=>!!(v.navMenuList&&v.navMenuList.length>1||!v.navMenuList),[v.navMenuList]),D=d(()=>[{key:"myEvaluation",label:o.createElement("a",{href:`${e==null?void 0:e.VITE_RANK_URL}/online-evaluation?lang=${a}`},t==null?void 0:t.myEvaluation)},{key:"myBenchmark",label:o.createElement("a",{href:`${e==null?void 0:e.VITE_HUB_URL}/benchmarks?lang=${a}`},t==null?void 0:t.myBenchmark)},{key:"myModel",label:o.createElement("a",{href:`${e==null?void 0:e.VITE_RANK_URL}/models?lang=${a}`},t==null?void 0:t.myModel)},{key:"collaboration",label:o.createElement("a",{className:n.collaboration,href:`${e==null?void 0:e.VITE_DATA_URL}/data-list?lang=${a}`},t==null?void 0:t.commitRecord)},{key:"user-center",label:o.createElement("a",{href:`${e==null?void 0:e.VITE_SSO_URL}/usercenter?lang=${a}`,target:"_blank",rel:"noreferrer"},t==null?void 0:t.userCenter)},{key:"logout",label:t==null?void 0:t.logout}],[t==null?void 0:t.myEvaluation,t==null?void 0:t.logout,t==null?void 0:t.userCenter,t==null?void 0:t.myBenchmark,a,e]),N=d(()=>o.createElement("header",{className:y(n.firstHeader,b&&h&&p&&n.animateHide,!b&&p&&n.animateShow,l===i.lightWeb&&n.lightHeader,l===i.lightMiniWeb&&n.lightHeader,l===i.miniWeb&&n.miniWeb,!f&&l===i.miniWeb&&n.blackMiniWeb,l===i.transparentWeb&&!f&&n.blueBackHeaderBox,l===i.lightWeb&&!f&&n.lightBackHeader,a==="en-US"&&n.enHeader)},o.createElement("a",{className:n.logo,href:`${e==null?void 0:e.VITE_COMPASS_URL}?lang=${a}`,onClick:r=>{r.preventDefault(),Q(a,"header",e==null?void 0:e.VITE_COMPASS_URL)}},o.createElement("img",{src:O,alt:"logo"})),o.createElement("div",{className:n.rightBox},M.map(r=>r.key==="Vertical-domain-evaluation"?o.createElement(R,{placement:"bottom",overlayClassName:n.whiteCustomDropdown,menu:{items:K,onClick:Y}},o.createElement("a",{key:r.key,className:y(n.firstMenuItem,r.isActive&&n.activeMenu),target:"_self",rel:"noreferrer"},r.title[a])):o.createElement("a",{key:r.key,className:y(n.firstMenuItem,r.isActive&&n.activeMenu),target:"_self",rel:"noreferrer",onClick:S=>{S.preventDefault(),r.onClick&&r.onClick(a,"header",r.href)}},r.title[a])),o.createElement("div",{onClick:()=>k(a===L.zh?L.en:L.zh),className:n.lang},o.createElement(W,{type:a!=="zh-CN"?"icon-zhongyingqiehuanyingTranslateE":"icon-zhongyingqiehuanzhongTranslateC"})),o.createElement("div",{className:n.userWrapper},B&&B.token?o.createElement(R,{overlayClassName:n.userInfoDropdown,menu:{items:D,onClick:q}},o.createElement("div",{className:n.avatar},o.createElement(W,{type:l===i.lightMiniWeb||l===i.lightWeb?"icon-a-Frame1321316814":"icon-a-Frame1321316813"}))):o.createElement("a",{className:y(n.loginBtn),onClick:()=>{let r=G();r&&(window.location.href=r)}},t==null?void 0:t.login)))),[b,l,p,O,t,f,M,D,h,e,B]),w=d(()=>h?de:ve,[h]);return T(()=>{console.log("scrollOffset",w);const r=S=>{let g=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;window.clearTimeout(z),z=setTimeout(function(){g===0?(C(!1),A(!0)):(A(!1),g>I+w+5?(console.log("\u5411\u4E0B\u6EDA\u52A8"),g>=I&&C(!0)):g<I-w-5&&C(!1)),I=g},50)};return window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}},[window.location.pathname,l,h,w]),o.createElement(o.Fragment,null,b&&p?h?o.createElement(P,F($({},s),{isTop:!1,isScrollDown:b})):o.createElement("div",{className:y(n.headerBox,n.onlyFirstHeaderBox,l===i.lightWeb&&n.lightHeadBox,l===i.lightMiniWeb&&n.lightMiniWeb,l===i.miniWeb&&n.miniWeb,l===i.transparentWeb&&n.transparentWeb)},N):o.createElement("div",{className:y(n.headerBox,!p&&n.onlyFirstHeaderBox,l===i.lightWeb&&n.lightHeadBox,l===i.lightMiniWeb&&n.lightMiniWeb,l===i.miniWeb&&n.miniWeb,l===i.transparentWeb&&n.transparentWeb,l===i.lightWeb&&!f&&n.lightBackHeadBox)},N,p&&o.createElement(P,F($({},s),{isTop:f,isScrollDown:!1}))))};export{fe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useContext as n,useState as
|
|
1
|
+
import{useContext as n,useState as p,useEffect as r}from"react";import{OcConfigContext as a}from"../../../providers/OcConfigContext.js";import"../../../providers/OcContext.js";import"antd";import"classnames";import"../firstHeader.module.less.js";import"../../../extraComponents/icon-font/index.js";import"../secondHeader.js";import"react-router-dom";import"@ant-design/icons";import{envTypeEnum as s}from"../../../constants/enums.js";import"../../../mobile/components/top-nav/top-nav.module.less.js";import"../../top-nav/shared.js";import"../../top-nav/top-nav.module.less.js";import"react-device-detect";import"../components/create-online-evaluation/component/evaluation-button/evaluation-button.module.less.js";import"../components/create-online-evaluation/component/create-evaluation/create-evaluation.js";import"../components/create-online-evaluation/component/pre-create-evaluation/index.module.less.js";import"../../side-nav/side-nav.module.less.js";import"../../footer/footer.module.less.js";import"../../dropdown/dropdown.module.less.js";import"ahooks";import"../../footer-expansion/footer-expansion.module.less.js";import"../../md-render/index.js";import"../../../helper/index.js";const c=()=>{const{config:o}=n(a),[e,t]=p();return r(()=>{(o==null?void 0:o.envType)===s.development?t({VITE_SSO_URL:"https://sso.dev.openxlab.org.cn",VITE_COMPASS_URL:"http://dev.opencompass.org.cn/",VITE_RANK_URL:"http://rank.dev.opencompass.org.cn",VITE_HUB_URL:"http://hub.dev.opencompass.org.cn",VITE_DOC_URL:"http://doc.dev.opencompass.org.cn",VITE_DOC_URL_ZH:"http://doc.dev.opencompass.org.cn/zh_CN/",VITE_DATA_URL:"http://collaboration.dev.opencompass.org.cn",VITE_SPECIAL_LIST_URL:"https://specialist.dev.opencompass.org.cn/"}):(o==null?void 0:o.envType)===s.staging?t({VITE_COMPASS_URL:"https://staging.opencompass.org.cn/",VITE_RANK_URL:"https://rank.staging.opencompass.org.cn",VITE_HUB_URL:"https://hub.staging.opencompass.org.cn",VITE_SSO_URL:"https://sso.staging.openxlab.org.cn",VITE_DOC_URL:"https://doc.staging.opencompass.org.cn",VITE_DOC_URL_ZH:"http://doc.staging.opencompass.org.cn/zh_CN/",VITE_DATA_URL:"https://collaboration.staging.opencompass.org.cn",VITE_SPECIAL_LIST_URL:"https://specialist.staging.opencompass.org.cn/"}):t({VITE_COMPASS_URL:"https://opencompass.org.cn/",VITE_RANK_URL:"https://rank.opencompass.org.cn",VITE_HUB_URL:"https://hub.opencompass.org.cn",VITE_SSO_URL:"https://sso.openxlab.org.cn",VITE_DOC_URL:"https://doc.opencompass.org.cn",VITE_DOC_URL_ZH:"https://doc.opencompass.org.cn/zh_CN/",VITE_DATA_URL:"https://collaboration.opencompass.org.cn",VITE_SPECIAL_LIST_URL:"https://specialist.opencompass.org.cn/"})},[o.envType]),{urls:e}};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import m from"../../providers/OcContext.js";import p from"../../providers/OcConfigContext.js";import
|
|
1
|
+
import m from"../../providers/OcContext.js";import p from"../../providers/OcConfigContext.js";import i from"./header.js";import{ConfigProvider as c}from"antd";import o from"react";var l=Object.defineProperty,n=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(t,r,e)=>r in t?l(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,d=(t,r)=>{for(var e in r||(r={}))f.call(r,e)&&a(t,e,r[e]);if(n)for(var e of n(r))s.call(r,e)&&a(t,e,r[e]);return t};const O=t=>o.createElement(p,null,o.createElement(m,null,o.createElement(c,{theme:{components:{}}},o.createElement(i,d({},t)))));export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n,{useContext as A,useState as I,useRef as B,useEffect as L,useMemo as g}from"react";import{Dropdown as D}from"antd";import V from"../../extraComponents/button/button.js";import{goCommon as W,goHub as x,goRank as M,goRules as O,goKit as H,goData as z,goOCHome as P,clickArena as K,goAnnualBenchmark as F,clickContributeBenchmarks as Y}from"../../google-log/home.js";import t from"./header.module.less.js";import G from"./components/create-online-evaluation/component/evaluation-button/evaluation-button.js";import"./components/create-online-evaluation/component/create-evaluation/create-evaluation.js";import"./components/create-online-evaluation/component/pre-create-evaluation/index.module.less.js";import{OcContext as Z}from"../../providers/OcContext.js";import q from"./hooks/useUrl.js";import{OcConfigContext as J}from"../../providers/OcConfigContext.js";import r from"classnames";import"./firstHeader.module.less.js";import Q from"../../assets/svg/newLogo.svg.js";import X from"../../assets/svg/newLogoEn.svg.js";import ee from"../../extraComponents/icon-font/index.js";import te from"../../assets/svg/blueNewLogo.svg.js";import ne from"../../assets/svg/blueNewLogoEn.svg.js";import{useLocation as oe}from"react-router-dom";import"@ant-design/icons";import{webTypeEnum as u}from"../../constants/enums.js";import"../../mobile/components/top-nav/top-nav.module.less.js";import"../top-nav/shared.js";import"../top-nav/top-nav.module.less.js";import"react-device-detect";import"../side-nav/side-nav.module.less.js";import"../footer/footer.module.less.js";import"../dropdown/dropdown.module.less.js";import{useSize as ae}from"ahooks";import"../footer-expansion/footer-expansion.module.less.js";import"../md-render/index.js";import"../../helper/index.js";import"./components/create-online-evaluation/component/sidebar/sidebar.module.less.js";import le from"../../assets/svg/left-wing.svg.js";import re from"../../assets/svg/right-wing.svg.js";import se from"../../assets/svg/arrow.svg.js";var f;(function(s){s.llm="large-model",s.aiComputingSystem="computing-system",s.embodiedIntelligence="embodied-intelligence",s.industryVerticals="ecosystem/finance",s.safety="safety",s.safetyRank="safety-rank",s.rankDetail="safety/rank",s.evaluationPlan="evaluation-plan"})(f||(f={}));const R="YearEvaluationNotion",ie=s=>{const{webType:i,navMenuList:h,isLLM:v,isTop:E,isScrollDown:c}=s,{locales:a}=A(Z),{config:U}=A(J),[m,p]=I(!1),[w,C]=I(!1),{urls:e}=q(),{pathname:_}=oe(),{locale:l}=U,k=B(),d=ae(k);L(()=>{if(l==="zh-CN"){p(!1);return}c?(d==null?void 0:d.width)<1665?p(!0):p(!1):(d==null?void 0:d.width)<1464?p(!0):p(!1)},[d==null?void 0:d.width,c,l]);const S=g(()=>Array.isArray(h)&&h.length>0?h:[{title:{zh:"\u9879\u76EE\u4ECB\u7ECD",en:"Introduction"},key:"largeModel",href:`${e==null?void 0:e.VITE_COMPASS_URL}${f.llm}`,onClick:W,isActive:_.startsWith(f.llm)},{title:{zh:"\u8BC4\u6D4B\u96C6\u793E\u533A",en:"CompassHub"},key:"CompassHub",href:e==null?void 0:e.VITE_HUB_URL,onClick:x,isActive:location.href.startsWith(e==null?void 0:e.VITE_HUB_URL)},{title:{zh:"\u8BC4\u6D4B\u699C\u5355",en:"CompassRank"},key:"CompassRank",href:e==null?void 0:e.VITE_RANK_URL,onClick:M,isActive:location.href.startsWith(e==null?void 0:e.VITE_RANK_URL)||location.href.startsWith(e==null?void 0:e.VITE_SPECIAL_LIST_URL)},{title:{zh:"\u699C\u5355\u89C4\u5219",en:"Rules"},key:"Rules",href:`${e==null?void 0:e.VITE_COMPASS_URL}`,onClick:O,isActive:location.href.startsWith(`${e==null?void 0:e.VITE_COMPASS_URL}rule`)},{title:{zh:"\u8BC4\u6D4B\u5DE5\u5177",en:"CompassKit"},key:"CompassKit",isExternal:!0,href:{zh:"https://github.com/open-compass/",en:"https://github.com/open-compass/"},onClick:H,isActive:!1},{title:{zh:"\u4F7F\u7528\u6307\u5357",en:"Docs"},key:"Docs",isExternal:!0,href:{zh:`${e==null?void 0:e.VITE_DOC_URL_ZH}`,en:`${e==null?void 0:e.VITE_DOC_URL}`},isActive:location.href.startsWith(e==null?void 0:e.VITE_DOC_URL)},{title:{zh:"\u6D66\u6C5F\u79D1\u5B66\u8BC4\u6D4B\u5171\u521B\u8BA1\u5212",en:"AI4S Program"},key:"collaboration",href:`${e==null?void 0:e.VITE_DATA_URL}`,onClick:z,isActive:location.href.startsWith(e==null?void 0:e.VITE_DATA_URL)}],[e,_,h,location.href]),N=g(()=>i===u.blueWeb||i===u.miniWeb||i===u.transparentWeb?l==="en-US"?X:Q:l==="en-US"?ne:te,[i,l]),T=o=>{window.open(o)},$=g(()=>[{key:"llm",label:n.createElement("a",{href:`${e==null?void 0:e.VITE_COMPASS_URL}arena?lang=${l}`},a==null?void 0:a.llmArena)},{key:"mm",label:n.createElement("a",{href:`${e==null?void 0:e.VITE_COMPASS_URL}arena/multimodal?lang=${l}`},a==null?void 0:a.mmArena)},{key:"tcm",label:n.createElement("a",{href:`${e==null?void 0:e.VITE_COMPASS_URL}arena/task?lang=${l}`},a==null?void 0:a.ArenaMode)}],[a==null?void 0:a.llmArena,a==null?void 0:a.mmArena,l,e]);return L(()=>{!v||!localStorage.getItem(`${R}`)&&location.href.startsWith(e==null?void 0:e.VITE_HUB_URL)&&(C(!1),localStorage.setItem(`${R}`,"1"))},[v,e]),n.createElement("header",{className:r(t.header,l==="en-US"&&c&&t.enHeader,t.secondMenu,l!=="en-US"&&c&&t.zhHeader,i!==u.lightWeb&&c&&t.topSecondMenu,i===u.lightWeb&&c&&t.topSecondMenuHub,i===u.lightWeb&&t.lightSecondMenu,i===u.transparentWeb&&!E&&!c&&t.blueBackSecondHeaderBox,i===u.lightWeb&&!E&&!c&&t.lightBackSecondMenu),ref:k},n.createElement("div",{className:t.headerLeft},c&&n.createElement("a",{className:t.logo,href:`${e==null?void 0:e.VITE_COMPASS_URL}?lang=${l}`,onClick:o=>{o.preventDefault(),P(l,"header",e==null?void 0:e.VITE_COMPASS_URL)}},n.createElement("img",{src:N,alt:"logo"})),n.createElement("div",{className:t.menus},S==null?void 0:S.map(o=>n.createElement("a",{key:o.key,className:r(t.menuItem,o.isActive&&t.activeMenuItem),style:{fontWeight:o.href===window.location.origin?600:400},target:o.isExternal?"_blank":"_self",href:`${o.href}${o.isExternal?"":`?lang=${l}`}`,rel:"noreferrer",onClick:j=>{var b,y;j.preventDefault(),o.isExternal?T(l==="zh-CN"?`${(b=o.href)==null?void 0:b.zh}`:`${(y=o.href)==null?void 0:y.en}`):o.onClick&&o.onClick(l,o.key,o.href)}},(o==null?void 0:o.customNode)&&(o==null?void 0:o.customNode),o.title[l==null?void 0:l.split("-")[0]],o.isExternal&&n.createElement(ee,{type:"icon-GotoOutline",style:{marginLeft:4,fontSize:"16px"}}))),v&&n.createElement(n.Fragment,null,n.createElement(D,{overlayClassName:t.arenaDropdown,placement:"bottom",menu:{items:$}},n.createElement("a",{className:r(t.menuItem,location.href.startsWith((e==null?void 0:e.VITE_COMPASS_URL)+"arena")&&t.activeMenuItem),href:`${e==null?void 0:e.VITE_COMPASS_URL}arena?lang=${l}`,onClick:o=>{o.preventDefault(),K(l,{key:"llm"},e==null?void 0:e.VITE_COMPASS_URL)}},n.createElement("div",{className:t.arenaWords},a==null?void 0:a.arena)))),v&&n.createElement("div",{onClick:()=>{F(l,"CompassHub",`${e==null?void 0:e.VITE_HUB_URL}/2025-annual-benchmark`)},className:r(t.yearEvaluation,m&&t.wrapYearEvaluation)},n.createElement("div",{className:t.innerBtn},n.createElement("img",{src:le,className:r(m?t.wrapLeftWing:t.leftWing,t.wing)}),n.createElement("img",{src:re,className:r(m?t.wrapRightWing:t.rightWing,t.wing)})),n.createElement("div",{className:r(m&&t.wrapStyle,t.innerYearEvaluation)},a==null?void 0:a.yearEvaluation),w&&n.createElement(n.Fragment,null,n.createElement("img",{src:se,className:r(m&&t.wrapArrow,t.arrow)}),n.createElement("div",{className:r(m&&t.wrapModalContainer,t.modalContainer)},n.createElement("span",{className:t.title},a==null?void 0:a.yearEvaluationTitle),n.createElement("div",{className:t.body},a==null?void 0:a.yearEvaluationDesc),n.createElement("div",{className:t.footer},n.createElement(V,{className:t.knownButton,type:"primary",onClick:o=>{o.stopPropagation(),C(!1)}},a==null?void 0:a.yearEvaluationKnown))))))),v&&n.createElement("div",{className:t.headerRight},n.createElement("a",{href:`${e==null?void 0:e.VITE_HUB_URL}/dataset-submit?lang=${l}`,className:r(t.addDatasetBtn,t.contributeBtn,m&&t.wrapBtn),onClick:o=>{o.preventDefault(),Y(l,e==null?void 0:e.VITE_HUB_URL)}},a==null?void 0:a.contributeBenchmarks),n.createElement(G,null,n.createElement("div",{className:r(m&&t.wrapBtn,t.addDatasetBtn)},a==null?void 0:a.onlineEvaluation))))};export{f as BigCompassModuleEnum,ie as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i,{memo as h,useState as M,useEffect as p}from"react";import A from"react-markdown";import{Prism as C}from"react-syntax-highlighter";import g from"remark-math";import P from"rehype-katex";import S from"remark-gfm";import u from"./index.module.less.js";import v from"classnames";import{coy as H}from"react-syntax-highlighter/dist/esm/styles/prism";import $ from"remark-breaks";import{isOldSafari as j}from"../../utils/utils.js";var I=Object.defineProperty,d=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,b=(t,a,l)=>a in t?I(t,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[a]=l,E=(t,a)=>{for(var l in a||(a={}))y.call(a,l)&&b(t,l,a[l]);if(d)for(var l of d(a))k.call(a,l)&&b(t,l,a[l]);return t},w=(t,a)=>{var l={};for(var o in t)y.call(t,o)&&a.indexOf(o)<0&&(l[o]=t[o]);if(t!=null&&d)for(var o of d(t))a.indexOf(o)<0&&k.call(t,o)&&(l[o]=t[o]);return l};const _=h(t=>i.createElement("div",{className:v(u.codeOperationHeader)},i.createElement("div",{className:u.iconWithText},t.codeLanguage)));_.displayName="HighlightHeader";const R=t=>{const[a,l]=M(""),o=e=>(e==null?void 0:e.length)>0&&(e==null?void 0:e.replaceAll)?e==null?void 0:e.replaceAll("\uFFFD",""):"",x=e=>(e==null?void 0:e.length)>0&&e.replace?e.replace(/(\$\$)(\$\$)/g,"$1 $2"):"";function F(e){const n=/\$+[^$]+\$+/g,r=e.split(n),c=e.match(n)||[],s=[];for(let m=0;m<r.length;m++)s.push(r[m]),m<c.length&&s.push(c[m]);return s}const N=e=>{const n=/\$(.*?)\$/g,r=/\$\$(.*?)\$\$/gs,c=[];let s;for(;(s=n.exec(e))!==null;)s[1]&&c.push(s[1]);for(;(s=r.exec(e))!==null;)s[1]&&c.push(s[1]);return c},O=e=>{var n,r;return(r=(n=e==null?void 0:e.replaceAll("\\(","$$"))==null?void 0:n.replaceAll("\\)","$$"))==null?void 0:r.replaceAll(/\\\[([\s\S]*?)\\\]/g,"$$$1$$")};return p(()=>{const e=o(t.message),n=O(e),r=x(n),c=F(r);let s=r;c&&c.length>0&&(s=c.map(f=>f.startsWith("$$")&&f.endsWith("$$")?`
|
|
2
2
|
$$
|
|
3
|
-
${
|
|
3
|
+
${N(f)}
|
|
4
4
|
$$
|
|
5
|
-
`:f).join("")),l(
|
|
6
|
-
`)<0)return
|
|
5
|
+
`:f).join("")),l(s)},[t.message]),p(()=>{if(typeof window!="undefined"&&window.document){const e="https://static.openxlab.org.cn/oc-webkit/katex/katex/dist/katex.min.css",n=document.getElementsByTagName("head")[0],r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href",e),r.setAttribute("integrity","sha384-3UiQGuEI4TTMaFmGIZumfRPtfKQ3trwQE2JgosJxCnGmQpL/lJdjpcHkaaFwHlcI"),r.setAttribute("crossorigin","anonymous"),n.appendChild(r)}},[]),i.createElement("div",{className:u.container},i.createElement(A,{components:{code:e=>{var n=e,{children:r="",className:c}=n,s=w(n,["children","className"]);if(r.indexOf(`
|
|
6
|
+
`)<0)return i.createElement("div",{className:u.beautifulCodeBox},i.createElement("span",{className:u.beautifulCode},r));{const m=/language-(\w+)/.exec(c||"");return i.createElement(i.Fragment,null,i.createElement(_,{codeLanguage:(m==null?void 0:m[1])||"",text:r}),i.createElement(C,E({style:H,language:(m==null?void 0:m[1])||"python",PreTag:"div",className:v(u.syntaxHightWrapper)},s),r))}},table:e=>{var n=w(e,[]);return i.createElement("div",{className:u.tableContainer},i.createElement("table",E({},n)))},a:e=>i.createElement("a",{href:e.href,target:"_blank",rel:"noreferrer"},e.children),img:e=>(t==null?void 0:t.baseImgUrl)?i.createElement("img",{src:`${t==null?void 0:t.baseImgUrl}${e.src}`,alt:(e==null?void 0:e.alt)||""}):i.createElement("img",{src:e==null?void 0:e.src,alt:(e==null?void 0:e.alt)||""})},remarkPlugins:j()?[g,$]:[S,g,$],rehypePlugins:[P]},o(a)))};var U=h(R);export{U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import l from"../../providers/OcContext.js";import i from"../../providers/OcConfigContext.js";import
|
|
1
|
+
import l from"../../providers/OcContext.js";import i from"../../providers/OcConfigContext.js";import c from"./online-evaluation.js";import o from"react";var p=Object.defineProperty,n=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,a=(e,r,t)=>r in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,u=(e,r)=>{for(var t in r||(r={}))f.call(r,t)&&a(e,t,r[t]);if(n)for(var t of n(r))m.call(r,t)&&a(e,t,r[t]);return e};const O=e=>o.createElement(i,null,o.createElement(l,null,o.createElement(c,u({},e),e.children)));export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n,{useContext as o,useEffect as
|
|
1
|
+
import n,{useContext as o,useEffect as a}from"react";import i from"../header/components/create-online-evaluation/component/evaluation-button/evaluation-button.js";import{OcConfigContext as r}from"../../providers/OcConfigContext.js";const u=t=>{const{setConfig:e}=o(r);return a(()=>{e(t)},[t]),n.createElement(i,null,t.children)};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from"../../providers/OcContext.js";import l from"../../providers/OcConfigContext.js";import c from"./side-nav.js";import o from"react";var p=Object.defineProperty,n=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,a=(e,r,t)=>r in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,s=(e,r)=>{for(var t in r||(r={}))f.call(r,t)&&a(e,t,r[t]);if(n)for(var t of n(r))m.call(r,t)&&a(e,t,r[t]);return e};const v=e=>o.createElement(l,null,o.createElement(i,null,o.createElement(c,s({},e),e.children)));export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n,{useContext as
|
|
1
|
+
import n,{useContext as u,useEffect as E,useMemo as p}from"react";import{OcConfigContext as k}from"../../providers/OcConfigContext.js";import o from"./side-nav.module.less.js";import N from"../header/hooks/useUrl.js";import m from"classnames";import r from"../../extraComponents/icon-font/index.js";import{OcContext as f}from"../../providers/OcContext.js";const g=s=>{const{setConfig:d,config:v}=u(k),{locales:i}=u(f);E(()=>{d(s)},[s]);const{urls:e}=N(),{locale:t}=v,c=p(()=>[{title:i==null?void 0:i.onlineEvaluation,subMenus:[{icon:"icon-OC_MyEvaluation",title:{"en-US":"Evaluation","zh-CN":"\u6211\u7684\u8BC4\u6D4B"},key:"/online-evaluation",navigate:`${e==null?void 0:e.VITE_RANK_URL}/online-evaluation?lang=${t}`},{icon:"icon-OC_Benchmark",title:{"en-US":"Benchmark","zh-CN":"\u6211\u7684\u8BC4\u6D4B\u96C6"},key:"/benchmarks",navigate:`${e==null?void 0:e.VITE_HUB_URL}/benchmarks?lang=${t}`},{icon:"icon-moxingModel",title:{"en-US":"Model","zh-CN":"\u6211\u7684\u6A21\u578B"},key:"/models",navigate:`${e==null?void 0:e.VITE_RANK_URL}/models?lang=${t}`}]},{title:i==null?void 0:i.scienceCommit,subMenus:[{icon:"icon-tijiaojiluSubmission",title:{"en-US":"Submission Record","zh-CN":"\u63D0\u4EA4\u8BB0\u5F55"},key:"/data-list",navigate:`${e==null?void 0:e.VITE_DATA_URL}/data-list?lang=${t}`}]}],[t,e,i]),C=()=>window.open(`${e==null?void 0:e.VITE_RANK_URL}/feedback?lang=${t}`);return n.createElement("div",{className:o.menu},c==null?void 0:c.map(l=>n.createElement("div",{key:l==null?void 0:l.title,className:m(o.menuItem)},n.createElement("div",{className:o.title},l.title),l.subMenus.map(a=>n.createElement("div",{className:m(o.subMenu,window.location.pathname.includes(a.key)&&o.active),onClick:()=>window.location.replace(a.navigate)},n.createElement(r,{className:o.icon,type:a.icon}),n.createElement("span",{className:o.subMenuTitle},a.title[t]))))),n.createElement("div",{className:o.menuFooter,onClick:C},n.createElement(r,{type:"icon-FeedbackOutlined"}),n.createElement("span",null,t==="zh-CN"?"\u610F\u89C1\u53CD\u9988":"Feedback")))};export{g as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js";var n=`.side-nav-module_menu__mQxb8 {
|
|
2
2
|
min-height: calc(100vh - 64px - 256px);
|
|
3
3
|
height: 100%;
|
|
4
4
|
position: relative;
|
|
@@ -77,4 +77,4 @@ import n from"../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inj
|
|
|
77
77
|
color: #4568c1;
|
|
78
78
|
background-color: #f5f6fd;
|
|
79
79
|
}
|
|
80
|
-
`,o={menu:"side-nav-module_menu__mQxb8",menuItem:"side-nav-module_menuItem__-9XFd",title:"side-nav-module_title__0qoZN",subMenu:"side-nav-module_subMenu__X7pJz",icon:"side-nav-module_icon__pDQ5U",subMenuTitle:"side-nav-module_subMenuTitle__gDid5",active:"side-nav-module_active__DLL9M",menuFooter:"side-nav-module_menuFooter__-Fv5F"};n
|
|
80
|
+
`,o={menu:"side-nav-module_menu__mQxb8",menuItem:"side-nav-module_menuItem__-9XFd",title:"side-nav-module_title__0qoZN",subMenu:"side-nav-module_subMenu__X7pJz",icon:"side-nav-module_icon__pDQ5U",subMenuTitle:"side-nav-module_subMenuTitle__gDid5",active:"side-nav-module_active__DLL9M",menuFooter:"side-nav-module_menuFooter__-Fv5F"};e(n);export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from"../../mobile/components/top-nav/top-nav.js";import c from"../../providers/OcContext.js";import i from"../../providers/OcConfigContext.js";import m from"./top-nav.js";import t from"react";import{isMobile as l}from"react-device-detect";var s=Object.defineProperty,n=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,p=(o,r,e)=>r in o?s(o,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[r]=e,O=(o,r)=>{for(var e in r||(r={}))f.call(r,e)&&p(o,e,r[e]);if(n)for(var e of n(r))v.call(r,e)&&p(o,e,r[e]);return o};const u=o=>{const r=l?a:m;return t.createElement(i,null,t.createElement(c,null,t.createElement(r,O({},o))))};export{u as default};
|