@ccw-api/api 0.10.2 → 0.11.0

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.
Files changed (64) hide show
  1. package/README.md +64 -6
  2. package/dist/account-Dk_iscrW.d.cts +8 -0
  3. package/dist/account-Dk_iscrW.d.ts +8 -0
  4. package/dist/api-eD9o12yg.d.cts +41 -0
  5. package/dist/api-eD9o12yg.d.ts +41 -0
  6. package/dist/bfs-web/index.cjs +2 -0
  7. package/dist/bfs-web/index.d.cts +5 -0
  8. package/dist/bfs-web/index.d.ts +5 -0
  9. package/dist/bfs-web/index.global.js +29 -0
  10. package/dist/bfs-web/index.js +2 -0
  11. package/dist/community-web/index.cjs +2 -0
  12. package/dist/community-web/index.d.cts +6 -0
  13. package/dist/community-web/index.d.ts +6 -0
  14. package/dist/community-web/index.global.js +29 -0
  15. package/dist/community-web/index.js +2 -0
  16. package/dist/community-web-cloud-database/index.cjs +2 -0
  17. package/dist/community-web-cloud-database/index.d.cts +2 -0
  18. package/dist/community-web-cloud-database/index.d.ts +2 -0
  19. package/dist/community-web-cloud-database/index.global.js +29 -0
  20. package/dist/community-web-cloud-database/index.js +2 -0
  21. package/dist/extensions-Bj9XMupR.d.cts +662 -0
  22. package/dist/extensions-zuu8XVBR.d.ts +662 -0
  23. package/dist/gandi-main/index.cjs +2 -0
  24. package/dist/gandi-main/index.d.cts +3 -0
  25. package/dist/gandi-main/index.d.ts +3 -0
  26. package/dist/gandi-main/index.global.js +29 -0
  27. package/dist/gandi-main/index.js +2 -0
  28. package/dist/index-BDpiLiUN.d.ts +104 -0
  29. package/dist/index-BE998Kka.d.cts +104 -0
  30. package/dist/index-BrxSkWbg.d.cts +2289 -0
  31. package/dist/index-CTK9UFeW.d.cts +41 -0
  32. package/dist/index-CTK9UFeW.d.ts +41 -0
  33. package/dist/index-CYQhPzUX.d.ts +108 -0
  34. package/dist/index-Ci0X9uqV.d.cts +108 -0
  35. package/dist/index-DBAUdwJo.d.ts +2289 -0
  36. package/dist/index-DBnhnINQ.d.cts +28 -0
  37. package/dist/index-DHBvF_JC.d.ts +40 -0
  38. package/dist/index-DcBdyIv0.d.cts +40 -0
  39. package/dist/index-Df4POgQq.d.ts +28 -0
  40. package/dist/index.cjs +2 -1
  41. package/dist/index.d.cts +21 -3310
  42. package/dist/index.d.ts +21 -3310
  43. package/dist/index.global.js +7 -8
  44. package/dist/index.js +2 -1
  45. package/dist/op-parent-api/index.cjs +2 -0
  46. package/dist/op-parent-api/index.d.cts +1 -0
  47. package/dist/op-parent-api/index.d.ts +1 -0
  48. package/dist/op-parent-api/index.global.js +29 -0
  49. package/dist/op-parent-api/index.js +2 -0
  50. package/dist/pages-BgT6bhJd.d.cts +46 -0
  51. package/dist/pages-BgT6bhJd.d.ts +46 -0
  52. package/dist/session-Cq-kUclp.d.ts +48 -0
  53. package/dist/session-DGUV-m-G.d.cts +48 -0
  54. package/dist/setToken.cjs +1 -0
  55. package/dist/setToken.d.cts +1 -0
  56. package/dist/setToken.d.ts +1 -0
  57. package/dist/setToken.global.js +29 -0
  58. package/dist/setToken.js +1 -0
  59. package/dist/sso/index.cjs +2 -0
  60. package/dist/sso/index.d.cts +4 -0
  61. package/dist/sso/index.d.ts +4 -0
  62. package/dist/sso/index.global.js +29 -0
  63. package/dist/sso/index.js +2 -0
  64. package/package.json +44 -7
@@ -0,0 +1,28 @@
1
+ import { M as MongoDBId } from './api-eD9o12yg.cjs';
2
+ import { E as Extension } from './extensions-Bj9XMupR.cjs';
3
+ import { P as PageArgs, a as PagesRes } from './pages-BgT6bhJd.cjs';
4
+
5
+ type Res$1 = PagesRes<Extension>;
6
+ /**
7
+ * 获取用户扩展列表分页
8
+ * @param {MongoDBId} userOid 用户id
9
+ * @param {Partial<PageArgs<"createdAt" | "updatedAt" | T>>} pageArgs_ 分页参数
10
+ * @returns {Promise<Res>} 扩展分页列表
11
+ */
12
+ declare function getUserExtensions<T extends string>(userOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | "updatedAt" | T>>): Promise<Res$1>;
13
+
14
+ type Res = boolean;
15
+ /**
16
+ * 向扩展投币
17
+ * @param {ExtensionDonateEid} eid 扩展id
18
+ * @param {number} bucks 捐赠金币数量
19
+ * @returns {Promise<Res>} 是否捐赠成功
20
+ */
21
+ declare function donateExtension(eid: string, bucks: number): Promise<Res>;
22
+
23
+ declare const bfsWeb: {
24
+ donateExtension: typeof donateExtension;
25
+ getUserExtensions: typeof getUserExtensions;
26
+ };
27
+
28
+ export { bfsWeb as b, donateExtension as d, getUserExtensions as g };
@@ -0,0 +1,40 @@
1
+ import { M as MongoDBId } from './api-eD9o12yg.js';
2
+
3
+ type SaveCloudVariableRes<T extends Record<string, unknown>> = T;
4
+ /**
5
+ * 保存作品云变量到云数据库
6
+ * @param {MongoDBId} projectId 作品id
7
+ * @param {string} secondaryKey 次级键 - 变量名或标识
8
+ * @param {T} value 要保存数据
9
+ * @returns {Promise<SaveCloudVariableRes<T>>} 保存后的值对象
10
+ */
11
+ declare function saveProjectCloudVariable<T extends string>(projectId: MongoDBId, secondaryKey: string, value: T): Promise<SaveCloudVariableRes<{
12
+ v: T;
13
+ }>>;
14
+ /**
15
+ * 保存数据到用户云数据库
16
+ * @param {MongoDBId} projectId 作品id
17
+ * @param {number} studentNum 次级键 - 用户id
18
+ * @param {T} value 要保存的键值对
19
+ * @returns {Promise<SaveCloudVariableRes<T>>} 保存后的值对象
20
+ */
21
+ declare function saveUserCloudVariable<T extends Record<string, string>>(projectId: MongoDBId, studentNum: number, value: T): Promise<SaveCloudVariableRes<T>>;
22
+
23
+ type Res = {};
24
+ /**
25
+ * 查询云变量详情 V2
26
+ * @param {string} accessKey 访问密钥(如作品 OID)
27
+ * @param {string} primaryKey 主键(如 `${projectId}-u`)
28
+ * @param {string} secondaryKey 次级键
29
+ * @param {string[]} filterKeys 过滤的变量名列表
30
+ * @returns {Promise<Res>} 云变量详情
31
+ */
32
+ declare function getCloudVariableDetailV2(accessKey: string, primaryKey: string, secondaryKey: string, filterKeys: string[]): Promise<Res>;
33
+
34
+ declare const communityWebCloudDatabase: {
35
+ saveProjectCloudVariable: typeof saveProjectCloudVariable;
36
+ saveUserCloudVariable: typeof saveUserCloudVariable;
37
+ getCloudVariableDetailV2: typeof getCloudVariableDetailV2;
38
+ };
39
+
40
+ export { saveUserCloudVariable as a, communityWebCloudDatabase as c, getCloudVariableDetailV2 as g, saveProjectCloudVariable as s };
@@ -0,0 +1,40 @@
1
+ import { M as MongoDBId } from './api-eD9o12yg.cjs';
2
+
3
+ type SaveCloudVariableRes<T extends Record<string, unknown>> = T;
4
+ /**
5
+ * 保存作品云变量到云数据库
6
+ * @param {MongoDBId} projectId 作品id
7
+ * @param {string} secondaryKey 次级键 - 变量名或标识
8
+ * @param {T} value 要保存数据
9
+ * @returns {Promise<SaveCloudVariableRes<T>>} 保存后的值对象
10
+ */
11
+ declare function saveProjectCloudVariable<T extends string>(projectId: MongoDBId, secondaryKey: string, value: T): Promise<SaveCloudVariableRes<{
12
+ v: T;
13
+ }>>;
14
+ /**
15
+ * 保存数据到用户云数据库
16
+ * @param {MongoDBId} projectId 作品id
17
+ * @param {number} studentNum 次级键 - 用户id
18
+ * @param {T} value 要保存的键值对
19
+ * @returns {Promise<SaveCloudVariableRes<T>>} 保存后的值对象
20
+ */
21
+ declare function saveUserCloudVariable<T extends Record<string, string>>(projectId: MongoDBId, studentNum: number, value: T): Promise<SaveCloudVariableRes<T>>;
22
+
23
+ type Res = {};
24
+ /**
25
+ * 查询云变量详情 V2
26
+ * @param {string} accessKey 访问密钥(如作品 OID)
27
+ * @param {string} primaryKey 主键(如 `${projectId}-u`)
28
+ * @param {string} secondaryKey 次级键
29
+ * @param {string[]} filterKeys 过滤的变量名列表
30
+ * @returns {Promise<Res>} 云变量详情
31
+ */
32
+ declare function getCloudVariableDetailV2(accessKey: string, primaryKey: string, secondaryKey: string, filterKeys: string[]): Promise<Res>;
33
+
34
+ declare const communityWebCloudDatabase: {
35
+ saveProjectCloudVariable: typeof saveProjectCloudVariable;
36
+ saveUserCloudVariable: typeof saveUserCloudVariable;
37
+ getCloudVariableDetailV2: typeof getCloudVariableDetailV2;
38
+ };
39
+
40
+ export { saveUserCloudVariable as a, communityWebCloudDatabase as c, getCloudVariableDetailV2 as g, saveProjectCloudVariable as s };
@@ -0,0 +1,28 @@
1
+ import { M as MongoDBId } from './api-eD9o12yg.js';
2
+ import { E as Extension } from './extensions-zuu8XVBR.js';
3
+ import { P as PageArgs, a as PagesRes } from './pages-BgT6bhJd.js';
4
+
5
+ type Res$1 = PagesRes<Extension>;
6
+ /**
7
+ * 获取用户扩展列表分页
8
+ * @param {MongoDBId} userOid 用户id
9
+ * @param {Partial<PageArgs<"createdAt" | "updatedAt" | T>>} pageArgs_ 分页参数
10
+ * @returns {Promise<Res>} 扩展分页列表
11
+ */
12
+ declare function getUserExtensions<T extends string>(userOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | "updatedAt" | T>>): Promise<Res$1>;
13
+
14
+ type Res = boolean;
15
+ /**
16
+ * 向扩展投币
17
+ * @param {ExtensionDonateEid} eid 扩展id
18
+ * @param {number} bucks 捐赠金币数量
19
+ * @returns {Promise<Res>} 是否捐赠成功
20
+ */
21
+ declare function donateExtension(eid: string, bucks: number): Promise<Res>;
22
+
23
+ declare const bfsWeb: {
24
+ donateExtension: typeof donateExtension;
25
+ getUserExtensions: typeof getUserExtensions;
26
+ };
27
+
28
+ export { bfsWeb as b, donateExtension as d, getUserExtensions as g };
package/dist/index.cjs CHANGED
@@ -1 +1,2 @@
1
- var ms=Object.create;var u=Object.defineProperty;var ds=Object.getOwnPropertyDescriptor;var us=Object.getOwnPropertyNames;var gs=Object.getPrototypeOf,ls=Object.prototype.hasOwnProperty;var Rs=(e,t)=>{for(var o in t)u(e,o,{get:t[o],enumerable:!0})},w=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of us(t))!ls.call(e,s)&&s!==o&&u(e,s,{get:()=>t[s],enumerable:!(r=ds(t,s))||r.enumerable});return e};var P=(e,t,o)=>(o=e!=null?ms(gs(e)):{},w(t||!e||!e.__esModule?u(o,"default",{value:e,enumerable:!0}):o,e)),ys=e=>w(u({},"__esModule",{value:!0}),e);var Ki={};Rs(Ki,{bfsWeb:()=>A,communityWeb:()=>R,communityWebCloudDatabase:()=>b,default:()=>Hi,gandiMain:()=>x,opParentApi:()=>f,setToken:()=>cs.setToken,sso:()=>l});module.exports=ys(Ki);var C=require("@ccw-api/axios"),xs="https://sso.ccw.site/web/auth/login-by-password";async function S(e,t,o={device:"Node",browser:"Node.js"}){let r={loginKey:e,password:t,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})},{extra:s,...n}=await C.ccwAxios.post(xs,r).then(c=>c.data.body),a=JSON.parse(s);return{...n,extra:a}}var h=require("@ccw-api/axios"),As="https://sso.ccw.site/web/auth/logout";async function I(){return await h.ccwAxios.post(As,{}).then(e=>e.data.body)}var T=require("@ccw-api/axios"),bs="https://sso.ccw.site/web/auth/logout_by_session";async function D(e){return await T.ccwAxios.post(bs,{id:e}).then(t=>t.data.body)}var q=require("@ccw-api/axios"),fs="https://sso.ccw.site/web/auth/assistant/captcha/v2/create";async function M(e,t="loginbyPhone",o="86",r="ccw_sms",s){let n={recipient:e,countryCode:o,scene:t,ruleCode:r,captcha:s};return await q.ccwAxios.post(fs,n).then(a=>a.data.body)}var B=require("@ccw-api/axios"),ws="https://sso.ccw.site/web/auth/v3/login/by_phone";async function E(e,t,o={device:"Node",browser:"Node.js"},r="86",s="ccw_sms",n="loginbyPhone"){let{extra:a,...c}=await B.ccwAxios.post(ws,{phone:e,code:t,countryCode:r,ruleCode:s,scene:n,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})}).then(m=>m.data.body),d=JSON.parse(a);return{...c,extra:d}}var l={loginByPassword:S,logout:I,logoutBySession:D,createSmsCaptcha:M,loginByPhone:E};var O=require("@ccw-api/axios"),Ps="https://community-web.ccw.site/api/v1/short_code/encode";async function L(e,t,o,r){let s={origin:{inviterAvatar:t,inviterName:o,inviterId:e,inviterType:"STUDENT",entrance:"create_detail",creationOid:r}};return await O.ccwAxios.post(Ps,s).then(n=>n.data.body)}var U=P(require("@ccw-api/axios"),1),Cs="https://community-web.ccw.site/approval/list";async function _(e){let t={objectId:e,objectType:"STUDENT"};return await U.default.post(Cs,t).then(o=>o.data.body)}var k=P(require("@ccw-api/axios"),1),Ss="https://community-web.ccw.site/base/dateTime";async function N(){return k.default.post(Ss,void 0).then(e=>e.data.body)}var F=require("@ccw-api/axios"),hs="https://community-web.ccw.site/campaign_resource/detail";async function v(e){return await F.ccwAxios.post(hs,{keyword:e}).then(t=>t.data.body)}var j=require("@ccw-api/axios"),Is="https://community-web.ccw.site/check_in_record/detail";async function G(){let e={scene:"HOMEPAGE"};return await j.ccwAxios.post(Is,e).then(t=>t.data.body)}var H=require("@ccw-api/axios"),Ts="https://community-web.ccw.site/check_in_record/insert";async function K(){let e={scene:"HOMEPAGE"};return await H.ccwAxios.post(Ts,e).then(t=>t.data.body)}var V=require("@ccw-api/axios"),Ds="https://community-web.ccw.site/cloud_asset/user/privacy";async function z(){return await V.ccwAxios.post(Ds,{}).then(e=>e.data.body)}var W=require("@ccw-api/axios");function i(e,t){let o=new URL(e);return Object.entries(t).forEach(([r,s])=>{s!=null&&o.searchParams.set(r,s)}),o.toString()}var p={page:1,perPage:20,sortType:"DESC",sortField:""};var qs="https://community-web.ccw.site/cloud_asset/search",Ms={...p,sortField:"createdAt"};async function $(e,t="/",o={}){let r={...Ms,...o},s=i(qs,r),n={creatorOid:e,path:t};return await W.ccwAxios.post(s,n).then(a=>a.data.body)}var Y=require("@ccw-api/axios");var Bs="https://community-web.ccw.site/comment/page";async function J(e,t,o=["PUBLISHED","FOLDED"],r={sortField:"createdAt"}){let s={...p,...r},n=i(Bs,s),a={topicId:e,parentId:t,statuses:o};return await Y.ccwAxios.post(n,a).then(c=>c.data.body)}var Z=require("@ccw-api/axios");var Es="https://community-web.ccw.site/comment/page_by_topic",Os={...p,sortField:"createdAt"};async function X(e,t,o,r={sortField:"createdAt"}){let s={...Os,...r},n=i(Es,s),a={subjectOid:e,subjectType:t,sectionType:o};return await Z.ccwAxios.post(n,a).then(c=>c.data.body)}var Q=require("@ccw-api/axios"),Ls="https://community-web.ccw.site/config/detail";async function ee(e){let t={key:e};return await Q.ccwAxios.post(Ls,t).then(o=>o.data.body)}var te=require("@ccw-api/axios");var Us="https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";async function oe(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Us,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e,source:"CCW_OFFICIAL"};return await te.ccwAxios.post(r,s).then(n=>n.data.body)}var re=require("@ccw-api/axios"),_s="https://community-web.ccw.site/creation/detail";async function se(e,t,o=""){let r={oid:e,accessKey:t,mode:o};return await re.ccwAxios.post(_s,r).then(s=>s.data.body)}var ne=require("@ccw-api/axios"),ks="https://community-web.ccw.site/creation/excellent/list";async function ie(e){let t={num:e};return await ne.ccwAxios.post(ks,t).then(o=>o.data.body)}var pe=require("@ccw-api/axios"),Ns="https://community-web.ccw.site/creation/introduction/detail";async function ae(e){let t={studentOid:e};return await pe.ccwAxios.post(Ns,t).then(o=>o.data.body)}var ce=require("@ccw-api/axios"),Fs="https://community-web.ccw.site/creation/like/detail";async function me(e){let t={creationOid:e};return await ce.ccwAxios.post(Fs,t).then(o=>o.data.body)}var de=require("@ccw-api/axios"),vs="https://community-web.ccw.site/creation/loading/tips";async function ue(){return await de.ccwAxios.post(vs,{}).then(e=>e.data.body)}var ge=require("@ccw-api/axios");var js="https://community-web.ccw.site/creation/page",Gs={...p,sortField:"createdAt"};async function le(e,t={}){let o={...Gs,...t},r=i(js,o),s={remixCreationOids:e};return await ge.ccwAxios.post(r,s).then(n=>n.data.body)}var Re=require("@ccw-api/axios");var Hs="https://community-web.ccw.site/creation/page_by_student",Ks={...p,sortField:"createdAt"};async function ye(e,t={}){let o={...Ks,...t},r=i(Hs,o),s={studentOids:e};return await Re.ccwAxios.post(r,s).then(n=>n.data.body)}var xe=require("@ccw-api/axios"),Vs="https://community-web.ccw.site/creation/potential/list";async function Ae(e){let t={num:e};return await xe.ccwAxios.post(Vs,t).then(o=>o.data.body)}var be=require("@ccw-api/axios");var zs="https://community-web.ccw.site/creation/recommend",Ws={...p,sortField:"createdAt"};async function fe(e,t={}){let o={...Ws,...t},r=i(zs,o),s={num:e,subjectType:"POTENTIAL"};return await be.ccwAxios.post(r,s).then(n=>n.data.body)}var we=require("@ccw-api/axios"),$s="https://community-web.ccw.site/recommend_creator/list";async function Pe(e=4,t=8){let o={excellentCount:e,potentialCount:t};return await we.ccwAxios.post($s,o).then(r=>r.data.body)}var Ce=require("@ccw-api/axios");var Ys="https://community-web.ccw.site/creation/search/page",Js={...p,sortField:"createdAt"};async function Se(e,t={}){let o={...Js,...t},r=i(Ys,o);return await Ce.ccwAxios.post(r,e).then(s=>s.data.body)}var he=require("@ccw-api/axios"),Zs="https://community-web.ccw.site/creation/student/detail";async function Ie(e){let t={studentOid:e};return await he.ccwAxios.post(Zs,t).then(o=>o.data.body)}var Te=require("@ccw-api/axios"),Xs="https://community-web.ccw.site/creation/tag/list";async function De(){let e={visibility:"PUBLIC"};return await Te.ccwAxios.post(Xs,e).then(t=>t.data.body)}var qe=require("@ccw-api/axios"),Qs="https://community-web.ccw.site/short_url/create";async function Me(e){let t={originUrl:e};return await qe.ccwAxios.post(Qs,t).then(o=>o.data.body)}var Be=require("@ccw-api/axios"),en="https://community-web.ccw.site/hash_tag_creation/list_relation";async function Ee(e){let t={creationOid:e};return await Be.ccwAxios.post(en,t).then(o=>o.data.body)}var Oe=require("@ccw-api/axios");var tn="https://community-web.ccw.site/hash_tag_creation/mine",on={...p,sortField:"lastPassedAt"};async function Le(e,t,o={}){let r={...on,...o},s=i(tn,r),n={...r,excludeHashTag:e,statuses:t};return await Oe.ccwAxios.post(s,n).then(a=>a.data.body)}var Ue=require("@ccw-api/axios"),rn="https://community-web.ccw.site/hash_tag/detail";async function _e(e){let t={identifier:e};return await Ue.ccwAxios.post(rn,t).then(o=>o.data.body)}var ke=require("@ccw-api/axios");var sn="https://community-web.ccw.site/hash_tag/managed/list",nn={...p,sortField:"createdAt"};async function Ne(e,t=[],o={}){let r={...nn,...o},s=i(sn,r),n={...r,studentOid:e,excludeHashTagIds:t};return await ke.ccwAxios.post(s,n).then(a=>a.data.body)}var Fe=require("@ccw-api/axios"),pn="https://community-web.ccw.site/hash_tag_favorite/detail";async function ve(e){let t={hashTagId:e};return await Fe.ccwAxios.post(pn,t).then(o=>o.data.body)}var je=require("@ccw-api/axios");var an="https://community-web.ccw.site/creation_donated_record/ranking_list";async function Ge(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(an,o),s={creationOid:e};return await je.ccwAxios.post(r,s).then(n=>n.data.body)}var He=require("@ccw-api/axios"),cn="https://community-web.ccw.site/creation_favorite/detail";async function Ke(e){let t={creationOid:e};return await He.ccwAxios.post(cn,t).then(o=>o.data.body)}var Ve=require("@ccw-api/axios"),mn="https://community-web.ccw.site/creation_recommend_position/list";async function ze(e){let t={creationOid:e};return await Ve.ccwAxios.post(mn,t).then(o=>o.data.body)}var We=require("@ccw-api/axios");var dn="https://community-web.ccw.site/creation_screenshot/page";async function $e(e,t={}){let o={...p,...t},r=i(dn,o),s={subjectOid:e};return await We.ccwAxios.post(r,s).then(n=>n.data.body)}var Ye=require("@ccw-api/axios"),un="https://community-web.ccw.site/creation_stats/view";async function Je(e,t=""){let o={oid:e,inviteCode:t};return await Ye.ccwAxios.post(un,o).then(r=>r.data.body)}var Ze=require("@ccw-api/axios"),gn="https://community-web.ccw.site/notify_message/show";async function Xe(){let e={type:"COMMENT_AUDIT"};return await Ze.ccwAxios.post(gn,e).then(t=>t.data.body)}var Qe=require("@ccw-api/axios"),ln="https://community-web.ccw.site/post/detail";async function et(e){let t={slug:e};return await Qe.ccwAxios.post(ln,t).then(o=>o.data.body)}var tt=require("@ccw-api/axios"),Rn="https://community-web.ccw.site/search/hot_words";async function ot(e){let t={length:e};return await tt.ccwAxios.post(Rn,t).then(o=>o.data.body)}var rt=require("@ccw-api/axios"),yn="https://community-web.ccw.site/student/block_record/detail";async function st(e){let t={studentOid:e};return await rt.ccwAxios.post(yn,t).then(o=>o.data.body)}var nt=require("@ccw-api/axios");var xn="https://community-web.ccw.site/student/block_record/list";async function it(e={sortField:"createdAt"}){let t={...p,...e},o=i(xn,t),r={};return await nt.ccwAxios.post(o,r).then(s=>s.data.body)}var pt=require("@ccw-api/axios"),An="https://community-web.ccw.site/student/block_record/status";async function at(e){let t={studentOid:e};return await pt.ccwAxios.post(An,t).then(o=>o.data.body)}var ct=require("@ccw-api/axios"),bn="https://community-web.ccw.site/students/creator_score";async function mt(){return await ct.ccwAxios.post(bn,void 0).then(t=>t.data.body)}var dt=require("@ccw-api/axios"),fn="https://community-web.ccw.site/students/last_active_at";async function ut(e){let t={studentOid:e};return await dt.ccwAxios.post(fn,t).then(o=>o.data.body)}var gt=require("@ccw-api/axios"),wn="https://community-web.ccw.site/students/list";async function lt(e){let t={studentOids:e};return await gt.ccwAxios.post(wn,t).then(o=>o.data.body)}var Rt=require("@ccw-api/axios");var Pn="https://community-web.ccw.site/students/list_sessions";async function yt(e={sortField:"createdAt"}){let t={...p,...e},o=i(Pn,t),r={};return await Rt.ccwAxios.post(o,r).then(s=>s.data.body)}var xt=require("@ccw-api/axios"),Cn="https://community-web.ccw.site/students/profile";async function At(e){let t={studentOid:e};return await xt.ccwAxios.post(Cn,t).then(o=>o.data.body)}var bt=require("@ccw-api/axios");var Sn="https://community-web.ccw.site/students/reputation_score_log/page";async function ft(e={sortField:"createdAt"}){let t={...p,...e},o=i(Sn,t),r={};return await bt.ccwAxios.post(o,r).then(s=>s.data.body)}var wt=require("@ccw-api/axios"),hn="https://community-web.ccw.site/students/self/detail";async function Pt(e,t,o){let r={needGrade:e,needExtraInfo:t,fields:o};return await wt.ccwAxios.post(hn,r).then(s=>s.data.body)}var Ct=require("@ccw-api/axios"),In="https://community-web.ccw.site/students/stats";async function St(e){let t={studentOid:e};return await Ct.ccwAxios.post(In,t).then(o=>o.data.body)}var ht=require("@ccw-api/axios"),Tn="https://community-web.ccw.site/students/update";async function It(e,t,o,r,s,n,a,c,d){let m={gender:e,hideGender:t,fullName:o,birthday:r,programmingCapability:s,school:n,qq:a,hobbies:c,learnedProgrammingLanguages:d};return await ht.ccwAxios.post(Tn,m).then(g=>g.data.body)}var Tt=require("@ccw-api/axios"),Dn="https://community-web.ccw.site/study-community/member/detail";async function Dt(){let e={};return await Tt.ccwAxios.post(Dn,e).then(t=>t.data.body)}var qt=require("@ccw-api/axios"),qn="https://community-web.ccw.site/study-community/spread_feed/unread/count";async function Mt(e){let t={studentOid:e};return await qt.ccwAxios.post(qn,t).then(o=>o.data.body)}var Bt=require("@ccw-api/axios");var Mn="https://community-web.ccw.site/subject_area/page";async function Et(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Mn,o),s={scene:e};return await Bt.ccwAxios.post(r,s).then(n=>n.data.body)}var Ot=require("@ccw-api/axios");var Bn="https://community-web.ccw.site/subject_area/page_by_channel";async function Lt(e,t={sortField:"campaignResourceId"}){let o={...p,...t},r=i(Bn,o),s={channel:e,scene:"CUSTOM_PAGE"};return await Ot.ccwAxios.post(r,s).then(n=>n.data.body)}var Ut=require("@ccw-api/axios"),En="https://community-web.ccw.site/task/award";async function _t(e){let t={taskOid:e};return await Ut.ccwAxios.post(En,t).then(o=>o.data.body)}var kt=require("@ccw-api/axios"),On="https://community-web.ccw.site/task/mine";async function Nt(){let e={scene:"checkIn"};return await kt.ccwAxios.post(On,e).then(t=>t.data.body)}var Ft=require("@ccw-api/axios"),Ln="https://community-web.ccw.site/user-card/detail";async function vt(e){let t={oid:e};return await Ft.ccwAxios.post(Ln,t).then(o=>o.data.body)}var jt=require("@ccw-api/axios"),Un="https://community-web.ccw.site/user_label/list";async function Gt(){let e={};return await jt.ccwAxios.post(Un,e).then(t=>t.data.body)}var Ht=require("@ccw-api/axios"),_n="https://community-web.ccw.site/currency/account/personal";async function Kt(){return await Ht.ccwAxios.post(_n).then(e=>e.data.body)}var Vt=require("@ccw-api/axios"),kn="https://community-web.ccw.site/emoji/all";async function zt(){return await Vt.ccwAxios.post(kn,{}).then(e=>e.data.body)}var Wt=require("@ccw-api/axios"),Nn="https://community-web.ccw.site/emoji/category/list";async function $t(){return await Wt.ccwAxios.post(Nn,{}).then(e=>e.data.body)}var Yt=require("@ccw-api/axios");var Fn="https://community-web.ccw.site/emoji/page";async function Jt(e="ENABLED",t={sortField:"createdAt"}){let o={...p,...t},r=i(Fn,o),s={page:o.page,perPage:o.perPage,status:e};return await Yt.ccwAxios.post(r,s).then(n=>n.data.body)}var Zt=require("@ccw-api/axios"),vn="https://community-web.ccw.site/event";async function Xt(e){let t={actionId:e};return await Zt.ccwAxios.post(vn,t).then(o=>o.data.body)}var Qt=require("@ccw-api/axios"),jn="https://community-web.ccw.site/health/check";async function eo(){return await Qt.ccwAxios.post(jn).then(e=>e.data.body)}var to=require("@ccw-api/axios"),Gn="https://community-web.ccw.site/leaflets/item/list";async function oo(e){let t={advertisementId:e};return await to.ccwAxios.post(Gn,t).then(o=>o.data.body)}var ro=require("@ccw-api/axios"),Hn="https://community-web.ccw.site/locked_user/detail";async function so(e){let t={accountOid:e};return await ro.ccwAxios.post(Hn,t).then(o=>o.data.body)}var no=require("@ccw-api/axios"),Kn="https://community-web.ccw.site/muted_user/detail";async function io(e){let t={studentNumber:e};return await no.ccwAxios.post(Kn,t).then(o=>o.data.body)}var po=require("@ccw-api/axios");var Vn="https://community-web.ccw.site/notification/page";async function ao(e="COMMENT_TO_ME",t={sortField:"createdAt"}){let o={...p,...t},r=i(Vn,o),s={notifyGroup:e,page:o.page};return await po.ccwAxios.post(r,s).then(n=>n.data.body)}var co=require("@ccw-api/axios"),zn="https://community-web.ccw.site/notification/stats/v2";async function mo(e=!0){let t={countAll:e};return await co.ccwAxios.post(zn,t).then(o=>o.data.body)}var uo=require("@ccw-api/axios");var Wn="https://community-web.ccw.site/typical_project/page";async function go(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Wn,o),s={studentOid:e,templateType:"APPLICATION"};return await uo.ccwAxios.post(r,s).then(n=>n.data.body)}var lo=require("@ccw-api/axios"),$n="https://community-web.ccw.site/typical_project/student/unread_count";async function Ro(e){let t={studentOid:e};return await lo.ccwAxios.post($n,t).then(o=>o.data.body)}var yo=require("@ccw-api/axios");var Yn="https://community-web.ccw.site/creation/own/page";async function xo(e={sortField:"updatedAt"},t=["BANNED","PUBLISHED","REJECTED","SUBMITTED"],o=!1){let r={...p,...e},s=i(Yn,r),n={statuses:t,ignoreTypicalProject:o};return await yo.ccwAxios.post(s,n).then(a=>a.data.body)}var Ao=require("@ccw-api/axios"),Jn="https://community-web.ccw.site/creation/team_member/produce_ticket";async function bo(e){let t={creationOid:e};return await Ao.ccwAxios.post(Jn,t).then(o=>o.data.body)}var fo=require("@ccw-api/axios"),Zn="https://community-web.ccw.site/creation/team_member/list";async function wo(e,t){let o={creationOid:e,authorities:t};return await fo.ccwAxios.post(Zn,o).then(r=>r.data.body)}var Po=require("@ccw-api/axios");var Xn="https://community-web.ccw.site/creation/teamwork_log/page";async function Co(e,t,o={sortField:"createdAt"}){let r={...p,...o},s=i(Xn,r),n={creationId:e,operateTargets:t},a=await Po.ccwAxios.post(s,n).then(m=>m.data.body),{data:c}=a,d=c.map(m=>{let{content:g}=m;return{...m,content:JSON.parse(g)}});return{...a,data:d}}var So=require("@ccw-api/axios"),Qn="https://community-web.ccw.site/creation/update";async function ho(e,t,o="LANDSCAPE",r){if(!t.includes("t=")){let a=new URL(t);a.searchParams.set("t",Date.now().toString()),t=a.toString()}let n={oid:e,latestProjectLink:t,screenMode:o,latestCoverLink:r};return await So.ccwAxios.post(Qn,n).then(a=>a.data.body)}var Io=require("@ccw-api/axios"),ei="https://community-web.ccw.site/creation/submit";async function To(e){return await Io.ccwAxios.post(ei,e).then(t=>t.data.body)}var Do=require("@ccw-api/axios"),ti="https://community-web.ccw.site/creation/smart_contract/split_rule/detail";async function qo(e){let t={creationOid:e};return await Do.ccwAxios.post(ti,t).then(o=>o.data.body)}var Mo=require("@ccw-api/axios"),oi="https://community-web.ccw.site/students/bind_phone";async function Bo(e,t,o="86"){let r={phone:e,code:t,ruleCode:"ccw_sms",scene:"bindPhone",countryCode:o};return await Mo.ccwAxios.post(oi,r).then(s=>s.data.body)}var Eo=require("@ccw-api/axios"),ri="https://community-web.ccw.site/students/password/change";async function Oo(e,t){let o={newPassword:e,code:t};return await Eo.ccwAxios.post(ri,o).then(r=>r.data.body)}var Lo=require("@ccw-api/axios"),si="https://community-web.ccw.site/captcha/v2/create_by_session";async function Uo(e="change_password",t="86",o="ccw_sms",r="SMS"){let s={type:r,countryCode:t,scene:e,ruleCode:o};return await Lo.ccwAxios.post(si,s).then(n=>n.data.body)}var _o=require("@ccw-api/axios"),ni="https://community-web.ccw.site/creation/smart_contract/split_rule/create";async function ko(e,t){let o={creationOid:e,memberSplitDetails:t};return await _o.ccwAxios.post(ni,o).then(r=>r.data.body)}var No=require("@ccw-api/axios"),ii="https://community-web.ccw.site/creation_attribute/detail";async function Fo(e){let t={creationOid:e},o=await No.ccwAxios.post(ii,t).then(n=>n.data.body);if(o===null)return null;let{ext:{KEYPAD_CONFIG:r}}=o,s=JSON.parse(r);return{...o,ext:{KEYPAD_CONFIG:s}}}var vo=require("@ccw-api/axios"),pi="https://community-web.ccw.site/creation_activity_stats/list";async function jo(e){let t={creationOid:e,type:"DAY"};return await vo.ccwAxios.post(pi,t).then(o=>o.data.body)}var Go=require("@ccw-api/axios");var ai="https://community-web.ccw.site/creation_release/page";async function Ho(e,t={sortField:"submittedAt"}){let o={...p,...t},r=i(ai,o),s={creationOid:e};return await Go.ccwAxios.post(r,s).then(n=>n.data.body)}var Ko=require("@ccw-api/axios"),ci="https://community-web.ccw.site/creation_release/code_profiling/detail";async function Vo(e,t){let o={creationOid:e,creationReleaseOid:t};return await Ko.ccwAxios.post(ci,o).then(r=>r.data.body)}var zo=require("@ccw-api/axios");var mi="https://community-web.ccw.site/historical_team_member/page";async function Wo(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(mi,o),s={creationOid:e,page:o.page,perPage:o.perPage};return await zo.ccwAxios.post(r,s).then(n=>n.data.body)}var $o=require("@ccw-api/axios"),di="https://community-web.ccw.site/short_url/decompress";async function Yo(e){let t={shortUrlCode:e};return await $o.ccwAxios.post(di,t).then(o=>o.data.body)}var Jo=require("@ccw-api/axios"),ui="https://community-web.ccw.site/hash_tag/recommend/list";async function Zo(){return await Jo.ccwAxios.post(ui).then(e=>e.data.body)}var Xo=require("@ccw-api/axios"),gi="https://community-web.ccw.site/ccw-main/status";async function Qo(){let e={};return await Xo.ccwAxios.post(gi,e).then(t=>t.data.body)}var er=require("@ccw-api/axios"),li="https://community-web.ccw.site/study-community/cloud_variable/create";async function tr(e,t){let o={projectId:e,variables:t};return await er.ccwAxios.post(li,o).then(r=>r.data.body)}var or=require("@ccw-api/axios"),Ri="https://community-web.ccw.site/study-community/comment/top";async function rr(e){let t={id:e};return await or.ccwAxios.post(Ri,t).then(o=>o.data.body)}var sr=require("@ccw-api/axios"),yi="https://community-web.ccw.site/study-community/comment/fold";async function nr(e){let t={id:e};return await sr.ccwAxios.post(yi,t).then(o=>o.data.body)}var ir=require("@ccw-api/axios"),xi="https://community-web.ccw.site/study-community/comment/reset_weight";async function pr(e){let t={id:e};return await ir.ccwAxios.post(xi,t).then(o=>o.data.body)}var ar=require("@ccw-api/axios"),Ai="https://community-web.ccw.site/study-community/comment/delete";async function cr(e){let t={id:e};return await ar.ccwAxios.post(Ai,t).then(o=>o.data.body)}var mr=require("@ccw-api/axios"),bi="https://community-web.ccw.site/comment/create";async function dr(e,t,o){t.outline??="foo";let r={content:e,topic:t,sectionType:o};return await mr.ccwAxios.post(bi,r).then(s=>s.data.body)}var ur=require("@ccw-api/axios"),fi="https://community-web.ccw.site/comment/like_record/create";async function gr(e){let t={commentId:e};return await ur.ccwAxios.post(fi,t).then(o=>o.data.body)}var lr=require("@ccw-api/axios");var wi="https://community-web.ccw.site/student/following/page";async function Rr(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(wi,o),s={studentOid:e};return await lr.ccwAxios.post(r,s).then(n=>n.data.body)}var yr=require("@ccw-api/axios"),Pi="https://community-web.ccw.site/study-trade/trade/donate";async function xr(e,t,o="CREATION"){let r={bucks:e,objectId:t,objectType:o};return await yr.ccwAxios.post(Pi,r).then(s=>s.data.body)}var Ar=require("@ccw-api/axios");var Ci="https://community-web.ccw.site/user_package/user_product";async function br(e=5,t={}){let o={...p,...t},r=i(Ci,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e};return await Ar.ccwAxios.post(r,s).then(n=>n.data.body)}var fr=require("@ccw-api/axios"),Si="https://community-web.ccw.site/user_package/status";async function wr(e,t){let o={status:t,id:e};return await fr.ccwAxios.post(Si,o).then(r=>r.data.body)}var Pr=require("@ccw-api/axios"),hi="https://community-web.ccw.site/great_creation/update";async function Cr(e){let t={creationOid:e};return await Pr.ccwAxios.post(hi,t).then(o=>o.data.body)}var Sr=require("@ccw-api/axios"),Ii="https://community-web.ccw.site/smart_contract/execute";async function hr(e,t,o,r,s="CREATION"){let n={bizId:e,bizType:s,id:t,ruleId:o,params:{bucks:r}};return await Sr.ccwAxios.post(Ii,n).then(a=>a.data.body)}var Ir=require("@ccw-api/axios"),Ti="https://community-web.ccw.site/smart_contract/account";async function Tr(e){let t={id:e};return await Ir.ccwAxios.post(Ti,t).then(o=>o.data.body)}var Dr=require("@ccw-api/axios"),Di="https://community-web.ccw.site/smart_contract/detail";async function qr(e){let t={id:e};return await Dr.ccwAxios.post(Di,t).then(o=>o.data.body)}var Mr=require("@ccw-api/axios"),qi="https://community-web.ccw.site/smart_contract/list";async function Br(e,t="CREATION"){let o={bizId:e,bizType:t};return await Mr.ccwAxios.post(qi,o).then(r=>r.data.body)}var Er=require("@ccw-api/axios"),Mi="https://community-web.ccw.site/extensions/following/status";async function Or(e,t){let o={playingCreationOid:e,userOid:t};return await Er.ccwAxios.post(Mi,o).then(r=>r.data.body)}var Lr=require("@ccw-api/axios"),Bi="https://community-web.ccw.site/extensions/creation-like/detail";async function Ur(e,t){let o={playingCreationOid:e,creationOid:t};return await Lr.ccwAxios.post(Bi,o).then(r=>r.data.body)}var _r=require("@ccw-api/axios"),Ei="https://community-web.ccw.site/study-community/following/follow";async function kr(e){let t={followingOid:e};return await _r.ccwAxios.post(Ei,t).then(o=>o.data.body)}var Nr=require("@ccw-api/axios"),Oi="https://community-web.ccw.site/study-community/following/unfollow";async function Fr(e){let t={followingOid:e};return await Nr.ccwAxios.post(Oi,t).then(o=>o.data.body)}var R={acceptAward:_t,bindStudentPhone:Bo,changeStudentPassword:Oo,donateTrade:xr,encodeShortCode:L,executeSmartContract:hr,createCloudVariable:tr,createComment:dr,createShortUrl:Me,createSmsCaptchaBySession:Uo,createSplitRule:ko,decompressShortUrl:Yo,deleteComment:cr,foldComment:nr,followCreator:kr,unfollowCreator:Fr,getApprovalTags:_,getCampaignResources:v,getCcwMainStatus:Qo,getCheckInRecords:G,getCodeProfilingDetail:Vo,getCommentReplies:J,getCommentsByTopic:X,getConfigDetail:ee,getCreationActivityStatsList:jo,getCreationAttributeDetail:Fo,getCreationDetail:se,getCreationFavoriteDetail:Ke,getCreationIntroduction:ae,getConnectCommunityCreationLikeStatus:Ur,getCreationRecommendPositionList:ze,getCreationReleasePage:Ho,getCreationScreenshotPage:$e,getCreationStudentDetail:Ie,getCreationTags:De,getCreatorScore:mt,getDonatedRecordRanking:Ge,getExcellentCreations:ie,getConnectCommunityFollowingStatus:Or,getEmojiCategoryList:$t,getEmojiPage:Jt,getAllEmojis:zt,getHashTagDetail:_e,getHashTagFavoriteDetail:ve,getHistoricalTeamMemberPage:Wo,getManagedHashTags:Ne,getHealthCheck:eo,getLeafletsItemList:oo,getLikeDetail:me,getLoadingTips:ue,getLockedUserDetail:so,getMutedUserDetail:io,getMyHashTagCreations:Le,getMyTasks:Nt,getNotifyDeleteReasons:Xe,getNotificationPage:ao,getNotificationStats:mo,getOwnCreationPage:xo,getPersonalCurrencyAccount:Kt,getPlanetsOfCreation:Ee,getPostDetail:et,getPotentialCreations:Ae,getRecommendCreations:fe,getRecommendCreators:Pe,getRecommendHashTags:Zo,getRemixedCreationPage:le,getReputationScoreLogPage:ft,getSearchHotWords:ot,getSmartContractAccount:Tr,getSmartContractDetail:qr,getSmartContractList:Br,getSplitRuleDetail:qo,getSpreadFeedUnreadCount:Mt,getStudentBlockRecordDetail:st,getStudentBlockRecordList:it,getStudentBlockStatus:at,getStudentFollowingPage:Rr,getStudentLastActiveAt:ut,getStudentProfile:At,getStudentSelfDetail:Pt,getStudentSessions:yt,getStudentsList:lt,getStudentStats:St,getStudyCommunityMemberDetail:Dt,getSubjectAreaPage:Et,getSubjectAreaPageByChannel:Lt,getTeamMemberList:wo,getTeamworkLogPage:Co,getTime:N,getTypicalProjectPage:go,getTypicalProjectUnreadCount:Ro,getUserAssetStorageSize:z,getUserCardDetail:vt,getUserLabelList:Gt,getUserProductsPage:br,queryMallProducts:oe,getCreationsByStudent:ye,insertCheckInRecord:K,likeComment:gr,produceTeamMemberTicket:bo,resetCommentWeight:pr,searchCloudAssets:$,searchCreationsByTag:Se,sendEvent:Xt,setUserProductStatus:wr,submitCreation:To,topComment:rr,updateCreation:ho,updateGreatCreation:Cr,updateStudent:It,viewCreationStats:Je};var vr=require("@ccw-api/axios"),Li="https://gandi-main.ccw.site/timestamp/current";async function jr(){return await vr.ccwAxios.get(Li).then(e=>e.data.body)}var Gr=require("@ccw-api/axios");var Ui="https://gandi-main.ccw.site/bulletins";async function Hr(e="PUBLISHED",t={sortField:"publishedAt"}){let o={...p,...t},r=i(Ui,{...o,status:e});return await Gr.ccwAxios.get(r).then(s=>s.data.body)}var Kr=require("@ccw-api/axios"),_i="https://gandi-main.ccw.site/bulletins";async function Vr(e){return await Kr.ccwAxios.get(`${_i}/${e}`).then(t=>t.data.body)}var y=require("@ccw-api/axios"),zr="https://gandi-main.ccw.site/creation/leaderboards";async function Wr(e,t,o,r=""){let s={score:t,oid:o,ext:r},n=`${zr}/${e}/records`;return await y.ccwAxios.post(n,s).then(a=>a.data.body)}async function $r(e){let t=`${zr}/${e}/records`;return await y.ccwAxios.get(t).then(o=>o.data.body)}var x={getCurrentTimestamp:jr,getBulletinsPage:Hr,getBulletinDetail:Vr,submitLeaderboardRecord:Wr,getLeaderboardRecords:$r};var Yr=require("@ccw-api/axios");var ki="https://bfs-web.ccw.site/users";async function Jr(e,t={sortField:"updatedAt"}){let o={...p,...t},r=i(`${ki}/${e}/extensions`,o);return await Yr.ccwAxios.get(r).then(s=>s.data.body)}var Zr=require("@ccw-api/axios"),Ni="https://bfs-web.ccw.site/extensions";async function Xr(e,t){let o={eid:e,bucks:t};return await Zr.ccwAxios.post(`${Ni}/${e}/donate`,o).then(r=>r.data.body)}var A={donateExtension:Xr,getUserExtensions:Jr};var Qr=require("@ccw-api/axios"),Fi="https://community-web-cloud-database.ccw.site/cloud_variable/save";async function es(e,t,o){let r={primaryKey:e,secondaryKey:t,value:o};return await Qr.ccwAxios.post(Fi,r).then(s=>s.data.body)}async function ts(e,t,o){return await es(e,t,{v:o})}async function os(e,t,o){let r=`${e}-u`;return await es(r,`${t}`,o)}var rs=require("@ccw-api/axios"),vi="https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";async function ss(e,t,o,r){let s={accessKey:e,primaryKey:t,secondaryKey:o,filterKeys:r};return await rs.ccwAxios.post(vi,s).then(n=>n.data.body)}var b={saveProjectCloudVariable:ts,saveUserCloudVariable:os,getCloudVariableDetailV2:ss};var ns=require("@ccw-api/axios"),ji="https://op-parent-api.xiguacity.cn/captcha/create";async function is(e="BLOCK_PUZZLE"){let t={type:e};return await ns.ccwAxios.post(ji,t).then(o=>o.data.body)}var ps=require("@ccw-api/axios"),Gi="https://op-parent-api.xiguacity.cn/captcha/check";async function as(e,t,o=5){let r={data:{x:t,y:o},token:e};return await ps.ccwAxios.post(Gi,r).then(s=>s.data.body)}var f={createCaptcha:is,checkCaptcha:as};var cs=require("@ccw-api/axios");var Hi={sso:l,communityWeb:R,gandiMain:x,bfsWeb:A,communityWebCloudDatabase:b,opParentApi:f};
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var ro=require('@ccw-api/axios');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ro__default=/*#__PURE__*/_interopDefault(ro);var zt="https://sso.ccw.site/web/auth/login-by-password";async function g(e,t,o={device:"Node",browser:"Node.js"}){let r={loginKey:e,password:t,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})},{extra:s,...n}=await ro.ccwAxios.post(zt,r).then(c=>c.data.body),a=JSON.parse(s);return {...n,extra:a}}var $t="https://sso.ccw.site/web/auth/logout";async function l(){return await ro.ccwAxios.post($t,{}).then(e=>e.data.body)}var Jt="https://sso.ccw.site/web/auth/logout_by_session";async function R(e){return await ro.ccwAxios.post(Jt,{id:e}).then(t=>t.data.body)}var Zt="https://sso.ccw.site/web/auth/assistant/captcha/v2/create";async function y(e,t="loginbyPhone",o="86",r="ccw_sms",s){let n={recipient:e,countryCode:o,scene:t,ruleCode:r,captcha:s};return await ro.ccwAxios.post(Zt,n).then(a=>a.data.body)}var eo="https://sso.ccw.site/web/auth/v3/login/by_phone";async function A(e,t,o={device:"Node",browser:"Node.js"},r="86",s="ccw_sms",n="loginbyPhone"){let{extra:a,...c}=await ro.ccwAxios.post(eo,{phone:e,code:t,countryCode:r,ruleCode:s,scene:n,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...o,scene:null})}).then(m=>m.data.body),u=JSON.parse(a);return {...c,extra:u}}var x={loginByPassword:g,logout:l,logoutBySession:R,createSmsCaptcha:y,loginByPhone:A};var oo="https://community-web.ccw.site/api/v1/short_code/encode";async function b(e,t,o,r){let s={origin:{inviterAvatar:t,inviterName:o,inviterId:e,inviterType:"STUDENT",entrance:"create_detail",creationOid:r}};return await ro.ccwAxios.post(oo,s).then(n=>n.data.body)}var so="https://community-web.ccw.site/approval/list";async function f(e){let t={objectId:e,objectType:"STUDENT"};return await ro__default.default.post(so,t).then(o=>o.data.body)}var io="https://community-web.ccw.site/base/dateTime";async function w(){return ro__default.default.post(io,void 0).then(e=>e.data.body)}var ao="https://community-web.ccw.site/campaign_resource/detail";async function P(e){return await ro.ccwAxios.post(ao,{keyword:e}).then(t=>t.data.body)}var mo="https://community-web.ccw.site/check_in_record/detail";async function C(){let e={scene:"HOMEPAGE"};return await ro.ccwAxios.post(mo,e).then(t=>t.data.body)}var go="https://community-web.ccw.site/check_in_record/insert";async function I(){let e={scene:"HOMEPAGE"};return await ro.ccwAxios.post(go,e).then(t=>t.data.body)}var Ro="https://community-web.ccw.site/cloud_asset/user/privacy";async function S(){return await ro.ccwAxios.post(Ro,{}).then(e=>e.data.body)}function i(e,t){let o=new URL(e);return Object.entries(t).forEach(([r,s])=>{s!=null&&o.searchParams.set(r,s);}),o.toString()}var p={page:1,perPage:20,sortType:"DESC",sortField:""};var Ao="https://community-web.ccw.site/cloud_asset/search",xo={...p,sortField:"createdAt"};async function h(e,t="/",o={}){let r={...xo,...o},s=i(Ao,r),n={creatorOid:e,path:t};return await ro.ccwAxios.post(s,n).then(a=>a.data.body)}var fo="https://community-web.ccw.site/comment/page";async function T(e,t,o=["PUBLISHED","FOLDED"],r={sortField:"createdAt"}){let s={...p,...r},n=i(fo,s),a={topicId:e,parentId:t,statuses:o};return await ro.ccwAxios.post(n,a).then(c=>c.data.body)}var Po="https://community-web.ccw.site/comment/page_by_topic",Co={...p,sortField:"createdAt"};async function D(e,t,o,r={sortField:"createdAt"}){let s={...Co,...r},n=i(Po,s),a={subjectOid:e,subjectType:t,sectionType:o};return await ro.ccwAxios.post(n,a).then(c=>c.data.body)}var So="https://community-web.ccw.site/config/detail";async function q(e){let t={key:e};return await ro.ccwAxios.post(So,t).then(o=>o.data.body)}var To="https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";async function M(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(To,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e,source:"CCW_OFFICIAL"};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var qo="https://community-web.ccw.site/creation/create";async function B(e,t,o,r="ORIGINAL",s="LANDSCAPE",n="PRIVATE"){let a={type:r,title:e,latestProjectLink:t,screenMode:s,artifactType:"STANDARD",sourceOpenLevel:n,latestCoverLink:o};return await ro.ccwAxios.post(qo,a).then(c=>c.data.body)}var Bo="https://community-web.ccw.site/creation/detail";async function O(e,t,o=""){let r={oid:e,accessKey:t,mode:o};return await ro.ccwAxios.post(Bo,r).then(s=>s.data.body)}var Eo="https://community-web.ccw.site/creation/excellent/list";async function E(e){let t={num:e};return await ro.ccwAxios.post(Eo,t).then(o=>o.data.body)}var Uo="https://community-web.ccw.site/creation/introduction/detail";async function L(e){let t={studentOid:e};return await ro.ccwAxios.post(Uo,t).then(o=>o.data.body)}var ko="https://community-web.ccw.site/creation/like/detail";async function U(e){let t={creationOid:e};return await ro.ccwAxios.post(ko,t).then(o=>o.data.body)}var vo="https://community-web.ccw.site/creation/loading/tips";async function _(){return await ro.ccwAxios.post(vo,{}).then(e=>e.data.body)}var jo="https://community-web.ccw.site/creation/page",Go={...p,sortField:"createdAt"};async function k(e,t={}){let o={...Go,...t},r=i(jo,o),s={remixCreationOids:e};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var Ko="https://community-web.ccw.site/creation/page_by_student",Vo={...p,sortField:"createdAt"};async function N(e,t={}){let o={...Vo,...t},r=i(Ko,o),s={studentOids:e};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var Wo="https://community-web.ccw.site/creation/potential/list";async function v(e){let t={num:e};return await ro.ccwAxios.post(Wo,t).then(o=>o.data.body)}var Yo="https://community-web.ccw.site/creation/recommend",Jo={...p,sortField:"createdAt"};async function F(e,t={}){let o={...Jo,...t},r=i(Yo,o),s={num:e,subjectType:"POTENTIAL"};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var Zo="https://community-web.ccw.site/recommend_creator/list";async function j(e=4,t=8){let o={excellentCount:e,potentialCount:t};return await ro.ccwAxios.post(Zo,o).then(r=>r.data.body)}var er="https://community-web.ccw.site/creation/search/page",tr={...p,sortField:"createdAt"};async function G(e,t={}){let o={...tr,...t},r=i(er,o);return await ro.ccwAxios.post(r,e).then(s=>s.data.body)}var rr="https://community-web.ccw.site/creation/student/detail";async function H(e){let t={studentOid:e};return await ro.ccwAxios.post(rr,t).then(o=>o.data.body)}var nr="https://community-web.ccw.site/creation/tag/list";async function K(){let e={visibility:"PUBLIC"};return await ro.ccwAxios.post(nr,e).then(t=>t.data.body)}var pr="https://community-web.ccw.site/short_url/create";async function V(e){let t={originUrl:e};return await ro.ccwAxios.post(pr,t).then(o=>o.data.body)}var cr="https://community-web.ccw.site/hash_tag_creation/list_relation";async function z(e){let t={creationOid:e};return await ro.ccwAxios.post(cr,t).then(o=>o.data.body)}var ur="https://community-web.ccw.site/hash_tag_creation/mine",dr={...p,sortField:"lastPassedAt"};async function W(e,t,o={}){let r={...dr,...o},s=i(ur,r),n={...r,excludeHashTag:e,statuses:t};return await ro.ccwAxios.post(s,n).then(a=>a.data.body)}var lr="https://community-web.ccw.site/hash_tag/detail";async function $(e){let t={identifier:e};return await ro.ccwAxios.post(lr,t).then(o=>o.data.body)}var yr="https://community-web.ccw.site/hash_tag/managed/list",Ar={...p,sortField:"createdAt"};async function Y(e,t=[],o={}){let r={...Ar,...o},s=i(yr,r),n={...r,studentOid:e,excludeHashTagIds:t};return await ro.ccwAxios.post(s,n).then(a=>a.data.body)}var br="https://community-web.ccw.site/hash_tag_favorite/detail";async function J(e){let t={hashTagId:e};return await ro.ccwAxios.post(br,t).then(o=>o.data.body)}var wr="https://community-web.ccw.site/creation_donated_record/ranking_list";async function X(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(wr,o),s={creationOid:e};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var Cr="https://community-web.ccw.site/creation_favorite/detail";async function Z(e){let t={creationOid:e};return await ro.ccwAxios.post(Cr,t).then(o=>o.data.body)}var Sr="https://community-web.ccw.site/creation_recommend_position/list";async function Q(e){let t={creationOid:e};return await ro.ccwAxios.post(Sr,t).then(o=>o.data.body)}var Tr="https://community-web.ccw.site/creation_screenshot/page";async function ee(e,t={}){let o={...p,...t},r=i(Tr,o),s={subjectOid:e};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var qr="https://community-web.ccw.site/creation_stats/view";async function te(e,t=""){let o={oid:e,inviteCode:t};return await ro.ccwAxios.post(qr,o).then(r=>r.data.body)}var Br="https://community-web.ccw.site/notify_message/show";async function oe(){let e={type:"COMMENT_AUDIT"};return await ro.ccwAxios.post(Br,e).then(t=>t.data.body)}var Er="https://community-web.ccw.site/post/detail";async function re(e){let t={slug:e};return await ro.ccwAxios.post(Er,t).then(o=>o.data.body)}var Ur="https://community-web.ccw.site/search/hot_words";async function se(e){let t={length:e};return await ro.ccwAxios.post(Ur,t).then(o=>o.data.body)}var kr="https://community-web.ccw.site/student/block_record/detail";async function ne(e){let t={studentOid:e};return await ro.ccwAxios.post(kr,t).then(o=>o.data.body)}var vr="https://community-web.ccw.site/student/block_record/list";async function ie(e={sortField:"createdAt"}){let t={...p,...e},o=i(vr,t),r={};return await ro.ccwAxios.post(o,r).then(s=>s.data.body)}var jr="https://community-web.ccw.site/student/block_record/status";async function pe(e){let t={studentOid:e};return await ro.ccwAxios.post(jr,t).then(o=>o.data.body)}var Hr="https://community-web.ccw.site/students/creator_score";async function ae(){return await ro.ccwAxios.post(Hr,void 0).then(t=>t.data.body)}var Vr="https://community-web.ccw.site/students/last_active_at";async function ce(e){let t={studentOid:e};return await ro.ccwAxios.post(Vr,t).then(o=>o.data.body)}var Wr="https://community-web.ccw.site/students/list";async function me(e){let t={studentOids:e};return await ro.ccwAxios.post(Wr,t).then(o=>o.data.body)}var Yr="https://community-web.ccw.site/students/list_sessions";async function ue(e={sortField:"createdAt"}){let t={...p,...e},o=i(Yr,t),r={};return await ro.ccwAxios.post(o,r).then(s=>s.data.body)}var Xr="https://community-web.ccw.site/students/profile";async function de(e){let t={studentOid:e};return await ro.ccwAxios.post(Xr,t).then(o=>o.data.body)}var Qr="https://community-web.ccw.site/students/reputation_score_log/page";async function ge(e={sortField:"createdAt"}){let t={...p,...e},o=i(Qr,t),r={};return await ro.ccwAxios.post(o,r).then(s=>s.data.body)}var ts="https://community-web.ccw.site/students/self/detail";async function le(e,t,o){let r={needGrade:e,needExtraInfo:t,fields:o};return await ro.ccwAxios.post(ts,r).then(s=>s.data.body)}var rs="https://community-web.ccw.site/students/stats";async function Re(e){let t={studentOid:e};return await ro.ccwAxios.post(rs,t).then(o=>o.data.body)}var ns="https://community-web.ccw.site/students/update";async function ye(e,t,o,r,s,n,a,c,u){let m={gender:e,hideGender:t,fullName:o,birthday:r,programmingCapability:s,school:n,qq:a,hobbies:c,learnedProgrammingLanguages:u};return await ro.ccwAxios.post(ns,m).then(d=>d.data.body)}var ps="https://community-web.ccw.site/study-community/member/detail";async function Ae(){let e={};return await ro.ccwAxios.post(ps,e).then(t=>t.data.body)}var cs="https://community-web.ccw.site/study-community/spread_feed/unread/count";async function xe(e){let t={studentOid:e};return await ro.ccwAxios.post(cs,t).then(o=>o.data.body)}var us="https://community-web.ccw.site/subject_area/page";async function be(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(us,o),s={scene:e};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var gs="https://community-web.ccw.site/subject_area/page_by_channel";async function fe(e,t={sortField:"campaignResourceId"}){let o={...p,...t},r=i(gs,o),s={channel:e,scene:"CUSTOM_PAGE"};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var Rs="https://community-web.ccw.site/task/award";async function we(e){let t={taskOid:e};return await ro.ccwAxios.post(Rs,t).then(o=>o.data.body)}var As="https://community-web.ccw.site/task/mine";async function Pe(){let e={scene:"checkIn"};return await ro.ccwAxios.post(As,e).then(t=>t.data.body)}var bs="https://community-web.ccw.site/user-card/detail";async function Ce(e){let t={oid:e};return await ro.ccwAxios.post(bs,t).then(o=>o.data.body)}var ws="https://community-web.ccw.site/user_label/list";async function Ie(){let e={};return await ro.ccwAxios.post(ws,e).then(t=>t.data.body)}var Cs="https://community-web.ccw.site/currency/account/personal";async function Se(){return await ro.ccwAxios.post(Cs).then(e=>e.data.body)}var Ss="https://community-web.ccw.site/emoji/all";async function he(){return await ro.ccwAxios.post(Ss,{}).then(e=>e.data.body)}var Ts="https://community-web.ccw.site/emoji/category/list";async function Te(){return await ro.ccwAxios.post(Ts,{}).then(e=>e.data.body)}var qs="https://community-web.ccw.site/emoji/page";async function De(e="ENABLED",t={sortField:"createdAt"}){let o={...p,...t},r=i(qs,o),s={page:o.page,perPage:o.perPage,status:e};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var Bs="https://community-web.ccw.site/event";async function qe(e){let t={actionId:e};return await ro.ccwAxios.post(Bs,t).then(o=>o.data.body)}var Es="https://community-web.ccw.site/health/check";async function Me(){return await ro.ccwAxios.post(Es).then(e=>e.data.body)}var Us="https://community-web.ccw.site/leaflets/item/list";async function Be(e){let t={advertisementId:e};return await ro.ccwAxios.post(Us,t).then(o=>o.data.body)}var ks="https://community-web.ccw.site/locked_user/detail";async function Oe(e){let t={accountOid:e};return await ro.ccwAxios.post(ks,t).then(o=>o.data.body)}var vs="https://community-web.ccw.site/muted_user/detail";async function Ee(e){let t={studentNumber:e};return await ro.ccwAxios.post(vs,t).then(o=>o.data.body)}var js="https://community-web.ccw.site/notification/page";async function Le(e="COMMENT_TO_ME",t={sortField:"createdAt"}){let o={...p,...t},r=i(js,o),s={notifyGroup:e,page:o.page};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var Hs="https://community-web.ccw.site/notification/stats/v2";async function Ue(e=true){let t={countAll:e};return await ro.ccwAxios.post(Hs,t).then(o=>o.data.body)}var Vs="https://community-web.ccw.site/typical_project/page";async function _e(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Vs,o),s={studentOid:e,templateType:"APPLICATION"};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var Ws="https://community-web.ccw.site/typical_project/student/unread_count";async function ke(e){let t={studentOid:e};return await ro.ccwAxios.post(Ws,t).then(o=>o.data.body)}var Ys="https://community-web.ccw.site/creation/own/page";async function Ne(e={sortField:"updatedAt"},t=["BANNED","PUBLISHED","REJECTED","SUBMITTED"],o=false){let r={...p,...e},s=i(Ys,r),n={statuses:t,ignoreTypicalProject:o};return await ro.ccwAxios.post(s,n).then(a=>a.data.body)}var Xs="https://community-web.ccw.site/creation/team_member/observer_invite_token/fetch";async function ve(e){let t={creationOid:e};return await ro.ccwAxios.post(Xs,t).then(o=>o.data.body)}var Qs="https://community-web.ccw.site/creation/team_member/invite_token/fetch";async function Fe(e,t="MEMBER"){let o={creationOid:e,authority:t};return await ro.ccwAxios.post(Qs,o).then(r=>r.data.body)}var tn="https://community-web.ccw.site/creation/team_member/produce_ticket";async function je(e){let t={creationOid:e};return await ro.ccwAxios.post(tn,t).then(o=>o.data.body)}var rn="https://community-web.ccw.site/creation/team_member/list";async function Ge(e,t){let o={creationOid:e,authorities:t};return await ro.ccwAxios.post(rn,o).then(r=>r.data.body)}var nn="https://community-web.ccw.site/creation/teamwork_log/page";async function He(e,t,o={sortField:"createdAt"}){let r={...p,...o},s=i(nn,r),n={creationId:e,operateTargets:t},a=await ro.ccwAxios.post(s,n).then(m=>m.data.body),{data:c}=a,u=c.map(m=>{let{content:d}=m;return {...m,content:JSON.parse(d)}});return {...a,data:u}}var an="https://community-web.ccw.site/creation/update";async function Ke(e,t,o="LANDSCAPE",r){if(!t.includes("t=")){let a=new URL(t);a.searchParams.set("t",Date.now().toString()),t=a.toString();}let n={oid:e,latestProjectLink:t,screenMode:o,latestCoverLink:r};return await ro.ccwAxios.post(an,n).then(a=>a.data.body)}var mn="https://community-web.ccw.site/creation/submit";async function Ve(e){return await ro.ccwAxios.post(mn,e).then(t=>t.data.body)}var dn="https://community-web.ccw.site/creation/smart_contract/split_rule/detail";async function ze(e){let t={creationOid:e};return await ro.ccwAxios.post(dn,t).then(o=>o.data.body)}var ln="https://community-web.ccw.site/students/bind_phone";async function We(e,t,o="86"){let r={phone:e,code:t,ruleCode:"ccw_sms",scene:"bindPhone",countryCode:o};return await ro.ccwAxios.post(ln,r).then(s=>s.data.body)}var yn="https://community-web.ccw.site/students/password/change";async function $e(e,t){let o={newPassword:e,code:t};return await ro.ccwAxios.post(yn,o).then(r=>r.data.body)}var xn="https://community-web.ccw.site/captcha/v2/create_by_session";async function Ye(e="change_password",t="86",o="ccw_sms",r="SMS"){let s={type:r,countryCode:t,scene:e,ruleCode:o};return await ro.ccwAxios.post(xn,s).then(n=>n.data.body)}var fn="https://community-web.ccw.site/creation/smart_contract/split_rule/create";async function Je(e,t){let o={creationOid:e,memberSplitDetails:t};return await ro.ccwAxios.post(fn,o).then(r=>r.data.body)}var Pn="https://community-web.ccw.site/creation_attribute/detail";async function Xe(e){let t={creationOid:e},o=await ro.ccwAxios.post(Pn,t).then(n=>n.data.body);if(o===null)return null;let{ext:{KEYPAD_CONFIG:r}}=o,s=JSON.parse(r);return {...o,ext:{KEYPAD_CONFIG:s}}}var In="https://community-web.ccw.site/creation_activity_stats/list";async function Ze(e){let t={creationOid:e,type:"DAY"};return await ro.ccwAxios.post(In,t).then(o=>o.data.body)}var hn="https://community-web.ccw.site/creation_release/page";async function Qe(e,t={sortField:"submittedAt"}){let o={...p,...t},r=i(hn,o),s={creationOid:e};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var Dn="https://community-web.ccw.site/creation_release/code_profiling/detail";async function et(e,t){let o={creationOid:e,creationReleaseOid:t};return await ro.ccwAxios.post(Dn,o).then(r=>r.data.body)}var Mn="https://community-web.ccw.site/historical_team_member/page";async function tt(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Mn,o),s={creationOid:e,page:o.page,perPage:o.perPage};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var On="https://community-web.ccw.site/short_url/decompress";async function ot(e){let t={shortUrlCode:e};return await ro.ccwAxios.post(On,t).then(o=>o.data.body)}var Ln="https://community-web.ccw.site/hash_tag/recommend/list";async function rt(){return await ro.ccwAxios.post(Ln).then(e=>e.data.body)}var _n="https://community-web.ccw.site/ccw-main/status";async function st(){let e={};return await ro.ccwAxios.post(_n,e).then(t=>t.data.body)}var Nn="https://community-web.ccw.site/study-community/cloud_variable/create";async function nt(e,t){let o={projectId:e,variables:t};return await ro.ccwAxios.post(Nn,o).then(r=>r.data.body)}var Fn="https://community-web.ccw.site/study-community/comment/top";async function it(e){let t={id:e};return await ro.ccwAxios.post(Fn,t).then(o=>o.data.body)}var Gn="https://community-web.ccw.site/study-community/comment/fold";async function pt(e){let t={id:e};return await ro.ccwAxios.post(Gn,t).then(o=>o.data.body)}var Kn="https://community-web.ccw.site/study-community/comment/reset_weight";async function at(e){let t={id:e};return await ro.ccwAxios.post(Kn,t).then(o=>o.data.body)}var zn="https://community-web.ccw.site/study-community/comment/delete";async function ct(e){let t={id:e};return await ro.ccwAxios.post(zn,t).then(o=>o.data.body)}var $n="https://community-web.ccw.site/comment/create";async function mt(e,t,o){t.outline??="foo";let r={content:e,topic:t,sectionType:o};return await ro.ccwAxios.post($n,r).then(s=>s.data.body)}var Jn="https://community-web.ccw.site/comment/like_record/create";async function ut(e){let t={commentId:e};return await ro.ccwAxios.post(Jn,t).then(o=>o.data.body)}var Zn="https://community-web.ccw.site/student/following/page";async function dt(e,t={sortField:"createdAt"}){let o={...p,...t},r=i(Zn,o),s={studentOid:e};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var ei="https://community-web.ccw.site/study-trade/trade/donate";async function gt(e,t,o="CREATION"){let r={bucks:e,objectId:t,objectType:o};return await ro.ccwAxios.post(ei,r).then(s=>s.data.body)}var oi="https://community-web.ccw.site/user_package/user_product";async function lt(e=5,t={}){let o={...p,...t},r=i(oi,o),s={page:o.page,perPage:o.perPage,sortType:o.sortType,productCategory:e};return await ro.ccwAxios.post(r,s).then(n=>n.data.body)}var si="https://community-web.ccw.site/user_package/status";async function Rt(e,t){let o={status:t,id:e};return await ro.ccwAxios.post(si,o).then(r=>r.data.body)}var ii="https://community-web.ccw.site/great_creation/update";async function yt(e){let t={creationOid:e};return await ro.ccwAxios.post(ii,t).then(o=>o.data.body)}var ai="https://community-web.ccw.site/smart_contract/execute";async function At(e,t,o,r,s="CREATION"){let n={bizId:e,bizType:s,id:t,ruleId:o,params:{bucks:r}};return await ro.ccwAxios.post(ai,n).then(a=>a.data.body)}var mi="https://community-web.ccw.site/smart_contract/account";async function xt(e){let t={id:e};return await ro.ccwAxios.post(mi,t).then(o=>o.data.body)}var di="https://community-web.ccw.site/smart_contract/detail";async function bt(e){let t={id:e};return await ro.ccwAxios.post(di,t).then(o=>o.data.body)}var li="https://community-web.ccw.site/smart_contract/list";async function ft(e,t="CREATION"){let o={bizId:e,bizType:t};return await ro.ccwAxios.post(li,o).then(r=>r.data.body)}var yi="https://community-web.ccw.site/extensions/following/status";async function wt(e,t){let o={playingCreationOid:e,userOid:t};return await ro.ccwAxios.post(yi,o).then(r=>r.data.body)}var xi="https://community-web.ccw.site/extensions/creation-like/detail";async function Pt(e,t){let o={playingCreationOid:e,creationOid:t};return await ro.ccwAxios.post(xi,o).then(r=>r.data.body)}var fi="https://community-web.ccw.site/study-community/following/follow";async function Ct(e){let t={followingOid:e};return await ro.ccwAxios.post(fi,t).then(o=>o.data.body)}var Pi="https://community-web.ccw.site/study-community/following/unfollow";async function It(e){let t={followingOid:e};return await ro.ccwAxios.post(Pi,t).then(o=>o.data.body)}var St={acceptAward:we,bindStudentPhone:We,changeStudentPassword:$e,createCreation:B,donateTrade:gt,encodeShortCode:b,executeSmartContract:At,fetchMemberInviteToken:Fe,fetchObserverInviteToken:ve,createCloudVariable:nt,createComment:mt,createShortUrl:V,createSmsCaptchaBySession:Ye,createSplitRule:Je,decompressShortUrl:ot,deleteComment:ct,foldComment:pt,followCreator:Ct,unfollowCreator:It,getApprovalTags:f,getCampaignResources:P,getCcwMainStatus:st,getCheckInRecords:C,getCodeProfilingDetail:et,getCommentReplies:T,getCommentsByTopic:D,getConfigDetail:q,getCreationActivityStatsList:Ze,getCreationAttributeDetail:Xe,getCreationDetail:O,getCreationFavoriteDetail:Z,getCreationIntroduction:L,getConnectCommunityCreationLikeStatus:Pt,getCreationRecommendPositionList:Q,getCreationReleasePage:Qe,getCreationScreenshotPage:ee,getCreationStudentDetail:H,getCreationTags:K,getCreatorScore:ae,getDonatedRecordRanking:X,getExcellentCreations:E,getConnectCommunityFollowingStatus:wt,getEmojiCategoryList:Te,getEmojiPage:De,getAllEmojis:he,getHashTagDetail:$,getHashTagFavoriteDetail:J,getHistoricalTeamMemberPage:tt,getManagedHashTags:Y,getHealthCheck:Me,getLeafletsItemList:Be,getLikeDetail:U,getLoadingTips:_,getLockedUserDetail:Oe,getMutedUserDetail:Ee,getMyHashTagCreations:W,getMyTasks:Pe,getNotifyDeleteReasons:oe,getNotificationPage:Le,getNotificationStats:Ue,getOwnCreationPage:Ne,getPersonalCurrencyAccount:Se,getPlanetsOfCreation:z,getPostDetail:re,getPotentialCreations:v,getRecommendCreations:F,getRecommendCreators:j,getRecommendHashTags:rt,getRemixedCreationPage:k,getReputationScoreLogPage:ge,getSearchHotWords:se,getSmartContractAccount:xt,getSmartContractDetail:bt,getSmartContractList:ft,getSplitRuleDetail:ze,getSpreadFeedUnreadCount:xe,getStudentBlockRecordDetail:ne,getStudentBlockRecordList:ie,getStudentBlockStatus:pe,getStudentFollowingPage:dt,getStudentLastActiveAt:ce,getStudentProfile:de,getStudentSelfDetail:le,getStudentSessions:ue,getStudentsList:me,getStudentStats:Re,getStudyCommunityMemberDetail:Ae,getSubjectAreaPage:be,getSubjectAreaPageByChannel:fe,getTeamMemberList:Ge,getTeamworkLogPage:He,getTime:w,getTypicalProjectPage:_e,getTypicalProjectUnreadCount:ke,getUserAssetStorageSize:S,getUserCardDetail:Ce,getUserLabelList:Ie,getUserProductsPage:lt,queryMallProducts:M,getCreationsByStudent:N,insertCheckInRecord:I,likeComment:ut,produceTeamMemberTicket:je,resetCommentWeight:at,searchCloudAssets:h,searchCreationsByTag:G,sendEvent:qe,setUserProductStatus:Rt,submitCreation:Ve,topComment:it,updateCreation:Ke,updateGreatCreation:yt,updateStudent:ye,viewCreationStats:te};var Ii="https://gandi-main.ccw.site/timestamp/current";async function ht(){return await ro.ccwAxios.get(Ii).then(e=>e.data.body)}var hi="https://gandi-main.ccw.site/bulletins";async function Tt(e="PUBLISHED",t={sortField:"publishedAt"}){let o={...p,...t},r=i(hi,{...o,status:e});return await ro.ccwAxios.get(r).then(s=>s.data.body)}var Di="https://gandi-main.ccw.site/bulletins";async function Dt(e){return await ro.ccwAxios.get(`${Di}/${e}`).then(t=>t.data.body)}var Mt="https://gandi-main.ccw.site/creation/leaderboards";async function Bt(e,t,o,r=""){let s={score:t,oid:o,ext:r},n=`${Mt}/${e}/records`;return await ro.ccwAxios.post(n,s).then(a=>a.data.body)}async function Ot(e){let t=`${Mt}/${e}/records`;return await ro.ccwAxios.get(t).then(o=>o.data.body)}var Et={getCurrentTimestamp:ht,getBulletinsPage:Tt,getBulletinDetail:Dt,submitLeaderboardRecord:Bt,getLeaderboardRecords:Ot};var Mi="https://bfs-web.ccw.site/users";async function Lt(e,t={sortField:"updatedAt"}){let o={...p,...t},r=i(`${Mi}/${e}/extensions`,o);return await ro.ccwAxios.get(r).then(s=>s.data.body)}var Oi="https://bfs-web.ccw.site/extensions";async function Ut(e,t){let o={eid:e,bucks:t};return await ro.ccwAxios.post(`${Oi}/${e}/donate`,o).then(r=>r.data.body)}var _t={donateExtension:Ut,getUserExtensions:Lt};var Li="https://community-web-cloud-database.ccw.site/cloud_variable/save";async function kt(e,t,o){let r={primaryKey:e,secondaryKey:t,value:o};return await ro.ccwAxios.post(Li,r).then(s=>s.data.body)}async function Nt(e,t,o){return await kt(e,t,{v:o})}async function vt(e,t,o){let r=`${e}-u`;return await kt(r,`${t}`,o)}var _i="https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";async function Ft(e,t,o,r){let s={accessKey:e,primaryKey:t,secondaryKey:o,filterKeys:r};return await ro.ccwAxios.post(_i,s).then(n=>n.data.body)}var jt={saveProjectCloudVariable:Nt,saveUserCloudVariable:vt,getCloudVariableDetailV2:Ft};var Ni="https://op-parent-api.xiguacity.cn/captcha/create";async function Gt(e="BLOCK_PUZZLE"){let t={type:e};return await ro.ccwAxios.post(Ni,t).then(o=>o.data.body)}var Fi="https://op-parent-api.xiguacity.cn/captcha/check";async function Ht(e,t,o=5){let r={data:{x:t,y:o},token:e};return await ro.ccwAxios.post(Fi,r).then(s=>s.data.body)}var Kt={createCaptcha:Gt,checkCaptcha:Ht};var jl={sso:x,communityWeb:St,gandiMain:Et,bfsWeb:_t,communityWebCloudDatabase:jt,opParentApi:Kt};
2
+ Object.defineProperty(exports,"setToken",{enumerable:true,get:function(){return ro.setToken}});exports.bfsWeb=_t;exports.communityWeb=St;exports.communityWebCloudDatabase=jt;exports.default=jl;exports.gandiMain=Et;exports.opParentApi=Kt;exports.sso=x;