diff --git a/public/assets/About-BcXrxgjq.js b/public/assets/About-rI7IiLNs.js similarity index 55% rename from public/assets/About-BcXrxgjq.js rename to public/assets/About-rI7IiLNs.js index de009d9..834efa8 100644 --- a/public/assets/About-BcXrxgjq.js +++ b/public/assets/About-rI7IiLNs.js @@ -1 +1 @@ -import{r as i,aA as u}from"./index--trdnQFa.js";import{g as s,aa as n}from"./MyApp-BHr373cy.js";function l({target:o}){return s("About."+(o==null?void 0:o.id),null),i.useEffect(()=>{o!=null&&o.id&&n(o.id)},[o==null?void 0:o.id]),u.jsx(u.Fragment,{children:"About"})}export{l as default}; +import{r as i,aA as u}from"./index-BBriuzNA.js";import{g as s,aa as n}from"./MyApp-CmkiOnMb.js";function l({target:o}){return s("About."+(o==null?void 0:o.id),null),i.useEffect(()=>{o!=null&&o.id&&n(o.id)},[o==null?void 0:o.id]),u.jsx(u.Fragment,{children:"About"})}export{l as default}; diff --git a/public/assets/Album-BpsKpRpm.js b/public/assets/Album-BpsKpRpm.js deleted file mode 100644 index 75b1b36..0000000 --- a/public/assets/Album-BpsKpRpm.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__fileDeps=["./ImageLazyPreview-CSLUs9MG.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./MyApp-BHr373cy.js","./index-CB9InVBI.js","./EyeOutlined-BALW2cms.js","./addEventListener-KkFh1sjE.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{r as t,aA as r,aB as f,aF as I}from"./index--trdnQFa.js";import{C as b}from"./Collection-CPPE61tF.js";import{a7 as g,a8 as x,ac as v,i as y}from"./MyApp-BHr373cy.js";import{c as w,M as d}from"./albums-CYfJUBHa.js";import{g as p}from"./videos-CpxHGGu6.js";import{V as j}from"./VideoWithMuted-xvYRNY0l.js";import{L as _}from"./index-BJNnFmyH.js";import{I as A}from"./index-CB9InVBI.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";const E=t.lazy(()=>I(()=>import("./ImageLazyPreview-CSLUs9MG.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url));function Z({target:i,albumId:l,album:a}){const s=l||a.id,c=t.useCallback(async(o=[],e)=>{var n;return s?await w({albumId:s,accessToken:await g(x.EAAB),fromId:e||((n=o[o.length-1])==null?void 0:n.id)||""}):void 0},[s]),u=t.useCallback(o=>r.jsxs(_.Item,{className:"show-on-hover-trigger",children:[o.type==d.IMAGE?r.jsx(A,{src:o.uri,width:150,height:150,style:{objectFit:"cover",borderRadius:"10px"}}):r.jsx(E,{src:o.uri,width:150,height:150,style:{objectFit:"cover",borderRadius:"10px"},cacheId:"album_video."+o.id,getPreview:()=>p(o.id).then(e=>e.source),renderPreview:(e,m)=>({destroyOnClose:!0,imageRender:()=>r.jsx(v,{spinning:m,children:r.jsx(j,{src:e,style:{maxWidth:"90vw",maxHeight:"90vh"}})}),toolbarRender:()=>null})}),r.jsx(f,{type:"default",icon:r.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:y(o.id)})]}),[]),h=t.useCallback(async o=>o.type==d.IMAGE?{url:o.uri,name:o.id+".jpg"}:{url:(await p(o.id)).source,name:o.id+".mp4"},[]);return r.jsx(b,{collectionName:(i==null?void 0:i.name)+" - Album "+a.name,fetchNext:c,renderItem:u,downloadItem:h,getItemCursor:o=>o.id,rowKey:o=>o.id})}export{Z as default}; diff --git a/public/assets/Album-D1OPne59.js b/public/assets/Album-D1OPne59.js new file mode 100644 index 0000000..9aacc25 --- /dev/null +++ b/public/assets/Album-D1OPne59.js @@ -0,0 +1,2 @@ +const __vite__fileDeps=["./ImageLazyPreview-DbcS5lXO.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./MyApp-CmkiOnMb.js","./index-Dm20K0UU.js","./EyeOutlined-Du2MtFRM.js","./addEventListener-w7NT04KM.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{r as t,aA as r,aB as f,aF as I}from"./index-BBriuzNA.js";import{C as b}from"./Collection-B9SxfYr4.js";import{a7 as g,a8 as x,ac as v,i as y}from"./MyApp-CmkiOnMb.js";import{c as w,M as d}from"./albums-BXb2vQdB.js";import{g as p}from"./videos-VQJKJ_Wq.js";import{V as j}from"./VideoWithMuted-CdYhYcjW.js";import{L as _}from"./index-B7udrguy.js";import{I as A}from"./index-Dm20K0UU.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";const E=t.lazy(()=>I(()=>import("./ImageLazyPreview-DbcS5lXO.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url));function Z({target:i,albumId:l,album:a}){const s=l||a.id,c=t.useCallback(async(o=[],e)=>{var n;return s?await w({albumId:s,accessToken:await g(x.EAAB),fromId:e||((n=o[o.length-1])==null?void 0:n.id)||""}):void 0},[s]),u=t.useCallback(o=>r.jsxs(_.Item,{className:"show-on-hover-trigger",children:[o.type==d.IMAGE?r.jsx(A,{src:o.uri,width:150,height:150,style:{objectFit:"cover",borderRadius:"10px"}}):r.jsx(E,{src:o.uri,width:150,height:150,style:{objectFit:"cover",borderRadius:"10px"},cacheId:"album_video."+o.id,getPreview:()=>p(o.id).then(e=>e.source),renderPreview:(e,m)=>({destroyOnClose:!0,imageRender:()=>r.jsx(v,{spinning:m,children:r.jsx(j,{src:e,style:{maxWidth:"90vw",maxHeight:"90vh"}})}),toolbarRender:()=>null})}),r.jsx(f,{type:"default",icon:r.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:y(o.id)})]}),[]),h=t.useCallback(async o=>o.type==d.IMAGE?{url:o.uri,name:o.id+".jpg"}:{url:(await p(o.id)).source,name:o.id+".mp4"},[]);return r.jsx(b,{collectionName:(i==null?void 0:i.name)+" - Album "+a.name,fetchNext:c,renderItem:u,downloadItem:h,getItemCursor:o=>o.id,rowKey:o=>o.id})}export{Z as default}; diff --git a/public/assets/Albums-B4AwMLXs.js b/public/assets/Albums-BbbQfFVD.js similarity index 65% rename from public/assets/Albums-B4AwMLXs.js rename to public/assets/Albums-BbbQfFVD.js index f4d94f6..408924e 100644 --- a/public/assets/Albums-B4AwMLXs.js +++ b/public/assets/Albums-BbbQfFVD.js @@ -1 +1 @@ -import{r as n,aA as r,aB as b}from"./index--trdnQFa.js";import{u as x,V as h,a7 as w,a8 as y,b as u,B as j,h as k,i as C,L as v}from"./MyApp-BHr373cy.js";import{C as T}from"./Collection-CPPE61tF.js";import{g as A,a as E,b as N}from"./albums-CYfJUBHa.js";import{A as S}from"./index-fivsYW1W.js";import{L as B}from"./index-BJNnFmyH.js";import{I}from"./index-CB9InVBI.js";import{T as L}from"./index-VHrAsB-Q.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";function io({target:s,onOpenAlbum:e}){const{ti:m}=x(),d=n.useCallback(async(o=[])=>{var c;if(!(s!=null&&s.id)||!(s!=null&&s.type))return;const i=o==null?void 0:o[(o==null?void 0:o.length)-1];if(s.type!==h.Group)return(await A({id:s==null?void 0:s.id,accessToken:await w(y.EAAB),fromId:(i==null?void 0:i.id)||""})).albums;const p=s.type===h.Group?await E({groupId:s.id,cursor:i==null?void 0:i.cursor}):await N({uid:s.id,cursor:i==null?void 0:i.cursor});if((c=p.albums)!=null&&c.length){let a=new Set(o.map(l=>l.id));return p.albums.filter(l=>!a.has(l.id))}return[]},[s]),t=n.useCallback(()=>r.jsx(u,{children:r.jsx(S,{showIcon:!0,type:"info",message:m({en:"Click any album to view photos",vi:"Click album bất kỳ để xem ảnh"})})}),[m]),f=n.useCallback(o=>r.jsx(B.Item,{children:r.jsxs(u,{direction:"vertical",children:[r.jsx(j.Ribbon,{text:k(o.count),children:r.jsxs("div",{className:"show-on-hover-trigger",children:[r.jsx(I,{src:o.picture,alt:o.name,width:150,height:150,style:{objectFit:"cover",borderRadius:"10px",cursor:"pointer"},preview:!1,onClick:()=>{e==null||e(o)}}),r.jsx(b,{type:"default",icon:r.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:C(o.id)})]})}),r.jsx(L.Paragraph,{style:{maxWidth:"150px",wordWrap:"break-word"},onClick:()=>window.open(o.link),children:o.name})]})}),[]);return r.jsx(T,{collectionName:(s==null?void 0:s.name)+" - Albums",fetchNext:d,renderItem:f,rowKey:o=>o.id,header:t,searchPlaceholder:o=>m({en:`Search in ${o==null?void 0:o.length} albums...`,vi:`Tìm trong ${o.length} albums...`}),onSearch:(o,i)=>v(o,i.name)})}export{io as default}; +import{r as n,aA as r,aB as b}from"./index-BBriuzNA.js";import{u as x,V as h,a7 as w,a8 as y,b as u,B as j,h as k,i as C,L as v}from"./MyApp-CmkiOnMb.js";import{C as T}from"./Collection-B9SxfYr4.js";import{g as A,a as E,b as N}from"./albums-BXb2vQdB.js";import{A as S}from"./index-BhyNApA-.js";import{L as B}from"./index-B7udrguy.js";import{I}from"./index-Dm20K0UU.js";import{T as L}from"./index-Bumumc8Y.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";function io({target:s,onOpenAlbum:e}){const{ti:m}=x(),d=n.useCallback(async(o=[])=>{var c;if(!(s!=null&&s.id)||!(s!=null&&s.type))return;const i=o==null?void 0:o[(o==null?void 0:o.length)-1];if(s.type!==h.Group)return(await A({id:s==null?void 0:s.id,accessToken:await w(y.EAAB),fromId:(i==null?void 0:i.id)||""})).albums;const p=s.type===h.Group?await E({groupId:s.id,cursor:i==null?void 0:i.cursor}):await N({uid:s.id,cursor:i==null?void 0:i.cursor});if((c=p.albums)!=null&&c.length){let a=new Set(o.map(l=>l.id));return p.albums.filter(l=>!a.has(l.id))}return[]},[s]),t=n.useCallback(()=>r.jsx(u,{children:r.jsx(S,{showIcon:!0,type:"info",message:m({en:"Click any album to view photos",vi:"Click album bất kỳ để xem ảnh"})})}),[m]),f=n.useCallback(o=>r.jsx(B.Item,{children:r.jsxs(u,{direction:"vertical",children:[r.jsx(j.Ribbon,{text:k(o.count),children:r.jsxs("div",{className:"show-on-hover-trigger",children:[r.jsx(I,{src:o.picture,alt:o.name,width:150,height:150,style:{objectFit:"cover",borderRadius:"10px",cursor:"pointer"},preview:!1,onClick:()=>{e==null||e(o)}}),r.jsx(b,{type:"default",icon:r.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:C(o.id)})]})}),r.jsx(L.Paragraph,{style:{maxWidth:"150px",wordWrap:"break-word"},onClick:()=>window.open(o.link),children:o.name})]})}),[]);return r.jsx(T,{collectionName:(s==null?void 0:s.name)+" - Albums",fetchNext:d,renderItem:f,rowKey:o=>o.id,header:t,searchPlaceholder:o=>m({en:`Search in ${o==null?void 0:o.length} albums...`,vi:`Tìm trong ${o.length} albums...`}),onSearch:(o,i)=>v(o,i.name)})}export{io as default}; diff --git a/public/assets/AllFriends-Bvie5x2q.js b/public/assets/AllFriends-0QZBJ5aF.js similarity index 95% rename from public/assets/AllFriends-Bvie5x2q.js rename to public/assets/AllFriends-0QZBJ5aF.js index 183c252..ca8cec4 100644 --- a/public/assets/AllFriends-Bvie5x2q.js +++ b/public/assets/AllFriends-0QZBJ5aF.js @@ -1,4 +1,4 @@ -const __vite__fileDeps=["./UploadModal-BHq27OYF.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./index-DlkwBJMX.js","./PurePanel-CSR2tSBX.js","./MyApp-BHr373cy.js","./useBreakpoint-QbbjxHKX.js","./responsiveObserver-DiDk9dGL.js","./EyeOutlined-BALW2cms.js","./index-VHrAsB-Q.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{aI as Ge,au as V,av as J,r as _,aA as i,aB as C,aF as ze,aT as Xe,aS as Z}from"./index--trdnQFa.js";import{d as K}from"./dayjs.min-DH5lmvCP.js";import Ve from"./MyTable-BTHATUSD.js";import{E as Je}from"./ExportButton-C-PwJSin.js";import{D as P,E as q,G as Ie,i as R,j as Ae,H as Ze,I as en,d as nn,u as tn,g as ee,t as E,J as sn,K as rn,L as Ce,b as Y,c as Q,T as D,o as Ee,B as De,k as W,M as G,N as on,O as _e,P as an}from"./MyApp-BHr373cy.js";import{u as cn}from"./useForceStop-B53S8Rhf.js";import{d as ln}from"./messages-6ucXfJYj.js";import{A as dn}from"./index-DTxLlwd8.js";import{I as un}from"./index-CB9InVBI.js";import{R as hn}from"./row-DQoT4CfJ.js";import{T as gn}from"./index-VHrAsB-Q.js";import{P as Ue}from"./index-CU7pBSDU.js";import{P as z}from"./index-CB2nR54F.js";import"./index-X7jfXLlB.js";import"./Table-GiCOcILW.js";import"./addEventListener-KkFh1sjE.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";import"./index-DmA8T0X5.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./Pagination-CPGTHysj.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./file-download-DYjmaN3D.js";async function mn({myUid:a,targetUid:g=""}){const v=await P({doc_id:"4936483286421335",variables:{id:g||a,query:"",scale:1}});try{const t=q(v||"{}"),{edges:b=[]}=Ie(t,!1);return b.map(m=>{var F,y,f,w,j,U;return{uid:(F=m.node)==null?void 0:F.id,url:((y=m.node)==null?void 0:y.url)||R((f=m.node)==null?void 0:f.id),name:(w=m.node)==null?void 0:w.name,avatar:(U=(j=m.node)==null?void 0:j.photo)==null?void 0:U.uri,avatarLarge:Ae(m.node.id)}})}catch{return[]}}async function fn({myUid:a,targetUid:g}){var b;const v=await P({doc_id:"8752443744796374",variables:{input:{source:"friending_jewel",unfriended_user_id:g,actor_id:a},scale:1}}),t=q(v||"{}");if((b=t.errors)!=null&&b.length)throw new Error(t.errors[0].message);return t}async function pn({myUid:a,targetUid:g}){var b;const v=await P({doc_id:"6294978773852692",variables:{input:{attribution_id_v2:"FriendingCometRoot.react,comet.friending,tap_tabbar,1667288605315,127814,2356318349,",friend_requestee_ids:[g],people_you_may_know_location:"friends_center",refs:[null],source:"people_you_may_know",warn_ack_for_ids:[],actor_id:a},scale:2}}),t=q(v);if((b=t.errors)!=null&&b.length)throw new Error(t.errors[0].message);return t}async function kn({myUid:a,targetUid:g}){var b,m,F,y,f,w,j;const v=await P({doc_id:"5028133957233114",variables:{input:{actor_id:a,user_id:g}}}),t=q(v||"{}");if((b=t.errors)!=null&&b.length)throw new Error(t.errors[0].message);if(((y=(F=(m=t==null?void 0:t.data)==null?void 0:m.user_poke)==null?void 0:F.user)==null?void 0:y.poke_status)!="PENDING")throw new Error("Failed to poke friend: "+((j=(w=(f=t==null?void 0:t.data)==null?void 0:f.user_poke)==null?void 0:w.user)==null?void 0:j.poke_status));return t}async function xn({myUid:a,cursor:g=null}){let v=await P({doc_id:"4186250744800382",variables:{count:8,cursor:g,scale:2,id:btoa(`app_collection:${a}:2356318349:2`)}});return q(v)}async function vn(){try{const a=await Ze("https://www.facebook.com/me",{method:"GET",headers:{Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"}}),g=a.indexOf("chat_sidebar_contact_rankings");let v=g;for(;a[v]!=">"&&v>0;)v--;let t=g;for(;a[t]!="<"&&ty.status==0))||[]).map(y=>{var f,w,j,U,$,H;return{uid:y.buddy_id||((f=y.user)==null?void 0:f.id),name:(w=y.user)==null?void 0:w.name,avatar:(U=(j=y.user)==null?void 0:j.profile_picture)==null?void 0:U.uri,hasStory:((H=($=y.story_bucket)==null?void 0:$.nodes)==null?void 0:H.length)>0}})}catch(a){return console.error(a),[]}}const yn=_.lazy(()=>ze(()=>import("./UploadModal-BHq27OYF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),{Title:bn}=gn,k={FRIEND:"Friend",POKED:"Poked",UNFRIENDED:"Unfriended",REQUESTED:"Requested friend",NEW:"New friend"},jn={[k.POKED]:"green",[k.UNFRIENDED]:"red",[k.NEW]:"blue",[k.REQUESTED]:"pink"},$e=a=>{switch(a){case k.FRIEND:return{en:"Friend",vi:"Bạn bè"};case k.POKED:return{en:"Poked",vi:"Đã chọc"};case k.UNFRIENDED:return{en:"Unfriended",vi:"Đã huỷ kết bạn"};case k.REQUESTED:return{en:"Requested friend",vi:"Đã gửi kết bạn"};case k.NEW:return{en:"New friend",vi:"Bạn mới"};default:return a}},Fn=a=>{const g=(a==null?void 0:a.statuses)||[];return!g.includes(k.REQUESTED)&&(g.includes(k.NEW)||g.includes(k.UNFRIENDED))},wn=a=>{const g=(a==null?void 0:a.statuses)||[];return!g.includes(k.NEW)&&!g.includes(k.UNFRIENDED)},ne={"Name contains special characters":{en:"Special characters",vi:"Ký tự đặc biệt",color:"orange"},"Name contains numbers":{en:"Contains numbers",vi:"Chứa số",color:"purple"},"No avatar":{en:"No avatar",vi:"Không avatar",color:"cyan"},"Strange uid":{en:"Strange UID",vi:"UID lạ",color:"blue"},Locked:{en:"Locked",vi:"Bị khoá",color:"red"},"Blocked messages":{en:"Blocked messages",vi:"Chặn tin nhắn",color:"red"}},Te={MALE:{en:"Male",vi:"Nam"},FEMALE:{en:"Female",vi:"Nữ"},UNKNOW:{en:"Unknown",vi:"Không xác định"}};function Zn(){const{message:a,notification:g}=nn(),v=Ge(),{ti:t}=tn(),b=cn(),m=V(J.profile),F=V(J.friendsByUid),y=V(J.setFriendsByUid),[f,w]=ee("AllFriends.data",[]),[j,U]=ee("AllFriends.interactions",[]),[$,H]=ee("AllFriends.ranking",[]),B=_.useMemo(()=>{var s,o;const e=new Map,n=new Map;for(let l of j)(s=l.reactions_uid)==null||s.forEach(d=>e.set(d,(e.get(d)||0)+1)),(o=l.comments_uid)==null||o.forEach(d=>n.set(d,(n.get(d)||0)+1));return{reactions:e,comments:n}},[j]),O=_.useMemo(()=>(f==null?void 0:f.map((e,n)=>{var s,o;return{...e,recent:n,comments:((s=B==null?void 0:B.comments)==null?void 0:s.get(e.uid))||0,reactions:((o=B==null?void 0:B.reactions)==null?void 0:o.get(e.uid))||0,ranking:$==null?void 0:$.indexOf(e.uid)}}))||[],[f,B,$]),[te,ie]=_.useState(!1),[se,re]=_.useState(0),[Re,oe]=_.useState(!1),[ae,ce]=_.useState(!1),M=_.useRef(null);_.useEffect(()=>{m!=null&&m.uid&&!(f!=null&&f.length)&&le()},[]);const S=(e,n,s=!1,o=!1)=>{w(l=>Z(l,h=>{Array.isArray(e)||(e=[e]);let p=[];for(let r of e){let c=h.findIndex(x=>x.uid==((r==null?void 0:r.uid)||r)),u=h[c];u?(u.statuses||(u.statuses=[]),!s&&!u.statuses.includes(n)?u.statuses.push(n):(Array.isArray(n)||(n=[n]),u.statuses=n),o&&p.push({index:c,data:u})):o?h.unshift({...r,statuses:[n]}):h.push({...r,statuses:[n]})}for(let{index:r,data:c}of p)h.splice(r,1),h.unshift(c);return h}))},Be=(e=f)=>{let n=!1;const s=(F==null?void 0:F[m.uid])||[],o=e.map(c=>c.uid),l=s.map(c=>c.uid),d=new Set(o),h=new Set(l),p=o.filter(c=>!h.has(c)),r=l.filter(c=>!d.has(c));p.length&&(n=!0,console.log("New friends: ",p),S(p,k.NEW,!0),s!=null&&s.length?g.open({type:"success",duration:0,message:t({en:`Find ${p.length} new friends`,vi:`Tìm thấy ${p.length} bạn mới`}),description:i.jsx("div",{style:{maxHeight:300,overflowY:"auto",overflowX:"hidden"},children:i.jsx("ol",{children:p.map(c=>{const u=e.find(x=>x.uid==c);return i.jsx("li",{children:i.jsx("a",{href:R(c),target:"_blank",children:(u==null?void 0:u.name)||c})},c)})})})}):g.open({type:"success",duration:0,message:t({en:`Saved friends to cache: ${p.length}`,vi:`Đã lưu danh sách bạn bè: ${p.length}`}),description:t({en:"Will notify if you have new friends / someone unfriended to you in future",vi:"Sẽ thông báo nếu có bạn mới / người huỷ kết bạn với bạn trong tương lai"})})),r.length&&(n=!0,console.log("Deleted friends: ",r),g.open({type:"info",duration:0,message:t({en:`Find ${r.length} unfriended`,vi:`Có ${r.length} người huỷ kết bạn`}),description:i.jsx("div",{style:{maxHeight:300,overflowY:"auto",overflowX:"hidden"},children:i.jsx("ol",{children:r.map(c=>{const u=s.find(x=>x.uid==c);return i.jsx("li",{children:i.jsx("a",{href:R(c),target:"_blank",children:(u==null?void 0:u.name)||c})},c)})})})})),n&&y(m==null?void 0:m.uid,e.map(c=>({uid:c.uid,name:c.name})))},le=()=>{if(te)return;E("AllFriends:onClickReload");const e="onClickReload";a.loading({key:e,content:t({en:"Fetching friends...",vi:"Đang tải bạn bè..."}),duration:0}),ie(!0),mn({myUid:m==null?void 0:m.uid}).then(n=>{var o;if(Be(n),!(n!=null&&n.length))return a.error({key:e,content:t({en:"No data to show",vi:"Không có dữ liệu"})});const s=n.map(l=>{var d;return{...l,quickFilters:[(d=l.uid)!=null&&d.startsWith("1000")?null:"Strange uid",sn(l.avatar)?"No avatar":null,/\d/.test(l.name)?"Name contains numbers":null,rn(l.name)?"Name contains special characters":null].filter(Boolean)}});w(s),console.log(s),a.success({key:e,content:t({en:"Fetch friends completed",vi:"Tải xong bạn bè"})}),(o=M.current)==null||o.clearFilter()}).catch(n=>{a.error({key:e,content:t({en:"Failed to fetch friends",vi:"Lỗi tải bạn bè"})+": "+n.message}),console.log(n)}).finally(()=>{ie(!1)})},de=async e=>{E("AllFriends:onClickUnfriendOne");const n="onClickUnfriendOne"+e.uid;try{return a.loading({key:n,content:t({en:"Unfriending...",vi:"Đang huỷ kết bạn..."})+" "+e.name,duration:0}),await fn({myUid:m==null?void 0:m.uid,targetUid:e.uid}),a.success({key:n,content:t({en:"Unfriend completed",vi:"Đã huỷ kết bạn"})+": "+e.name}),S(e,k.UNFRIENDED),!0}catch(s){return a.error({key:n,content:t({en:"Failed to unfriend",vi:"Lỗi huỷ kết bạn"})+": "+e.name+": "+s.message}),console.log(s),!1}},qe=async e=>{if(!await W())return;E("AllFriends:onClickUnfriendSelected");const n=new Set;for(let o of e)await de(o)&&n.add(o.uid),await G(500);const s=n.size+"/"+e.length;g.open({type:"success",message:t({en:"Success",vi:"Thành công"}),description:t({en:`Unfriended completed ${s} friends`,vi:`Đã huỷ kết bạn với ${s} người`}),duration:0})},ue=async e=>{E("AllFriends:onClickPokeFriend");const n="onClickPokeFriend"+e.uid;try{return a.loading({key:n,content:t({en:"Poking...",vi:"Đang chọc..."})+" "+e.name,duration:0}),await kn({myUid:m==null?void 0:m.uid,targetUid:e.uid}),a.success({key:n,content:t({en:"Poke completed",vi:"Chọc thành công"})+": "+e.name}),S(e,k.POKED),!0}catch(s){return a.error({key:n,content:t({en:"Failed to poke",vi:"Chọc thất bại"})+": "+e.name+": "+s.message}),console.log(s),!1}},Se=async e=>{E("AllFriends:onClickPokeSelected");const n=new Set;for(let o of e)await ue(o)&&n.add(o.uid),await G(500);const s=n.size+"/"+e.length;g.open({type:"success",message:t({en:"Success",vi:"Thành công"}),description:t({en:`Poke completed ${s} friends`,vi:`Đã chọc ${s} bạn`}),duration:0})},he=async e=>{E("AllFriends:onClickAddFriend");const n="onClickAddFriend"+e.uid;try{return a.loading({key:n,content:t({en:"Sending friend request...",vi:"Đang gửi kết bạn..."})+" "+e.name,duration:0}),await pn({myUid:m==null?void 0:m.uid,targetUid:e.uid}),a.success({key:n,content:t({en:"Send friend request success",vi:"Gửi kết bạn thành công"})+": "+e.name}),S(e,k.REQUESTED),!0}catch(s){return a.error({key:n,content:t({en:"Failed to send friend request",vi:"Lỗi gửi kết bạn"})+": "+s.message}),!1}},Le=async e=>{if(!await W())return;E("AllFriends:onClickAddFriendSelected");const n=new Set;for(let o of e)await he(o)&&n.add(o.uid),await G(500);const s=n.size+"/"+e.length;g.open({type:"success",message:t({en:"Success",vi:"Thành công"}),description:t({en:`Sent friend request success ${s} users`,vi:`Gửi kết bạn thành công với ${s} người`}),duration:0})},Me=async()=>{var h,p;if(se)return;const e="AllFriends:onClickFindBlockedMessages";E(e);const n=(h=M.current)==null?void 0:h.getDataSelected(),s=n!=null&&n.length?n:f,o=[];let l=!1;for(let r=0;rl=!0});const c=s[r];await ln(c.uid)||(o.push(c),(p=M.current)==null||p.setDataSelected(o.map(u=>f.find(x=>x.uid===u.uid)||u)),w(u=>Z(u,x=>{var T;const N=x.find(I=>I.uid===c.uid);N&&!((T=N.quickFilters)!=null&&T.includes("Blocked messages"))&&(N.quickFilters||(N.quickFilters=[]),N.quickFilters.push("Blocked messages"))})),a.success({key:e,content:t({en:"Found",vi:"Tìm thấy"})+" "+c.name+" ("+o.length+")"}))}re(!1);const d=o.length?i.jsxs(i.Fragment,{children:[t({en:`Found ${o.length} friends blocking your messages`,vi:`Tìm thấy ${o.length} bạn bè chặn tin nhắn`}),i.jsx("br",{}),i.jsx("ul",{children:o.map(r=>i.jsx("li",{children:r.name},r.uid))})]}):t({en:"No one block messages you",vi:"Không ai chặn tin nhắn của bạn"});a.success({key:e,content:d}),g.open({type:"success",message:t({en:"Success",vi:"Thành công"}),description:d,duration:0})},Ye=async e=>{var n;if(!e)return a.error(t({en:"File empty",vi:"File rỗng"}));E("AllFriends:onUploadFriendsFile");try{const s=q(e,[]);if(!Array.isArray(s)||!(s!=null&&s.length))return a.error(t({en:"No data",vi:"Không có dữ liệu"}));const o=s.map(r=>r.uid).filter(Boolean);debugger;if(!o.length)return a.error(t({en:"No friends data in file",vi:"Không có dữ liệu bạn bè trong file"}));const l=new Set(o),d=[];for(let r of f)l.has(r.uid)||d.push(r);const h=new Set(f.map(r=>r.uid)),p=[];for(let r of s)h.has(r.uid)||p.push(r);S(d,k.NEW,!1,!0),S(p,k.UNFRIENDED,!1,!0),[{title:t({en:`Found ${d.length} new friends`,vi:`Tìm thấy ${d.length} bạn mới`}),text:i.jsx("div",{style:{maxHeight:300,overflowY:"auto",overflowX:"hidden"},children:i.jsx("ol",{children:d.map(r=>i.jsx("li",{children:i.jsx("a",{href:R(r.uid),target:"_blank",children:r.name})},r.uid))})})},{title:t({en:`Found ${p.length} unfriended`,vi:`Tìm thấy ${p.length} người huỷ kết bạn`}),text:i.jsx("div",{style:{maxHeight:300,overflowY:"auto",overflowX:"hidden"},children:i.jsx("ol",{children:p.map(r=>i.jsx("li",{children:i.jsx("a",{href:R(r.uid),target:"_blank",children:r.name})},r.uid))})})}].forEach(({title:r,text:c})=>g.open({type:"success",message:r,description:c,duration:0})),(p.length||d.length)&&((n=M.current)==null||n.setDataSelected([...p,...d]))}catch(s){a.error(s.message)}},Pe=e=>{v("/bulk-downloader",{state:{targetId:e,platform:Xe.Facebook}})},He=async()=>{if(!await W()||ae)return;ce(!0);const e=b.start(),n="AllFriends:onClickScanInteractions";E(n),a.loading({key:n,duration:0,content:t({en:"Loading posts...",vi:"Đang tải bài viết..."})});let s=!1;const o=await on(1/0,r=>{var T;U([...r]);const c=r.reduce((I,L)=>{var A;return I+(((A=L.comments_uid)==null?void 0:A.length)||0)},0),u=r.reduce((I,L)=>{var A;return I+(((A=L.reactions_uid)==null?void 0:A.length)||0)},0),x=new Date(((T=r[r.length-1])==null?void 0:T.created_time)||0),N=_e(x);a.loading({key:n,duration:0,content:i.jsxs(i.Fragment,{children:[t({en:`Loading ${N}: ${r.length} posts, ${u} reactions, ${c} comments...`,vi:`Đang tải ${N}: ${r.length} bài viết, ${u} lượt thích, ${c} bình luận...`}),i.jsx("br",{}),i.jsx("i",{children:t({en:"Click to stop",vi:"Bấm để dừng"})})]}),onClick:()=>s=!0})},()=>s||e.value()),l=o.reduce((r,c)=>{var u;return r+(((u=c.comments_uid)==null?void 0:u.length)||0)},0),d=o.reduce((r,c)=>{var u;return r+(((u=c.reactions_uid)==null?void 0:u.length)||0)},0);a.destroy(n);const h=o[o.length-1],p=_e(new Date((h==null?void 0:h.created_time)||0));g.open({type:"success",duration:0,message:t({en:"Scan interactions finished",vi:"Quét tương tác xong"}),description:i.jsxs(i.Fragment,{children:[t({en:`Scanned ${o.length} posts, ${d} reactions, ${l} comments, last post ${p} `,vi:`Quét được ${o.length} bài viết, ${d} lượt thích, ${l} bình luận, bài viết cuối ${p} `}),i.jsx("a",{href:R(h==null?void 0:h.postId),target:"_blank",children:R(h==null?void 0:h.postId)})]})}),U(o),ce(!1)},Oe=async()=>{const e="AllFriends:onClickFindBuddy";E(e),a.loading({key:e,duration:0,content:t({en:"Scanning ranking friends...",vi:"Đang tải xếp hạng bạn bè..."})});const n=await vn();console.log(n),a.destroy(e),g.open({type:"success",duration:0,message:t({en:`Scan ranking completed: ${n.length} friends`,vi:`Quét xếp hạng bạn bè xong: ${n.length} bạn`}),description:i.jsxs(i.Fragment,{children:["Top 20:",i.jsx("br",{}),i.jsx("ol",{children:n.slice(0,20).map((s,o)=>i.jsxs(i.Fragment,{children:[i.jsx("a",{href:R(s.uid),target:"_blank",children:o+1+": "+s.name},s.uid),i.jsx("br",{})]}))})]})}),H(n.map(s=>s.uid))},Ke=async()=>{if(!await W())return;oe(!0);const e="AllFriends:onClickDeepScan";E(e),a.loading({key:e,content:t({en:"Deep Scanning...",vi:"Đang quét chuyên sâu..."}),duration:0});const n=await an(),s=[];let o=null;for(;;){const l=await xn({myUid:n,cursor:o}),{edges:d=[],page_info:h={}}=Ie(l)||{};if(!d.length)break;const p=d.map(r=>{var u,x,N,T,I,L,A,ge,me,fe,pe,ke,xe,ve,ye,be,je,Fe,we,Ne;let c=(x=(u=r==null?void 0:r.node)==null?void 0:u.node)==null?void 0:x.id;if(!/^\d+$/.exec(c))try{let X=atob(c);c=((N=/\d+/.exec(X))==null?void 0:N[0])||c}catch(X){console.log(X)}return{uid:c,name:(I=(T=r==null?void 0:r.node)==null?void 0:T.title)==null?void 0:I.text,avatar:(A=(L=r==null?void 0:r.node)==null?void 0:L.image)==null?void 0:A.uri,avatarLarge:Ae(c),url:(ge=r==null?void 0:r.node)==null?void 0:ge.url,mutualFriendCount:((ke=(pe=(fe=(me=r==null?void 0:r.node)==null?void 0:me.subtitle_text)==null?void 0:fe.aggregated_ranges)==null?void 0:pe[0])==null?void 0:ke.count)||0,gender:((Fe=(je=(be=(ye=(ve=(xe=r==null?void 0:r.node)==null?void 0:xe.actions_renderer)==null?void 0:ve.action)==null?void 0:ye.client_handler)==null?void 0:be.profile_action)==null?void 0:je.restrictable_profile_owner)==null?void 0:Fe.gender)||"UNKNOW",isLocked:!((we=r==null?void 0:r.node)!=null&&we.subtitle_text)||!((Ne=r==null?void 0:r.node)!=null&&Ne.url),cursor:(r==null?void 0:r.cursor)||(h==null?void 0:h.end_cursor)}});w(r=>Z(r,c=>(p.forEach(u=>{if(!u.uid)return;const x=c.find(N=>N.uid===u.uid);x?(x.mutualFriendCount=u.mutualFriendCount,x.gender=u.gender,x.quickFilters||(x.quickFilters=[]),u.isLocked&&!x.quickFilters.includes("Locked")&&x.quickFilters.push("Locked")):u.isLocked&&c.push({...u,quickFilters:["Locked"]})}),c))),s.push(...p),o=p[p.length-1].cursor,a.loading({key:e,content:t({en:"Deep Scanning...",vi:"Đang quét chuyên sâu..."})+`${~~(s.length/f.length*100)}% (${s.length}/${f.length})`,duration:0}),await G(200)}a.destroy(e),g.open({type:"success",message:t({en:"Deep Scanning completed",vi:"Hoàn tất Quét chuyên sâu"})+` (${s.length}/${f.length})`,description:t({en:'Please see in "Quick filters" column',vi:'Vui lòng xem cột "Bộ lọc"'})}),oe(!1)},Qe=[{title:"#",key:"recent",dataIndex:"recent",sorter:(e,n)=>e.recent-n.recent,render:(e,n,s)=>n.recent+1,width:70,align:"center"},{title:t({en:"Name",vi:"Tên"}),dataIndex:"name",key:"name",sorter:(e,n)=>e.name.localeCompare(n.name),onSearch:(e,n,s)=>Ce(e,n)||Ce(e,s==null?void 0:s.uid),render:(e,n,s)=>i.jsxs(Y,{style:{maxWidth:300},children:[i.jsx(dn,{shape:"square",src:i.jsx(un,{src:n.avatarLarge,fallback:n.avatar}),size:50}),i.jsxs(Y,{direction:"vertical",style:{marginLeft:"10px"},size:0,children:[i.jsx("a",{href:n.url,target:"_blank",children:i.jsx("b",{children:n.name})}),i.jsx("span",{style:{opacity:.5},children:n.uid})]})]}),width:"auto"},{title:t({en:"Quick Filters",vi:"Bộ lọc"}),dataIndex:"quickFilters",key:"quickFilters",render:(e,n,s)=>{var o;return((o=n.quickFilters)==null?void 0:o.map(l=>i.jsx(Q,{color:ne[l].color,children:t(ne[l])},l)))||""},filters:Object.entries(ne).map(([e,n])=>({text:t(n)+" ("+f.filter(s=>{var o;return(o=s.quickFilters)==null?void 0:o.includes(e)}).length+")",value:e})),onFilter:(e,n)=>{var s;return(s=n.quickFilters)==null?void 0:s.includes(e)},width:150},...f.find(e=>e.gender)?[{title:t({en:"Gender",vi:"Giới tính"}),key:"gender",dataIndex:"gender",render:(e,n,s)=>{const o=t(Te[n.gender])||"-";return n.gender==="FEMALE"?i.jsx(Q,{color:"pink",children:o}):o},filters:Object.entries(Te).map(([e,n])=>({text:t(n)+" ("+f.filter(s=>s.gender===e).length+")",value:e})),onFilter:(e,n)=>n.gender==e,width:120}]:[],...f.find(e=>e.mutualFriendCount)?[{title:t({en:"Mutual",vi:"Bạn chung"}),key:"mutualFriendCount",dataIndex:"mutualFriendCount",sorter:(e,n)=>e.mutualFriendCount-n.mutualFriendCount,width:120,align:"right"}]:[],...$.length?[{title:t({en:"Ranking",vi:"Xếp hạng"}),key:"ranking",dataIndex:"ranking",render:(e,n,s)=>e==-1?"_":e+1,sorter:(e,n)=>(e.ranking==-1?1/0:e.ranking)-(n.ranking==-1?1/0:n.ranking),width:100,align:"right"}]:[],...j!=null&&j.length?[{title:t({en:"Reactions",vi:"Thích"}),key:"reactions",dataIndex:"reactions",sorter:(e,n)=>e.reactions-n.reactions,width:100,align:"right"},{title:t({en:"Comments",vi:"Bình luận"}),key:"comments",dataIndex:"comments",sorter:(e,n)=>e.comments-n.comments,width:100,align:"right"}]:[],{title:t({en:"Friend status",vi:"Trạng thái"}),dataIndex:"status",key:"status",width:150,filters:Object.entries(k).map(([e,n])=>({text:t($e(n))+" ("+f.filter(s=>{var o,l;return((o=s.statuses)==null?void 0:o.includes(n))||n===k.FRIEND&&!((l=s.statuses)!=null&&l.length)}).length+")",value:n})),onFilter:(e,n)=>{var s,o;return((s=n.statuses)==null?void 0:s.includes(e))||e==k.FRIEND&&!((o=n.statuses)!=null&&o.length)},render:(e,n,s)=>{var o;return(o=n==null?void 0:n.statuses)!=null&&o.length?n.statuses.map(l=>({key:l,value:t($e(l))})).map(({key:l,value:d})=>i.jsx(Q,{color:jn[l],children:d},l)):t({en:"Friend",vi:"Bạn bè"})},align:"right"},{title:t({en:"Action",vi:"Hành động"}),dataIndex:"action",key:"download",render:(e,n,s)=>{var o,l;return i.jsxs(Y.Compact,{children:[i.jsx(D,{title:t({en:"Bulk Downloader",vi:"Tải hàng loạt"}),children:i.jsx(C,{type:"default",onClick:()=>Pe(n.uid),icon:i.jsx("i",{className:"fa-solid fa-download"})})}),i.jsx(D,{title:t({en:"Poke",vi:"Chọc"}),children:i.jsx(C,{type:"default",onClick:()=>ue(n),icon:i.jsx("i",{className:"fa-regular fa-hand-point-right"})})}),(o=n.statuses)!=null&&o.includes(k.UNFRIENDED)||(l=n.statuses)!=null&&l.includes(k.NEW)?i.jsx(D,{title:t({en:"Request friend",vi:"Gửi kết bạn"}),children:i.jsx(C,{type:"default",onClick:()=>he(n),icon:i.jsx("i",{className:"fa-solid fa-user-plus"})})}):i.jsx(D,{title:t({en:"Unfriend",vi:"Huỷ kết bạn"}),children:i.jsx(C,{danger:!0,onClick:()=>de(n),icon:i.jsx("i",{className:"fa-solid fa-trash-can"})})})]})},width:150,align:"right"}],We=e=>{var o,l;const n=(o=e==null?void 0:e.filter)==null?void 0:o.call(e,Fn),s=(l=e==null?void 0:e.filter)==null?void 0:l.call(e,wn);return i.jsxs(i.Fragment,{children:[i.jsx(C,{type:"primary",icon:te?i.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):i.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:le,children:t({en:"Reload",vi:"Tải lại"})}),i.jsx(Je,{data:e.length?e:f,options:[{key:"uid",label:".txt (friend uid)",prepareData:d=>({fileName:"friends_"+K().format("YYYY-MM-DD-HHmmss")+".txt",data:d.map(h=>h.uid).join(` +const __vite__fileDeps=["./UploadModal-CFIzpthN.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./index-DhqkrVsj.js","./PurePanel-yY9muMEs.js","./MyApp-CmkiOnMb.js","./useBreakpoint-CDLrV-mr.js","./responsiveObserver-Bb1LONna.js","./EyeOutlined-Du2MtFRM.js","./index-Bumumc8Y.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{aI as Ge,au as V,av as J,r as _,aA as i,aB as C,aF as ze,aT as Xe,aS as Z}from"./index-BBriuzNA.js";import{d as K}from"./dayjs.min-Qbr7UE_g.js";import Ve from"./MyTable-C-6hHnGo.js";import{E as Je}from"./ExportButton-DABx3myg.js";import{D as P,E as q,G as Ie,i as R,j as Ae,H as Ze,I as en,d as nn,u as tn,g as ee,t as E,J as sn,K as rn,L as Ce,b as Y,c as Q,T as D,o as Ee,B as De,k as W,M as G,N as on,O as _e,P as an}from"./MyApp-CmkiOnMb.js";import{u as cn}from"./useForceStop-DOwcs-PE.js";import{d as ln}from"./messages-BLu7ptC2.js";import{A as dn}from"./index-CbmP82sr.js";import{I as un}from"./index-Dm20K0UU.js";import{R as hn}from"./row-C0Wk6t4-.js";import{T as gn}from"./index-Bumumc8Y.js";import{P as Ue}from"./index-Dg6R6lHP.js";import{P as z}from"./index-BM7CeakW.js";import"./index-NjHtWr7u.js";import"./Table-By6CV266.js";import"./addEventListener-w7NT04KM.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-tTPNrueW.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./Pagination-slfcHA-i.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./file-download-Dys_FsHc.js";async function mn({myUid:a,targetUid:g=""}){const v=await P({doc_id:"4936483286421335",variables:{id:g||a,query:"",scale:1}});try{const t=q(v||"{}"),{edges:b=[]}=Ie(t,!1);return b.map(m=>{var F,y,f,w,j,U;return{uid:(F=m.node)==null?void 0:F.id,url:((y=m.node)==null?void 0:y.url)||R((f=m.node)==null?void 0:f.id),name:(w=m.node)==null?void 0:w.name,avatar:(U=(j=m.node)==null?void 0:j.photo)==null?void 0:U.uri,avatarLarge:Ae(m.node.id)}})}catch{return[]}}async function fn({myUid:a,targetUid:g}){var b;const v=await P({doc_id:"8752443744796374",variables:{input:{source:"friending_jewel",unfriended_user_id:g,actor_id:a},scale:1}}),t=q(v||"{}");if((b=t.errors)!=null&&b.length)throw new Error(t.errors[0].message);return t}async function pn({myUid:a,targetUid:g}){var b;const v=await P({doc_id:"6294978773852692",variables:{input:{attribution_id_v2:"FriendingCometRoot.react,comet.friending,tap_tabbar,1667288605315,127814,2356318349,",friend_requestee_ids:[g],people_you_may_know_location:"friends_center",refs:[null],source:"people_you_may_know",warn_ack_for_ids:[],actor_id:a},scale:2}}),t=q(v);if((b=t.errors)!=null&&b.length)throw new Error(t.errors[0].message);return t}async function kn({myUid:a,targetUid:g}){var b,m,F,y,f,w,j;const v=await P({doc_id:"5028133957233114",variables:{input:{actor_id:a,user_id:g}}}),t=q(v||"{}");if((b=t.errors)!=null&&b.length)throw new Error(t.errors[0].message);if(((y=(F=(m=t==null?void 0:t.data)==null?void 0:m.user_poke)==null?void 0:F.user)==null?void 0:y.poke_status)!="PENDING")throw new Error("Failed to poke friend: "+((j=(w=(f=t==null?void 0:t.data)==null?void 0:f.user_poke)==null?void 0:w.user)==null?void 0:j.poke_status));return t}async function xn({myUid:a,cursor:g=null}){let v=await P({doc_id:"4186250744800382",variables:{count:8,cursor:g,scale:2,id:btoa(`app_collection:${a}:2356318349:2`)}});return q(v)}async function vn(){try{const a=await Ze("https://www.facebook.com/me",{method:"GET",headers:{Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"}}),g=a.indexOf("chat_sidebar_contact_rankings");let v=g;for(;a[v]!=">"&&v>0;)v--;let t=g;for(;a[t]!="<"&&ty.status==0))||[]).map(y=>{var f,w,j,U,$,H;return{uid:y.buddy_id||((f=y.user)==null?void 0:f.id),name:(w=y.user)==null?void 0:w.name,avatar:(U=(j=y.user)==null?void 0:j.profile_picture)==null?void 0:U.uri,hasStory:((H=($=y.story_bucket)==null?void 0:$.nodes)==null?void 0:H.length)>0}})}catch(a){return console.error(a),[]}}const yn=_.lazy(()=>ze(()=>import("./UploadModal-CFIzpthN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),{Title:bn}=gn,k={FRIEND:"Friend",POKED:"Poked",UNFRIENDED:"Unfriended",REQUESTED:"Requested friend",NEW:"New friend"},jn={[k.POKED]:"green",[k.UNFRIENDED]:"red",[k.NEW]:"blue",[k.REQUESTED]:"pink"},$e=a=>{switch(a){case k.FRIEND:return{en:"Friend",vi:"Bạn bè"};case k.POKED:return{en:"Poked",vi:"Đã chọc"};case k.UNFRIENDED:return{en:"Unfriended",vi:"Đã huỷ kết bạn"};case k.REQUESTED:return{en:"Requested friend",vi:"Đã gửi kết bạn"};case k.NEW:return{en:"New friend",vi:"Bạn mới"};default:return a}},Fn=a=>{const g=(a==null?void 0:a.statuses)||[];return!g.includes(k.REQUESTED)&&(g.includes(k.NEW)||g.includes(k.UNFRIENDED))},wn=a=>{const g=(a==null?void 0:a.statuses)||[];return!g.includes(k.NEW)&&!g.includes(k.UNFRIENDED)},ne={"Name contains special characters":{en:"Special characters",vi:"Ký tự đặc biệt",color:"orange"},"Name contains numbers":{en:"Contains numbers",vi:"Chứa số",color:"purple"},"No avatar":{en:"No avatar",vi:"Không avatar",color:"cyan"},"Strange uid":{en:"Strange UID",vi:"UID lạ",color:"blue"},Locked:{en:"Locked",vi:"Bị khoá",color:"red"},"Blocked messages":{en:"Blocked messages",vi:"Chặn tin nhắn",color:"red"}},Te={MALE:{en:"Male",vi:"Nam"},FEMALE:{en:"Female",vi:"Nữ"},UNKNOW:{en:"Unknown",vi:"Không xác định"}};function Zn(){const{message:a,notification:g}=nn(),v=Ge(),{ti:t}=tn(),b=cn(),m=V(J.profile),F=V(J.friendsByUid),y=V(J.setFriendsByUid),[f,w]=ee("AllFriends.data",[]),[j,U]=ee("AllFriends.interactions",[]),[$,H]=ee("AllFriends.ranking",[]),B=_.useMemo(()=>{var s,o;const e=new Map,n=new Map;for(let l of j)(s=l.reactions_uid)==null||s.forEach(d=>e.set(d,(e.get(d)||0)+1)),(o=l.comments_uid)==null||o.forEach(d=>n.set(d,(n.get(d)||0)+1));return{reactions:e,comments:n}},[j]),O=_.useMemo(()=>(f==null?void 0:f.map((e,n)=>{var s,o;return{...e,recent:n,comments:((s=B==null?void 0:B.comments)==null?void 0:s.get(e.uid))||0,reactions:((o=B==null?void 0:B.reactions)==null?void 0:o.get(e.uid))||0,ranking:$==null?void 0:$.indexOf(e.uid)}}))||[],[f,B,$]),[te,ie]=_.useState(!1),[se,re]=_.useState(0),[Re,oe]=_.useState(!1),[ae,ce]=_.useState(!1),M=_.useRef(null);_.useEffect(()=>{m!=null&&m.uid&&!(f!=null&&f.length)&&le()},[]);const S=(e,n,s=!1,o=!1)=>{w(l=>Z(l,h=>{Array.isArray(e)||(e=[e]);let p=[];for(let r of e){let c=h.findIndex(x=>x.uid==((r==null?void 0:r.uid)||r)),u=h[c];u?(u.statuses||(u.statuses=[]),!s&&!u.statuses.includes(n)?u.statuses.push(n):(Array.isArray(n)||(n=[n]),u.statuses=n),o&&p.push({index:c,data:u})):o?h.unshift({...r,statuses:[n]}):h.push({...r,statuses:[n]})}for(let{index:r,data:c}of p)h.splice(r,1),h.unshift(c);return h}))},Be=(e=f)=>{let n=!1;const s=(F==null?void 0:F[m.uid])||[],o=e.map(c=>c.uid),l=s.map(c=>c.uid),d=new Set(o),h=new Set(l),p=o.filter(c=>!h.has(c)),r=l.filter(c=>!d.has(c));p.length&&(n=!0,console.log("New friends: ",p),S(p,k.NEW,!0),s!=null&&s.length?g.open({type:"success",duration:0,message:t({en:`Find ${p.length} new friends`,vi:`Tìm thấy ${p.length} bạn mới`}),description:i.jsx("div",{style:{maxHeight:300,overflowY:"auto",overflowX:"hidden"},children:i.jsx("ol",{children:p.map(c=>{const u=e.find(x=>x.uid==c);return i.jsx("li",{children:i.jsx("a",{href:R(c),target:"_blank",children:(u==null?void 0:u.name)||c})},c)})})})}):g.open({type:"success",duration:0,message:t({en:`Saved friends to cache: ${p.length}`,vi:`Đã lưu danh sách bạn bè: ${p.length}`}),description:t({en:"Will notify if you have new friends / someone unfriended to you in future",vi:"Sẽ thông báo nếu có bạn mới / người huỷ kết bạn với bạn trong tương lai"})})),r.length&&(n=!0,console.log("Deleted friends: ",r),g.open({type:"info",duration:0,message:t({en:`Find ${r.length} unfriended`,vi:`Có ${r.length} người huỷ kết bạn`}),description:i.jsx("div",{style:{maxHeight:300,overflowY:"auto",overflowX:"hidden"},children:i.jsx("ol",{children:r.map(c=>{const u=s.find(x=>x.uid==c);return i.jsx("li",{children:i.jsx("a",{href:R(c),target:"_blank",children:(u==null?void 0:u.name)||c})},c)})})})})),n&&y(m==null?void 0:m.uid,e.map(c=>({uid:c.uid,name:c.name})))},le=()=>{if(te)return;E("AllFriends:onClickReload");const e="onClickReload";a.loading({key:e,content:t({en:"Fetching friends...",vi:"Đang tải bạn bè..."}),duration:0}),ie(!0),mn({myUid:m==null?void 0:m.uid}).then(n=>{var o;if(Be(n),!(n!=null&&n.length))return a.error({key:e,content:t({en:"No data to show",vi:"Không có dữ liệu"})});const s=n.map(l=>{var d;return{...l,quickFilters:[(d=l.uid)!=null&&d.startsWith("1000")?null:"Strange uid",sn(l.avatar)?"No avatar":null,/\d/.test(l.name)?"Name contains numbers":null,rn(l.name)?"Name contains special characters":null].filter(Boolean)}});w(s),console.log(s),a.success({key:e,content:t({en:"Fetch friends completed",vi:"Tải xong bạn bè"})}),(o=M.current)==null||o.clearFilter()}).catch(n=>{a.error({key:e,content:t({en:"Failed to fetch friends",vi:"Lỗi tải bạn bè"})+": "+n.message}),console.log(n)}).finally(()=>{ie(!1)})},de=async e=>{E("AllFriends:onClickUnfriendOne");const n="onClickUnfriendOne"+e.uid;try{return a.loading({key:n,content:t({en:"Unfriending...",vi:"Đang huỷ kết bạn..."})+" "+e.name,duration:0}),await fn({myUid:m==null?void 0:m.uid,targetUid:e.uid}),a.success({key:n,content:t({en:"Unfriend completed",vi:"Đã huỷ kết bạn"})+": "+e.name}),S(e,k.UNFRIENDED),!0}catch(s){return a.error({key:n,content:t({en:"Failed to unfriend",vi:"Lỗi huỷ kết bạn"})+": "+e.name+": "+s.message}),console.log(s),!1}},qe=async e=>{if(!await W())return;E("AllFriends:onClickUnfriendSelected");const n=new Set;for(let o of e)await de(o)&&n.add(o.uid),await G(500);const s=n.size+"/"+e.length;g.open({type:"success",message:t({en:"Success",vi:"Thành công"}),description:t({en:`Unfriended completed ${s} friends`,vi:`Đã huỷ kết bạn với ${s} người`}),duration:0})},ue=async e=>{E("AllFriends:onClickPokeFriend");const n="onClickPokeFriend"+e.uid;try{return a.loading({key:n,content:t({en:"Poking...",vi:"Đang chọc..."})+" "+e.name,duration:0}),await kn({myUid:m==null?void 0:m.uid,targetUid:e.uid}),a.success({key:n,content:t({en:"Poke completed",vi:"Chọc thành công"})+": "+e.name}),S(e,k.POKED),!0}catch(s){return a.error({key:n,content:t({en:"Failed to poke",vi:"Chọc thất bại"})+": "+e.name+": "+s.message}),console.log(s),!1}},Se=async e=>{E("AllFriends:onClickPokeSelected");const n=new Set;for(let o of e)await ue(o)&&n.add(o.uid),await G(500);const s=n.size+"/"+e.length;g.open({type:"success",message:t({en:"Success",vi:"Thành công"}),description:t({en:`Poke completed ${s} friends`,vi:`Đã chọc ${s} bạn`}),duration:0})},he=async e=>{E("AllFriends:onClickAddFriend");const n="onClickAddFriend"+e.uid;try{return a.loading({key:n,content:t({en:"Sending friend request...",vi:"Đang gửi kết bạn..."})+" "+e.name,duration:0}),await pn({myUid:m==null?void 0:m.uid,targetUid:e.uid}),a.success({key:n,content:t({en:"Send friend request success",vi:"Gửi kết bạn thành công"})+": "+e.name}),S(e,k.REQUESTED),!0}catch(s){return a.error({key:n,content:t({en:"Failed to send friend request",vi:"Lỗi gửi kết bạn"})+": "+s.message}),!1}},Le=async e=>{if(!await W())return;E("AllFriends:onClickAddFriendSelected");const n=new Set;for(let o of e)await he(o)&&n.add(o.uid),await G(500);const s=n.size+"/"+e.length;g.open({type:"success",message:t({en:"Success",vi:"Thành công"}),description:t({en:`Sent friend request success ${s} users`,vi:`Gửi kết bạn thành công với ${s} người`}),duration:0})},Me=async()=>{var h,p;if(se)return;const e="AllFriends:onClickFindBlockedMessages";E(e);const n=(h=M.current)==null?void 0:h.getDataSelected(),s=n!=null&&n.length?n:f,o=[];let l=!1;for(let r=0;rl=!0});const c=s[r];await ln(c.uid)||(o.push(c),(p=M.current)==null||p.setDataSelected(o.map(u=>f.find(x=>x.uid===u.uid)||u)),w(u=>Z(u,x=>{var T;const N=x.find(I=>I.uid===c.uid);N&&!((T=N.quickFilters)!=null&&T.includes("Blocked messages"))&&(N.quickFilters||(N.quickFilters=[]),N.quickFilters.push("Blocked messages"))})),a.success({key:e,content:t({en:"Found",vi:"Tìm thấy"})+" "+c.name+" ("+o.length+")"}))}re(!1);const d=o.length?i.jsxs(i.Fragment,{children:[t({en:`Found ${o.length} friends blocking your messages`,vi:`Tìm thấy ${o.length} bạn bè chặn tin nhắn`}),i.jsx("br",{}),i.jsx("ul",{children:o.map(r=>i.jsx("li",{children:r.name},r.uid))})]}):t({en:"No one block messages you",vi:"Không ai chặn tin nhắn của bạn"});a.success({key:e,content:d}),g.open({type:"success",message:t({en:"Success",vi:"Thành công"}),description:d,duration:0})},Ye=async e=>{var n;if(!e)return a.error(t({en:"File empty",vi:"File rỗng"}));E("AllFriends:onUploadFriendsFile");try{const s=q(e,[]);if(!Array.isArray(s)||!(s!=null&&s.length))return a.error(t({en:"No data",vi:"Không có dữ liệu"}));const o=s.map(r=>r.uid).filter(Boolean);debugger;if(!o.length)return a.error(t({en:"No friends data in file",vi:"Không có dữ liệu bạn bè trong file"}));const l=new Set(o),d=[];for(let r of f)l.has(r.uid)||d.push(r);const h=new Set(f.map(r=>r.uid)),p=[];for(let r of s)h.has(r.uid)||p.push(r);S(d,k.NEW,!1,!0),S(p,k.UNFRIENDED,!1,!0),[{title:t({en:`Found ${d.length} new friends`,vi:`Tìm thấy ${d.length} bạn mới`}),text:i.jsx("div",{style:{maxHeight:300,overflowY:"auto",overflowX:"hidden"},children:i.jsx("ol",{children:d.map(r=>i.jsx("li",{children:i.jsx("a",{href:R(r.uid),target:"_blank",children:r.name})},r.uid))})})},{title:t({en:`Found ${p.length} unfriended`,vi:`Tìm thấy ${p.length} người huỷ kết bạn`}),text:i.jsx("div",{style:{maxHeight:300,overflowY:"auto",overflowX:"hidden"},children:i.jsx("ol",{children:p.map(r=>i.jsx("li",{children:i.jsx("a",{href:R(r.uid),target:"_blank",children:r.name})},r.uid))})})}].forEach(({title:r,text:c})=>g.open({type:"success",message:r,description:c,duration:0})),(p.length||d.length)&&((n=M.current)==null||n.setDataSelected([...p,...d]))}catch(s){a.error(s.message)}},Pe=e=>{v("/bulk-downloader",{state:{targetId:e,platform:Xe.Facebook}})},He=async()=>{if(!await W()||ae)return;ce(!0);const e=b.start(),n="AllFriends:onClickScanInteractions";E(n),a.loading({key:n,duration:0,content:t({en:"Loading posts...",vi:"Đang tải bài viết..."})});let s=!1;const o=await on(1/0,r=>{var T;U([...r]);const c=r.reduce((I,L)=>{var A;return I+(((A=L.comments_uid)==null?void 0:A.length)||0)},0),u=r.reduce((I,L)=>{var A;return I+(((A=L.reactions_uid)==null?void 0:A.length)||0)},0),x=new Date(((T=r[r.length-1])==null?void 0:T.created_time)||0),N=_e(x);a.loading({key:n,duration:0,content:i.jsxs(i.Fragment,{children:[t({en:`Loading ${N}: ${r.length} posts, ${u} reactions, ${c} comments...`,vi:`Đang tải ${N}: ${r.length} bài viết, ${u} lượt thích, ${c} bình luận...`}),i.jsx("br",{}),i.jsx("i",{children:t({en:"Click to stop",vi:"Bấm để dừng"})})]}),onClick:()=>s=!0})},()=>s||e.value()),l=o.reduce((r,c)=>{var u;return r+(((u=c.comments_uid)==null?void 0:u.length)||0)},0),d=o.reduce((r,c)=>{var u;return r+(((u=c.reactions_uid)==null?void 0:u.length)||0)},0);a.destroy(n);const h=o[o.length-1],p=_e(new Date((h==null?void 0:h.created_time)||0));g.open({type:"success",duration:0,message:t({en:"Scan interactions finished",vi:"Quét tương tác xong"}),description:i.jsxs(i.Fragment,{children:[t({en:`Scanned ${o.length} posts, ${d} reactions, ${l} comments, last post ${p} `,vi:`Quét được ${o.length} bài viết, ${d} lượt thích, ${l} bình luận, bài viết cuối ${p} `}),i.jsx("a",{href:R(h==null?void 0:h.postId),target:"_blank",children:R(h==null?void 0:h.postId)})]})}),U(o),ce(!1)},Oe=async()=>{const e="AllFriends:onClickFindBuddy";E(e),a.loading({key:e,duration:0,content:t({en:"Scanning ranking friends...",vi:"Đang tải xếp hạng bạn bè..."})});const n=await vn();console.log(n),a.destroy(e),g.open({type:"success",duration:0,message:t({en:`Scan ranking completed: ${n.length} friends`,vi:`Quét xếp hạng bạn bè xong: ${n.length} bạn`}),description:i.jsxs(i.Fragment,{children:["Top 20:",i.jsx("br",{}),i.jsx("ol",{children:n.slice(0,20).map((s,o)=>i.jsxs(i.Fragment,{children:[i.jsx("a",{href:R(s.uid),target:"_blank",children:o+1+": "+s.name},s.uid),i.jsx("br",{})]}))})]})}),H(n.map(s=>s.uid))},Ke=async()=>{if(!await W())return;oe(!0);const e="AllFriends:onClickDeepScan";E(e),a.loading({key:e,content:t({en:"Deep Scanning...",vi:"Đang quét chuyên sâu..."}),duration:0});const n=await an(),s=[];let o=null;for(;;){const l=await xn({myUid:n,cursor:o}),{edges:d=[],page_info:h={}}=Ie(l)||{};if(!d.length)break;const p=d.map(r=>{var u,x,N,T,I,L,A,ge,me,fe,pe,ke,xe,ve,ye,be,je,Fe,we,Ne;let c=(x=(u=r==null?void 0:r.node)==null?void 0:u.node)==null?void 0:x.id;if(!/^\d+$/.exec(c))try{let X=atob(c);c=((N=/\d+/.exec(X))==null?void 0:N[0])||c}catch(X){console.log(X)}return{uid:c,name:(I=(T=r==null?void 0:r.node)==null?void 0:T.title)==null?void 0:I.text,avatar:(A=(L=r==null?void 0:r.node)==null?void 0:L.image)==null?void 0:A.uri,avatarLarge:Ae(c),url:(ge=r==null?void 0:r.node)==null?void 0:ge.url,mutualFriendCount:((ke=(pe=(fe=(me=r==null?void 0:r.node)==null?void 0:me.subtitle_text)==null?void 0:fe.aggregated_ranges)==null?void 0:pe[0])==null?void 0:ke.count)||0,gender:((Fe=(je=(be=(ye=(ve=(xe=r==null?void 0:r.node)==null?void 0:xe.actions_renderer)==null?void 0:ve.action)==null?void 0:ye.client_handler)==null?void 0:be.profile_action)==null?void 0:je.restrictable_profile_owner)==null?void 0:Fe.gender)||"UNKNOW",isLocked:!((we=r==null?void 0:r.node)!=null&&we.subtitle_text)||!((Ne=r==null?void 0:r.node)!=null&&Ne.url),cursor:(r==null?void 0:r.cursor)||(h==null?void 0:h.end_cursor)}});w(r=>Z(r,c=>(p.forEach(u=>{if(!u.uid)return;const x=c.find(N=>N.uid===u.uid);x?(x.mutualFriendCount=u.mutualFriendCount,x.gender=u.gender,x.quickFilters||(x.quickFilters=[]),u.isLocked&&!x.quickFilters.includes("Locked")&&x.quickFilters.push("Locked")):u.isLocked&&c.push({...u,quickFilters:["Locked"]})}),c))),s.push(...p),o=p[p.length-1].cursor,a.loading({key:e,content:t({en:"Deep Scanning...",vi:"Đang quét chuyên sâu..."})+`${~~(s.length/f.length*100)}% (${s.length}/${f.length})`,duration:0}),await G(200)}a.destroy(e),g.open({type:"success",message:t({en:"Deep Scanning completed",vi:"Hoàn tất Quét chuyên sâu"})+` (${s.length}/${f.length})`,description:t({en:'Please see in "Quick filters" column',vi:'Vui lòng xem cột "Bộ lọc"'})}),oe(!1)},Qe=[{title:"#",key:"recent",dataIndex:"recent",sorter:(e,n)=>e.recent-n.recent,render:(e,n,s)=>n.recent+1,width:70,align:"center"},{title:t({en:"Name",vi:"Tên"}),dataIndex:"name",key:"name",sorter:(e,n)=>e.name.localeCompare(n.name),onSearch:(e,n,s)=>Ce(e,n)||Ce(e,s==null?void 0:s.uid),render:(e,n,s)=>i.jsxs(Y,{style:{maxWidth:300},children:[i.jsx(dn,{shape:"square",src:i.jsx(un,{src:n.avatarLarge,fallback:n.avatar}),size:50}),i.jsxs(Y,{direction:"vertical",style:{marginLeft:"10px"},size:0,children:[i.jsx("a",{href:n.url,target:"_blank",children:i.jsx("b",{children:n.name})}),i.jsx("span",{style:{opacity:.5},children:n.uid})]})]}),width:"auto"},{title:t({en:"Quick Filters",vi:"Bộ lọc"}),dataIndex:"quickFilters",key:"quickFilters",render:(e,n,s)=>{var o;return((o=n.quickFilters)==null?void 0:o.map(l=>i.jsx(Q,{color:ne[l].color,children:t(ne[l])},l)))||""},filters:Object.entries(ne).map(([e,n])=>({text:t(n)+" ("+f.filter(s=>{var o;return(o=s.quickFilters)==null?void 0:o.includes(e)}).length+")",value:e})),onFilter:(e,n)=>{var s;return(s=n.quickFilters)==null?void 0:s.includes(e)},width:150},...f.find(e=>e.gender)?[{title:t({en:"Gender",vi:"Giới tính"}),key:"gender",dataIndex:"gender",render:(e,n,s)=>{const o=t(Te[n.gender])||"-";return n.gender==="FEMALE"?i.jsx(Q,{color:"pink",children:o}):o},filters:Object.entries(Te).map(([e,n])=>({text:t(n)+" ("+f.filter(s=>s.gender===e).length+")",value:e})),onFilter:(e,n)=>n.gender==e,width:120}]:[],...f.find(e=>e.mutualFriendCount)?[{title:t({en:"Mutual",vi:"Bạn chung"}),key:"mutualFriendCount",dataIndex:"mutualFriendCount",sorter:(e,n)=>e.mutualFriendCount-n.mutualFriendCount,width:120,align:"right"}]:[],...$.length?[{title:t({en:"Ranking",vi:"Xếp hạng"}),key:"ranking",dataIndex:"ranking",render:(e,n,s)=>e==-1?"_":e+1,sorter:(e,n)=>(e.ranking==-1?1/0:e.ranking)-(n.ranking==-1?1/0:n.ranking),width:100,align:"right"}]:[],...j!=null&&j.length?[{title:t({en:"Reactions",vi:"Thích"}),key:"reactions",dataIndex:"reactions",sorter:(e,n)=>e.reactions-n.reactions,width:100,align:"right"},{title:t({en:"Comments",vi:"Bình luận"}),key:"comments",dataIndex:"comments",sorter:(e,n)=>e.comments-n.comments,width:100,align:"right"}]:[],{title:t({en:"Friend status",vi:"Trạng thái"}),dataIndex:"status",key:"status",width:150,filters:Object.entries(k).map(([e,n])=>({text:t($e(n))+" ("+f.filter(s=>{var o,l;return((o=s.statuses)==null?void 0:o.includes(n))||n===k.FRIEND&&!((l=s.statuses)!=null&&l.length)}).length+")",value:n})),onFilter:(e,n)=>{var s,o;return((s=n.statuses)==null?void 0:s.includes(e))||e==k.FRIEND&&!((o=n.statuses)!=null&&o.length)},render:(e,n,s)=>{var o;return(o=n==null?void 0:n.statuses)!=null&&o.length?n.statuses.map(l=>({key:l,value:t($e(l))})).map(({key:l,value:d})=>i.jsx(Q,{color:jn[l],children:d},l)):t({en:"Friend",vi:"Bạn bè"})},align:"right"},{title:t({en:"Action",vi:"Hành động"}),dataIndex:"action",key:"download",render:(e,n,s)=>{var o,l;return i.jsxs(Y.Compact,{children:[i.jsx(D,{title:t({en:"Bulk Downloader",vi:"Tải hàng loạt"}),children:i.jsx(C,{type:"default",onClick:()=>Pe(n.uid),icon:i.jsx("i",{className:"fa-solid fa-download"})})}),i.jsx(D,{title:t({en:"Poke",vi:"Chọc"}),children:i.jsx(C,{type:"default",onClick:()=>ue(n),icon:i.jsx("i",{className:"fa-regular fa-hand-point-right"})})}),(o=n.statuses)!=null&&o.includes(k.UNFRIENDED)||(l=n.statuses)!=null&&l.includes(k.NEW)?i.jsx(D,{title:t({en:"Request friend",vi:"Gửi kết bạn"}),children:i.jsx(C,{type:"default",onClick:()=>he(n),icon:i.jsx("i",{className:"fa-solid fa-user-plus"})})}):i.jsx(D,{title:t({en:"Unfriend",vi:"Huỷ kết bạn"}),children:i.jsx(C,{danger:!0,onClick:()=>de(n),icon:i.jsx("i",{className:"fa-solid fa-trash-can"})})})]})},width:150,align:"right"}],We=e=>{var o,l;const n=(o=e==null?void 0:e.filter)==null?void 0:o.call(e,Fn),s=(l=e==null?void 0:e.filter)==null?void 0:l.call(e,wn);return i.jsxs(i.Fragment,{children:[i.jsx(C,{type:"primary",icon:te?i.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):i.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:le,children:t({en:"Reload",vi:"Tải lại"})}),i.jsx(Je,{data:e.length?e:f,options:[{key:"uid",label:".txt (friend uid)",prepareData:d=>({fileName:"friends_"+K().format("YYYY-MM-DD-HHmmss")+".txt",data:d.map(h=>h.uid).join(` `)})},{key:"uid_name",label:".csv (friend uid+name)",prepareData:d=>({fileName:"friends_uid_name_"+K().format("YYYY-MM-DD-HHmmss")+".csv",data:Ee(d.map(h=>({uid:h.uid,name:h.name})))})},{key:"json",label:".json",prepareData:d=>({fileName:"friends"+K().format("YYYY-MM-DD-HHmmss")+".json",data:JSON.stringify(d,null,4)})},{key:"csv",label:".csv",prepareData:d=>({fileName:"friends"+K().format("YYYY-MM-DD-HHmmss")+".csv",data:Ee(d)})}]}),i.jsxs(Y.Compact,{children:[i.jsx(Ue,{title:t({en:"Check who is blocking your messages",vi:"Xem ai đang chặn tin nhắn của bạn"}),content:i.jsxs("ul",{children:[i.jsx("li",{children:t({en:"You still can message them",vi:"Bạn vẫn nhắn được cho họ"})}),i.jsx("li",{children:t({en:"They can still read your messages",vi:"Họ vẫn đọc được tin nhắn"})}),i.jsx("li",{children:t({en:"But facebook will never mark as read",vi:"Nhưng facebook sẽ không cập nhật trạng thái đã xem"})})]}),children:i.jsx(z,{title:t(t({en:"Check who is blocking your messages",vi:"Xem ai đang chặn tin nhắn của bạn"})),description:i.jsxs("ul",{children:[i.jsx("li",{children:t({en:`Are you sure to check ${(e==null?void 0:e.length)||O.length} friends?. `,vi:`Bạn có chắc muốn kiểm tra ${(e==null?void 0:e.length)||O.length} bạn bè?.`})}),i.jsx("li",{children:t({en:"You can select friends to check, instead of check all, to reduce load time.",vi:"Bạn có thể chọn bạn bè để kiểm tra, thay vì kiểm tra tất cả, để giảm thời gian xử lý."})})]}),onConfirm:Me,okText:t({en:"Yes",vi:"Kiểm tra"}),cancelText:t({en:"No",vi:"Huỷ"}),children:i.jsx(C,{loading:!!se,icon:i.jsx("i",{className:"fa-solid fa-comment-slash"})})})}),i.jsx(yn,{accept:".json",title:t({en:"Upload friends file",vi:"Tải lên file bạn bè đã lưu"}),text:t({en:"Click or drag file to this area to upload",vi:"Click chọn hoặc kéo thả file vào đây"}),hint:t({en:"Support only .json backup file",vi:"Chỉ hỗ trợ file .json được xuất từ trang này"}),onSubmit:Ye,renderButton:({showModal:d})=>i.jsx(Ue,{title:t({en:"Check who unfriend you",vi:"Kiểm tra ai huỷ kết bạn với bạn"}),content:i.jsxs("ul",{children:[i.jsx("li",{children:t({en:"How it work: Export friends data to file, then compare it later",vi:"Cách hoạt động: Lưu danh sách bạn bè ra file trước, sau đó so sánh"})}),i.jsx("li",{children:t({en:"FB AIO can automatically detect who unfriend you",vi:"FB AIO sẽ tự động thông báo khi có người huỷ kết bạn"})}),i.jsx("li",{children:t({en:"Only use this feature if you want manual check",vi:"Chỉ sử dụng chức năng này nếu bạn muốn chủ động kiểm tra bằng tay"})})]}),children:i.jsx(C,{onClick:d,icon:i.jsx("i",{className:"fa-solid fa-user-slash"})})})}),i.jsx(D,{title:t({en:"Rank who has interacted with you the most recently. (Recent interactions)",vi:"Xếp hạng xem ai tương tác với bạn nhiều nhất thời gian gần đây (Tương tác gần đây)"}),children:i.jsx(C,{onClick:Oe,icon:i.jsx("i",{className:"fa-solid fa-ranking-star"}),children:t({en:"Ranking",vi:"Xếp hạng"})})}),i.jsx(D,{title:t({en:"Count friend's reactions and comments on all of your profile's posts (Total interactions)",vi:"Đếm like và comment của bạn bè trên tất cả bài viết của bạn (Tổng tương tác)"}),children:i.jsx(De,{count:"Hot",color:"red",style:{color:"white",zIndex:3},children:i.jsx(C,{loading:ae,icon:i.jsx("i",{className:"fa-solid fa-thumbs-up"}),onClick:He,children:t({en:"Interactions",vi:"Tương tác"})})})}),i.jsx(D,{title:t({en:"Deep scan all friends to get: locked friends, gender, mutual friends ...",vi:"Quét tất cả bạn bè để biết: bạn bè bị khoá, giới tính, bạn chung ..."}),children:i.jsx(De,{count:t({en:"New",vi:"Mới"}),color:"purple",style:{color:"white",zIndex:3},children:i.jsx(C,{loading:!!Re,onClick:Ke,icon:i.jsx("i",{className:"fa-solid fa-magnifying-glass"}),children:t({en:"Deep scan",vi:"Quét chuyên sâu"})})})})]}),i.jsx(Y.Compact,{children:e!=null&&e.length?i.jsxs(i.Fragment,{children:[i.jsx(D,{title:t({en:`Poke ${e.length} selected friends`,vi:`Chọc ${e.length} người được chọn`}),children:i.jsx(z,{title:t({en:`Poke ${e.length} selected friends`,vi:`Chọc ${e.length} người được chọn`}),description:t({en:"Are you sure to poke these friends?",vi:"Bạn có chắc muốn chọc những người này?"}),onConfirm:()=>Se(e),okText:t({en:"Yes",vi:"Chọc mạnh vào"}),cancelText:t({en:"No",vi:"Tha"}),children:i.jsx(C,{type:"default",icon:i.jsx("i",{className:"fa-solid fa-hand-point-right"}),children:e.length?" "+e.length:""})})}),(n==null?void 0:n.length)>0?i.jsx(D,{title:t({en:`Request friend with ${n.length} selected users`,vi:`Gửi kết bạn với ${n.length} người được chọn`}),children:i.jsx(z,{title:t({en:`Request friend with ${n.length} selected users`,vi:`Gửi kết bạn với ${n.length} người được chọn`}),description:t({en:"Are you sure to send friend request to these users?",vi:"Bạn có chắc muốn gửi lời mời kết bạn cho những người này?"}),onConfirm:()=>Le(n),okText:t({en:"Yes",vi:"Gửi"}),cancelText:t({en:"No",vi:"Huỷ"}),children:i.jsx(C,{icon:i.jsx("i",{className:"fa-solid fa-user-plus"}),children:n.length})})}):null,(s==null?void 0:s.length)>0?i.jsx(D,{title:t({en:`Unfriend ${s.length} selected friends`,vi:`Huỷ kết bạn ${s.length} người được chọn`}),children:i.jsx(z,{title:t({en:`Unfriend ${s.length} selected friends`,vi:`Huỷ kết bạn ${s.length} người được chọn`}),description:t({en:"Are you sure to unfriend these friends?",vi:"Bạn có chắc muốn huỷ kết bạn những người này?"}),onConfirm:()=>qe(s),okText:t({en:"Yes",vi:"Bye bye"}),cancelText:t({en:"No",vi:"Tha"}),children:i.jsx(C,{danger:!0,icon:i.jsx("i",{className:"fa-solid fa-trash-can"}),children:s.length})})}):null]}):null})]})};return i.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[i.jsxs(hn,{align:"middle",style:{margin:"16px"},children:[i.jsx(bn,{level:3,style:{margin:0},children:t({en:"Friends manager",vi:"Quản lý bạn bè"})}),i.jsx(Q,{style:{marginLeft:"10px",fontWeight:"bold",color:"#888"},children:O.length})]}),i.jsx(Ve,{ref:M,data:O,columns:Qe,size:"small",searchable:!0,selectable:!0,keyExtractor:e=>e.uid,style:{flex:1,maxHeight:"100%"},renderTitle:We})]})}export{Zn as default}; diff --git a/public/assets/AllMessages-DP5QRpg6.js b/public/assets/AllMessages-DGHBx4Ei.js similarity index 85% rename from public/assets/AllMessages-DP5QRpg6.js rename to public/assets/AllMessages-DGHBx4Ei.js index 216d4bb..f4ce6c6 100644 --- a/public/assets/AllMessages-DP5QRpg6.js +++ b/public/assets/AllMessages-DGHBx4Ei.js @@ -1,3 +1,3 @@ -const __vite__fileDeps=["./MyTable-BTHATUSD.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./MyApp-BHr373cy.js","./index-X7jfXLlB.js","./Table-GiCOcILW.js","./index-VHrAsB-Q.js","./addEventListener-KkFh1sjE.js","./index-CETJ8txP.js","./PurePanel-CSR2tSBX.js","./SearchOutlined-D247roQH.js","./index-DmA8T0X5.js","./index-BI67OZir.js","./Dropdown-DUpNeMO8.js","./useBreakpoint-QbbjxHKX.js","./responsiveObserver-DiDk9dGL.js","./Pagination-CPGTHysj.js","./index-BCUBacY9.js","./EyeOutlined-BALW2cms.js","./row-DQoT4CfJ.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{aI as _,au as S,av as V,r as k,aA as t,aF as W,aB as p}from"./index--trdnQFa.js";import{d as $,u as J,g as Q,t as y,h as M,c as A,T as g,i as Z,b as j,j as ee,o as F,B as ne,k as L}from"./MyApp-BHr373cy.js";import{E as te}from"./ExportButton-C-PwJSin.js";import{g as ie,a as ae,s as se}from"./messages-6ucXfJYj.js";import{f as oe}from"./file-download-DYjmaN3D.js";import{d as le}from"./dayjs.min-DH5lmvCP.js";import{R as E}from"./row-DQoT4CfJ.js";import{T as re}from"./index-VHrAsB-Q.js";import{D as ce}from"./index-BI67OZir.js";import{A as f}from"./index-DTxLlwd8.js";import{I as G}from"./index-CB9InVBI.js";import"./responsiveObserver-DiDk9dGL.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";import"./EyeOutlined-BALW2cms.js";import"./addEventListener-KkFh1sjE.js";const de=k.lazy(()=>W(()=>import("./MyTable-BTHATUSD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url)),{Title:R}=re,B=l=>{const u=new Set;return l.map(i=>i.isGroup?i.participants.map(m=>({uid:m.id,name:m.name})):{uid:i.id,name:i.name}).flat().forEach(({uid:i,name:m})=>{u.has(i)||u.add({uid:i,name:m})}),Array.from(u.values())};function U(l){return l.name=="-no data-"||l.name=="Người dùng Facebook"}function Me(){const{message:l,notification:u}=$(),{ti:i}=J(),m=_(),h=S(V.profile)??{},[r,H]=Q("AllMessages.data",[]),[w,C]=k.useState(!1);k.useEffect(()=>{r!=null&&r.length||b()},[]);const b=()=>{if(w)return;const e="AllMessages:onClickReload";y(e),l.loading({key:e,duration:0,content:i({en:"Fetching messages...",vi:"Đang tải tin nhắn"})}),C(!0),ie().then(n=>{if(console.log(n),!(n!=null&&n.length))return l.error({key:e,content:i({en:"No data to show",vi:"Không có dữ liệu"})});H(n),l.success({key:e,content:i({en:"Fetch messages completed",vi:"Tải xong tin nhắn"})})}).catch(n=>{l.error({key:e,content:i({en:"Failed to fetch messages",vi:"Lỗi tải tin nhắn"})+": "+n.message}),console.log(n)}).finally(()=>{C(!1)})},P=e=>{console.log(e)},q=e=>()=>{var n,a,s,o;y("AllMessages:onClickFirstMessages"),m("/messages/first",{state:{threadId:e.id||((a=(n=e==null?void 0:e.participants)==null?void 0:n[0])==null?void 0:a.id),threadName:e.name||((o=(s=e==null?void 0:e.participants)==null?void 0:s[0])==null?void 0:o.name)}})},z=async e=>{if(!await L())return;y("AllMessages:onClickDownloadMultipleThreads");for(let a of e)if(await T(a))break},T=async e=>{if(!await L())return;const n="AllMessages:onClickDownloadThread";y(n);const a=e.name,s=n+e.id;l.loading({key:s,duration:0,content:i({en:"Downloading messages...",vi:"Đang tải tin nhắn..."})+a});let o=!1;const d=await ae({threadId:e.id,checkStopFn:()=>o,progressCallback:x=>{l.loading({key:s,duration:0,content:t.jsxs(t.Fragment,{children:[i({en:"Downloading messages... ",vi:"Đang tải tin nhắn... "})+a,t.jsx("br",{}),x.length,i({en:" messages",vi:" tin nhắn"}),t.jsx("br",{}),le(x[0].time).format("YYYY-MM-DD HH:mm:ss"),t.jsx("br",{}),t.jsx("i",{children:i({en:"Click to stop",vi:"Bấm để dừng"})})]}),onClick:()=>{l.loading({key:s,duration:0,content:i({en:"Stopping...",vi:"Đang dừng..."})}),o=!0}})}});l.destroy(s),u.open({type:"success",duration:0,message:i(o?{en:"Download stopped: ",vi:"Đã dừng tải: "}:{en:"Download completed: ",vi:"Tải xong: "})+a,description:d.length+i({en:" messages",vi:" tin nhắn"})});const v=se({threadId:e.id||"",threadName:a,myUid:(h==null?void 0:h.uid)||"",msgs:d});return oe(v,a+".html"),o},Y=(e,n,a)=>{var s,o,d,v,x,D,N,I;return t.jsxs(E,{align:"middle",children:[n.isGroup?t.jsx(ce,{arrow:!0,overlayStyle:{maxHeight:"350px",overflow:"auto",border:"1px dashed gray",borderRadius:"5px"},menu:{items:[{key:"-1",type:"group",label:t.jsx(R,{level:5,style:{textAlign:"center"},children:i({en:`${(s=n.participants)==null?void 0:s.length} members`,vi:`${(o=n.participants)==null?void 0:o.length} thành viên`})})},{type:"divider"},...((v=(d=n.participants)==null?void 0:d.map)==null?void 0:v.call(d,c=>({key:c.id,label:t.jsx("b",{children:c.name}),icon:t.jsx(f,{shape:"square",src:c.avatar}),onClick:()=>window.open(Z(c.id))})))||[]]},children:t.jsx(j,{children:n.image?t.jsx(f,{shape:"square",size:40,src:t.jsx(G,{src:n.image})}):t.jsx(f.Group,{max:{count:5},children:n.participants.filter(c=>c.id!=(h==null?void 0:h.id)).map(c=>t.jsx(f,{src:c.avatar},c.id))})})}):t.jsx(f,{shape:"square",size:40,src:t.jsx(G,{src:n.image||ee((D=(x=n.participants)==null?void 0:x[0])==null?void 0:D.id),fallback:(I=(N=n.participants)==null?void 0:N[0])==null?void 0:I.avatar})}),t.jsx("a",{href:n.url,target:"_blank",style:{marginLeft:"10px"},children:t.jsx("b",{children:n.name})})]})},K=(e,n,a)=>t.jsxs(j.Compact,{children:[t.jsx(g,{title:i({en:"First messages",vi:"Tin nhắn đầu tiên"}),children:t.jsx(p,{type:"primary",icon:t.jsx("i",{className:"fa-solid fa-clock-rotate-left"}),onClick:q(n)})}),t.jsx(g,{title:i({en:"Download messages",vi:"Tải cuộc trò chuyện"}),children:t.jsx(p,{type:"primary",icon:t.jsx("i",{className:"fa-solid fa-download"}),onClick:()=>T(n)})}),t.jsx(g,{title:i({en:"Delete (Coming soon)",vi:"Xoá (Sắp có)"}),children:t.jsx(p,{danger:!0,disabled:!0,icon:t.jsx("i",{className:"fa-solid fa-trash"})})})]}),O=[{title:"#",key:"recent",dataIndex:"recent",sorter:(e,n)=>e.recent-n.recent,render:(e,n,a)=>n.recent+1,width:70,align:"center",headerAlign:"center"},{title:i({en:"Name",vi:"Tên"}),dataIndex:"name",key:"name",sorter:(e,n)=>e.name.localeCompare(n.name),render:Y,filters:[{text:i({en:"Inactive (",vi:"Không hoạt động ("})+r.filter(U).length+")",value:"inactive"}],onFilter:(e,n)=>e=="inactive"?U(n):!0,onSearch:(e,n,a)=>{let s=e.toLowerCase();return a.name.toLocaleLowerCase().includes(s)||a.participants.some(o=>o.name.toLocaleLowerCase().includes(s))},width:"auto"},{title:"Id",dataIndex:"id",key:"id",sorter:(e,n)=>e.id>n.id,onSearch:(e,n,a)=>{let s=e.toLowerCase();return a.id.includes(s)||a.participants.some(o=>o.id.includes(s))},width:150},{title:i({en:"Messages",vi:"Tin nhắn"}),dataIndex:"count",key:"count",sorter:(e,n)=>e.count-n.count,render:(e,n,a)=>M(n.count),width:100,align:"right"},{title:i({en:"Members",vi:"Nguời"}),dataIndex:"participants",key:"participants",sorter:(e,n)=>e.participants.length-n.participants.length,render:(e,n,a)=>M(n.participants.length),width:100,align:"right"},{title:i({en:"Type",vi:"Loại"}),dataIndex:"type",key:"type",render:(e,n,a)=>n.isGroup?i({en:"Group",vi:"Nhóm"}):i({en:"Personal",vi:"Cá nhân"}),filters:[{text:i({en:"Group (",vi:"Nhóm ("})+r.filter(e=>e.isGroup).length+")",value:!0},{text:i({en:"Personal (",vi:"Cá nhân ("})+r.filter(e=>!e.isGroup).length+")",value:!1}],onFilter:(e,n)=>n.isGroup==e,width:100,align:"right"},{title:i({en:"Action",vi:"Hành động"}),dataIndex:"action",key:"download",render:K,width:150,align:"right"}],X=e=>t.jsxs(t.Fragment,{children:[t.jsx(p,{type:"primary",icon:w?t.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):t.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:b,children:i({en:"Reload",vi:"Tải lại"})}),t.jsx(te,{data:e.length?e:r,options:[{key:"uid",label:".txt (uid)",prepareData:n=>({fileName:"messages_uid.txt",data:B(n).map(a=>a.uid).join(` +const __vite__fileDeps=["./MyTable-C-6hHnGo.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./MyApp-CmkiOnMb.js","./index-NjHtWr7u.js","./Table-By6CV266.js","./index-Bumumc8Y.js","./addEventListener-w7NT04KM.js","./index-CKsES7YN.js","./PurePanel-yY9muMEs.js","./SearchOutlined-DvnHgzkc.js","./index-tTPNrueW.js","./index-4qwk-lHW.js","./Dropdown-DxSI4NN9.js","./useBreakpoint-CDLrV-mr.js","./responsiveObserver-Bb1LONna.js","./Pagination-slfcHA-i.js","./index-BbXfI1Nu.js","./EyeOutlined-Du2MtFRM.js","./row-C0Wk6t4-.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{aI as _,au as S,av as V,r as k,aA as t,aF as W,aB as p}from"./index-BBriuzNA.js";import{d as $,u as J,g as Q,t as y,h as M,c as A,T as g,i as Z,b as j,j as ee,o as F,B as ne,k as L}from"./MyApp-CmkiOnMb.js";import{E as te}from"./ExportButton-DABx3myg.js";import{g as ie,a as ae,s as se}from"./messages-BLu7ptC2.js";import{f as oe}from"./file-download-Dys_FsHc.js";import{d as le}from"./dayjs.min-Qbr7UE_g.js";import{R as E}from"./row-C0Wk6t4-.js";import{T as re}from"./index-Bumumc8Y.js";import{D as ce}from"./index-4qwk-lHW.js";import{A as f}from"./index-CbmP82sr.js";import{I as G}from"./index-Dm20K0UU.js";import"./responsiveObserver-Bb1LONna.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";import"./EyeOutlined-Du2MtFRM.js";import"./addEventListener-w7NT04KM.js";const de=k.lazy(()=>W(()=>import("./MyTable-C-6hHnGo.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url)),{Title:R}=re,B=l=>{const u=new Set;return l.map(i=>i.isGroup?i.participants.map(m=>({uid:m.id,name:m.name})):{uid:i.id,name:i.name}).flat().forEach(({uid:i,name:m})=>{u.has(i)||u.add({uid:i,name:m})}),Array.from(u.values())};function U(l){return l.name=="-no data-"||l.name=="Người dùng Facebook"}function Me(){const{message:l,notification:u}=$(),{ti:i}=J(),m=_(),h=S(V.profile)??{},[r,H]=Q("AllMessages.data",[]),[w,C]=k.useState(!1);k.useEffect(()=>{r!=null&&r.length||b()},[]);const b=()=>{if(w)return;const e="AllMessages:onClickReload";y(e),l.loading({key:e,duration:0,content:i({en:"Fetching messages...",vi:"Đang tải tin nhắn"})}),C(!0),ie().then(n=>{if(console.log(n),!(n!=null&&n.length))return l.error({key:e,content:i({en:"No data to show",vi:"Không có dữ liệu"})});H(n),l.success({key:e,content:i({en:"Fetch messages completed",vi:"Tải xong tin nhắn"})})}).catch(n=>{l.error({key:e,content:i({en:"Failed to fetch messages",vi:"Lỗi tải tin nhắn"})+": "+n.message}),console.log(n)}).finally(()=>{C(!1)})},P=e=>{console.log(e)},q=e=>()=>{var n,a,s,o;y("AllMessages:onClickFirstMessages"),m("/messages/first",{state:{threadId:e.id||((a=(n=e==null?void 0:e.participants)==null?void 0:n[0])==null?void 0:a.id),threadName:e.name||((o=(s=e==null?void 0:e.participants)==null?void 0:s[0])==null?void 0:o.name)}})},z=async e=>{if(!await L())return;y("AllMessages:onClickDownloadMultipleThreads");for(let a of e)if(await T(a))break},T=async e=>{if(!await L())return;const n="AllMessages:onClickDownloadThread";y(n);const a=e.name,s=n+e.id;l.loading({key:s,duration:0,content:i({en:"Downloading messages...",vi:"Đang tải tin nhắn..."})+a});let o=!1;const d=await ae({threadId:e.id,checkStopFn:()=>o,progressCallback:x=>{l.loading({key:s,duration:0,content:t.jsxs(t.Fragment,{children:[i({en:"Downloading messages... ",vi:"Đang tải tin nhắn... "})+a,t.jsx("br",{}),x.length,i({en:" messages",vi:" tin nhắn"}),t.jsx("br",{}),le(x[0].time).format("YYYY-MM-DD HH:mm:ss"),t.jsx("br",{}),t.jsx("i",{children:i({en:"Click to stop",vi:"Bấm để dừng"})})]}),onClick:()=>{l.loading({key:s,duration:0,content:i({en:"Stopping...",vi:"Đang dừng..."})}),o=!0}})}});l.destroy(s),u.open({type:"success",duration:0,message:i(o?{en:"Download stopped: ",vi:"Đã dừng tải: "}:{en:"Download completed: ",vi:"Tải xong: "})+a,description:d.length+i({en:" messages",vi:" tin nhắn"})});const v=se({threadId:e.id||"",threadName:a,myUid:(h==null?void 0:h.uid)||"",msgs:d});return oe(v,a+".html"),o},Y=(e,n,a)=>{var s,o,d,v,x,D,N,I;return t.jsxs(E,{align:"middle",children:[n.isGroup?t.jsx(ce,{arrow:!0,overlayStyle:{maxHeight:"350px",overflow:"auto",border:"1px dashed gray",borderRadius:"5px"},menu:{items:[{key:"-1",type:"group",label:t.jsx(R,{level:5,style:{textAlign:"center"},children:i({en:`${(s=n.participants)==null?void 0:s.length} members`,vi:`${(o=n.participants)==null?void 0:o.length} thành viên`})})},{type:"divider"},...((v=(d=n.participants)==null?void 0:d.map)==null?void 0:v.call(d,c=>({key:c.id,label:t.jsx("b",{children:c.name}),icon:t.jsx(f,{shape:"square",src:c.avatar}),onClick:()=>window.open(Z(c.id))})))||[]]},children:t.jsx(j,{children:n.image?t.jsx(f,{shape:"square",size:40,src:t.jsx(G,{src:n.image})}):t.jsx(f.Group,{max:{count:5},children:n.participants.filter(c=>c.id!=(h==null?void 0:h.id)).map(c=>t.jsx(f,{src:c.avatar},c.id))})})}):t.jsx(f,{shape:"square",size:40,src:t.jsx(G,{src:n.image||ee((D=(x=n.participants)==null?void 0:x[0])==null?void 0:D.id),fallback:(I=(N=n.participants)==null?void 0:N[0])==null?void 0:I.avatar})}),t.jsx("a",{href:n.url,target:"_blank",style:{marginLeft:"10px"},children:t.jsx("b",{children:n.name})})]})},K=(e,n,a)=>t.jsxs(j.Compact,{children:[t.jsx(g,{title:i({en:"First messages",vi:"Tin nhắn đầu tiên"}),children:t.jsx(p,{type:"primary",icon:t.jsx("i",{className:"fa-solid fa-clock-rotate-left"}),onClick:q(n)})}),t.jsx(g,{title:i({en:"Download messages",vi:"Tải cuộc trò chuyện"}),children:t.jsx(p,{type:"primary",icon:t.jsx("i",{className:"fa-solid fa-download"}),onClick:()=>T(n)})}),t.jsx(g,{title:i({en:"Delete (Coming soon)",vi:"Xoá (Sắp có)"}),children:t.jsx(p,{danger:!0,disabled:!0,icon:t.jsx("i",{className:"fa-solid fa-trash"})})})]}),O=[{title:"#",key:"recent",dataIndex:"recent",sorter:(e,n)=>e.recent-n.recent,render:(e,n,a)=>n.recent+1,width:70,align:"center",headerAlign:"center"},{title:i({en:"Name",vi:"Tên"}),dataIndex:"name",key:"name",sorter:(e,n)=>e.name.localeCompare(n.name),render:Y,filters:[{text:i({en:"Inactive (",vi:"Không hoạt động ("})+r.filter(U).length+")",value:"inactive"}],onFilter:(e,n)=>e=="inactive"?U(n):!0,onSearch:(e,n,a)=>{let s=e.toLowerCase();return a.name.toLocaleLowerCase().includes(s)||a.participants.some(o=>o.name.toLocaleLowerCase().includes(s))},width:"auto"},{title:"Id",dataIndex:"id",key:"id",sorter:(e,n)=>e.id>n.id,onSearch:(e,n,a)=>{let s=e.toLowerCase();return a.id.includes(s)||a.participants.some(o=>o.id.includes(s))},width:150},{title:i({en:"Messages",vi:"Tin nhắn"}),dataIndex:"count",key:"count",sorter:(e,n)=>e.count-n.count,render:(e,n,a)=>M(n.count),width:100,align:"right"},{title:i({en:"Members",vi:"Nguời"}),dataIndex:"participants",key:"participants",sorter:(e,n)=>e.participants.length-n.participants.length,render:(e,n,a)=>M(n.participants.length),width:100,align:"right"},{title:i({en:"Type",vi:"Loại"}),dataIndex:"type",key:"type",render:(e,n,a)=>n.isGroup?i({en:"Group",vi:"Nhóm"}):i({en:"Personal",vi:"Cá nhân"}),filters:[{text:i({en:"Group (",vi:"Nhóm ("})+r.filter(e=>e.isGroup).length+")",value:!0},{text:i({en:"Personal (",vi:"Cá nhân ("})+r.filter(e=>!e.isGroup).length+")",value:!1}],onFilter:(e,n)=>n.isGroup==e,width:100,align:"right"},{title:i({en:"Action",vi:"Hành động"}),dataIndex:"action",key:"download",render:K,width:150,align:"right"}],X=e=>t.jsxs(t.Fragment,{children:[t.jsx(p,{type:"primary",icon:w?t.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):t.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:b,children:i({en:"Reload",vi:"Tải lại"})}),t.jsx(te,{data:e.length?e:r,options:[{key:"uid",label:".txt (uid)",prepareData:n=>({fileName:"messages_uid.txt",data:B(n).map(a=>a.uid).join(` `)})},{key:"uid_name",label:".csv (uid+name)",prepareData:n=>({fileName:"messages_uid_name.csv",data:F(B(n))})},{key:"json",label:".json",prepareData:n=>({fileName:"messages.json",data:JSON.stringify(n,null,2)})},{key:"csv",label:".csv",prepareData:n=>({fileName:"messages.csv",data:F(n.map(a=>({...a,participants:a.participants.map(s=>s.name).join(", "),participantIds:a.participants.map(s=>s.id).join(", ")})))})}]}),t.jsxs(j.Compact,{children:[t.jsx(g,{title:i({en:"Delete selected (Coming soon)",vi:"Xoá lựa chọn (Sắp có)"}),children:t.jsx(p,{danger:!0,disabled:!0,icon:t.jsx("i",{className:"fa-solid fa-trash-can"}),onClick:()=>P(e),children:i({en:"Delete",vi:"Xoá"})+(e.length?" "+e.length:"")})}),t.jsx(ne,{color:"purple",style:{color:"white"},count:i({en:"New",vi:"Mới"}),children:t.jsx(g,{title:e.length?i({en:"Download "+e.length+" messages",vi:"Tải "+e.length+" cuộc trò chuyện"}):i({en:"Select messages to download",vi:"Chọn cuộc trò chuyện để tải"}),children:t.jsxs(p,{disabled:!(e!=null&&e.length),icon:t.jsx("i",{className:"fa-solid fa-download"}),onClick:()=>z(e),children:[i({en:"Download ",vi:"Tải "})," ",e.length||""]})})})]})]});return t.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[t.jsxs(E,{align:"middle",style:{margin:"16px"},children:[t.jsx(R,{level:3,style:{margin:0},children:i({en:"Messages manager",vi:"Quản lý tin nhắn"})}),t.jsx(A,{style:{marginLeft:"10px",fontWeight:"bold",color:"#888"},children:r.length}),t.jsx(g,{title:i({en:'Can only view messages that not have "End to end encryption" (e2ee)',vi:'Chỉ có thể xem tin nhắn không bị "Mã hoá đầu cuối" (e2ee)'}),children:t.jsx(A,{color:"orange",icon:t.jsx("i",{className:"fa-solid fa-lock-open"}),children:" "+i({en:"Only none e2ee",vi:"Không bị mã hoá đầu cuối"})})})]}),t.jsx(de,{data:r,columns:O,size:"small",searchable:!0,selectable:!0,keyExtractor:e=>e==null?void 0:e.id,style:{flex:1,maxHeight:"100%"},renderTitle:X})]})}export{Me as default}; diff --git a/public/assets/ArchivedStories-BCCxC5DD.js b/public/assets/ArchivedStories-DHTp8NWF.js similarity index 66% rename from public/assets/ArchivedStories-BCCxC5DD.js rename to public/assets/ArchivedStories-DHTp8NWF.js index 7964a2a..a1790eb 100644 --- a/public/assets/ArchivedStories-BCCxC5DD.js +++ b/public/assets/ArchivedStories-DHTp8NWF.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./ArchivedStoryViewer-Dp4z3cD6.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./MyApp-BHr373cy.js","./StoryViewers-Bp82Fv1t.js","./Collection-CPPE61tF.js","./index-X7jfXLlB.js","./file-download-DYjmaN3D.js","./index-BI67OZir.js","./Dropdown-DUpNeMO8.js","./PurePanel-CSR2tSBX.js","./index-DmA8T0X5.js","./index-BCUBacY9.js","./index-VHrAsB-Q.js","./EyeOutlined-BALW2cms.js","./SearchOutlined-D247roQH.js","./index-BJNnFmyH.js","./Pagination-CPGTHysj.js","./useBreakpoint-QbbjxHKX.js","./responsiveObserver-DiDk9dGL.js","./index-CETJ8txP.js","./row-DQoT4CfJ.js","./index-CJGqVaEE.js","./stories-DtwI_s_2.js","./index-DTxLlwd8.js","./index-CU7pBSDU.js","./VideoWithMuted-xvYRNY0l.js","./index-CB9InVBI.js","./addEventListener-KkFh1sjE.js","./index-DYW0YRm8.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{r as u,aA as o,aF as S,aB as m,aS as C}from"./index--trdnQFa.js";import{u as _,d as T,t as p,b as f,ax as A,f as D,i as N,y as E,C as F,O as I}from"./MyApp-BHr373cy.js";import{C as $}from"./Collection-CPPE61tF.js";import{d as B,e as L,f as O}from"./stories-DtwI_s_2.js";import{L as R}from"./index-BJNnFmyH.js";import{I as V}from"./index-CB9InVBI.js";import{T as h}from"./index-VHrAsB-Q.js";import{P as X}from"./index-CB2nR54F.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";import"./index-CU7pBSDU.js";const K=u.lazy(()=>S(()=>import("./ArchivedStoryViewer-Dp4z3cD6.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]),import.meta.url));function ge(){const{ti:r}=_(),{message:c,notification:y}=T();u.useEffect(()=>{p("ArchivedStories:onLoad")},[]);const x=async(e,n)=>{var t;return await B(n||((t=e==null?void 0:e[e.length-1])==null?void 0:t.cursor)||"")},g=async(e,n)=>{const i="ArchivedStories.deleteStory";p(i);const t=i+e.id;c.loading({key:t,content:r({en:"Deleting story...",vi:"Đang xóa story..."}),duration:0});const a=await O(e.id);return n(s=>C(s,l=>{const d=l.find(k=>k.id===e.id);return d&&(d.deleted=!0),l})),a?(c.success({key:t,content:r({en:"Story deleted!",vi:"Đã xóa story!"})}),!0):(c.error({key:t,content:r({en:"Failed to delete story!",vi:"Chưa xóa được story!"})}),!1)},v=async(e,n)=>{const i="ArchivedStories.deleteSelectedStories";p(i);let t=0,a=!1;for(let s=0;s{a=!0}}),await g(l,n)&&t++}c.destroy(i),y.open({type:"success",message:r({en:"Stories deleted!",vi:"Xóa story xong!"}),description:r({en:`Deleted ${t}/${e.length} stories!`,vi:`Đã xóa ${t}/${e.length} story!`})})},j=(e,n,i)=>{const t=e.deleted;return o.jsxs(R.Item,{className:"show-on-hover-trigger",children:[o.jsx(V,{src:e.thumbnail,style:{width:160,height:270,borderRadius:10,objectFit:"cover"},preview:t?!1:{destroyOnClose:!0,toolbarRender:()=>null,imageRender:()=>o.jsx(K,{story:e})}}),o.jsxs(f,{direction:"vertical",style:{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)",position:"absolute",bottom:0,left:0,width:"100%",padding:"5px 10px",paddingTop:"50px",pointerEvents:"none"},children:[t&&o.jsx(h.Text,{style:{color:"red",fontWeight:"bold",backgroundColor:"#3339",padding:5,fontSize:"1.2em",width:"100%"},children:r({en:"DELETED",vi:"ĐÃ XOÁ"})}),o.jsxs(h.Text,{style:{color:"#ccc"},children:[o.jsxs("span",{children:[o.jsx("i",{className:"fa fa-eye"})," ",e.seen_count]}),o.jsx("br",{}),o.jsxs("span",{children:[o.jsx("i",{className:"fa fa-clock"})," ",A(new Date().getTime()-new Date(e.creation_time).getTime())]}),o.jsx("br",{}),D(new Date(e.creation_time),r({en:"en-US",vi:"vi-VN"}))]})]}),!t&&o.jsxs(f,{className:"show-on-hover-item",style:{position:"absolute",top:10,right:10},size:3,children:[o.jsx(X,{title:r({en:"Delete this story?",vi:"Xoá story này?"}),onConfirm:()=>g(e,i),children:o.jsx(m,{danger:!0,type:"default",icon:o.jsx("i",{className:"fa-solid fa-trash-can"})})}),o.jsx(m,{type:"default",icon:o.jsx("i",{className:"fa-solid fa-up-right-from-square"}),target:"_blank",href:N("stories/?card_id="+e.id)})]})]})},b=async e=>{const n="ArchivedStoryViewer.stories."+e.creation_time,i=E(n)||await L({creationTime:e.creation_time});F(n,i);const t=i.find(s=>s.id===e.id),a=I(new Date(e.creation_time));return[{url:(t==null?void 0:t.video)||(t==null?void 0:t.image)||"",name:a+(t!=null&&t.video?".mp4":".jpg")},{url:(t==null?void 0:t.image_background)||"",name:a+"_bg.jpg"}].filter(s=>s==null?void 0:s.url)},w=e=>o.jsx(m,{onClick:()=>{window.open("https://www.facebook.com/me/allactivity?log_filter=archivedstories","_blank")},icon:o.jsx("i",{className:"fa fa-external-link-alt"}),children:r({vi:"Xem trên Facebook",en:"View on Facebook"})},"view-fb");return o.jsx($,{collectionName:"Archived Stories",fetchNext:x,renderItem:j,downloadItem:b,headerButtons:w,getItemCursor:e=>e==null?void 0:e.cursor,rowKey:e=>e.id,downloadOptions:[{key:"delete-story",labelFn:e=>r({en:`🗑️ Delete ${e.length} story`,vi:`🗑️ Xoá ${e.length} story`}),onClick:v}]})}export{ge as default}; +const __vite__fileDeps=["./ArchivedStoryViewer-DW-7zWTF.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./MyApp-CmkiOnMb.js","./StoryViewers-suc5mL0p.js","./Collection-B9SxfYr4.js","./index-NjHtWr7u.js","./file-download-Dys_FsHc.js","./index-4qwk-lHW.js","./Dropdown-DxSI4NN9.js","./PurePanel-yY9muMEs.js","./index-tTPNrueW.js","./index-BbXfI1Nu.js","./index-Bumumc8Y.js","./EyeOutlined-Du2MtFRM.js","./SearchOutlined-DvnHgzkc.js","./index-B7udrguy.js","./Pagination-slfcHA-i.js","./useBreakpoint-CDLrV-mr.js","./responsiveObserver-Bb1LONna.js","./index-CKsES7YN.js","./row-C0Wk6t4-.js","./index-uPrgDTc-.js","./stories-B17I0-Ef.js","./index-CbmP82sr.js","./index-Dg6R6lHP.js","./VideoWithMuted-CdYhYcjW.js","./index-Dm20K0UU.js","./addEventListener-w7NT04KM.js","./index-C9vPYMV7.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{r as u,aA as o,aF as S,aB as m,aS as C}from"./index-BBriuzNA.js";import{u as _,d as T,t as p,b as f,ax as A,f as D,i as N,y as E,C as F,O as I}from"./MyApp-CmkiOnMb.js";import{C as $}from"./Collection-B9SxfYr4.js";import{d as B,e as L,f as O}from"./stories-B17I0-Ef.js";import{L as R}from"./index-B7udrguy.js";import{I as V}from"./index-Dm20K0UU.js";import{T as h}from"./index-Bumumc8Y.js";import{P as X}from"./index-BM7CeakW.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";import"./index-Dg6R6lHP.js";const K=u.lazy(()=>S(()=>import("./ArchivedStoryViewer-DW-7zWTF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]),import.meta.url));function ge(){const{ti:r}=_(),{message:c,notification:y}=T();u.useEffect(()=>{p("ArchivedStories:onLoad")},[]);const x=async(e,n)=>{var t;return await B(n||((t=e==null?void 0:e[e.length-1])==null?void 0:t.cursor)||"")},g=async(e,n)=>{const i="ArchivedStories.deleteStory";p(i);const t=i+e.id;c.loading({key:t,content:r({en:"Deleting story...",vi:"Đang xóa story..."}),duration:0});const a=await O(e.id);return n(s=>C(s,l=>{const d=l.find(k=>k.id===e.id);return d&&(d.deleted=!0),l})),a?(c.success({key:t,content:r({en:"Story deleted!",vi:"Đã xóa story!"})}),!0):(c.error({key:t,content:r({en:"Failed to delete story!",vi:"Chưa xóa được story!"})}),!1)},v=async(e,n)=>{const i="ArchivedStories.deleteSelectedStories";p(i);let t=0,a=!1;for(let s=0;s{a=!0}}),await g(l,n)&&t++}c.destroy(i),y.open({type:"success",message:r({en:"Stories deleted!",vi:"Xóa story xong!"}),description:r({en:`Deleted ${t}/${e.length} stories!`,vi:`Đã xóa ${t}/${e.length} story!`})})},j=(e,n,i)=>{const t=e.deleted;return o.jsxs(R.Item,{className:"show-on-hover-trigger",children:[o.jsx(V,{src:e.thumbnail,style:{width:160,height:270,borderRadius:10,objectFit:"cover"},preview:t?!1:{destroyOnClose:!0,toolbarRender:()=>null,imageRender:()=>o.jsx(K,{story:e})}}),o.jsxs(f,{direction:"vertical",style:{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)",position:"absolute",bottom:0,left:0,width:"100%",padding:"5px 10px",paddingTop:"50px",pointerEvents:"none"},children:[t&&o.jsx(h.Text,{style:{color:"red",fontWeight:"bold",backgroundColor:"#3339",padding:5,fontSize:"1.2em",width:"100%"},children:r({en:"DELETED",vi:"ĐÃ XOÁ"})}),o.jsxs(h.Text,{style:{color:"#ccc"},children:[o.jsxs("span",{children:[o.jsx("i",{className:"fa fa-eye"})," ",e.seen_count]}),o.jsx("br",{}),o.jsxs("span",{children:[o.jsx("i",{className:"fa fa-clock"})," ",A(new Date().getTime()-new Date(e.creation_time).getTime())]}),o.jsx("br",{}),D(new Date(e.creation_time),r({en:"en-US",vi:"vi-VN"}))]})]}),!t&&o.jsxs(f,{className:"show-on-hover-item",style:{position:"absolute",top:10,right:10},size:3,children:[o.jsx(X,{title:r({en:"Delete this story?",vi:"Xoá story này?"}),onConfirm:()=>g(e,i),children:o.jsx(m,{danger:!0,type:"default",icon:o.jsx("i",{className:"fa-solid fa-trash-can"})})}),o.jsx(m,{type:"default",icon:o.jsx("i",{className:"fa-solid fa-up-right-from-square"}),target:"_blank",href:N("stories/?card_id="+e.id)})]})]})},b=async e=>{const n="ArchivedStoryViewer.stories."+e.creation_time,i=E(n)||await L({creationTime:e.creation_time});F(n,i);const t=i.find(s=>s.id===e.id),a=I(new Date(e.creation_time));return[{url:(t==null?void 0:t.video)||(t==null?void 0:t.image)||"",name:a+(t!=null&&t.video?".mp4":".jpg")},{url:(t==null?void 0:t.image_background)||"",name:a+"_bg.jpg"}].filter(s=>s==null?void 0:s.url)},w=e=>o.jsx(m,{onClick:()=>{window.open("https://www.facebook.com/me/allactivity?log_filter=archivedstories","_blank")},icon:o.jsx("i",{className:"fa fa-external-link-alt"}),children:r({vi:"Xem trên Facebook",en:"View on Facebook"})},"view-fb");return o.jsx($,{collectionName:"Archived Stories",fetchNext:x,renderItem:j,downloadItem:b,headerButtons:w,getItemCursor:e=>e==null?void 0:e.cursor,rowKey:e=>e.id,downloadOptions:[{key:"delete-story",labelFn:e=>r({en:`🗑️ Delete ${e.length} story`,vi:`🗑️ Xoá ${e.length} story`}),onClick:v}]})}export{ge as default}; diff --git a/public/assets/ArchivedStoryViewer-Dp4z3cD6.js b/public/assets/ArchivedStoryViewer-DW-7zWTF.js similarity index 79% rename from public/assets/ArchivedStoryViewer-Dp4z3cD6.js rename to public/assets/ArchivedStoryViewer-DW-7zWTF.js index 501560e..abeb766 100644 --- a/public/assets/ArchivedStoryViewer-Dp4z3cD6.js +++ b/public/assets/ArchivedStoryViewer-DW-7zWTF.js @@ -1 +1 @@ -import{ay as _,au as I,av as C,r as m,aA as e,aB as j}from"./index--trdnQFa.js";import{u as F,g as v,b as n,f as L,i as B,j as E}from"./MyApp-BHr373cy.js";import{S as U}from"./StoryViewers-Bp82Fv1t.js";import{e as $}from"./stories-DtwI_s_2.js";import{V as z}from"./VideoWithMuted-xvYRNY0l.js";import{T as r}from"./index-VHrAsB-Q.js";import{I as p}from"./index-CB9InVBI.js";import{A as D}from"./index-DTxLlwd8.js";import{T as M}from"./index-DYW0YRm8.js";import"./Collection-CPPE61tF.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-BJNnFmyH.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";import"./index-CJGqVaEE.js";import"./addEventListener-KkFh1sjE.js";import"./index-CU7pBSDU.js";function fe({story:l}){const{ti:d}=F(),{message:y}=_.useApp(),u=I(C.darkMode),[o,b]=v("ArchivedStoryViewer.stories."+l.creation_time,[]),[c,x]=v("ArchivedStoryViewer.viewingIndex."+l.id,0),[f,g]=m.useState(!1),t=o[c]||o[0],w=t?Object.values(t.viewer_count).reduce((i,s)=>i+s,0):0,T=t?t.reactions.reduce((i,s)=>i+s.count,0):0,A=c0,S=o.length===0&&!f,h=m.useRef(!1);m.useEffect(()=>{!(o!=null&&o.length)&&l.creation_time&&!h.current&&(g(!0),h.current=!0,$({creationTime:l.creation_time}).then(i=>{if(i){const s=i.findIndex(V=>V.id===l.id);b(i),x(s)}}).catch(i=>y.error(d({en:"Error: ",vi:"Lỗi: "}))+i.message).finally(()=>{g(!1),h.current=!1}))},[]);const a={height:"70vh",width:"calc(70vh * 9 / 16)"},N=m.useRef(null),R=t?[{key:"story",label:e.jsxs(r.Text,{children:[e.jsx("i",{className:"fa fa-play"})," Play"]}),children:e.jsxs(n,{direction:"vertical",style:{position:"relative"},children:[t.video?e.jsx(z,{src:t.video,style:{...a,borderRadius:10,objectFit:"contain"}}):t.image_background?e.jsxs(n,{direction:"vertical",style:{position:"relative"},children:[e.jsx(p,{src:t.image_background,preview:!1,style:{...a,borderRadius:10,objectFit:"contain"}}),e.jsx(p,{src:t.image,style:{...a,borderRadius:10,objectFit:"contain",position:"absolute",bottom:0,left:0,transform:"translate(-50%, 0)",opacity:.5}})]}):e.jsx(p,{src:t.image,style:{...a,borderRadius:10,objectFit:"contain"}}),e.jsx(n,{direction:"vertical",align:"start",style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)",position:"absolute",top:0,left:0,padding:10,width:"100%",paddingBottom:"50px",borderRadius:10},children:[t.comment_count?{icon:e.jsx("i",{className:"fa-solid fa-message"}),text:t.comment_count}:null,t.music?{icon:e.jsx("i",{className:"fa-solid fa-music"}),text:t.music}:null].filter(Boolean).map((i,s)=>i&&e.jsxs(r.Text,{style:{color:"#eee",textAlign:"left"},children:[i.icon," ",i.text]},"story-statistic-"+s))})]})},{key:"viewer",label:e.jsxs(r.Text,{children:[e.jsx("i",{className:"fa fa-eye"})," ",w," "]}),children:e.jsxs(n,{direction:"vertical",style:{...a,width:450,overflowY:"auto",overflowX:"hidden",textAlign:"left",position:"relative"},children:[e.jsxs(r.Text,{children:[d({en:"Views",vi:"Lượt xem"}),":"]}),e.jsx("ul",{children:Object.entries(t.viewer_count).map(([i,s])=>e.jsx("li",{children:e.jsxs(r.Text,{style:{color:"#eee"},children:[i,": ",s]})},"story-viewer-"+i))}),e.jsx(n,{direction:"horizontal",style:{display:"flex",padding:10,alignItems:"center"},children:e.jsxs(r.Text,{style:{textDecoration:"underline"},children:[d({en:"Created date",vi:"Ngày đăng"}),e.jsx(r.Text,{style:{position:"absolute",right:10},children:L(new Date(t.created_at),d({en:"en-US",vi:"vi-VN"}))})]})}),e.jsx(U,{storyId:t.id,initialViewers:t.viewers})]})},{key:"reactions",label:e.jsxs(r.Text,{children:[e.jsx("i",{className:"fa fa-heart"})," ",T," "]}),children:e.jsxs(n,{direction:"vertical",style:{overflowY:"auto",...a},align:"start",children:[e.jsxs(r.Text,{children:[d({en:"Reactions",vi:"Lượt thích"}),":"]}),t.reactions.map((i,s)=>e.jsxs(r.Link,{href:B(i.uid),style:{padding:"0 5px 5px",display:"block"},target:"_blank",children:[e.jsx(D,{src:E(i.uid,50),size:35}),e.jsx(r.Text,{style:{color:"#eee",textAlign:"left"},children:` ${i.count} ${i.reactions}`},"story-reaction-"+s)]},"story-reaction-"+s))]})}]:[];return e.jsxs(n,{direction:"vertical",style:{maxHeight:"100vh",overflowY:"auto",overflowX:"hidden",minWidth:a.width,minHeight:a.height,background:u?"#222":"#eee",color:u?"white":"#111",padding:10,borderRadius:10},ref:N,children:[e.jsxs(r.Text,{children:["Archived Story Viewer"," ",f?e.jsx("i",{className:"fa fa-spinner fa-spin"}):`(${c+1}/${o.length})`]}),S&&e.jsx("div",{children:"No data"}),t&&e.jsxs(n,{children:[e.jsx(j,{disabled:!k,onClick:()=>{x(c-1)},children:e.jsx("i",{className:"fa fa-chevron-left"})}),e.jsx(M,{defaultActiveKey:"story",items:R}),e.jsx(j,{disabled:!A,onClick:()=>{x(c+1)},children:e.jsx("i",{className:"fa fa-chevron-right"})})]})]})}export{fe as default}; +import{ay as _,au as I,av as C,r as m,aA as e,aB as j}from"./index-BBriuzNA.js";import{u as F,g as v,b as n,f as L,i as B,j as E}from"./MyApp-CmkiOnMb.js";import{S as U}from"./StoryViewers-suc5mL0p.js";import{e as $}from"./stories-B17I0-Ef.js";import{V as z}from"./VideoWithMuted-CdYhYcjW.js";import{T as r}from"./index-Bumumc8Y.js";import{I as p}from"./index-Dm20K0UU.js";import{A as D}from"./index-CbmP82sr.js";import{T as M}from"./index-C9vPYMV7.js";import"./Collection-B9SxfYr4.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-B7udrguy.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";import"./index-uPrgDTc-.js";import"./addEventListener-w7NT04KM.js";import"./index-Dg6R6lHP.js";function fe({story:l}){const{ti:d}=F(),{message:y}=_.useApp(),u=I(C.darkMode),[o,b]=v("ArchivedStoryViewer.stories."+l.creation_time,[]),[c,x]=v("ArchivedStoryViewer.viewingIndex."+l.id,0),[f,g]=m.useState(!1),t=o[c]||o[0],w=t?Object.values(t.viewer_count).reduce((i,s)=>i+s,0):0,T=t?t.reactions.reduce((i,s)=>i+s.count,0):0,A=c0,S=o.length===0&&!f,h=m.useRef(!1);m.useEffect(()=>{!(o!=null&&o.length)&&l.creation_time&&!h.current&&(g(!0),h.current=!0,$({creationTime:l.creation_time}).then(i=>{if(i){const s=i.findIndex(V=>V.id===l.id);b(i),x(s)}}).catch(i=>y.error(d({en:"Error: ",vi:"Lỗi: "}))+i.message).finally(()=>{g(!1),h.current=!1}))},[]);const a={height:"70vh",width:"calc(70vh * 9 / 16)"},N=m.useRef(null),R=t?[{key:"story",label:e.jsxs(r.Text,{children:[e.jsx("i",{className:"fa fa-play"})," Play"]}),children:e.jsxs(n,{direction:"vertical",style:{position:"relative"},children:[t.video?e.jsx(z,{src:t.video,style:{...a,borderRadius:10,objectFit:"contain"}}):t.image_background?e.jsxs(n,{direction:"vertical",style:{position:"relative"},children:[e.jsx(p,{src:t.image_background,preview:!1,style:{...a,borderRadius:10,objectFit:"contain"}}),e.jsx(p,{src:t.image,style:{...a,borderRadius:10,objectFit:"contain",position:"absolute",bottom:0,left:0,transform:"translate(-50%, 0)",opacity:.5}})]}):e.jsx(p,{src:t.image,style:{...a,borderRadius:10,objectFit:"contain"}}),e.jsx(n,{direction:"vertical",align:"start",style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)",position:"absolute",top:0,left:0,padding:10,width:"100%",paddingBottom:"50px",borderRadius:10},children:[t.comment_count?{icon:e.jsx("i",{className:"fa-solid fa-message"}),text:t.comment_count}:null,t.music?{icon:e.jsx("i",{className:"fa-solid fa-music"}),text:t.music}:null].filter(Boolean).map((i,s)=>i&&e.jsxs(r.Text,{style:{color:"#eee",textAlign:"left"},children:[i.icon," ",i.text]},"story-statistic-"+s))})]})},{key:"viewer",label:e.jsxs(r.Text,{children:[e.jsx("i",{className:"fa fa-eye"})," ",w," "]}),children:e.jsxs(n,{direction:"vertical",style:{...a,width:450,overflowY:"auto",overflowX:"hidden",textAlign:"left",position:"relative"},children:[e.jsxs(r.Text,{children:[d({en:"Views",vi:"Lượt xem"}),":"]}),e.jsx("ul",{children:Object.entries(t.viewer_count).map(([i,s])=>e.jsx("li",{children:e.jsxs(r.Text,{style:{color:"#eee"},children:[i,": ",s]})},"story-viewer-"+i))}),e.jsx(n,{direction:"horizontal",style:{display:"flex",padding:10,alignItems:"center"},children:e.jsxs(r.Text,{style:{textDecoration:"underline"},children:[d({en:"Created date",vi:"Ngày đăng"}),e.jsx(r.Text,{style:{position:"absolute",right:10},children:L(new Date(t.created_at),d({en:"en-US",vi:"vi-VN"}))})]})}),e.jsx(U,{storyId:t.id,initialViewers:t.viewers})]})},{key:"reactions",label:e.jsxs(r.Text,{children:[e.jsx("i",{className:"fa fa-heart"})," ",T," "]}),children:e.jsxs(n,{direction:"vertical",style:{overflowY:"auto",...a},align:"start",children:[e.jsxs(r.Text,{children:[d({en:"Reactions",vi:"Lượt thích"}),":"]}),t.reactions.map((i,s)=>e.jsxs(r.Link,{href:B(i.uid),style:{padding:"0 5px 5px",display:"block"},target:"_blank",children:[e.jsx(D,{src:E(i.uid,50),size:35}),e.jsx(r.Text,{style:{color:"#eee",textAlign:"left"},children:` ${i.count} ${i.reactions}`},"story-reaction-"+s)]},"story-reaction-"+s))]})}]:[];return e.jsxs(n,{direction:"vertical",style:{maxHeight:"100vh",overflowY:"auto",overflowX:"hidden",minWidth:a.width,minHeight:a.height,background:u?"#222":"#eee",color:u?"white":"#111",padding:10,borderRadius:10},ref:N,children:[e.jsxs(r.Text,{children:["Archived Story Viewer"," ",f?e.jsx("i",{className:"fa fa-spinner fa-spin"}):`(${c+1}/${o.length})`]}),S&&e.jsx("div",{children:"No data"}),t&&e.jsxs(n,{children:[e.jsx(j,{disabled:!k,onClick:()=>{x(c-1)},children:e.jsx("i",{className:"fa fa-chevron-left"})}),e.jsx(M,{defaultActiveKey:"story",items:R}),e.jsx(j,{disabled:!A,onClick:()=>{x(c+1)},children:e.jsx("i",{className:"fa fa-chevron-right"})})]})]})}export{fe as default}; diff --git a/public/assets/AutoRun-CPbitO3T.js b/public/assets/AutoRun-YEVjSwxH.js similarity index 94% rename from public/assets/AutoRun-CPbitO3T.js rename to public/assets/AutoRun-YEVjSwxH.js index 3daed70..c12527d 100644 --- a/public/assets/AutoRun-CPbitO3T.js +++ b/public/assets/AutoRun-YEVjSwxH.js @@ -1 +1 @@ -import{r as R,aA as t,aB as I}from"./index--trdnQFa.js";import{u as T,g as f,t as h,a3 as D,b as B,T as S,B as C,a4 as p,a5 as x,a6 as j,W as w,S as N}from"./MyApp-BHr373cy.js";import{R as E}from"./row-DQoT4CfJ.js";import{T as k}from"./index-VHrAsB-Q.js";import{A as V}from"./index-fivsYW1W.js";import{L as v}from"./index-BJNnFmyH.js";import{C as q}from"./index-DmA8T0X5.js";import{D as b}from"./index-CJGqVaEE.js";import"./responsiveObserver-DiDk9dGL.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";const m={Facebook:{params:["fbclid","mc_eid"]},Instagram:{params:["igshid"]},Tiktok:{params:["ttclid"]},Twitter:{domains:["twitter.com"],params:["s","t"]},Google:{domains:["google.com"],params:["gclid","glsrc","_ga","sxsrf","source","ei","iflsig","gs_lp","gs_lcrp","sclient","ved","uact","stick","sca_esv"]},Spotify:{domains:["spotify.com","youtube.com","reddit.com"],params:["si","context"]},Youtube:{domains:["youtube.com"],params:["feature","ab_channel","pp","bp","redir_token","event","embeds_referring_euri","source_ve_path"]},Amazon:{domains:["amazon.*"],params:["ref","tag","linkCode","hv(adid|netw|qmt|bmt|dev|locint|locphy|targid)","psc","content-id","pd_rd_(w|p|r|i|wg)"]},Bing:{domains:["bing.com"],params:["toWww","redig","form","qs","sp","ghc","lq","pq","sc","sk","cvid","ghsh","ghacc","ghpl","ccid","id","thid","simid","FORM","ck","ajaxhist","ajaxserp","osid"]},LinkedIn:{domains:["linkedin.com"],params:["trackingId","lipi","midSig","trkEmail","otpToken","refId","midToken","trk","eid","mcid","ePP","ccuid","cid"]},Reddit:{params:["share_id"]},Adobe:{params:["ef_id","s_kwcid"]},Microsoft:{params:["msclkid"]},Pinterest:{params:["epik"]}},y=[{id:"header_fb",name:"Facebook",isHeader:!0,icon:t.jsx("i",{className:"fa-brands fa-facebook"})},{id:"fb_blockSeenStory",icon:"👀",name:{vi:'Chặn "đã xem" trên story Facebook',en:'Block the "seen" feature in Facebook Stories'},desc:{vi:"Xem story không bị đối phương phát hiện ngay trên Facebook",en:"View stories anonymously right on Facebook"},contentScript:{id:"fb_blockSeenStory",js:["./scripts/content/fb_blockSeenStory.js"],matches:["https://www.facebook.com/*","https://web.facebook.com/*"],runAt:"document_start",world:"MAIN",allFrames:!0}},{id:"fb_addDownloadVideoBtn",icon:"⬇",name:{vi:"Thêm nút tải cho mọi video trên Facebook",en:"Add download button on every video on Facebook"},desc:{vi:"Hỗ trợ mọi video/reel/comment",en:"Support all video/reel/comment"},contentScript:{id:"fb_addDownloadVideoBtn",js:["./scripts/content/fb_addDownloadVideoBtn.js"],matches:["https://www.facebook.com/*","https://web.facebook.com/*"],runAt:"document_start",world:"MAIN",allFrames:!1}},{id:"fb_addVideoControlBtn",icon:"🕹️",name:{vi:"Thêm giao diện điều khiển video trên Facebook",en:"Add control button on video on Facebook"},desc:{vi:"Có thể tua tới thời điểm bất kỳ của tất cả video/reel",en:"Jump to any point in any video/reel"},contentScript:{id:"fb_addVideoControlBtn",js:["./scripts/content/fb_addVideoControlBtn.js"],matches:["https://www.facebook.com/*","https://web.facebook.com/*"],runAt:"document_start",world:"MAIN",allFrames:!1}},{id:"fb_showTotalPostReactions",icon:"❤️",name:{vi:"Đếm tổng lượt thích bài viết trên Facebook",en:"Count total post reactions on Facebook"},desc:{vi:"Áp dụng cho những bài viết bị ẩn lượt thích",en:"Applies to posts that hide reactions"},contentScript:{id:"fb_showTotalPostReactions",js:["./scripts/content/fb_showTotalPostReactions.js"],matches:["https://www.facebook.com/*","https://web.facebook.com/*"],runAt:"document_start",world:"MAIN",allFrames:!0}},{id:"fb_stopNewFeed",icon:"🚫",name:{vi:"Tạm dừng tải dòng thời gian trên facebook",en:"Stop load new feed on facebook"},desc:{vi:"Giúp tập trung làm việc. Không cho fb tải các tab: story, home, video, nhóm, mua bán",en:"Focus to work. Stop load these new feeds: stories, home, video, group, marketplace"},contentScript:{id:"fb_stopNewFeed",js:["./scripts/content/fb_stopNewFeed.js"],matches:["https://www.facebook.com/*","https://web.facebook.com/*"],runAt:"document_start",world:"MAIN",allFrames:!0}},{id:"header_insta",name:"Instagram",isHeader:!0,icon:t.jsx("i",{className:"fa-brands fa-instagram"})},{id:"insta_blockSeenStory",icon:"👀",name:{vi:'Chặn "đã xem" trên story Instagram',en:'Block the "seen" feature in Instagram Stories'},desc:{vi:"Xem story không bị đối phương phát hiện ngay trên Instagram",en:"View stories anonymously right on Instagram"},contentScript:{id:"insta_blockSeenStory",js:["./scripts/content/insta_blockSeenStory.js"],matches:["https://*.instagram.com/*"],runAt:"document_start",world:"MAIN",allFrames:!0}},{id:"header_threads",name:"Threads",isHeader:!0,icon:t.jsx("i",{className:"fa-solid fa-at"})},{id:"threads_addDownloadVideoBtn",icon:"⬇",name:{vi:"Thêm nút tải cho mọi video trên Threads",en:"Add download button on every video on Threads"},desc:{vi:"Hỗ trợ mọi video/reel/comment",en:"Support all video/reel/comment"},contentScript:{id:"threads_addDownloadVideoBtn",js:["./scripts/content/threads_addDownloadVideoBtn.js"],matches:["https://*.threads.net/*"],runAt:"document_start",world:"MAIN",allFrames:!1}},{id:"header_others",name:"Others",isHeader:!0,icon:t.jsx("i",{className:"fa-solid fa-screwdriver-wrench"})},{id:"fb_removeFbclid",icon:"🔗",name:{vi:"Xoá tham số theo dõi trên mọi url (fbclid, ttclid, ...)",en:"Delete tracking param from all urls (fbclid, ttclid, ...)"},desc:{vi:"Tự động xoá các tham số theo dõi trên mọi url ("+Object.keys(m).join(", ")+")",en:"Auto remove all tracking params from all urls ("+Object.keys(m).join(", ")+")"},onEnable:async()=>{function n(o){const l=/\((.*?)\)/,s=o.match(l);if(s){const e=s[1].split("|"),d=o.split("(")[0];return e.map(r=>d+r.trim())}else return[o]}const c=1e3;let i=0,a=[];for(let o in m){let l=c+i;i++;let{domains:s=[],params:e}=m[o];s=(s==null?void 0:s.filter(Boolean))||[],a.push({id:l,priority:1,action:{type:"redirect",redirect:{transform:{queryTransform:{removeParams:e.map(d=>n(d)).flat()}}}},condition:{isUrlFilterCaseSensitive:!0,regexFilter:`[?&](${e.join("|")})=`,resourceTypes:["main_frame","sub_frame"],...s.length>0?{requestDomains:s}:{}}})}console.log(a),await p("chrome.declarativeNetRequest.updateDynamicRules",[{addRules:a,removeRuleIds:a.map(o=>o.id)}]),x("remove_tracking_in_url",a.map(o=>o.id)),console.log("added",a)},onDisable:async()=>{const n=await j("remove_tracking_in_url");console.log("deleted",n),p("chrome.declarativeNetRequest.updateDynamicRules",[{removeRuleIds:n}])},supported:!0,button:t.jsx(S,{title:w({vi:"Danh sách tham số",en:"Tracking params list"}),children:t.jsx(I,{type:"default",icon:t.jsx("i",{className:"fa-solid fa-question"}),onClick:()=>{N.fire({icon:"info",title:w({vi:"Danh sách tham số",en:"Tracking params list"}),html:'"})}})})}],_="AutoRun.OtherScriptEnabled";async function A(n=!1){const i=(await p("chrome.scripting.getRegisteredContentScripts")||[]).map(o=>o.id);if(n)return i;const a=await j(_)||[];return[...i,...a]}async function H(n){const c=n.map(o=>o.contentScript).filter(Boolean),i=await A(!0);await p("chrome.scripting.unregisterContentScripts",[{ids:i}]),c.length&&await p("chrome.scripting.registerContentScripts",[c]);const a=n.filter(o=>!o.contentScript).map(o=>o.id);a.length&&await x(_,a)}function Z(){const{ti:n}=T(),[c,i]=f("AutoRun.supported",new Set),[a,o]=f("AutoRun.enabled",new Set),l=y.map(e=>e.isHeader?e:{...e,enabled:a.has(e==null?void 0:e.id),supported:e.supported??c.has(e==null?void 0:e.id)}),s=e=>{var u,g;const d=a.has(e.id),r=new Set(a);d?(h("AutoRun.Disable."+e.id),r.delete(e.id),(u=e.onDisable)==null||u.call(e)):(h("AutoRun.Enable."+e.id),r.add(e.id),(g=e.onEnable)==null||g.call(e)),o(r),H(y.filter(F=>r.has(F.id)))};return R.useEffect(()=>{h("AutoRun:onLoad"),D().then((e=[])=>{i(new Set(e))}),A().then((e=[])=>{console.log(e),o(new Set(e))})},[]),t.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%"},children:[t.jsx(E,{align:"middle",style:{margin:"16px"},children:t.jsx(k.Title,{level:3,style:{margin:0},children:n({en:"AutoRun Features",vi:"Tự động chạy"})})}),t.jsx(B,{align:"start",children:t.jsx(V,{showIcon:!0,type:"success",message:n({en:"These features will be automatically run when you open facebook/instagram.",vi:"Các chức năng dưới đây sẽ được tự động chạy khi bạn mở facebook/instagram"})})}),t.jsx(v,{style:{padding:10},dataSource:l,renderItem:(e,d)=>{var r;return e.isHeader?t.jsx(t.Fragment,{children:t.jsxs("h2",{children:[e.icon," ",n(e.name)]},e.id)}):t.jsx(v.Item,{style:{marginBottom:(r=l[d+1])!=null&&r.isHeader?40:0},children:t.jsxs(q,{disabled:!e.supported,checked:e.enabled,onChange:u=>{s(e)},children:[t.jsxs(S,{title:n(e.desc),children:[t.jsxs(k.Text,{style:{opacity:e.supported?1:.6},children:[t.jsx(b,{type:"vertical"}),e.icon,t.jsx(b,{type:"vertical"}),n(e.name)]}),!e.supported&&t.jsx(C,{count:n({en:"Coming soon",vi:"Sắp có"}),style:{color:"white",marginLeft:10},color:"geekblue"})]}),e.button?t.jsxs(t.Fragment,{children:[t.jsx(b,{type:"vertical"}),e.button]}):null]})})}})]})}export{Z as default}; +import{r as R,aA as t,aB as I}from"./index-BBriuzNA.js";import{u as T,g as f,t as h,a3 as D,b as B,T as S,B as C,a4 as p,a5 as x,a6 as j,W as w,S as N}from"./MyApp-CmkiOnMb.js";import{R as E}from"./row-C0Wk6t4-.js";import{T as k}from"./index-Bumumc8Y.js";import{A as V}from"./index-BhyNApA-.js";import{L as v}from"./index-B7udrguy.js";import{C as q}from"./index-tTPNrueW.js";import{D as b}from"./index-uPrgDTc-.js";import"./responsiveObserver-Bb1LONna.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";const m={Facebook:{params:["fbclid","mc_eid"]},Instagram:{params:["igshid"]},Tiktok:{params:["ttclid"]},Twitter:{domains:["twitter.com"],params:["s","t"]},Google:{domains:["google.com"],params:["gclid","glsrc","_ga","sxsrf","source","ei","iflsig","gs_lp","gs_lcrp","sclient","ved","uact","stick","sca_esv"]},Spotify:{domains:["spotify.com","youtube.com","reddit.com"],params:["si","context"]},Youtube:{domains:["youtube.com"],params:["feature","ab_channel","pp","bp","redir_token","event","embeds_referring_euri","source_ve_path"]},Amazon:{domains:["amazon.*"],params:["ref","tag","linkCode","hv(adid|netw|qmt|bmt|dev|locint|locphy|targid)","psc","content-id","pd_rd_(w|p|r|i|wg)"]},Bing:{domains:["bing.com"],params:["toWww","redig","form","qs","sp","ghc","lq","pq","sc","sk","cvid","ghsh","ghacc","ghpl","ccid","id","thid","simid","FORM","ck","ajaxhist","ajaxserp","osid"]},LinkedIn:{domains:["linkedin.com"],params:["trackingId","lipi","midSig","trkEmail","otpToken","refId","midToken","trk","eid","mcid","ePP","ccuid","cid"]},Reddit:{params:["share_id"]},Adobe:{params:["ef_id","s_kwcid"]},Microsoft:{params:["msclkid"]},Pinterest:{params:["epik"]}},y=[{id:"header_fb",name:"Facebook",isHeader:!0,icon:t.jsx("i",{className:"fa-brands fa-facebook"})},{id:"fb_blockSeenStory",icon:"👀",name:{vi:'Chặn "đã xem" trên story Facebook',en:'Block the "seen" feature in Facebook Stories'},desc:{vi:"Xem story không bị đối phương phát hiện ngay trên Facebook",en:"View stories anonymously right on Facebook"},contentScript:{id:"fb_blockSeenStory",js:["./scripts/content/fb_blockSeenStory.js"],matches:["https://www.facebook.com/*","https://web.facebook.com/*"],runAt:"document_start",world:"MAIN",allFrames:!0}},{id:"fb_addDownloadVideoBtn",icon:"⬇",name:{vi:"Thêm nút tải cho mọi video trên Facebook",en:"Add download button on every video on Facebook"},desc:{vi:"Hỗ trợ mọi video/reel/comment",en:"Support all video/reel/comment"},contentScript:{id:"fb_addDownloadVideoBtn",js:["./scripts/content/fb_addDownloadVideoBtn.js"],matches:["https://www.facebook.com/*","https://web.facebook.com/*"],runAt:"document_start",world:"MAIN",allFrames:!1}},{id:"fb_addVideoControlBtn",icon:"🕹️",name:{vi:"Thêm giao diện điều khiển video trên Facebook",en:"Add control button on video on Facebook"},desc:{vi:"Có thể tua tới thời điểm bất kỳ của tất cả video/reel",en:"Jump to any point in any video/reel"},contentScript:{id:"fb_addVideoControlBtn",js:["./scripts/content/fb_addVideoControlBtn.js"],matches:["https://www.facebook.com/*","https://web.facebook.com/*"],runAt:"document_start",world:"MAIN",allFrames:!1}},{id:"fb_showTotalPostReactions",icon:"❤️",name:{vi:"Đếm tổng lượt thích bài viết trên Facebook",en:"Count total post reactions on Facebook"},desc:{vi:"Áp dụng cho những bài viết bị ẩn lượt thích",en:"Applies to posts that hide reactions"},contentScript:{id:"fb_showTotalPostReactions",js:["./scripts/content/fb_showTotalPostReactions.js"],matches:["https://www.facebook.com/*","https://web.facebook.com/*"],runAt:"document_start",world:"MAIN",allFrames:!0}},{id:"fb_stopNewFeed",icon:"🚫",name:{vi:"Tạm dừng tải dòng thời gian trên facebook",en:"Stop load new feed on facebook"},desc:{vi:"Giúp tập trung làm việc. Không cho fb tải các tab: story, home, video, nhóm, mua bán",en:"Focus to work. Stop load these new feeds: stories, home, video, group, marketplace"},contentScript:{id:"fb_stopNewFeed",js:["./scripts/content/fb_stopNewFeed.js"],matches:["https://www.facebook.com/*","https://web.facebook.com/*"],runAt:"document_start",world:"MAIN",allFrames:!0}},{id:"header_insta",name:"Instagram",isHeader:!0,icon:t.jsx("i",{className:"fa-brands fa-instagram"})},{id:"insta_blockSeenStory",icon:"👀",name:{vi:'Chặn "đã xem" trên story Instagram',en:'Block the "seen" feature in Instagram Stories'},desc:{vi:"Xem story không bị đối phương phát hiện ngay trên Instagram",en:"View stories anonymously right on Instagram"},contentScript:{id:"insta_blockSeenStory",js:["./scripts/content/insta_blockSeenStory.js"],matches:["https://*.instagram.com/*"],runAt:"document_start",world:"MAIN",allFrames:!0}},{id:"header_threads",name:"Threads",isHeader:!0,icon:t.jsx("i",{className:"fa-solid fa-at"})},{id:"threads_addDownloadVideoBtn",icon:"⬇",name:{vi:"Thêm nút tải cho mọi video trên Threads",en:"Add download button on every video on Threads"},desc:{vi:"Hỗ trợ mọi video/reel/comment",en:"Support all video/reel/comment"},contentScript:{id:"threads_addDownloadVideoBtn",js:["./scripts/content/threads_addDownloadVideoBtn.js"],matches:["https://*.threads.net/*"],runAt:"document_start",world:"MAIN",allFrames:!1}},{id:"header_others",name:"Others",isHeader:!0,icon:t.jsx("i",{className:"fa-solid fa-screwdriver-wrench"})},{id:"fb_removeFbclid",icon:"🔗",name:{vi:"Xoá tham số theo dõi trên mọi url (fbclid, ttclid, ...)",en:"Delete tracking param from all urls (fbclid, ttclid, ...)"},desc:{vi:"Tự động xoá các tham số theo dõi trên mọi url ("+Object.keys(m).join(", ")+")",en:"Auto remove all tracking params from all urls ("+Object.keys(m).join(", ")+")"},onEnable:async()=>{function n(o){const l=/\((.*?)\)/,s=o.match(l);if(s){const e=s[1].split("|"),d=o.split("(")[0];return e.map(r=>d+r.trim())}else return[o]}const c=1e3;let i=0,a=[];for(let o in m){let l=c+i;i++;let{domains:s=[],params:e}=m[o];s=(s==null?void 0:s.filter(Boolean))||[],a.push({id:l,priority:1,action:{type:"redirect",redirect:{transform:{queryTransform:{removeParams:e.map(d=>n(d)).flat()}}}},condition:{isUrlFilterCaseSensitive:!0,regexFilter:`[?&](${e.join("|")})=`,resourceTypes:["main_frame","sub_frame"],...s.length>0?{requestDomains:s}:{}}})}console.log(a),await p("chrome.declarativeNetRequest.updateDynamicRules",[{addRules:a,removeRuleIds:a.map(o=>o.id)}]),x("remove_tracking_in_url",a.map(o=>o.id)),console.log("added",a)},onDisable:async()=>{const n=await j("remove_tracking_in_url");console.log("deleted",n),p("chrome.declarativeNetRequest.updateDynamicRules",[{removeRuleIds:n}])},supported:!0,button:t.jsx(S,{title:w({vi:"Danh sách tham số",en:"Tracking params list"}),children:t.jsx(I,{type:"default",icon:t.jsx("i",{className:"fa-solid fa-question"}),onClick:()=>{N.fire({icon:"info",title:w({vi:"Danh sách tham số",en:"Tracking params list"}),html:'"})}})})}],_="AutoRun.OtherScriptEnabled";async function A(n=!1){const i=(await p("chrome.scripting.getRegisteredContentScripts")||[]).map(o=>o.id);if(n)return i;const a=await j(_)||[];return[...i,...a]}async function H(n){const c=n.map(o=>o.contentScript).filter(Boolean),i=await A(!0);await p("chrome.scripting.unregisterContentScripts",[{ids:i}]),c.length&&await p("chrome.scripting.registerContentScripts",[c]);const a=n.filter(o=>!o.contentScript).map(o=>o.id);a.length&&await x(_,a)}function Z(){const{ti:n}=T(),[c,i]=f("AutoRun.supported",new Set),[a,o]=f("AutoRun.enabled",new Set),l=y.map(e=>e.isHeader?e:{...e,enabled:a.has(e==null?void 0:e.id),supported:e.supported??c.has(e==null?void 0:e.id)}),s=e=>{var u,g;const d=a.has(e.id),r=new Set(a);d?(h("AutoRun.Disable."+e.id),r.delete(e.id),(u=e.onDisable)==null||u.call(e)):(h("AutoRun.Enable."+e.id),r.add(e.id),(g=e.onEnable)==null||g.call(e)),o(r),H(y.filter(F=>r.has(F.id)))};return R.useEffect(()=>{h("AutoRun:onLoad"),D().then((e=[])=>{i(new Set(e))}),A().then((e=[])=>{console.log(e),o(new Set(e))})},[]),t.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%"},children:[t.jsx(E,{align:"middle",style:{margin:"16px"},children:t.jsx(k.Title,{level:3,style:{margin:0},children:n({en:"AutoRun Features",vi:"Tự động chạy"})})}),t.jsx(B,{align:"start",children:t.jsx(V,{showIcon:!0,type:"success",message:n({en:"These features will be automatically run when you open facebook/instagram.",vi:"Các chức năng dưới đây sẽ được tự động chạy khi bạn mở facebook/instagram"})})}),t.jsx(v,{style:{padding:10},dataSource:l,renderItem:(e,d)=>{var r;return e.isHeader?t.jsx(t.Fragment,{children:t.jsxs("h2",{children:[e.icon," ",n(e.name)]},e.id)}):t.jsx(v.Item,{style:{marginBottom:(r=l[d+1])!=null&&r.isHeader?40:0},children:t.jsxs(q,{disabled:!e.supported,checked:e.enabled,onChange:u=>{s(e)},children:[t.jsxs(S,{title:n(e.desc),children:[t.jsxs(k.Text,{style:{opacity:e.supported?1:.6},children:[t.jsx(b,{type:"vertical"}),e.icon,t.jsx(b,{type:"vertical"}),n(e.name)]}),!e.supported&&t.jsx(C,{count:n({en:"Coming soon",vi:"Sắp có"}),style:{color:"white",marginLeft:10},color:"geekblue"})]}),e.button?t.jsxs(t.Fragment,{children:[t.jsx(b,{type:"vertical"}),e.button]}):null]})})}})]})}export{Z as default}; diff --git a/public/assets/CheckedIns-8WVaxpsF.js b/public/assets/CheckedIns-Betwun6X.js similarity index 86% rename from public/assets/CheckedIns-8WVaxpsF.js rename to public/assets/CheckedIns-Betwun6X.js index a4790d1..3c07ea2 100644 --- a/public/assets/CheckedIns-8WVaxpsF.js +++ b/public/assets/CheckedIns-Betwun6X.js @@ -1,4 +1,4 @@ -import{ay as E,aI as A,r as S,aA as l,aB as b,aT as B}from"./index--trdnQFa.js";import{D as F,E as L,G as R,u as M,g as q,y as P,t as G,b as g,T,o as D}from"./MyApp-BHr373cy.js";import{u as O}from"./useForceStop-B53S8Rhf.js";import Q from"./MyTable-BTHATUSD.js";import{E as X}from"./ExportButton-C-PwJSin.js";import{I as $}from"./index-CB9InVBI.js";import{T as z}from"./index-VHrAsB-Q.js";import{A as H}from"./index-fivsYW1W.js";import"./index-X7jfXLlB.js";import"./Table-GiCOcILW.js";import"./addEventListener-KkFh1sjE.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";import"./index-DmA8T0X5.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./Pagination-CPGTHysj.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./row-DQoT4CfJ.js";import"./file-download-DYjmaN3D.js";async function J({uid:n="",cursor:s=""}){const I=await F({fb_api_req_friendly_name:"ProfileCometAppCollectionListRendererPaginationQuery",variables:{cursor:s,count:8,scale:2,search:null,id:btoa("app_collection:"+n+":302324425790:103")},doc_id:"25969811035995761"}),_=L(I),{edges:C=[],page_info:p={}}=R(_);return C.map(i=>{var c,m,d,u,k,y,j,a,e,o,r,h,N,x,f,t,v,w;return{id:(c=i==null?void 0:i.node)==null?void 0:c.id,pageId:(d=(m=i==null?void 0:i.node)==null?void 0:m.node)==null?void 0:d.id,pageName:(k=(u=i==null?void 0:i.node)==null?void 0:u.title)==null?void 0:k.text,place:(e=(a=(j=(y=i==null?void 0:i.node)==null?void 0:y.subtitle_text)==null?void 0:j.text)==null?void 0:a.split(` +import{ay as E,aI as A,r as S,aA as l,aB as b,aT as B}from"./index-BBriuzNA.js";import{D as F,E as L,G as R,u as M,g as q,y as P,t as G,b as g,T,o as D}from"./MyApp-CmkiOnMb.js";import{u as O}from"./useForceStop-DOwcs-PE.js";import Q from"./MyTable-C-6hHnGo.js";import{E as X}from"./ExportButton-DABx3myg.js";import{I as $}from"./index-Dm20K0UU.js";import{T as z}from"./index-Bumumc8Y.js";import{A as H}from"./index-BhyNApA-.js";import"./index-NjHtWr7u.js";import"./Table-By6CV266.js";import"./addEventListener-w7NT04KM.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-tTPNrueW.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./Pagination-slfcHA-i.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./row-C0Wk6t4-.js";import"./file-download-Dys_FsHc.js";async function J({uid:n="",cursor:s=""}){const I=await F({fb_api_req_friendly_name:"ProfileCometAppCollectionListRendererPaginationQuery",variables:{cursor:s,count:8,scale:2,search:null,id:btoa("app_collection:"+n+":302324425790:103")},doc_id:"25969811035995761"}),_=L(I),{edges:C=[],page_info:p={}}=R(_);return C.map(i=>{var c,m,d,u,k,y,j,a,e,o,r,h,N,x,f,t,v,w;return{id:(c=i==null?void 0:i.node)==null?void 0:c.id,pageId:(d=(m=i==null?void 0:i.node)==null?void 0:m.node)==null?void 0:d.id,pageName:(k=(u=i==null?void 0:i.node)==null?void 0:u.title)==null?void 0:k.text,place:(e=(a=(j=(y=i==null?void 0:i.node)==null?void 0:y.subtitle_text)==null?void 0:j.text)==null?void 0:a.split(` `))==null?void 0:e[0],image:(r=(o=i==null?void 0:i.node)==null?void 0:o.image)==null?void 0:r.uri,url:((h=i==null?void 0:i.node)==null?void 0:h.url)||((x=(N=i==null?void 0:i.node)==null?void 0:N.node)==null?void 0:x.url),timeString:(w=(v=(t=(f=i==null?void 0:i.node)==null?void 0:f.subtitle_text)==null?void 0:t.text)==null?void 0:v.split(` `))==null?void 0:w[1],cursor:(i==null?void 0:i.cursor)||(p==null?void 0:p.end_cursor)}})}function ye({target:n}){const{ti:s}=M(),{message:I}=E.useApp(),_=A(),C=O(),[p,i]=S.useState(!1),[c,m]=q("CheckedIns.data."+(n==null?void 0:n.id),[]),d=S.useMemo(()=>{const a=new Map,e=new Map;return c.forEach(o=>{a.has(o.place)||a.set(o.place,o),e.has(o.pageId)||e.set(o.pageId,o)}),{allPlaces:Array.from(a.values()),allPages:Array.from(e.values())}},[c]);S.useEffect(()=>{var a;n!=null&&n.id&&u(!((a=P("CheckedIns.data."+(n==null?void 0:n.id)))!=null&&a.length))},[n==null?void 0:n.id]);const u=async(a=!1)=>{var x,f;if(!(n!=null&&n.id))return;const e=C.start();let r=[...a?[]:P("CheckedIns.data."+(n==null?void 0:n.id))||[]],h=((x=r[r.length-1])==null?void 0:x.cursor)||"";G("CheckedIns:onReload"),i(!0);try{for(;!e.value();){const t=await J({uid:n.id,cursor:h});if(!(t!=null&&t.length))break;h=(f=t[t.length-1])==null?void 0:f.cursor,r=[...r,...t].map((v,w)=>({...v,recent:w})),m(r)}}catch(t){I.error({content:s({en:"Error: ",vi:"Lỗi: "})+t.message})}finally{m(r),i(!1)}},k=a=>{_("/bulk-downloader",{state:{targetId:a,platform:B.Facebook}})},y=a=>l.jsxs(g,{children:[l.jsx(b,{disabled:p,type:"primary",icon:p?l.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):l.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>u(!0),children:s({en:"Reload",vi:"Tải lại"})}),l.jsx(X,{data:a.length?a:c,options:[{key:"id",label:".txt (page id)",prepareData:e=>({fileName:(n==null?void 0:n.name)+"_check_in_id.txt",data:e.map(o=>o.pageId).join(` `)})},{key:"id_name",label:".csv (page id+name)",prepareData:e=>({fileName:(n==null?void 0:n.name)+"_check_in_id_name.csv",data:D(e.map(o=>({page:o.pageId,name:o.pageName,place:o.place})))})},{key:"json",label:".json",prepareData:e=>({fileName:(n==null?void 0:n.name)+"_check_in.json",data:JSON.stringify(e,null,4)})},{key:"csv",label:".csv",prepareData:e=>({fileName:(n==null?void 0:n.name)+"_check_in.csv",data:D(e)})}]}),l.jsx(b,{onClick:()=>{var e;(e=n==null?void 0:n.url)!=null&&e.includes("?id=")?window.open((n==null?void 0:n.url)+"&sk=map","_blank"):window.open((n==null?void 0:n.url)+"/map","_blank")},icon:l.jsx("i",{className:"fa fa-external-link-alt"}),children:s({vi:"Xem trên Facebook",en:"View on Facebook"})},"view-fb")]}),j=[{title:"#",dataIndex:"recent",key:"recent",render:(a,e,o)=>(e.recent||0)+1,sorter:(a,e)=>a.recent-e.recent,width:60},{title:s({en:"Cover",vi:"Ảnh"}),key:"cover",dataIndex:"image",render:(a,e,o)=>l.jsx($,{src:e.image,style:{width:120,height:120,objectFit:"contain"}}),width:120},{title:d.allPages.length+" "+s({en:"Page",vi:"Trang"}),key:"name",dataIndex:"name",sorter:(a,e)=>a.pageName.localeCompare(e.pageName),render:(a,e,o)=>l.jsxs(g,{direction:"vertical",style:{maxWidth:250},children:[l.jsx(z.Link,{href:e.url,target:"_blank",children:l.jsx("b",{children:e.pageName})}),l.jsx("span",{style:{opacity:.6},children:e.pageId})]}),filters:d.allPages.map(a=>{let e=c.filter(o=>o.pageId===a.pageId).length;return{count:e,value:a.pageId,text:a.pageName+" ("+e+")"}}).sort((a,e)=>e.count-a.count),onFilter:(a,e)=>e.pageId==a,filterSearch:!0},{title:d.allPlaces.length+" "+s({en:"Place",vi:"Địa điểm"}),key:"place",dataIndex:"place",sorter:(a,e)=>a.place.localeCompare(e.place),filters:d.allPlaces.map(a=>{let e=c.filter(o=>o.place===a.place).length;return{count:e,value:a.place,text:a.place+" ("+e+")"}}).sort((a,e)=>e.count-a.count),onFilter:(a,e)=>e.place==a,filterSearch:!0,width:200},{title:s({en:"Time",vi:"Thời gian"}),key:"timeString",dataIndex:"timeString",sorter:(a,e)=>a.timeString.localeCompare(e.timeString),width:250},{title:s({en:"Actions",vi:"Hành động"}),key:"actions",render:(a,e,o)=>l.jsxs(g.Compact,{children:[l.jsx(T,{title:s({en:"Show map",vi:"Xem bản đồ"}),children:l.jsx(b,{type:"default",onClick:()=>{window.open("https://www.google.com/maps/search/"+e.pageName,"_blank")},icon:l.jsx("i",{className:"fa-solid fa-location-dot"})})}),l.jsx(T,{title:s({en:"Bulk Downloader",vi:"Tải hàng loạt"}),children:l.jsx(b,{type:"default",onClick:()=>k(e.pageId),icon:l.jsx("i",{className:"fa-solid fa-download"})})})]}),width:100,align:"end"}];return l.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[l.jsx(H,{type:"success",showIcon:!0,message:s({en:`Checked in ${c.length} times`,vi:`Đã check in ${c.length} lần`}),style:{alignSelf:"center",marginBottom:10}}),l.jsx(Q,{columns:j,data:c,keyExtractor:a=>a==null?void 0:a.id,searchable:!0,pageSize:3,renderTitle:y})]})}export{ye as default}; diff --git a/public/assets/Collection-CPPE61tF.js b/public/assets/Collection-B9SxfYr4.js similarity index 96% rename from public/assets/Collection-CPPE61tF.js rename to public/assets/Collection-B9SxfYr4.js index 3c98013..ce4860a 100644 --- a/public/assets/Collection-CPPE61tF.js +++ b/public/assets/Collection-B9SxfYr4.js @@ -1,4 +1,4 @@ -import{r as y,aA as t,aB as $}from"./index--trdnQFa.js";import{u as qe,a as We}from"./index-X7jfXLlB.js";import{f as ze}from"./file-download-DYjmaN3D.js";import{u as Ge,d as Je,g as S,t as ye,y as Xe,an as je,b as H,T as be,ao as Oe,S as Q,k as Qe,ap as Ye,aq as Ze,ar as Ue}from"./MyApp-BHr373cy.js";import{D as Ke}from"./index-BI67OZir.js";import{C as Ne}from"./index-DmA8T0X5.js";import{I as et}from"./index-BCUBacY9.js";import{L as tt}from"./index-BJNnFmyH.js";import{D as nt}from"./index-CJGqVaEE.js";function it(o,Y,L){const[w,j]=y.useState(!1);function I({key:b}){b===o&&j(!0)}function V({key:b}){b===o&&(j(!1),L==null||L())}return y.useEffect(()=>(window.addEventListener("keydown",I),window.addEventListener("keyup",V),()=>{window.removeEventListener("keydown",I),window.removeEventListener("keyup",V)}),[]),w}var ke=(o=>(o.File="file",o.Link="link",o.JSON="json",o))(ke||{}),ot=(o=>(o.Grid="grid",o.Vertical="vertical",o))(ot||{});function vt({collectionName:o,renderItem:Y,fetchNext:L,rowKey:w,downloadItem:j,getItemCursor:I,initialData:V=[],downloadThreads:b=5,downloadOptions:R=[],displayType:De="grid",headerButtons:Z=()=>null,header:U=()=>null,once:Ce=!1,all:$e=!1,stop:Se=!1,showPagination:le=!1,pageSize:Le=20,searchPlaceholder:Ie=()=>({en:"Search",vi:"Tìm kiếm"}),onSearch:q}){const{ti:e}=Ge(),{message:m,notification:W}=Je(),{isIntersecting:Ee,ref:Pe}=qe(),[z,ae]=y.useState(!1),[Be,re]=S(`Collection.${o}.hasMore`,!0),[r,B]=S(`Collection.${o}.data`,V),[de,Me]=S(`Collection.${o}.pageIndex`,1),[M,_e]=S(`Collection.${o}.search`,""),[s,_]=S(`Collection.${o}.selected`,[]),[f,ce]=S(`Collection.${o}.selectMode`,!1),[Ae,Te]=S(`Collection.${o}.downloaded`,{});it("Shift",void 0,()=>{j&&ce(n=>!n)});const Fe=y.useMemo(()=>!M||!q?r:r.filter(n=>q(M,n)),[r,M,q]);y.useEffect(()=>{let n=r.length,i=Math.ceil(n/20);de>i&&Me(i)},[r,de]),y.useEffect(()=>{r.length||fe(!1)},[o]);const G=(!r.length||Ee||$e)&&Be&&!M&&!Se;We(()=>{G&&N()},1e3),y.useEffect(()=>{G&&N()},[G]);const fe=(n=!1)=>{n&&ye("Collection:reload");const i=n?[]:Xe("Collection.data."+o)||[];B(i),_([]),N(i)},K=y.useRef(!1),N=async(n=r)=>{if(K.current)return;K.current=!0,ae(!0);const i=await L(n);console.log(o,i);let l=!1;if(i!=null&&i.length){const h=je(n,i,w);if(re(!Ce&&h.length>0),h.length){const g=[...n,...h];B(g),l=!0}}else(i==null?void 0:i.length)===0&&re(!1);!l&&!n.length&&m.info(e({en:"No data found",vi:"Không tìm thấy dữ liệu"})+": "+o),K.current=!1,ae(!1)},He=(n,i)=>{const l=s.indexOf(n),h=l>=0,g=Ae[w(n)],A={position:"absolute",top:0,left:0,right:0,bottom:0,width:"100%",height:"100%",background:h||g?"#000a":"#0002"};return t.jsxs("div",{style:{position:"relative",flexGrow:1,height:"100%"},children:[i{_(h?k=>k.filter(J=>J!==n):k=>[...k,n])},children:h?t.jsx("i",{className:"fa-solid fa-5x",children:l+1}):g?t.jsx("i",{className:"fa-solid fa-check fa-5x"}):t.jsx("i",{className:"fa-solid fa-square fa-5x",style:{color:"#fff7"}})}):g?t.jsx("div",{style:{...A,display:"flex",justifyContent:"center",alignItems:"center",pointerEvents:"none",background:"#0006"},children:t.jsx("i",{className:"fa-solid fa-check fa-5x",style:{color:"white"}})}):null]},"select_container_"+w(n))},ue=async({fromCursor:n,downloadType:i,startIndex:l=0}={})=>{var pe;if(!j)return;const h=await Oe();if(!("showDirectoryPicker"in window)&&i==="file")return Q.fire({icon:"error",title:e({en:"Browser not supported",vi:"Trình duyệt không hỗ trợ"}),text:e({en:"File saver API not supported in this browser. Please use newest version of Edge or Chrome. (window.showDirectoryPicker)",vi:"Trình duyệt này không hỗ trợ API lưu file (window.showDirectoryPicker). Vui lòng sử dụng Edge hoặc Chrome bản mới nhất"})});let g;if(!n&&!f&&(g=await Q.fire({icon:"question",title:e({en:"Download",vi:"Tải xuống"})+"?",text:o,showDenyButton:!0,showCancelButton:!1,confirmButtonColor:"#d33",denyButtonColor:"#1668dc",confirmButtonText:e({en:"Download from cursor",vi:"Tiếp tục tải"}),denyButtonText:e({en:"Download all",vi:"Tải từ đầu"})}),g.isDismissed))return;if(g!=null&&g.isConfirmed){const a=await Q.fire({icon:"info",title:e({en:"Download from cursor",vi:"Tiếp tục tải"}),html:` +import{r as y,aA as t,aB as $}from"./index-BBriuzNA.js";import{u as qe,a as We}from"./index-NjHtWr7u.js";import{f as ze}from"./file-download-Dys_FsHc.js";import{u as Ge,d as Je,g as S,t as ye,y as Xe,an as je,b as H,T as be,ao as Oe,S as Q,k as Qe,ap as Ye,aq as Ze,ar as Ue}from"./MyApp-CmkiOnMb.js";import{D as Ke}from"./index-4qwk-lHW.js";import{C as Ne}from"./index-tTPNrueW.js";import{I as et}from"./index-BbXfI1Nu.js";import{L as tt}from"./index-B7udrguy.js";import{D as nt}from"./index-uPrgDTc-.js";function it(o,Y,L){const[w,j]=y.useState(!1);function I({key:b}){b===o&&j(!0)}function V({key:b}){b===o&&(j(!1),L==null||L())}return y.useEffect(()=>(window.addEventListener("keydown",I),window.addEventListener("keyup",V),()=>{window.removeEventListener("keydown",I),window.removeEventListener("keyup",V)}),[]),w}var ke=(o=>(o.File="file",o.Link="link",o.JSON="json",o))(ke||{}),ot=(o=>(o.Grid="grid",o.Vertical="vertical",o))(ot||{});function vt({collectionName:o,renderItem:Y,fetchNext:L,rowKey:w,downloadItem:j,getItemCursor:I,initialData:V=[],downloadThreads:b=5,downloadOptions:R=[],displayType:De="grid",headerButtons:Z=()=>null,header:U=()=>null,once:Ce=!1,all:$e=!1,stop:Se=!1,showPagination:le=!1,pageSize:Le=20,searchPlaceholder:Ie=()=>({en:"Search",vi:"Tìm kiếm"}),onSearch:q}){const{ti:e}=Ge(),{message:m,notification:W}=Je(),{isIntersecting:Ee,ref:Pe}=qe(),[z,ae]=y.useState(!1),[Be,re]=S(`Collection.${o}.hasMore`,!0),[r,B]=S(`Collection.${o}.data`,V),[de,Me]=S(`Collection.${o}.pageIndex`,1),[M,_e]=S(`Collection.${o}.search`,""),[s,_]=S(`Collection.${o}.selected`,[]),[f,ce]=S(`Collection.${o}.selectMode`,!1),[Ae,Te]=S(`Collection.${o}.downloaded`,{});it("Shift",void 0,()=>{j&&ce(n=>!n)});const Fe=y.useMemo(()=>!M||!q?r:r.filter(n=>q(M,n)),[r,M,q]);y.useEffect(()=>{let n=r.length,i=Math.ceil(n/20);de>i&&Me(i)},[r,de]),y.useEffect(()=>{r.length||fe(!1)},[o]);const G=(!r.length||Ee||$e)&&Be&&!M&&!Se;We(()=>{G&&N()},1e3),y.useEffect(()=>{G&&N()},[G]);const fe=(n=!1)=>{n&&ye("Collection:reload");const i=n?[]:Xe("Collection.data."+o)||[];B(i),_([]),N(i)},K=y.useRef(!1),N=async(n=r)=>{if(K.current)return;K.current=!0,ae(!0);const i=await L(n);console.log(o,i);let l=!1;if(i!=null&&i.length){const h=je(n,i,w);if(re(!Ce&&h.length>0),h.length){const g=[...n,...h];B(g),l=!0}}else(i==null?void 0:i.length)===0&&re(!1);!l&&!n.length&&m.info(e({en:"No data found",vi:"Không tìm thấy dữ liệu"})+": "+o),K.current=!1,ae(!1)},He=(n,i)=>{const l=s.indexOf(n),h=l>=0,g=Ae[w(n)],A={position:"absolute",top:0,left:0,right:0,bottom:0,width:"100%",height:"100%",background:h||g?"#000a":"#0002"};return t.jsxs("div",{style:{position:"relative",flexGrow:1,height:"100%"},children:[i{_(h?k=>k.filter(J=>J!==n):k=>[...k,n])},children:h?t.jsx("i",{className:"fa-solid fa-5x",children:l+1}):g?t.jsx("i",{className:"fa-solid fa-check fa-5x"}):t.jsx("i",{className:"fa-solid fa-square fa-5x",style:{color:"#fff7"}})}):g?t.jsx("div",{style:{...A,display:"flex",justifyContent:"center",alignItems:"center",pointerEvents:"none",background:"#0006"},children:t.jsx("i",{className:"fa-solid fa-check fa-5x",style:{color:"white"}})}):null]},"select_container_"+w(n))},ue=async({fromCursor:n,downloadType:i,startIndex:l=0}={})=>{var pe;if(!j)return;const h=await Oe();if(!("showDirectoryPicker"in window)&&i==="file")return Q.fire({icon:"error",title:e({en:"Browser not supported",vi:"Trình duyệt không hỗ trợ"}),text:e({en:"File saver API not supported in this browser. Please use newest version of Edge or Chrome. (window.showDirectoryPicker)",vi:"Trình duyệt này không hỗ trợ API lưu file (window.showDirectoryPicker). Vui lòng sử dụng Edge hoặc Chrome bản mới nhất"})});let g;if(!n&&!f&&(g=await Q.fire({icon:"question",title:e({en:"Download",vi:"Tải xuống"})+"?",text:o,showDenyButton:!0,showCancelButton:!1,confirmButtonColor:"#d33",denyButtonColor:"#1668dc",confirmButtonText:e({en:"Download from cursor",vi:"Tiếp tục tải"}),denyButtonText:e({en:"Download all",vi:"Tải từ đầu"})}),g.isDismissed))return;if(g!=null&&g.isConfirmed){const a=await Q.fire({icon:"info",title:e({en:"Download from cursor",vi:"Tiếp tục tải"}),html:`
diff --git a/public/assets/Dashboard-DvcWojWo.js b/public/assets/Dashboard-2LLzpdYA.js similarity index 99% rename from public/assets/Dashboard-DvcWojWo.js rename to public/assets/Dashboard-2LLzpdYA.js index dde3b13..a87732f 100644 --- a/public/assets/Dashboard-DvcWojWo.js +++ b/public/assets/Dashboard-2LLzpdYA.js @@ -1 +1 @@ -import{aI as c,r as d,aA as e,ax as s,aB as a,aG as u}from"./index--trdnQFa.js";import{u as x,t as r,e as g,T as h}from"./MyApp-BHr373cy.js";import{A as m}from"./index-fivsYW1W.js";import{D as j}from"./index-CJGqVaEE.js";const p=[{title:{en:"November 2024",vi:"Tháng 11/2024"}},{id:"fix-detect-unfriend",time:"2024-11-12",text:{vi:e.jsxs(e.Fragment,{children:["SỦA LỖI: Thông báo khi có người ",e.jsx("u",{children:"Huỷ kết bạn / Bạn mới"})]}),en:e.jsxs(e.Fragment,{children:["FIX BUG: Notify when someone ",e.jsx("u",{children:"Unfriend you / New friend"})]})},path:"/friends/all"},{id:"fix-table-select",time:"2024-11-12",text:{vi:e.jsxs(e.Fragment,{children:["SỦA LỖI: ",e.jsx("u",{children:"Chọn/Bỏ chọn"})," các dòng trong tất cả table (tin nhắn/dọn facebook). Giúp thực hiện các chức năng tự động."]}),en:e.jsxs(e.Fragment,{children:["FIX BUG: ",e.jsx("u",{children:"Select/Unselect"})," rows in all table (messages/clean facebook). Support perform auto actions."]})}},{id:"insta-highlight-created-time",time:"2024-11-01",text:{vi:e.jsxs(e.Fragment,{children:["CẬP NHẬT: Xem ",e.jsx("u",{children:"Thời gian tạo / caption"})," của tất cả"," ",e.jsx("u",{children:"Instagram highlight"})]}),en:e.jsxs(e.Fragment,{children:["UPDATE: Show ",e.jsx("u",{children:"caption / created time"})," for ",e.jsx("u",{children:"Instagram highlight"})]})},path:"/bulk-downloader"},{title:{en:"October 2024",vi:"Tháng 10/2024"}},{id:"fix-fb-dtsg",time:"2024-10-31",text:{vi:e.jsxs(e.Fragment,{children:["FIX: Lỗi ",e.jsx("u",{children:"Missing fb_dtsg"})]}),en:e.jsxs(e.Fragment,{children:["FIX: Error ",e.jsx("u",{children:"Missing fb_dtsg"})]})},link:s.FB_AIO.howToGetFbDtsg},{id:"v1.5",time:"2024-10-29",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Cập nhật FB AIO ",e.jsx("u",{children:"phiên bản 1.5"}),e.jsxs("ul",{children:[e.jsxs("li",{children:["Thêm ",e.jsx("u",{children:"nút tải nhanh"})," mọi video/reel/comment Threads"]}),e.jsxs("li",{children:[e.jsx("u",{children:"Dừng dòng thời gian"})," facebook"]})]})]}),en:e.jsxs(e.Fragment,{children:["NEW: Update FB AIO ",e.jsx("u",{children:"version 1.5"}),e.jsxs("ul",{children:[e.jsxs("li",{children:["Add ",e.jsx("u",{children:"download button"})," in all Threads video"]}),e.jsxs("li",{children:[e.jsx("u",{children:"Stop load newfeed"})," facebook"]})]})]})},path:"/autorun",link:"https://www.facebook.com/groups/1154059318582088/posts/1515339635787386"},{id:"bulk-download-threads",time:"2024-10-20",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Tải hàng loạt cho ",e.jsx("u",{children:"Threads.net"})]}),en:e.jsxs(e.Fragment,{children:["NEW: Bulk downloader now support ",e.jsx("u",{children:"Threads.net"})]})},path:"/bulk-downloader"},{id:"tip-for-fb",time:"2024-10-18",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Mẹo hay"})," cho facebook"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Tip"})," for facebook"]})},path:"/tip"},{id:"fbaio-1.4",time:"2024-10-15",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: FB AIO ",e.jsx("u",{children:"v1.4"})," đã lên webstore",e.jsxs("ul",{children:[e.jsxs("li",{children:["Thêm ",e.jsx("u",{children:"nút tải nhanh"})," mọi video/reel/comment fb"]}),e.jsxs("li",{children:["Cho phép ",e.jsx("u",{children:"tua tới thời điểm bất kỳ"})," của mọi reel fb"]})]})]}),en:e.jsxs(e.Fragment,{children:["NEW: FB AIO ",e.jsx("u",{children:"v1.4"})," available now on webstore",e.jsxs("ul",{children:[e.jsxs("li",{children:["Show ",e.jsx("u",{children:"download button"})," on all video/reel/video on fb"]}),e.jsxs("li",{children:["Enable ",e.jsx("u",{children:"video controls"})," for all video/reel on fb"]})]})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1505928923395124"},{id:"notify-fbaio-appear",time:"2024-10-11",text:{vi:e.jsxs(e.Fragment,{children:["THÔNG BÁO: FB AIO ",e.jsx("u",{children:"đã trở lại"})," chrome webstore, phiên bản mới ",e.jsx("u",{children:"1.3"})]}),en:e.jsxs(e.Fragment,{children:["NEW: FB AIO ",e.jsx("u",{children:"came back"})," on chrome webstore, with new version ",e.jsx("u",{children:"1.3"})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1503051203682896"},{id:"notify-fbaio-dissapear",time:"2024-10-11",text:{vi:e.jsxs(e.Fragment,{children:["THÔNG BÁO: ",e.jsx("u",{children:"FB AIO"})," sẽ ",e.jsx("u",{children:"không xuất hiện"})," trên webstore trong vài ngày"]}),en:e.jsxs(e.Fragment,{children:["PLEASE READ: ",e.jsx("u",{children:"FB AIO"})," will ",e.jsx("u",{children:"disappear"})," on chrome webstore in few days"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1502262723761744"},{id:"autorun-features",time:"2024-10-10",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Hàng loạt chức năng ",e.jsx("u",{children:"Tự động chạy"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Chặn đã xem story ngay trên fb/insta"}),e.jsx("li",{children:"Đếm tổng lượt thích bài viết fb (áp dụng cho bài viết bị ẩn lượt thích)"}),e.jsx("li",{children:"Xoá tham số theo dõi trên mọi url (fbclid, ttclid, ...)"}),e.jsx("li",{children:"Thêm nút tải trên mọi video/reel/comment trên facebook"})]})]}),en:e.jsxs(e.Fragment,{children:["NEW: Bunch of new ",e.jsx("u",{children:"autorun features"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Block 'seen' features right on fb/insta"}),e.jsx("li",{children:"Count total post's reactions on fb (applies to posts that hide reactions)"}),e.jsx("li",{children:"Delete tracking param from all urls (fbclid, ttclid, ...)"}),e.jsx("li",{children:"Add download button on all video/reel/comment on facebook"})]})]})},path:"/autorun"},{id:"video-downloader",time:"2024-10-07",text:{vi:e.jsxs(e.Fragment,{children:["CẬP NHÂT: Hỗ trợ tải video/reel fb ",e.jsx("u",{children:"Chất lượng cao"})]}),en:e.jsxs(e.Fragment,{children:["UPDATE: Support download fb videos/reels ",e.jsx("u",{children:"High quality"})]})},path:"/video-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1499830124005004"},{id:"refactor-bulk-downloader-0510",time:"2024-10-05",text:{vi:e.jsxs(e.Fragment,{children:["CẬP NHẬT: Tải hàng loạt",e.jsxs("ul",{children:[e.jsxs("li",{children:["Xem mọi ảnh ",e.jsx("u",{children:"Được tag"}),"/",e.jsx("u",{children:"Chính chủ"})," của bất kỳ ai (fb)"]}),e.jsxs("li",{children:["Mở ",e.jsx("u",{children:"bài viết gốc"})," của bất kỳ ảnh/video/reel nào (fb/insta)"]}),e.jsxs("li",{children:["Mở ",e.jsx("u",{children:"bản đồ"})," các lượt checkins"]})]})]}),en:e.jsxs(e.Fragment,{children:["UPDATE: Bulk downloader",e.jsxs("ul",{children:[e.jsxs("li",{children:["View all ",e.jsx("u",{children:"Tagged"}),"/",e.jsx("u",{children:"Owner"})," photos of anyone (fb)"]}),e.jsxs("li",{children:["Open ",e.jsx("u",{children:"source post"})," of any photos/videos/reels (fb/insta)"]}),e.jsxs("li",{children:["Open ",e.jsx("u",{children:"google map"})," of any checkins location"]})]})]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1499125590742124"},{id:"refactor-story-0510",time:"2024-10-05",text:{vi:e.jsxs(e.Fragment,{children:["CẬP NHÂT: ",e.jsx("u",{children:"Xoá hàng loạt"})," story đã lưu trữ"]}),en:e.jsxs(e.Fragment,{children:["UPDATE: ",e.jsx("u",{children:"Bulk delete"})," archived stories"]})},path:"/stories",link:"https://www.facebook.com/groups/1154059318582088/posts/1499125590742124"},{id:"global-mute",time:"2024-10-05",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Tắt tiếng"})," toàn cục - áp dụng cho mọi videos (nút góc dưới bên phải trang web)"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Global mute"})," mute all videos (bottom-right corner button)"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1499125590742124"},{id:"find-all-posts",time:"2024-10-04",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Tìm ",e.jsx("u",{children:"mọi bài viết"})," của người dùng bất kỳ trên các hội nhóm facebook (trong tab Lượt tag)"]}),en:e.jsxs(e.Fragment,{children:["NEW: Find ",e.jsx("u",{children:"All posts"})," of anyone on all facebook groups/pages (in tab Tagged)"]})},path:"/bulk-downloader"},{id:"tagged",time:"2024-10-04",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Xem tât cả ",e.jsx("u",{children:"Lượt tag"})," của người khác trên facebook"]}),en:e.jsxs(e.Fragment,{children:["NEW: Know all ",e.jsx("u",{children:"Tagged"})," content (post/comment) of anyone"]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1497809580873725"},{id:"referral-code",time:"2024-10-03",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Nhập/Chia sẻ ",e.jsx("u",{children:"Mã giới thiệu"})," để nhận VIP miễn phí"]}),en:e.jsxs(e.Fragment,{children:["NEW: Enter/Share ",e.jsx("u",{children:"Referral code"})," to unlock VIP"]})},path:"/vip",link:"https://www.facebook.com/groups/1154059318582088/posts/1497153027606047"},{id:"bug-report_feature-request",time:"2024-10-02",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Báo cáo lỗi"}),"/",e.jsx("u",{children:"Yêu cầu chức năng"})," dễ dàng hơn"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Bug report"}),"/",e.jsx("u",{children:"Feature request"})," are now available"]})},path:s.FB_AIO.featureRequest,newTab:!0,link:"https://www.facebook.com/groups/1154059318582088/posts/1496330254354991"},{title:{en:"Sep 2024",vi:"Tháng 09/2024"}},{id:"deep-scan-friends",time:"2024-09-30",text:{vi:e.jsxs("ul",{children:["MỚI:",e.jsxs("li",{children:[e.jsx("u",{children:"Quét chuyên sâu"})," bạn bè để tìm nick bị khoá, giới tính, bạn chung, ..."]})," ",e.jsxs("li",{children:[e.jsx("u",{children:"Bộ lọc nhanh"})," để lọc tên chứa ký tự đặc biệt, nick không có avatar, uid lạ, ..."]})]}),en:e.jsxs("ul",{children:["NEW:",e.jsxs("li",{children:[e.jsx("u",{children:"Deep Scan Friends"})," to find locked accounts, gender, mutual friends, ..."]}),e.jsxs("li",{children:[e.jsx("u",{children:"Quick Filters"})," to find name contains special characters, no avatar, strange uid..."]})]})},path:"/friends/all",link:"https://www.facebook.com/groups/1154059318582088/posts/1495058647815485"},{id:"top-level-groups",time:"2024-09-29",text:{vi:e.jsxs(e.Fragment,{children:["CÂP NHẬT: ",e.jsx("u",{children:"Top level group"})," - nhóm bạn quan tâm nhất"]}),en:e.jsxs(e.Fragment,{children:["UPDATE: ",e.jsx("u",{children:"Top level group"})," - Your most interested groups"]})},path:"/groups"},{id:"introduce-follows",time:"2024-09-29",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Bỏ theo dõi"})," Người dùng/Trang/Nhóm hàng loạt nhanh chóng"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"UnFollow"})," User/Page/Group in bulk faster"]})},path:"/friends/follows",link:"https://www.facebook.com/groups/1154059318582088/posts/1494272184560798"},{id:"shortcuts",time:"2024-09-27",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Phím tắt"})," facebook, truy cập nhanh những chức năng quan trọng"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Facebook shortcuts"})," access important features faster"]})},path:"/shortcuts",link:"https://www.facebook.com/groups/1154059318582088/posts/1493160008005349"},{id:"rating-vip",time:"2024-09-27",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Đánh giá"})," 5 sao, nhận ",e.jsx("u",{children:"2 tuần VIP"})]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Review"})," 5 stars, get ",e.jsx("u",{children:"2 weeks VIP"})," for FREE"]})},path:"/vip",link:"https://www.facebook.com/groups/1154059318582088/posts/1475090716478945"},{id:"buy-vip",time:"2024-09-24",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Mở bán VIP"})," theo tháng, nếu bạn không thể share bài viết"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Buy VIP"})," per month, if you can't share my post"]})},path:"/vip",link:"https://www.facebook.com/groups/1154059318582088/posts/1491022184885798"},{id:"share-vip",time:"2024-09-22",text:{vi:e.jsxs(e.Fragment,{children:["CẬP NHẬT ",e.jsx("u",{children:"Share VIP"}),": Like và Chia sẻ"," ",e.jsx("a",{target:"_blank",href:s.PostToShare.url,children:"bài viết"})," ","để nhận VIP trong ",e.jsx("u",{children:"2 tuần"})]}),en:e.jsxs(e.Fragment,{children:["UPDATE ",e.jsx("u",{children:"Share VIP"}),": Like and Share"," ",e.jsx("a",{target:"_blank",href:s.PostToShare.url,children:"this post"})," ","to unlock VIP in ",e.jsx("u",{children:"2 weeks"})]})},path:"/vip",link:"https://www.facebook.com/groups/1154059318582088/posts/1475090716478945"},{id:"download-messages",time:"2024-09-04",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Tải toàn bộ tin nhắn"})," trong đoạn chat"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Download all messages"})," in chat"]})},path:"/messages/all",link:"https://www.facebook.com/groups/1154059318582088/posts/1478126686175348"},{id:"bulk-downloader-links-support",time:"2024-09-02",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ định dạng link ",e.jsx("u",{children:"/share/"})," trong Tải hàng loạt"]}),en:e.jsxs(e.Fragment,{children:["Support more URL formats ",e.jsx("u",{children:"/share/"})," in Bulk downloader"]})},path:"/bulk-downloader",link:"https://www.facebook.com/share/p/zkZPEiw6witXQ8Wv"},{id:"vip-quoc-khanh",time:"2024-09-02",text:{vi:e.jsxs(e.Fragment,{children:["Miễn phí Tất cả Tính năng VIP nhân dịp ",e.jsx("u",{children:"Quốc Khánh Việt Nam"})," 02/09/2024"]}),en:e.jsxs(e.Fragment,{children:["Free All VIP features during ",e.jsx("u",{children:"Viet Nam National Day"})," 02/09/2024"]})},path:"/vip",link:"https://www.facebook.com/groups/1154059318582088/posts/1476885129632837"},{title:{en:"Aug 2024",vi:"Tháng 08/2024"}},{id:"introduce-vip",time:"2024-08-29",text:{vi:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Chức năng VIP"}),", chia sẻ bài viết để mở khoá"]}),en:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"VIP features"}),", share post to unlock"]})},path:"/vip"},{id:"ranking-friends",time:"2024-08-27",text:{vi:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Xếp hạng bạn bè"}),", xem ai vào xem facebook của bạn nhiều nhất"]}),en:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Ranking friends"})," to see who view your facebook profile the most"]})},path:"/friends/all"},{id:"webstore-available",time:"2024-08-27",text:{vi:e.jsxs(e.Fragment,{children:["FB AIO đã có mặt trên ",e.jsx("u",{children:"Chrome webstore"})]}),en:e.jsxs(e.Fragment,{children:["FB AIO now available on ",e.jsx("u",{children:"Chrome webstore"})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1473739193280764"},{id:"interactions-scanner-friends",time:"2024-08-27",text:{vi:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Quét tương tác"})," bạn bè, đếm số lượt thích / bình luận của bạn bè trên mọi bài viết của bạn"]}),en:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Interactions Scanner"})," to all friends, count likes/comments of your friends on your posts"]})},path:"/friends/all",link:"https://www.facebook.com/groups/1154059318582088/posts/1473366643318019"},{id:"bulk-downloader-post",time:"2024-08-26",text:{vi:e.jsxs(e.Fragment,{children:["Tải hết ",e.jsx("u",{children:"ảnh/video từ bài post"})," + Hỗ trợ ",e.jsx("u",{children:"nhiều định dang link"})," hơn trong Tải hàng loạt"]}),en:e.jsxs(e.Fragment,{children:["Download all ",e.jsx("u",{children:"photos/videos from post"})," + Support ",e.jsx("u",{children:"more link formats"})," ","in Bulk downloader"]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1472835303371153/"},{id:"friends-requests",time:"2024-08-25",text:{vi:e.jsxs(e.Fragment,{children:["Quản lý ",e.jsx("u",{children:"Lời mời kết bạn"}),", chấp nhận/từ chối/thu hồi hàng loạt dễ dàng"]}),en:e.jsxs(e.Fragment,{children:["Manage ",e.jsx("u",{children:"Friend requests"})," (incoming/outgoing), bulk accept/decline/cancel friend requests"]})},path:"/friends/requests",link:"https://www.facebook.com/groups/1154059318582088/posts/1472192560102094"},{id:"bulk-downloader-select-to-download",time:"2024-08-23",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ ",e.jsx("u",{children:"chọn để tải"})," thay vì tải tất cả trong Tải hàng loạt"]}),en:e.jsxs(e.Fragment,{children:["Support ",e.jsx("u",{children:"select to download"})," instead of download all in Bulk downloader"]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1471295353525148"},{id:"insta-story-anonymous",time:"2024-08-23",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ xem ẩn danh / tải hàng loạt ",e.jsx("u",{children:"story Instagram"})]}),en:e.jsxs(e.Fragment,{children:["Support anonymous view / bulk download ",e.jsx("u",{children:"Instagram story"})]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1471094810211869"},{id:"filter-groups-noadmin",time:"2024-08-21",text:{vi:e.jsxs(e.Fragment,{children:["Lọc ",e.jsx("u",{children:"nhóm không có admin"})," quản lý"]}),en:e.jsxs(e.Fragment,{children:["Filter ",e.jsx("u",{children:"groups that don't have admins"})]})},path:"/groups"},{id:"autosave-notifications",time:"2024-08-21",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ ",e.jsx("u",{children:"tự động lưu thông báo"}),", xem lại thông báo dễ dàng"]}),en:e.jsxs(e.Fragment,{children:["Support ",e.jsx("u",{children:"autosave notifications"}),", easier to access old notifications"]})}},{id:"story-custom-reactions",time:"2024-08-20",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ thả ",e.jsx("u",{children:"cảm xúc tuỳ chỉnh"})," cho mọi Story"]}),en:e.jsxs(e.Fragment,{children:["Support send ",e.jsx("u",{children:"custom reactions"})," for all Stories"]})},path:"/stories",link:"https://www.facebook.com/groups/1154059318582088/posts/1469187173735966/"},{id:"pages-manager",time:"2024-08-19",text:{vi:e.jsxs(e.Fragment,{children:["Ra mắt chức năng ",e.jsx("u",{children:"Quản lý trang"}),", trang đã thích, trang được mời, bỏ thích/bỏ theo dõi hàng loạt, tìm theo danh mục, ..."]}),en:e.jsxs(e.Fragment,{children:["Introduce ",e.jsx("u",{children:"Pages manager"}),", liked/invited pages, bulk dislike/unfollow, search by category, ..."]})},path:"/pages",link:"https://www.facebook.com/groups/1154059318582088/posts/1468907477097269/"},{id:"bulk-downloader-search-history",time:"2024-08-16",text:{vi:e.jsxs(e.Fragment,{children:["Tự động ",e.jsx("u",{children:"lưu lịch sử tìm kiếm"})," trong Tải hàng loạt, nhanh chóng chọn lại bạn bè để stalk"]}),en:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Auto save search history"})," in Bulk downloader, for quick re-search"]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1467159083938775/"},{id:"autosave-friends",time:"2024-08-16",text:{vi:e.jsxs(e.Fragment,{children:["Tự động ",e.jsx("u",{children:"lưu danh sách bạn bè"}),". Thông báo khi có"," ",e.jsx("u",{children:"bạn mới / huỷ kết bạn"})]}),en:e.jsxs(e.Fragment,{children:["Auto ",e.jsx("u",{children:"save friends list"}),". Notify when there are"," ",e.jsx("u",{children:"new friends / unfriend"})]})},path:"/friends/all",link:"https://www.facebook.com/groups/1154059318582088/posts/1467159083938775/"},{id:"stalk-groups-pages-of-friends",time:"2024-08-15",text:{vi:e.jsxs(e.Fragment,{children:["Biết bạn bè đang tham gia / thích ",e.jsx("u",{children:"nhóm/trang công khai"})," nào trên facebook (",e.jsx("u",{children:"đã khoá trang cá nhân"})," cũng xem được)"]}),en:e.jsxs(e.Fragment,{children:["Know which ",e.jsx("u",{children:"public groups/pages"})," that your friend joined / liked on facebook (even if he/she ",e.jsx("u",{children:"locked profile"}),")"]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1466593610661989"},{id:"export-uid-groupid",time:"2024-08-15",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ Xuất riêng ",e.jsx("u",{children:"uid / group id"})," trong Quản lý Tin nhắn/Bạn bè/Nhóm"]}),en:e.jsxs(e.Fragment,{children:["Support export only ",e.jsx("u",{children:"uid / group id"})," in Messages/Friends/Groups manager"]})}},{id:"view-story",time:"2024-08-14",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ ",e.jsx("u",{children:"xem Story"})," trong ",e.jsx("u",{children:"Tải hàng loạt"})]}),en:e.jsxs(e.Fragment,{children:["Support ",e.jsx("u",{children:"view Story"})," in ",e.jsx("u",{children:"Buld downloader"})]})},path:"/bulk-downloader"},{id:"groups-manager",time:"2024-08-14",text:{vi:e.jsxs(e.Fragment,{children:["Ra mắt chức năng ",e.jsx("u",{children:"Quản lý nhóm"}),", tìm kiếm nhanh chóng, rời nhóm hàng loạt, ..."]}),en:e.jsxs(e.Fragment,{children:["Introduce ",e.jsx("u",{children:"Groups manager"}),", quick search, bulk leave group, ..."]})},path:"/groups"},{id:"stories",time:"2024-08-12",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ xem ",e.jsx("u",{children:"Tin (story) trang chủ + Tin đã lưu trữ"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Xem Tin của người khác có bao nhiêu reactions"}),e.jsx("li",{children:"Xem danh sách người đã xem Tin của bạn"}),e.jsx("li",{children:"Tải tất cả Tin"})]})]}),en:e.jsxs(e.Fragment,{children:["Support viewing ",e.jsx("u",{children:"home page stories + archived stories"}),e.jsxs("ul",{children:[e.jsx("li",{children:"See how many reactions other people's stories have"}),e.jsx("li",{children:"See the list of people who have viewed your story"}),e.jsx("li",{children:"Download all stories"})]})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1464988007489216",path:"/stories"},{id:"bulk-downloader-fix-duplicate",time:"2024-08-09",text:{vi:e.jsx(e.Fragment,{children:"Sửa lỗi tải hàng loạt post instagram bị lặp lại, không tự dừng khi hết post"}),en:e.jsx(e.Fragment,{children:"Fix bug: Duplicate when bulk download Instagram's posts"})},path:"/bulk-downloader"},{id:"bulk-downloader-json-support",time:"2024-08-08",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ định dạng ",e.jsx("u",{children:".json"})," trong Tải hàng loạt, chứa nhiều thông tin như"," ",e.jsx("u",{children:"nội dung bài đăng, số like, share, comment, ..."})]}),en:e.jsxs(e.Fragment,{children:["Support download ",e.jsx("u",{children:".json"})," in Bulk Downloader, include many infomation"," ",e.jsx("u",{children:"captions, likes, shares, comments, ..."})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1462371741084176",path:"/bulk-downloader"},{id:"bulk-downloader-insta-highlight",time:"2024-08-07",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trơ tải tất cả ",e.jsx("u",{children:"Highlight Instagram"})," trong 1 click"]}),en:e.jsxs(e.Fragment,{children:["Support download all ",e.jsx("u",{children:"Highlight Instagram"})," in 1 click"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1461600941161256",path:"/bulk-downloader"},{id:"bulk-downloader-insta-posts-reels",time:"2024-08-05",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ tải ",e.jsx("u",{children:"Instagram"}),": Bài đăng (Ảnh/Video) / Reels"]}),en:e.jsxs(e.Fragment,{children:["Support download media on ",e.jsx("u",{children:"Instagram"}),": Posts (Photos/Videos) / Reels"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1460960064558677",path:"/bulk-downloader"},{title:{en:"July 2024",vi:"Tháng 07/2024"}},{id:"bulk-downloader-shortcut",time:"2024-07-22",text:{vi:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Phím tắt Tải hàng loạt"})," từ bạn bè ngay trong trang Quản lý bạn bè"]}),en:e.jsxs(e.Fragment,{children:[e.jsx("b",{children:"Shortcut bulk downloader"})," for your friends in Friends Manager"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1452419068746110",path:"/friends/all"},{id:"bulk-downloader-fb-reels",time:"2024-07-21",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ tải tất cả ",e.jsx("u",{children:"Facebook Reels"})," của user/page"]}),en:e.jsxs(e.Fragment,{children:["Support download all ",e.jsx("u",{children:"Facebook Reels"})," of user/page"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1451949155459768",path:"/bulk-downloader"},{id:"bulk-downloader-group-files",time:"2024-07-21",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ tải tất cả ",e.jsx("u",{children:"Files của Group"})," trên Facebook"]}),en:e.jsxs(e.Fragment,{children:["Support download all ",e.jsx("u",{children:"Group's Files"})," on Facebook"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1451908458797171",path:"/bulk-downloader"},{id:"introduce-bulk-downloader",time:"2024-07-21",text:{vi:e.jsxs(e.Fragment,{children:["Ra mắt chức năng ",e.jsx("u",{children:"Tải hàng loạt"})]}),en:e.jsxs(e.Fragment,{children:["Introduce feature ",e.jsx("u",{children:"Bulk downloader"})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1451735578814459",path:"/bulk-downloader"},{id:"view-old-messages",time:"2024-07-20",text:{vi:e.jsxs(e.Fragment,{children:["Ra mắt chức năng ",e.jsx("u",{children:"Xem tin nhắn tại thời điểm bất kỳ"})]}),en:e.jsxs(e.Fragment,{children:["Introduce feature ",e.jsx("u",{children:"View old messages at any time"})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1434276953893655",path:"/messages/first"},{id:"introduce-messages-friends",time:"2024-07-20",text:{vi:e.jsxs(e.Fragment,{children:["Ra mắt chức năng ",e.jsx("u",{children:"Quản lý tin nhắn"})," / ",e.jsx("u",{children:"Quản lý bạn bè"}),e.jsx("br",{}),e.jsxs("ul",{children:[e.jsx("li",{children:"Kết bạn / huỷ kết bạn / chọc hàng loạt"}),e.jsx("li",{children:"Lọc bạn bè bị khoá / bị chặn tin nhắn"}),e.jsx("li",{children:"Xem ai huỷ kết bạn với bạn"})]})]}),en:e.jsxs(e.Fragment,{children:["Introduce feature ",e.jsx("u",{children:"Messages Manager"})," / ",e.jsx("u",{children:"Friends Manager"}),e.jsx("br",{}),e.jsxs("ul",{children:[e.jsx("li",{children:"Bulk make friends / unfirends / pokes"}),e.jsx("li",{children:"Filter inactive friends / blocked messages friends"}),e.jsx("li",{children:"See who unfriend you"})]})]})},path:"/messages/all"},{title:{en:"June 2024",vi:"Tháng 06/2024"}},{id:"start-project",time:"2024-06-18",text:{vi:e.jsx(e.Fragment,{children:"Bắt đầu code + Tìm người code chung"}),en:e.jsx(e.Fragment,{children:"Start project + Finding dev collaboration"})},link:"https://www.facebook.com/groups/1154059318582088/posts/1433398573981493"}];function b(t){const o=new Date(t),n=new Date;o.setHours(0,0,0,0),n.setHours(0,0,0,0);const l=n.getTime()-o.getTime(),i=Math.floor(l/(1e3*3600*24));return i===0?{en:"Today",vi:"Hôm nay"}:i===1?{en:"Yesterday",vi:"Hôm qua"}:i<7?{en:`${i} days ago`,vi:`${i} ngày trước`}:t}function v(){const{ti:t}=x(),o=c();return d.useEffect(()=>{r("Dashboard:onLoad")},[]),e.jsxs("div",{children:[e.jsxs("h1",{style:{textAlign:"center"},children:["Facebook™ all in one - v",g.version]}),e.jsx("br",{}),e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(m,{showIcon:!0,type:"success",icon:e.jsx("i",{className:"fa-solid fa-heart fa-xl fa-beat-fade",style:{color:"#ff8787"}}),message:e.jsxs("ul",{style:{margin:0,listStyleType:"unset",padding:"5px 10px",fontSize:"1.1em",fontWeight:"bold"},children:[e.jsxs("li",{children:[t({en:"Free on ",vi:"Miễn phí trên "}),e.jsx("i",{className:"fa-brands fa-chrome fa-lg"})," ",e.jsx("a",{href:s.FB_AIO.webstore,target:"_blank",onClick:()=>r("Dashboard:onClickWebstore"),children:"Chrome Webstore"})]}),e.jsxs("li",{children:[t({en:"Get help at ",vi:"Tham gia ngay "}),e.jsx("i",{className:"fa-brands fa-facebook fa-lg"})," ",e.jsx("a",{target:"_blank",href:s.GroupFB,onClick:()=>r("Dashboard:onClickFBGroup"),children:"Group Facebook"})," "]}),e.jsxs("li",{children:[t({en:"Dont forget to ",vi:"Đừng quên "}),e.jsx("i",{className:"fa-solid fa-hand fa-lg"})," ",e.jsx("a",{href:s.FB_AIO.featureRequest,target:"_blank",onClick:()=>r("Dashboard:onClickFeatureRequest"),children:t({en:"Bug Report / Feature Request",vi:"Báo lỗi / Yêu cầu chức năng"})})]})]})})}),e.jsx("br",{}),t({vi:e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("h2",{children:"⭐ Giới thiệu"}),e.jsx("h3",{children:"Là 1 công cụ chứa rất nhiều chức năng hữu ích dành cho Facebook / Instagram"}),e.jsxs("h3",{children:["Xem"," ",e.jsx(a,{type:"link",onClick:()=>o("/vip"),children:e.jsx("h3",{children:"Danh sách chức năng 🔥"})})," ","để biết thêm chi tiết"]}),e.jsx("br",{}),e.jsx("h2",{children:"⭐ Cập nhật mới"})]}),en:e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("h2",{children:"⭐ What is this?"}),e.jsx("h3",{children:"This website is an All in one tools for Facebook / Instagram"}),e.jsxs("h3",{children:["See"," ",e.jsx(a,{type:"link",onClick:()=>o("/vip"),children:e.jsx("h3",{children:"List all features 🔥"})})," ","for more detail"]}),e.jsx("br",{}),e.jsx("h2",{children:"⭐ Lastest updates"})]})}),p.map((n,l)=>{if(n.title)return e.jsxs("h2",{children:[e.jsx(j,{}),"📌 ",t(n.title)]},"update"+l);const i=t(b(n.time));return e.jsxs("h3",{className:"fb-aio-update",children:[e.jsx(h,{title:n.time===i?"":n.time,children:e.jsx("i",{style:{opacity:.5},children:e.jsxs("b",{children:[i,":"]})})})," ",t(n.text),n.path&&e.jsxs(e.Fragment,{children:[" ",e.jsx(h,{title:t({vi:"Thử ngay",en:"Try now"}),children:e.jsx(u,{to:n.path,target:n.newTab?"_blank":"_self",onClick:()=>r("Dashboard:onClickTry:"+n.id),children:"→"})})]}),n.link&&e.jsxs(e.Fragment,{children:[" ",e.jsx(h,{title:t({vi:"Xem thêm",en:"More info"}),children:e.jsx("a",{href:n.link,target:"_blank",onClick:()=>r("Dashboard:onClickMore:"+n.id),children:"↗"})})]})]},"update"+l)})]})}export{v as default}; +import{aI as c,r as d,aA as e,ax as s,aB as a,aG as u}from"./index-BBriuzNA.js";import{u as x,t as r,e as g,T as h}from"./MyApp-CmkiOnMb.js";import{A as m}from"./index-BhyNApA-.js";import{D as j}from"./index-uPrgDTc-.js";const p=[{title:{en:"November 2024",vi:"Tháng 11/2024"}},{id:"fix-detect-unfriend",time:"2024-11-12",text:{vi:e.jsxs(e.Fragment,{children:["SỦA LỖI: Thông báo khi có người ",e.jsx("u",{children:"Huỷ kết bạn / Bạn mới"})]}),en:e.jsxs(e.Fragment,{children:["FIX BUG: Notify when someone ",e.jsx("u",{children:"Unfriend you / New friend"})]})},path:"/friends/all"},{id:"fix-table-select",time:"2024-11-12",text:{vi:e.jsxs(e.Fragment,{children:["SỦA LỖI: ",e.jsx("u",{children:"Chọn/Bỏ chọn"})," các dòng trong tất cả table (tin nhắn/dọn facebook). Giúp thực hiện các chức năng tự động."]}),en:e.jsxs(e.Fragment,{children:["FIX BUG: ",e.jsx("u",{children:"Select/Unselect"})," rows in all table (messages/clean facebook). Support perform auto actions."]})}},{id:"insta-highlight-created-time",time:"2024-11-01",text:{vi:e.jsxs(e.Fragment,{children:["CẬP NHẬT: Xem ",e.jsx("u",{children:"Thời gian tạo / caption"})," của tất cả"," ",e.jsx("u",{children:"Instagram highlight"})]}),en:e.jsxs(e.Fragment,{children:["UPDATE: Show ",e.jsx("u",{children:"caption / created time"})," for ",e.jsx("u",{children:"Instagram highlight"})]})},path:"/bulk-downloader"},{title:{en:"October 2024",vi:"Tháng 10/2024"}},{id:"fix-fb-dtsg",time:"2024-10-31",text:{vi:e.jsxs(e.Fragment,{children:["FIX: Lỗi ",e.jsx("u",{children:"Missing fb_dtsg"})]}),en:e.jsxs(e.Fragment,{children:["FIX: Error ",e.jsx("u",{children:"Missing fb_dtsg"})]})},link:s.FB_AIO.howToGetFbDtsg},{id:"v1.5",time:"2024-10-29",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Cập nhật FB AIO ",e.jsx("u",{children:"phiên bản 1.5"}),e.jsxs("ul",{children:[e.jsxs("li",{children:["Thêm ",e.jsx("u",{children:"nút tải nhanh"})," mọi video/reel/comment Threads"]}),e.jsxs("li",{children:[e.jsx("u",{children:"Dừng dòng thời gian"})," facebook"]})]})]}),en:e.jsxs(e.Fragment,{children:["NEW: Update FB AIO ",e.jsx("u",{children:"version 1.5"}),e.jsxs("ul",{children:[e.jsxs("li",{children:["Add ",e.jsx("u",{children:"download button"})," in all Threads video"]}),e.jsxs("li",{children:[e.jsx("u",{children:"Stop load newfeed"})," facebook"]})]})]})},path:"/autorun",link:"https://www.facebook.com/groups/1154059318582088/posts/1515339635787386"},{id:"bulk-download-threads",time:"2024-10-20",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Tải hàng loạt cho ",e.jsx("u",{children:"Threads.net"})]}),en:e.jsxs(e.Fragment,{children:["NEW: Bulk downloader now support ",e.jsx("u",{children:"Threads.net"})]})},path:"/bulk-downloader"},{id:"tip-for-fb",time:"2024-10-18",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Mẹo hay"})," cho facebook"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Tip"})," for facebook"]})},path:"/tip"},{id:"fbaio-1.4",time:"2024-10-15",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: FB AIO ",e.jsx("u",{children:"v1.4"})," đã lên webstore",e.jsxs("ul",{children:[e.jsxs("li",{children:["Thêm ",e.jsx("u",{children:"nút tải nhanh"})," mọi video/reel/comment fb"]}),e.jsxs("li",{children:["Cho phép ",e.jsx("u",{children:"tua tới thời điểm bất kỳ"})," của mọi reel fb"]})]})]}),en:e.jsxs(e.Fragment,{children:["NEW: FB AIO ",e.jsx("u",{children:"v1.4"})," available now on webstore",e.jsxs("ul",{children:[e.jsxs("li",{children:["Show ",e.jsx("u",{children:"download button"})," on all video/reel/video on fb"]}),e.jsxs("li",{children:["Enable ",e.jsx("u",{children:"video controls"})," for all video/reel on fb"]})]})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1505928923395124"},{id:"notify-fbaio-appear",time:"2024-10-11",text:{vi:e.jsxs(e.Fragment,{children:["THÔNG BÁO: FB AIO ",e.jsx("u",{children:"đã trở lại"})," chrome webstore, phiên bản mới ",e.jsx("u",{children:"1.3"})]}),en:e.jsxs(e.Fragment,{children:["NEW: FB AIO ",e.jsx("u",{children:"came back"})," on chrome webstore, with new version ",e.jsx("u",{children:"1.3"})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1503051203682896"},{id:"notify-fbaio-dissapear",time:"2024-10-11",text:{vi:e.jsxs(e.Fragment,{children:["THÔNG BÁO: ",e.jsx("u",{children:"FB AIO"})," sẽ ",e.jsx("u",{children:"không xuất hiện"})," trên webstore trong vài ngày"]}),en:e.jsxs(e.Fragment,{children:["PLEASE READ: ",e.jsx("u",{children:"FB AIO"})," will ",e.jsx("u",{children:"disappear"})," on chrome webstore in few days"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1502262723761744"},{id:"autorun-features",time:"2024-10-10",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Hàng loạt chức năng ",e.jsx("u",{children:"Tự động chạy"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Chặn đã xem story ngay trên fb/insta"}),e.jsx("li",{children:"Đếm tổng lượt thích bài viết fb (áp dụng cho bài viết bị ẩn lượt thích)"}),e.jsx("li",{children:"Xoá tham số theo dõi trên mọi url (fbclid, ttclid, ...)"}),e.jsx("li",{children:"Thêm nút tải trên mọi video/reel/comment trên facebook"})]})]}),en:e.jsxs(e.Fragment,{children:["NEW: Bunch of new ",e.jsx("u",{children:"autorun features"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Block 'seen' features right on fb/insta"}),e.jsx("li",{children:"Count total post's reactions on fb (applies to posts that hide reactions)"}),e.jsx("li",{children:"Delete tracking param from all urls (fbclid, ttclid, ...)"}),e.jsx("li",{children:"Add download button on all video/reel/comment on facebook"})]})]})},path:"/autorun"},{id:"video-downloader",time:"2024-10-07",text:{vi:e.jsxs(e.Fragment,{children:["CẬP NHÂT: Hỗ trợ tải video/reel fb ",e.jsx("u",{children:"Chất lượng cao"})]}),en:e.jsxs(e.Fragment,{children:["UPDATE: Support download fb videos/reels ",e.jsx("u",{children:"High quality"})]})},path:"/video-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1499830124005004"},{id:"refactor-bulk-downloader-0510",time:"2024-10-05",text:{vi:e.jsxs(e.Fragment,{children:["CẬP NHẬT: Tải hàng loạt",e.jsxs("ul",{children:[e.jsxs("li",{children:["Xem mọi ảnh ",e.jsx("u",{children:"Được tag"}),"/",e.jsx("u",{children:"Chính chủ"})," của bất kỳ ai (fb)"]}),e.jsxs("li",{children:["Mở ",e.jsx("u",{children:"bài viết gốc"})," của bất kỳ ảnh/video/reel nào (fb/insta)"]}),e.jsxs("li",{children:["Mở ",e.jsx("u",{children:"bản đồ"})," các lượt checkins"]})]})]}),en:e.jsxs(e.Fragment,{children:["UPDATE: Bulk downloader",e.jsxs("ul",{children:[e.jsxs("li",{children:["View all ",e.jsx("u",{children:"Tagged"}),"/",e.jsx("u",{children:"Owner"})," photos of anyone (fb)"]}),e.jsxs("li",{children:["Open ",e.jsx("u",{children:"source post"})," of any photos/videos/reels (fb/insta)"]}),e.jsxs("li",{children:["Open ",e.jsx("u",{children:"google map"})," of any checkins location"]})]})]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1499125590742124"},{id:"refactor-story-0510",time:"2024-10-05",text:{vi:e.jsxs(e.Fragment,{children:["CẬP NHÂT: ",e.jsx("u",{children:"Xoá hàng loạt"})," story đã lưu trữ"]}),en:e.jsxs(e.Fragment,{children:["UPDATE: ",e.jsx("u",{children:"Bulk delete"})," archived stories"]})},path:"/stories",link:"https://www.facebook.com/groups/1154059318582088/posts/1499125590742124"},{id:"global-mute",time:"2024-10-05",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Tắt tiếng"})," toàn cục - áp dụng cho mọi videos (nút góc dưới bên phải trang web)"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Global mute"})," mute all videos (bottom-right corner button)"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1499125590742124"},{id:"find-all-posts",time:"2024-10-04",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Tìm ",e.jsx("u",{children:"mọi bài viết"})," của người dùng bất kỳ trên các hội nhóm facebook (trong tab Lượt tag)"]}),en:e.jsxs(e.Fragment,{children:["NEW: Find ",e.jsx("u",{children:"All posts"})," of anyone on all facebook groups/pages (in tab Tagged)"]})},path:"/bulk-downloader"},{id:"tagged",time:"2024-10-04",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Xem tât cả ",e.jsx("u",{children:"Lượt tag"})," của người khác trên facebook"]}),en:e.jsxs(e.Fragment,{children:["NEW: Know all ",e.jsx("u",{children:"Tagged"})," content (post/comment) of anyone"]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1497809580873725"},{id:"referral-code",time:"2024-10-03",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: Nhập/Chia sẻ ",e.jsx("u",{children:"Mã giới thiệu"})," để nhận VIP miễn phí"]}),en:e.jsxs(e.Fragment,{children:["NEW: Enter/Share ",e.jsx("u",{children:"Referral code"})," to unlock VIP"]})},path:"/vip",link:"https://www.facebook.com/groups/1154059318582088/posts/1497153027606047"},{id:"bug-report_feature-request",time:"2024-10-02",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Báo cáo lỗi"}),"/",e.jsx("u",{children:"Yêu cầu chức năng"})," dễ dàng hơn"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Bug report"}),"/",e.jsx("u",{children:"Feature request"})," are now available"]})},path:s.FB_AIO.featureRequest,newTab:!0,link:"https://www.facebook.com/groups/1154059318582088/posts/1496330254354991"},{title:{en:"Sep 2024",vi:"Tháng 09/2024"}},{id:"deep-scan-friends",time:"2024-09-30",text:{vi:e.jsxs("ul",{children:["MỚI:",e.jsxs("li",{children:[e.jsx("u",{children:"Quét chuyên sâu"})," bạn bè để tìm nick bị khoá, giới tính, bạn chung, ..."]})," ",e.jsxs("li",{children:[e.jsx("u",{children:"Bộ lọc nhanh"})," để lọc tên chứa ký tự đặc biệt, nick không có avatar, uid lạ, ..."]})]}),en:e.jsxs("ul",{children:["NEW:",e.jsxs("li",{children:[e.jsx("u",{children:"Deep Scan Friends"})," to find locked accounts, gender, mutual friends, ..."]}),e.jsxs("li",{children:[e.jsx("u",{children:"Quick Filters"})," to find name contains special characters, no avatar, strange uid..."]})]})},path:"/friends/all",link:"https://www.facebook.com/groups/1154059318582088/posts/1495058647815485"},{id:"top-level-groups",time:"2024-09-29",text:{vi:e.jsxs(e.Fragment,{children:["CÂP NHẬT: ",e.jsx("u",{children:"Top level group"})," - nhóm bạn quan tâm nhất"]}),en:e.jsxs(e.Fragment,{children:["UPDATE: ",e.jsx("u",{children:"Top level group"})," - Your most interested groups"]})},path:"/groups"},{id:"introduce-follows",time:"2024-09-29",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Bỏ theo dõi"})," Người dùng/Trang/Nhóm hàng loạt nhanh chóng"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"UnFollow"})," User/Page/Group in bulk faster"]})},path:"/friends/follows",link:"https://www.facebook.com/groups/1154059318582088/posts/1494272184560798"},{id:"shortcuts",time:"2024-09-27",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Phím tắt"})," facebook, truy cập nhanh những chức năng quan trọng"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Facebook shortcuts"})," access important features faster"]})},path:"/shortcuts",link:"https://www.facebook.com/groups/1154059318582088/posts/1493160008005349"},{id:"rating-vip",time:"2024-09-27",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Đánh giá"})," 5 sao, nhận ",e.jsx("u",{children:"2 tuần VIP"})]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Review"})," 5 stars, get ",e.jsx("u",{children:"2 weeks VIP"})," for FREE"]})},path:"/vip",link:"https://www.facebook.com/groups/1154059318582088/posts/1475090716478945"},{id:"buy-vip",time:"2024-09-24",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Mở bán VIP"})," theo tháng, nếu bạn không thể share bài viết"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Buy VIP"})," per month, if you can't share my post"]})},path:"/vip",link:"https://www.facebook.com/groups/1154059318582088/posts/1491022184885798"},{id:"share-vip",time:"2024-09-22",text:{vi:e.jsxs(e.Fragment,{children:["CẬP NHẬT ",e.jsx("u",{children:"Share VIP"}),": Like và Chia sẻ"," ",e.jsx("a",{target:"_blank",href:s.PostToShare.url,children:"bài viết"})," ","để nhận VIP trong ",e.jsx("u",{children:"2 tuần"})]}),en:e.jsxs(e.Fragment,{children:["UPDATE ",e.jsx("u",{children:"Share VIP"}),": Like and Share"," ",e.jsx("a",{target:"_blank",href:s.PostToShare.url,children:"this post"})," ","to unlock VIP in ",e.jsx("u",{children:"2 weeks"})]})},path:"/vip",link:"https://www.facebook.com/groups/1154059318582088/posts/1475090716478945"},{id:"download-messages",time:"2024-09-04",text:{vi:e.jsxs(e.Fragment,{children:["MỚI: ",e.jsx("u",{children:"Tải toàn bộ tin nhắn"})," trong đoạn chat"]}),en:e.jsxs(e.Fragment,{children:["NEW: ",e.jsx("u",{children:"Download all messages"})," in chat"]})},path:"/messages/all",link:"https://www.facebook.com/groups/1154059318582088/posts/1478126686175348"},{id:"bulk-downloader-links-support",time:"2024-09-02",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ định dạng link ",e.jsx("u",{children:"/share/"})," trong Tải hàng loạt"]}),en:e.jsxs(e.Fragment,{children:["Support more URL formats ",e.jsx("u",{children:"/share/"})," in Bulk downloader"]})},path:"/bulk-downloader",link:"https://www.facebook.com/share/p/zkZPEiw6witXQ8Wv"},{id:"vip-quoc-khanh",time:"2024-09-02",text:{vi:e.jsxs(e.Fragment,{children:["Miễn phí Tất cả Tính năng VIP nhân dịp ",e.jsx("u",{children:"Quốc Khánh Việt Nam"})," 02/09/2024"]}),en:e.jsxs(e.Fragment,{children:["Free All VIP features during ",e.jsx("u",{children:"Viet Nam National Day"})," 02/09/2024"]})},path:"/vip",link:"https://www.facebook.com/groups/1154059318582088/posts/1476885129632837"},{title:{en:"Aug 2024",vi:"Tháng 08/2024"}},{id:"introduce-vip",time:"2024-08-29",text:{vi:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Chức năng VIP"}),", chia sẻ bài viết để mở khoá"]}),en:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"VIP features"}),", share post to unlock"]})},path:"/vip"},{id:"ranking-friends",time:"2024-08-27",text:{vi:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Xếp hạng bạn bè"}),", xem ai vào xem facebook của bạn nhiều nhất"]}),en:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Ranking friends"})," to see who view your facebook profile the most"]})},path:"/friends/all"},{id:"webstore-available",time:"2024-08-27",text:{vi:e.jsxs(e.Fragment,{children:["FB AIO đã có mặt trên ",e.jsx("u",{children:"Chrome webstore"})]}),en:e.jsxs(e.Fragment,{children:["FB AIO now available on ",e.jsx("u",{children:"Chrome webstore"})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1473739193280764"},{id:"interactions-scanner-friends",time:"2024-08-27",text:{vi:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Quét tương tác"})," bạn bè, đếm số lượt thích / bình luận của bạn bè trên mọi bài viết của bạn"]}),en:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Interactions Scanner"})," to all friends, count likes/comments of your friends on your posts"]})},path:"/friends/all",link:"https://www.facebook.com/groups/1154059318582088/posts/1473366643318019"},{id:"bulk-downloader-post",time:"2024-08-26",text:{vi:e.jsxs(e.Fragment,{children:["Tải hết ",e.jsx("u",{children:"ảnh/video từ bài post"})," + Hỗ trợ ",e.jsx("u",{children:"nhiều định dang link"})," hơn trong Tải hàng loạt"]}),en:e.jsxs(e.Fragment,{children:["Download all ",e.jsx("u",{children:"photos/videos from post"})," + Support ",e.jsx("u",{children:"more link formats"})," ","in Bulk downloader"]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1472835303371153/"},{id:"friends-requests",time:"2024-08-25",text:{vi:e.jsxs(e.Fragment,{children:["Quản lý ",e.jsx("u",{children:"Lời mời kết bạn"}),", chấp nhận/từ chối/thu hồi hàng loạt dễ dàng"]}),en:e.jsxs(e.Fragment,{children:["Manage ",e.jsx("u",{children:"Friend requests"})," (incoming/outgoing), bulk accept/decline/cancel friend requests"]})},path:"/friends/requests",link:"https://www.facebook.com/groups/1154059318582088/posts/1472192560102094"},{id:"bulk-downloader-select-to-download",time:"2024-08-23",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ ",e.jsx("u",{children:"chọn để tải"})," thay vì tải tất cả trong Tải hàng loạt"]}),en:e.jsxs(e.Fragment,{children:["Support ",e.jsx("u",{children:"select to download"})," instead of download all in Bulk downloader"]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1471295353525148"},{id:"insta-story-anonymous",time:"2024-08-23",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ xem ẩn danh / tải hàng loạt ",e.jsx("u",{children:"story Instagram"})]}),en:e.jsxs(e.Fragment,{children:["Support anonymous view / bulk download ",e.jsx("u",{children:"Instagram story"})]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1471094810211869"},{id:"filter-groups-noadmin",time:"2024-08-21",text:{vi:e.jsxs(e.Fragment,{children:["Lọc ",e.jsx("u",{children:"nhóm không có admin"})," quản lý"]}),en:e.jsxs(e.Fragment,{children:["Filter ",e.jsx("u",{children:"groups that don't have admins"})]})},path:"/groups"},{id:"autosave-notifications",time:"2024-08-21",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ ",e.jsx("u",{children:"tự động lưu thông báo"}),", xem lại thông báo dễ dàng"]}),en:e.jsxs(e.Fragment,{children:["Support ",e.jsx("u",{children:"autosave notifications"}),", easier to access old notifications"]})}},{id:"story-custom-reactions",time:"2024-08-20",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ thả ",e.jsx("u",{children:"cảm xúc tuỳ chỉnh"})," cho mọi Story"]}),en:e.jsxs(e.Fragment,{children:["Support send ",e.jsx("u",{children:"custom reactions"})," for all Stories"]})},path:"/stories",link:"https://www.facebook.com/groups/1154059318582088/posts/1469187173735966/"},{id:"pages-manager",time:"2024-08-19",text:{vi:e.jsxs(e.Fragment,{children:["Ra mắt chức năng ",e.jsx("u",{children:"Quản lý trang"}),", trang đã thích, trang được mời, bỏ thích/bỏ theo dõi hàng loạt, tìm theo danh mục, ..."]}),en:e.jsxs(e.Fragment,{children:["Introduce ",e.jsx("u",{children:"Pages manager"}),", liked/invited pages, bulk dislike/unfollow, search by category, ..."]})},path:"/pages",link:"https://www.facebook.com/groups/1154059318582088/posts/1468907477097269/"},{id:"bulk-downloader-search-history",time:"2024-08-16",text:{vi:e.jsxs(e.Fragment,{children:["Tự động ",e.jsx("u",{children:"lưu lịch sử tìm kiếm"})," trong Tải hàng loạt, nhanh chóng chọn lại bạn bè để stalk"]}),en:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Auto save search history"})," in Bulk downloader, for quick re-search"]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1467159083938775/"},{id:"autosave-friends",time:"2024-08-16",text:{vi:e.jsxs(e.Fragment,{children:["Tự động ",e.jsx("u",{children:"lưu danh sách bạn bè"}),". Thông báo khi có"," ",e.jsx("u",{children:"bạn mới / huỷ kết bạn"})]}),en:e.jsxs(e.Fragment,{children:["Auto ",e.jsx("u",{children:"save friends list"}),". Notify when there are"," ",e.jsx("u",{children:"new friends / unfriend"})]})},path:"/friends/all",link:"https://www.facebook.com/groups/1154059318582088/posts/1467159083938775/"},{id:"stalk-groups-pages-of-friends",time:"2024-08-15",text:{vi:e.jsxs(e.Fragment,{children:["Biết bạn bè đang tham gia / thích ",e.jsx("u",{children:"nhóm/trang công khai"})," nào trên facebook (",e.jsx("u",{children:"đã khoá trang cá nhân"})," cũng xem được)"]}),en:e.jsxs(e.Fragment,{children:["Know which ",e.jsx("u",{children:"public groups/pages"})," that your friend joined / liked on facebook (even if he/she ",e.jsx("u",{children:"locked profile"}),")"]})},path:"/bulk-downloader",link:"https://www.facebook.com/groups/1154059318582088/posts/1466593610661989"},{id:"export-uid-groupid",time:"2024-08-15",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ Xuất riêng ",e.jsx("u",{children:"uid / group id"})," trong Quản lý Tin nhắn/Bạn bè/Nhóm"]}),en:e.jsxs(e.Fragment,{children:["Support export only ",e.jsx("u",{children:"uid / group id"})," in Messages/Friends/Groups manager"]})}},{id:"view-story",time:"2024-08-14",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ ",e.jsx("u",{children:"xem Story"})," trong ",e.jsx("u",{children:"Tải hàng loạt"})]}),en:e.jsxs(e.Fragment,{children:["Support ",e.jsx("u",{children:"view Story"})," in ",e.jsx("u",{children:"Buld downloader"})]})},path:"/bulk-downloader"},{id:"groups-manager",time:"2024-08-14",text:{vi:e.jsxs(e.Fragment,{children:["Ra mắt chức năng ",e.jsx("u",{children:"Quản lý nhóm"}),", tìm kiếm nhanh chóng, rời nhóm hàng loạt, ..."]}),en:e.jsxs(e.Fragment,{children:["Introduce ",e.jsx("u",{children:"Groups manager"}),", quick search, bulk leave group, ..."]})},path:"/groups"},{id:"stories",time:"2024-08-12",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ xem ",e.jsx("u",{children:"Tin (story) trang chủ + Tin đã lưu trữ"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Xem Tin của người khác có bao nhiêu reactions"}),e.jsx("li",{children:"Xem danh sách người đã xem Tin của bạn"}),e.jsx("li",{children:"Tải tất cả Tin"})]})]}),en:e.jsxs(e.Fragment,{children:["Support viewing ",e.jsx("u",{children:"home page stories + archived stories"}),e.jsxs("ul",{children:[e.jsx("li",{children:"See how many reactions other people's stories have"}),e.jsx("li",{children:"See the list of people who have viewed your story"}),e.jsx("li",{children:"Download all stories"})]})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1464988007489216",path:"/stories"},{id:"bulk-downloader-fix-duplicate",time:"2024-08-09",text:{vi:e.jsx(e.Fragment,{children:"Sửa lỗi tải hàng loạt post instagram bị lặp lại, không tự dừng khi hết post"}),en:e.jsx(e.Fragment,{children:"Fix bug: Duplicate when bulk download Instagram's posts"})},path:"/bulk-downloader"},{id:"bulk-downloader-json-support",time:"2024-08-08",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ định dạng ",e.jsx("u",{children:".json"})," trong Tải hàng loạt, chứa nhiều thông tin như"," ",e.jsx("u",{children:"nội dung bài đăng, số like, share, comment, ..."})]}),en:e.jsxs(e.Fragment,{children:["Support download ",e.jsx("u",{children:".json"})," in Bulk Downloader, include many infomation"," ",e.jsx("u",{children:"captions, likes, shares, comments, ..."})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1462371741084176",path:"/bulk-downloader"},{id:"bulk-downloader-insta-highlight",time:"2024-08-07",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trơ tải tất cả ",e.jsx("u",{children:"Highlight Instagram"})," trong 1 click"]}),en:e.jsxs(e.Fragment,{children:["Support download all ",e.jsx("u",{children:"Highlight Instagram"})," in 1 click"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1461600941161256",path:"/bulk-downloader"},{id:"bulk-downloader-insta-posts-reels",time:"2024-08-05",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ tải ",e.jsx("u",{children:"Instagram"}),": Bài đăng (Ảnh/Video) / Reels"]}),en:e.jsxs(e.Fragment,{children:["Support download media on ",e.jsx("u",{children:"Instagram"}),": Posts (Photos/Videos) / Reels"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1460960064558677",path:"/bulk-downloader"},{title:{en:"July 2024",vi:"Tháng 07/2024"}},{id:"bulk-downloader-shortcut",time:"2024-07-22",text:{vi:e.jsxs(e.Fragment,{children:[e.jsx("u",{children:"Phím tắt Tải hàng loạt"})," từ bạn bè ngay trong trang Quản lý bạn bè"]}),en:e.jsxs(e.Fragment,{children:[e.jsx("b",{children:"Shortcut bulk downloader"})," for your friends in Friends Manager"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1452419068746110",path:"/friends/all"},{id:"bulk-downloader-fb-reels",time:"2024-07-21",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ tải tất cả ",e.jsx("u",{children:"Facebook Reels"})," của user/page"]}),en:e.jsxs(e.Fragment,{children:["Support download all ",e.jsx("u",{children:"Facebook Reels"})," of user/page"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1451949155459768",path:"/bulk-downloader"},{id:"bulk-downloader-group-files",time:"2024-07-21",text:{vi:e.jsxs(e.Fragment,{children:["Hỗ trợ tải tất cả ",e.jsx("u",{children:"Files của Group"})," trên Facebook"]}),en:e.jsxs(e.Fragment,{children:["Support download all ",e.jsx("u",{children:"Group's Files"})," on Facebook"]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1451908458797171",path:"/bulk-downloader"},{id:"introduce-bulk-downloader",time:"2024-07-21",text:{vi:e.jsxs(e.Fragment,{children:["Ra mắt chức năng ",e.jsx("u",{children:"Tải hàng loạt"})]}),en:e.jsxs(e.Fragment,{children:["Introduce feature ",e.jsx("u",{children:"Bulk downloader"})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1451735578814459",path:"/bulk-downloader"},{id:"view-old-messages",time:"2024-07-20",text:{vi:e.jsxs(e.Fragment,{children:["Ra mắt chức năng ",e.jsx("u",{children:"Xem tin nhắn tại thời điểm bất kỳ"})]}),en:e.jsxs(e.Fragment,{children:["Introduce feature ",e.jsx("u",{children:"View old messages at any time"})]})},link:"https://www.facebook.com/groups/1154059318582088/posts/1434276953893655",path:"/messages/first"},{id:"introduce-messages-friends",time:"2024-07-20",text:{vi:e.jsxs(e.Fragment,{children:["Ra mắt chức năng ",e.jsx("u",{children:"Quản lý tin nhắn"})," / ",e.jsx("u",{children:"Quản lý bạn bè"}),e.jsx("br",{}),e.jsxs("ul",{children:[e.jsx("li",{children:"Kết bạn / huỷ kết bạn / chọc hàng loạt"}),e.jsx("li",{children:"Lọc bạn bè bị khoá / bị chặn tin nhắn"}),e.jsx("li",{children:"Xem ai huỷ kết bạn với bạn"})]})]}),en:e.jsxs(e.Fragment,{children:["Introduce feature ",e.jsx("u",{children:"Messages Manager"})," / ",e.jsx("u",{children:"Friends Manager"}),e.jsx("br",{}),e.jsxs("ul",{children:[e.jsx("li",{children:"Bulk make friends / unfirends / pokes"}),e.jsx("li",{children:"Filter inactive friends / blocked messages friends"}),e.jsx("li",{children:"See who unfriend you"})]})]})},path:"/messages/all"},{title:{en:"June 2024",vi:"Tháng 06/2024"}},{id:"start-project",time:"2024-06-18",text:{vi:e.jsx(e.Fragment,{children:"Bắt đầu code + Tìm người code chung"}),en:e.jsx(e.Fragment,{children:"Start project + Finding dev collaboration"})},link:"https://www.facebook.com/groups/1154059318582088/posts/1433398573981493"}];function b(t){const o=new Date(t),n=new Date;o.setHours(0,0,0,0),n.setHours(0,0,0,0);const l=n.getTime()-o.getTime(),i=Math.floor(l/(1e3*3600*24));return i===0?{en:"Today",vi:"Hôm nay"}:i===1?{en:"Yesterday",vi:"Hôm qua"}:i<7?{en:`${i} days ago`,vi:`${i} ngày trước`}:t}function v(){const{ti:t}=x(),o=c();return d.useEffect(()=>{r("Dashboard:onLoad")},[]),e.jsxs("div",{children:[e.jsxs("h1",{style:{textAlign:"center"},children:["Facebook™ all in one - v",g.version]}),e.jsx("br",{}),e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(m,{showIcon:!0,type:"success",icon:e.jsx("i",{className:"fa-solid fa-heart fa-xl fa-beat-fade",style:{color:"#ff8787"}}),message:e.jsxs("ul",{style:{margin:0,listStyleType:"unset",padding:"5px 10px",fontSize:"1.1em",fontWeight:"bold"},children:[e.jsxs("li",{children:[t({en:"Free on ",vi:"Miễn phí trên "}),e.jsx("i",{className:"fa-brands fa-chrome fa-lg"})," ",e.jsx("a",{href:s.FB_AIO.webstore,target:"_blank",onClick:()=>r("Dashboard:onClickWebstore"),children:"Chrome Webstore"})]}),e.jsxs("li",{children:[t({en:"Get help at ",vi:"Tham gia ngay "}),e.jsx("i",{className:"fa-brands fa-facebook fa-lg"})," ",e.jsx("a",{target:"_blank",href:s.GroupFB,onClick:()=>r("Dashboard:onClickFBGroup"),children:"Group Facebook"})," "]}),e.jsxs("li",{children:[t({en:"Dont forget to ",vi:"Đừng quên "}),e.jsx("i",{className:"fa-solid fa-hand fa-lg"})," ",e.jsx("a",{href:s.FB_AIO.featureRequest,target:"_blank",onClick:()=>r("Dashboard:onClickFeatureRequest"),children:t({en:"Bug Report / Feature Request",vi:"Báo lỗi / Yêu cầu chức năng"})})]})]})})}),e.jsx("br",{}),t({vi:e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("h2",{children:"⭐ Giới thiệu"}),e.jsx("h3",{children:"Là 1 công cụ chứa rất nhiều chức năng hữu ích dành cho Facebook / Instagram"}),e.jsxs("h3",{children:["Xem"," ",e.jsx(a,{type:"link",onClick:()=>o("/vip"),children:e.jsx("h3",{children:"Danh sách chức năng 🔥"})})," ","để biết thêm chi tiết"]}),e.jsx("br",{}),e.jsx("h2",{children:"⭐ Cập nhật mới"})]}),en:e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("h2",{children:"⭐ What is this?"}),e.jsx("h3",{children:"This website is an All in one tools for Facebook / Instagram"}),e.jsxs("h3",{children:["See"," ",e.jsx(a,{type:"link",onClick:()=>o("/vip"),children:e.jsx("h3",{children:"List all features 🔥"})})," ","for more detail"]}),e.jsx("br",{}),e.jsx("h2",{children:"⭐ Lastest updates"})]})}),p.map((n,l)=>{if(n.title)return e.jsxs("h2",{children:[e.jsx(j,{}),"📌 ",t(n.title)]},"update"+l);const i=t(b(n.time));return e.jsxs("h3",{className:"fb-aio-update",children:[e.jsx(h,{title:n.time===i?"":n.time,children:e.jsx("i",{style:{opacity:.5},children:e.jsxs("b",{children:[i,":"]})})})," ",t(n.text),n.path&&e.jsxs(e.Fragment,{children:[" ",e.jsx(h,{title:t({vi:"Thử ngay",en:"Try now"}),children:e.jsx(u,{to:n.path,target:n.newTab?"_blank":"_self",onClick:()=>r("Dashboard:onClickTry:"+n.id),children:"→"})})]}),n.link&&e.jsxs(e.Fragment,{children:[" ",e.jsx(h,{title:t({vi:"Xem thêm",en:"More info"}),children:e.jsx("a",{href:n.link,target:"_blank",onClick:()=>r("Dashboard:onClickMore:"+n.id),children:"↗"})})]})]},"update"+l)})]})}export{v as default}; diff --git a/public/assets/Dropdown-DUpNeMO8.js b/public/assets/Dropdown-DxSI4NN9.js similarity index 96% rename from public/assets/Dropdown-DUpNeMO8.js rename to public/assets/Dropdown-DxSI4NN9.js index a184f37..a9108e8 100644 --- a/public/assets/Dropdown-DUpNeMO8.js +++ b/public/assets/Dropdown-DxSI4NN9.js @@ -1 +1 @@ -import{r as b,w as ee,W,v as L,$ as n,s as $,n as te,j as ne,o as S,g as ae,X as re}from"./index--trdnQFa.js";import{l as oe}from"./MyApp-BHr373cy.js";var ie=W.ESC,le=W.TAB;function se(e){var u=e.visible,o=e.triggerRef,s=e.onVisibleChange,c=e.autoFocus,a=e.overlayRef,r=b.useRef(!1),f=function(){if(u){var t,i;(t=o.current)===null||t===void 0||(i=t.focus)===null||i===void 0||i.call(t),s==null||s(!1)}},p=function(){var t;return(t=a.current)!==null&&t!==void 0&&t.focus?(a.current.focus(),r.current=!0,!0):!1},h=function(t){switch(t.keyCode){case ie:f();break;case le:{var i=!1;r.current||(i=p()),i?t.preventDefault():f();break}}};b.useEffect(function(){return u?(window.addEventListener("keydown",h),c&&ee(p,3),function(){window.removeEventListener("keydown",h),r.current=!1}):function(){r.current=!1}},[u])}var fe=b.forwardRef(function(e,u){var o=e.overlay,s=e.arrow,c=e.prefixCls,a=b.useMemo(function(){var f;return typeof o=="function"?f=o():f=o,f},[o]),r=L(u,a==null?void 0:a.ref);return n.createElement(n.Fragment,null,s&&n.createElement("div",{className:"".concat(c,"-arrow")}),n.cloneElement(a,{ref:$(a)?r:void 0}))}),v={adjustX:1,adjustY:1},d=[0,0],ue={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:d},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:d},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:d},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:d},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:d},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:d}},ce=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ve(e,u){var o,s=e.arrow,c=s===void 0?!1:s,a=e.prefixCls,r=a===void 0?"rc-dropdown":a,f=e.transitionName,p=e.animation,h=e.align,g=e.placement,t=g===void 0?"bottomLeft":g,i=e.placements,D=i===void 0?ue:i,j=e.getPopupContainer,_=e.showAction,K=e.hideAction,B=e.overlayClassName,H=e.overlayStyle,X=e.visible,A=e.trigger,M=A===void 0?["hover"]:A,I=e.autoFocus,N=e.overlay,y=e.children,w=e.onVisibleChange,Y=te(e,ce),q=n.useState(),E=ne(q,2),z=E[0],x=E[1],O="visible"in e?X:z,P=n.useRef(null),V=n.useRef(null),k=n.useRef(null);n.useImperativeHandle(u,function(){return P.current});var T=function(l){x(l),w==null||w(l)};se({visible:O,triggerRef:k,onVisibleChange:T,autoFocus:I,overlayRef:V});var G=function(l){var C=e.onOverlayClick;x(!1),C&&C(l)},F=function(){return n.createElement(fe,{ref:V,overlay:N,prefixCls:r,arrow:c})},J=function(){return typeof N=="function"?F:F()},Q=function(){var l=e.minOverlayWidthMatchTrigger,C=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?l:!C},U=function(){var l=e.openClassName;return l!==void 0?l:"".concat(r,"-open")},Z=n.cloneElement(y,{className:S((o=y.props)===null||o===void 0?void 0:o.className,O&&U()),ref:$(y)?L(k,y.ref):void 0}),R=K;return!R&&M.indexOf("contextMenu")!==-1&&(R=["click"]),n.createElement(oe,ae({builtinPlacements:D},Y,{prefixCls:r,ref:P,popupClassName:S(B,re({},"".concat(r,"-show-arrow"),c)),popupStyle:H,action:M,showAction:_,hideAction:R,popupPlacement:t,popupAlign:h,popupTransitionName:f,popupAnimation:p,popupVisible:O,stretch:Q()?"minWidth":"",popup:J(),onPopupVisibleChange:T,onPopupClick:G,getPopupContainer:j}),Z)}const me=n.forwardRef(ve);export{me as D}; +import{r as b,w as ee,W,v as L,$ as n,s as $,n as te,j as ne,o as S,g as ae,X as re}from"./index-BBriuzNA.js";import{l as oe}from"./MyApp-CmkiOnMb.js";var ie=W.ESC,le=W.TAB;function se(e){var u=e.visible,o=e.triggerRef,s=e.onVisibleChange,c=e.autoFocus,a=e.overlayRef,r=b.useRef(!1),f=function(){if(u){var t,i;(t=o.current)===null||t===void 0||(i=t.focus)===null||i===void 0||i.call(t),s==null||s(!1)}},p=function(){var t;return(t=a.current)!==null&&t!==void 0&&t.focus?(a.current.focus(),r.current=!0,!0):!1},h=function(t){switch(t.keyCode){case ie:f();break;case le:{var i=!1;r.current||(i=p()),i?t.preventDefault():f();break}}};b.useEffect(function(){return u?(window.addEventListener("keydown",h),c&&ee(p,3),function(){window.removeEventListener("keydown",h),r.current=!1}):function(){r.current=!1}},[u])}var fe=b.forwardRef(function(e,u){var o=e.overlay,s=e.arrow,c=e.prefixCls,a=b.useMemo(function(){var f;return typeof o=="function"?f=o():f=o,f},[o]),r=L(u,a==null?void 0:a.ref);return n.createElement(n.Fragment,null,s&&n.createElement("div",{className:"".concat(c,"-arrow")}),n.cloneElement(a,{ref:$(a)?r:void 0}))}),v={adjustX:1,adjustY:1},d=[0,0],ue={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:d},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:d},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:d},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:d},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:d},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:d}},ce=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ve(e,u){var o,s=e.arrow,c=s===void 0?!1:s,a=e.prefixCls,r=a===void 0?"rc-dropdown":a,f=e.transitionName,p=e.animation,h=e.align,g=e.placement,t=g===void 0?"bottomLeft":g,i=e.placements,D=i===void 0?ue:i,j=e.getPopupContainer,_=e.showAction,K=e.hideAction,B=e.overlayClassName,H=e.overlayStyle,X=e.visible,A=e.trigger,M=A===void 0?["hover"]:A,I=e.autoFocus,N=e.overlay,y=e.children,w=e.onVisibleChange,Y=te(e,ce),q=n.useState(),E=ne(q,2),z=E[0],x=E[1],O="visible"in e?X:z,P=n.useRef(null),V=n.useRef(null),k=n.useRef(null);n.useImperativeHandle(u,function(){return P.current});var T=function(l){x(l),w==null||w(l)};se({visible:O,triggerRef:k,onVisibleChange:T,autoFocus:I,overlayRef:V});var G=function(l){var C=e.onOverlayClick;x(!1),C&&C(l)},F=function(){return n.createElement(fe,{ref:V,overlay:N,prefixCls:r,arrow:c})},J=function(){return typeof N=="function"?F:F()},Q=function(){var l=e.minOverlayWidthMatchTrigger,C=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?l:!C},U=function(){var l=e.openClassName;return l!==void 0?l:"".concat(r,"-open")},Z=n.cloneElement(y,{className:S((o=y.props)===null||o===void 0?void 0:o.className,O&&U()),ref:$(y)?L(k,y.ref):void 0}),R=K;return!R&&M.indexOf("contextMenu")!==-1&&(R=["click"]),n.createElement(oe,ae({builtinPlacements:D},Y,{prefixCls:r,ref:P,popupClassName:S(B,re({},"".concat(r,"-show-arrow"),c)),popupStyle:H,action:M,showAction:_,hideAction:R,popupPlacement:t,popupAlign:h,popupTransitionName:f,popupAnimation:p,popupVisible:O,stretch:Q()?"minWidth":"",popup:J(),onPopupVisibleChange:T,onPopupClick:G,getPopupContainer:j}),Z)}const me=n.forwardRef(ve);export{me as D}; diff --git a/public/assets/ExportButton-C-PwJSin.js b/public/assets/ExportButton-DABx3myg.js similarity index 76% rename from public/assets/ExportButton-C-PwJSin.js rename to public/assets/ExportButton-DABx3myg.js index 1c86561..1cda64d 100644 --- a/public/assets/ExportButton-C-PwJSin.js +++ b/public/assets/ExportButton-DABx3myg.js @@ -1 +1 @@ -import{ay as u,aA as t,aB as x}from"./index--trdnQFa.js";import{u as E,t as g}from"./MyApp-BHr373cy.js";import{f as k}from"./file-download-DYjmaN3D.js";import{D as d}from"./index-BI67OZir.js";function N({data:e,children:p,options:i}){const{message:m}=u.useApp(),{ti:s}=E(),c=r=>{var n,a;if(!(e!=null&&e.length))return m.error(s({en:"No data to export",vi:"Không có dữ liệu"}));const o=(a=(n=i.find(f=>f.key==r))==null?void 0:n.prepareData)==null?void 0:a.call(n,e);o!=null&&o.data&&(g("onClickExport:"+r+":"+o.fileName),k(o.data,o.fileName))},l=i.map(({key:r,label:o})=>({key:r,label:o}));return t.jsx(d,{menu:{items:l,onClick:r=>c(r.key)},children:p||t.jsx(x,{type:"primary",icon:t.jsx("i",{className:"fa-solid fa-download"}),children:s({en:"Export",vi:"Xuất"})+" "+e.length})})}export{N as E}; +import{ay as u,aA as t,aB as x}from"./index-BBriuzNA.js";import{u as E,t as g}from"./MyApp-CmkiOnMb.js";import{f as k}from"./file-download-Dys_FsHc.js";import{D as d}from"./index-4qwk-lHW.js";function N({data:e,children:p,options:i}){const{message:m}=u.useApp(),{ti:s}=E(),c=r=>{var n,a;if(!(e!=null&&e.length))return m.error(s({en:"No data to export",vi:"Không có dữ liệu"}));const o=(a=(n=i.find(f=>f.key==r))==null?void 0:n.prepareData)==null?void 0:a.call(n,e);o!=null&&o.data&&(g("onClickExport:"+r+":"+o.fileName),k(o.data,o.fileName))},l=i.map(({key:r,label:o})=>({key:r,label:o}));return t.jsx(d,{menu:{items:l,onClick:r=>c(r.key)},children:p||t.jsx(x,{type:"primary",icon:t.jsx("i",{className:"fa-solid fa-download"}),children:s({en:"Export",vi:"Xuất"})+" "+e.length})})}export{N as E}; diff --git a/public/assets/EyeOutlined-BALW2cms.js b/public/assets/EyeOutlined-Du2MtFRM.js similarity index 91% rename from public/assets/EyeOutlined-BALW2cms.js rename to public/assets/EyeOutlined-Du2MtFRM.js index d2a9a17..d231481 100644 --- a/public/assets/EyeOutlined-BALW2cms.js +++ b/public/assets/EyeOutlined-Du2MtFRM.js @@ -1 +1 @@ -import{r as e,T as r,g as c}from"./index--trdnQFa.js";var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},o=function(t,a){return e.createElement(r,c({},t,{ref:a,icon:n}))},d=e.forwardRef(o);export{d as R}; +import{r as e,T as r,g as c}from"./index-BBriuzNA.js";var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},o=function(t,a){return e.createElement(r,c({},t,{ref:a,icon:n}))},d=e.forwardRef(o);export{d as R}; diff --git a/public/assets/FirstMessages-D7fNfd4x.js b/public/assets/FirstMessages-BMRQW45D.js similarity index 98% rename from public/assets/FirstMessages-D7fNfd4x.js rename to public/assets/FirstMessages-BMRQW45D.js index 2e5d857..a75ed9b 100644 --- a/public/assets/FirstMessages-D7fNfd4x.js +++ b/public/assets/FirstMessages-BMRQW45D.js @@ -1,5 +1,5 @@ -const __vite__fileDeps=["./InfiniteScroll-GdRBIjZP.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./index-X7jfXLlB.js","./MyApp-BHr373cy.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{at as kt,as as wt,aJ as br,r as o,o as xe,X as ce,h as Le,d as ne,j as A,$ as en,e as Vt,k as Oe,w as Je,Y as Sr,l as yr,q as ut,g as pe,z as xr,aK as qn,n as xt,c as kr,b as wr,Z as fa,F as Bn,D as se,a4 as tn,E as Mr,aL as Pr,H as na,a2 as Dr,T as Kn,aB as Ft,I as va,aM as ma,a7 as ga,aN as ha,aO as pa,aP as Ca,aQ as ba,aR as Sa,M as ya,N as xa,aC as Ir,au as ka,av as wa,aS as Qe,aA as oe,aF as $r}from"./index--trdnQFa.js";import{d as $e}from"./dayjs.min-DH5lmvCP.js";import{l as Rr,m as et,R as Ma,F as Er,n as Nr,s as Fr,p as Or,q as Tr,v as _r,w as Hr,x as aa,d as Vr,u as Yr,g as qt,y as ra,t as yt,z as Ar,A as Lr,b as ot,T as Ot,C as jr,k as On,i as Br,j as Wr}from"./MyApp-BHr373cy.js";import{b as Tn,m as zr,a as Ur,s as qr,f as Kr,c as _n}from"./messages-6ucXfJYj.js";import{f as Gr}from"./file-download-DYjmaN3D.js";import{V as Xr}from"./VideoWithMuted-xvYRNY0l.js";import{I as Qr}from"./index-BCUBacY9.js";import{i as oa,g as Pa}from"./PurePanel-CSR2tSBX.js";import{i as Zr,g as Jr,a as eo,b as to,c as no,d as ao,u as Da,e as Ia,f as $a,T as ro}from"./index-VHrAsB-Q.js";import{g as oo,a as lo,u as io}from"./index-CETJ8txP.js";import{L as uo}from"./index-BJNnFmyH.js";import{A as co}from"./index-DTxLlwd8.js";import{I as la}from"./index-CB9InVBI.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./row-DQoT4CfJ.js";import"./index-CU7pBSDU.js";import"./addEventListener-KkFh1sjE.js";var Ra={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(kt,function(){return function(n,a){a.prototype.weekday=function(r){var l=this.$locale().weekStart||0,i=this.$W,u=(i25){var c=i(this).startOf(a).add(1,a).date(d),f=i(this).endOf(n);if(c.isBefore(f))return 1}var m=i(this).startOf(a).date(d).startOf(n).subtract(1,"millisecond"),C=this.diff(m,n,!0);return C<0?i(this).startOf("week").week():Math.ceil(C)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(Na);var go=Na.exports;const ho=wt(go);var Fa={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(kt,function(){return function(n,a){a.prototype.weekYear=function(){var r=this.month(),l=this.week(),i=this.year();return l===1&&r===11?i+1:r===0&&l>=52?i-1:i}}})})(Fa);var po=Fa.exports;const Co=wt(po);var Oa={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(kt,function(){return function(n,a){var r=a.prototype,l=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return l.bind(this)(i);var d=this.$utils(),c=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),f==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),f==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return f}});return l.bind(this)(c)}}})})(Oa);var bo=Oa.exports;const So=wt(bo);var Ta={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(kt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,l=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(g){this[v]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var h=g.match(/([+-]|\d\d)/g),S=60*h[1]+(+h[2]||0);return S===0?0:h[0]==="+"?-S:S}(v)}],f=function(v){var g=u[v];return g&&(g.indexOf?g:g.s.concat(g.f))},m=function(v,g){var h,S=u.meridiem;if(S){for(var x=1;x<=24;x+=1)if(v.indexOf(S(x,0,g))>-1){h=x>12;break}}else h=v===(g?"pm":"PM");return h},C={A:[i,function(v){this.afternoon=m(v,!1)}],a:[i,function(v){this.afternoon=m(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[r,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[l,d("seconds")],ss:[l,d("seconds")],m:[l,d("minutes")],mm:[l,d("minutes")],H:[l,d("hours")],h:[l,d("hours")],HH:[l,d("hours")],hh:[l,d("hours")],D:[l,d("day")],DD:[r,d("day")],Do:[i,function(v){var g=u.ordinal,h=v.match(/\d+/);if(this.day=h[0],g)for(var S=1;S<=31;S+=1)g(S).replace(/\[|\]/g,"")===v&&(this.day=S)}],M:[l,d("month")],MM:[r,d("month")],MMM:[i,function(v){var g=f("months"),h=(f("monthsShort")||g.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if(h<1)throw new Error;this.month=h%12||h}],MMMM:[i,function(v){var g=f("months").indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(v){this.year=s(v)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function p(v){var g,h;g=v,h=u&&u.formats;for(var S=(v=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,E,R){var F=R&&R.toUpperCase();return E||h[R]||n[R]||h[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,L,V){return L||V.slice(1)})})).match(a),x=S.length,y=0;y-1)return new Date((j==="X"?1e3:1)*Y);var b=p(j)(Y),M=b.year,$=b.month,P=b.day,_=b.hours,T=b.minutes,W=b.seconds,z=b.milliseconds,U=b.zone,B=new Date,K=P||(M||$?1:B.getDate()),G=M||B.getFullYear(),J=0;M&&!$||(J=$>0?$-1:B.getMonth());var ee=_||0,Z=T||0,le=W||0,ge=z||0;return U?new Date(Date.UTC(G,J,K,ee,Z,le,ge+60*U.offset*1e3)):w?new Date(Date.UTC(G,J,K,ee,Z,le,ge)):new Date(G,J,K,ee,Z,le,ge)}catch{return new Date("")}}(I,O,k),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),R&&I!=this.format(O)&&(this.$d=new Date("")),u={}}else if(O instanceof Array)for(var H=O.length,L=1;L<=H;L+=1){D[1]=O[L-1];var V=h.apply(this,D);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}L===H&&(this.$d=new Date(""))}else x.call(this,y)}}})})(Ta);var yo=Ta.exports;const xo=wt(yo);$e.extend(xo);$e.extend(So);$e.extend(fo);$e.extend(mo);$e.extend(ho);$e.extend(Co);$e.extend(function(e,t){var n=t.prototype,a=n.format;n.format=function(l){var i=(l||"").replace("Wo","wo");return a.bind(this)(i)}});var ko={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ft=function(t){var n=ko[t];return n||t.split("_")[0]},ia=function(){br(!1,"Not match any format. Please help to fire a issue about this.")},wo={getNow:function(){return $e()},getFixedDate:function(t){return $e(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return $e().locale(ft(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(ft(t)).weekday(0)},getWeek:function(t,n){return n.locale(ft(t)).week()},getShortWeekDays:function(t){return $e().locale(ft(t)).localeData().weekdaysMin()},getShortMonths:function(t){return $e().locale(ft(t)).localeData().monthsShort()},format:function(t,n,a){return n.locale(ft(t)).format(a)},parse:function(t,n,a){for(var r=ft(t),l=0;l2&&arguments[2]!==void 0?arguments[2]:"0",a=String(e);a.length2&&arguments[2]!==void 0?arguments[2]:[],a=o.useState([!1,!1]),r=A(a,2),l=r[0],i=r[1],u=function(c,f){i(function(m){return Ht(m,f,c)})},s=o.useMemo(function(){return l.map(function(d,c){if(d)return!0;var f=e[c];return f?!!(!n[c]&&!f||f&&t(f,{activeIndex:c})):!1})},[e,l,t,n]);return[s,u]}function La(e,t,n,a,r){var l="",i=[];return e&&i.push(r?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),l=i.join(":"),a&&(l+=".SSS"),r&&(l+=" A"),l}function Po(e,t,n,a,r,l){var i=e.fieldDateTimeFormat,u=e.fieldDateFormat,s=e.fieldTimeFormat,d=e.fieldMonthFormat,c=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,C=e.yearFormat,p=e.cellYearFormat,v=e.cellQuarterFormat,g=e.dayFormat,h=e.cellDateFormat,S=La(t,n,a,r,l);return ne(ne({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(S),fieldDateFormat:u||"YYYY-MM-DD",fieldTimeFormat:s||S,fieldMonthFormat:d||"YYYY-MM",fieldYearFormat:c||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:C||"YYYY",cellYearFormat:p||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:h||g||"D"})}function ja(e,t){var n=t.showHour,a=t.showMinute,r=t.showSecond,l=t.showMillisecond,i=t.use12Hours;return en.useMemo(function(){return Po(e,n,a,r,l,i)},[e,n,a,r,l,i])}function Et(e,t,n){return n??t.some(function(a){return e.includes(a)})}var Do=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Io(e){var t=an(e,Do),n=e.format,a=e.picker,r=null;return n&&(r=n,Array.isArray(r)&&(r=r[0]),r=Vt(r)==="object"?r.format:r),a==="time"&&(t.format=r),[t,r]}function $o(e){return e&&typeof e=="string"}function Ba(e,t,n,a){return[e,t,n,a].some(function(r){return r!==void 0})}function Wa(e,t,n,a,r){var l=t,i=n,u=a;if(!e&&!l&&!i&&!u&&!r)l=!0,i=!0,u=!0;else if(e){var s,d,c,f=[l,i,u].some(function(p){return p===!1}),m=[l,i,u].some(function(p){return p===!0}),C=f?!0:!m;l=(s=l)!==null&&s!==void 0?s:C,i=(d=i)!==null&&d!==void 0?d:C,u=(c=u)!==null&&c!==void 0?c:C}return[l,i,u,r]}function za(e){var t=e.showTime,n=Io(e),a=A(n,2),r=a[0],l=a[1],i=t&&Vt(t)==="object"?t:{},u=ne(ne({defaultOpenValue:i.defaultOpenValue||i.defaultValue},r),i),s=u.showMillisecond,d=u.showHour,c=u.showMinute,f=u.showSecond,m=Ba(d,c,f,s),C=Wa(m,d,c,f,s),p=A(C,3);return d=p[0],c=p[1],f=p[2],[u,ne(ne({},u),{},{showHour:d,showMinute:c,showSecond:f,showMillisecond:s}),u.format,l]}function Ua(e,t,n,a,r){var l=e==="time";if(e==="datetime"||l){for(var i=a,u=Ha(e,r,null),s=u,d=[t,n],c=0;c1&&(i=t.addDate(i,-7)),i}function Ne(e,t){var n=t.generateConfig,a=t.locale,r=t.format;return e?typeof r=="function"?r(e):n.locale.format(a.locale,e,r):""}function nn(e,t,n){var a=t,r=["getHour","getMinute","getSecond","getMillisecond"],l=["setHour","setMinute","setSecond","setMillisecond"];return l.forEach(function(i,u){n?a=e[i](a,e[r[u]](n)):a=e[i](a,0)}),a}function Fo(e,t,n,a,r){var l=Oe(function(i,u){return!!(n&&n(i,u)||a&&e.isAfter(a,i)&&!Te(e,t,a,i,u.type)||r&&e.isAfter(i,r)&&!Te(e,t,r,i,u.type))});return l}function Oo(e,t,n){return o.useMemo(function(){var a=Ha(e,t,n),r=mt(a),l=r[0],i=Vt(l)==="object"&&l.type==="mask"?l.format:null;return[r.map(function(u){return typeof u=="string"||typeof u=="function"?u:u.format}),i]},[e,t,n])}function To(e,t,n){return typeof e[0]=="function"||n?!0:t}function _o(e,t,n,a){var r=Oe(function(l,i){var u=ne({type:t},i);if(delete u.activeIndex,!e.isValidate(l)||n&&n(l,u))return!0;if((t==="date"||t==="time")&&a){var s,d=i&&i.activeIndex===1?"end":"start",c=((s=a.disabledTime)===null||s===void 0?void 0:s.call(a,l,d,{from:u.from}))||{},f=c.disabledHours,m=c.disabledMinutes,C=c.disabledSeconds,p=c.disabledMilliseconds,v=a.disabledHours,g=a.disabledMinutes,h=a.disabledSeconds,S=f||v,x=m||g,y=C||h,I=e.getHour(l),k=e.getMinute(l),D=e.getSecond(l),O=e.getMillisecond(l);if(S&&S().includes(I)||x&&x(I).includes(k)||y&&y(I,k).includes(D)||p&&p(I,k,D).includes(O))return!0}return!1});return r}function Gt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=o.useMemo(function(){var a=e&&mt(e);return t&&a&&(a[1]=a[1]||a[0]),a},[e,t]);return n}function Ga(e,t){var n=e.generateConfig,a=e.locale,r=e.picker,l=r===void 0?"date":r,i=e.prefixCls,u=i===void 0?"rc-picker":i,s=e.styles,d=s===void 0?{}:s,c=e.classNames,f=c===void 0?{}:c,m=e.order,C=m===void 0?!0:m,p=e.components,v=p===void 0?{}:p,g=e.inputRender,h=e.allowClear,S=e.clearIcon,x=e.needConfirm,y=e.multiple,I=e.format,k=e.inputReadOnly,D=e.disabledDate,O=e.minDate,N=e.maxDate,E=e.showTime,R=e.value,F=e.defaultValue,H=e.pickerValue,L=e.defaultPickerValue,V=Gt(R),Y=Gt(F),j=Gt(H),w=Gt(L),b=l==="date"&&E?"datetime":l,M=b==="time"||b==="datetime",$=M||y,P=x??M,_=za(e),T=A(_,4),W=T[0],z=T[1],U=T[2],B=T[3],K=ja(a,z),G=o.useMemo(function(){return Ua(b,U,B,W,K)},[b,U,B,W,K]),J=o.useMemo(function(){return ne(ne({},e),{},{prefixCls:u,locale:K,picker:l,styles:d,classNames:f,order:C,components:ne({input:g},v),clearIcon:Ro(u,h,S),showTime:G,value:V,defaultValue:Y,pickerValue:j,defaultPickerValue:w},t==null?void 0:t())},[e]),ee=Oo(b,K,I),Z=A(ee,2),le=Z[0],ge=Z[1],ae=To(le,k,y),Ce=Fo(n,a,D,O,N),be=_o(n,l,Ce,G),He=o.useMemo(function(){return ne(ne({},J),{},{needConfirm:P,inputReadOnly:ae,disabledDate:Ce})},[J,P,ae,Ce]);return[He,b,$,le,ge,be]}function Ho(e,t,n){var a=et(t,{value:e}),r=A(a,2),l=r[0],i=r[1],u=en.useRef(e),s=en.useRef(),d=function(){Je.cancel(s.current)},c=Oe(function(){i(u.current),n&&l!==u.current&&n(u.current)}),f=Oe(function(m,C){d(),u.current=m,m||C?c():s.current=Je(c)});return en.useEffect(function(){return d},[]),[l,f]}function Xa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3?arguments[3]:void 0,r=n.every(function(c){return c})?!1:e,l=Ho(r,t||!1,a),i=A(l,2),u=i[0],s=i[1];function d(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||u)&&s(c,f.force)}return[u,d]}function Qa(e){var t=o.useRef();return o.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(r){var l;(l=t.current)===null||l===void 0||l.focus(r)},blur:function(){var r;(r=t.current)===null||r===void 0||r.blur()}}}),t}function Za(e,t){return o.useMemo(function(){return e||(t?(Sr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var a=A(n,2),r=a[0],l=a[1];return{label:r,value:l}})):[])},[e,t])}function Jn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=o.useRef(t);a.current=t,yr(function(){if(e)a.current(e);else{var r=Je(function(){a.current(e)},n);return function(){Je.cancel(r)}}},[e])}function Ja(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=o.useState(0),a=A(n,2),r=a[0],l=a[1],i=o.useState(!1),u=A(i,2),s=u[0],d=u[1],c=o.useRef([]),f=o.useRef(null),m=function(g){d(g)},C=function(g){return g&&(f.current=g),f.current},p=function(g){var h=c.current,S=new Set(h.filter(function(y){return g[y]||t[y]})),x=h[h.length-1]===0?1:0;return S.size>=2||e[x]?null:x};return Jn(s,function(){s||(c.current=[])}),o.useEffect(function(){s&&c.current.push(r)},[s,r]),[s,m,C,r,l,p,c.current]}function Vo(e,t,n,a,r,l){var i=n[n.length-1],u=function(d,c){var f=A(e,2),m=f[0],C=f[1],p=ne(ne({},c),{},{from:Va(e,n)});return i===1&&t[0]&&m&&!Te(a,r,m,d,p.type)&&a.isAfter(m,d)||i===0&&t[1]&&C&&!Te(a,r,C,d,p.type)&&a.isAfter(d,C)?!0:l==null?void 0:l(d,p)};return u}function _t(e,t,n,a){switch(t){case"date":case"week":return e.addMonth(n,a);case"month":case"quarter":return e.addYear(n,a);case"year":return e.addYear(n,a*10);case"decade":return e.addYear(n,a*100);default:return n}}var Vn=[];function er(e,t,n,a,r,l,i,u){var s=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Vn,d=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Vn,c=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Vn,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,C=arguments.length>13?arguments[13]:void 0,p=i==="time",v=l||0,g=function(j){var w=e.getNow();return p&&(w=nn(e,w)),s[j]||n[j]||w},h=A(d,2),S=h[0],x=h[1],y=et(function(){return g(0)},{value:S}),I=A(y,2),k=I[0],D=I[1],O=et(function(){return g(1)},{value:x}),N=A(O,2),E=N[0],R=N[1],F=o.useMemo(function(){var Y=[k,E][v];return p?Y:nn(e,Y,c[v])},[p,k,E,v,e,c]),H=function(j){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",b=[D,R][v];b(j);var M=[k,E];M[v]=j,f&&(!Te(e,t,k,M[0],i)||!Te(e,t,E,M[1],i))&&f(M,{source:w,range:v===1?"end":"start",mode:a})},L=function(j,w){if(u){var b={date:"month",week:"month",month:"year",quarter:"year"},M=b[i];if(M&&!Te(e,t,j,w,M))return _t(e,i,w,-1);if(i==="year"){var $=Math.floor(e.getYear(j)/10),P=Math.floor(e.getYear(w)/10);if($!==P)return _t(e,i,w,-1)}}return w},V=o.useRef(null);return ut(function(){if(r&&!s[v]){var Y=p?null:e.getNow();if(V.current!==null&&V.current!==v?Y=[k,E][v^1]:n[v]?Y=v===0?n[0]:L(n[0],n[1]):n[v^1]&&(Y=n[v^1]),Y){m&&e.isAfter(m,Y)&&(Y=m);var j=u?_t(e,i,Y,1):Y;C&&e.isAfter(j,C)&&(Y=u?_t(e,i,C,-1):C),H(Y,"reset")}}},[r,v,n[v]]),o.useEffect(function(){r?V.current=v:V.current=null},[r,v]),ut(function(){r&&s&&s[v]&&H(s[v],"reset")},[r,v]),[F,H]}function tr(e,t){var n=o.useRef(e),a=o.useState({}),r=A(a,2),l=r[1],i=function(d){return d&&t!==void 0?t:n.current},u=function(d){n.current=d,l({})};return[i,u,i(!0)]}var Yo=[];function nr(e,t,n){var a=function(i){return i.map(function(u){return Ne(u,{generateConfig:e,locale:t,format:n[0]})})},r=function(i,u){for(var s=Math.max(i.length,u.length),d=-1,c=0;c2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],u=n>=1?n|0:1,s=e;s<=t;s+=u){var d=r.includes(s);(!d||!a)&&i.push({label:Gn(s,l),value:s,disabled:d})}return i}function ea(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=t||{},r=a.use12Hours,l=a.hourStep,i=l===void 0?1:l,u=a.minuteStep,s=u===void 0?1:u,d=a.secondStep,c=d===void 0?1:d,f=a.millisecondStep,m=f===void 0?100:f,C=a.hideDisabledOptions,p=a.disabledTime,v=a.disabledHours,g=a.disabledMinutes,h=a.disabledSeconds,S=o.useMemo(function(){return n||e.getNow()},[n,e]),x=o.useCallback(function(w){var b=(p==null?void 0:p(w))||{};return[b.disabledHours||v||Xt,b.disabledMinutes||g||Xt,b.disabledSeconds||h||Xt,b.disabledMilliseconds||Xt]},[p,v,g,h]),y=o.useMemo(function(){return x(S)},[S,x]),I=A(y,4),k=I[0],D=I[1],O=I[2],N=I[3],E=o.useCallback(function(w,b,M,$){var P=Qt(0,23,i,C,w()),_=r?P.map(function(U){return ne(ne({},U),{},{label:Gn(U.value%12||12,2)})}):P,T=function(B){return Qt(0,59,s,C,b(B))},W=function(B,K){return Qt(0,59,c,C,M(B,K))},z=function(B,K,G){return Qt(0,999,m,C,$(B,K,G),3)};return[_,T,W,z]},[C,i,r,m,s,c]),R=o.useMemo(function(){return E(k,D,O,N)},[E,k,D,O,N]),F=A(R,4),H=F[0],L=F[1],V=F[2],Y=F[3],j=function(b,M){var $=function(){return H},P=L,_=V,T=Y;if(M){var W=x(M),z=A(W,4),U=z[0],B=z[1],K=z[2],G=z[3],J=E(U,B,K,G),ee=A(J,4),Z=ee[0],le=ee[1],ge=ee[2],ae=ee[3];$=function(){return Z},P=le,_=ge,T=ae}var Ce=Lo(b,$,P,_,T,e);return Ce};return[j,H,L,V,Y]}function jo(e){var t=e.mode,n=e.internalMode,a=e.renderExtraFooter,r=e.showNow,l=e.showTime,i=e.onSubmit,u=e.onNow,s=e.invalid,d=e.needConfirm,c=e.generateConfig,f=e.disabledDate,m=o.useContext(Ke),C=m.prefixCls,p=m.locale,v=m.button,g=v===void 0?"button":v,h=c.getNow(),S=ea(c,l,h),x=A(S,1),y=x[0],I=a==null?void 0:a(t),k=f(h,{type:t}),D=function(){if(!k){var L=y(h);u(L)}},O="".concat(C,"-now"),N="".concat(O,"-btn"),E=r&&o.createElement("li",{className:O},o.createElement("a",{className:xe(N,k&&"".concat(N,"-disabled")),"aria-disabled":k,onClick:D},n==="date"?p.today:p.now)),R=d&&o.createElement("li",{className:"".concat(C,"-ok")},o.createElement(g,{disabled:s,onClick:i},p.ok)),F=(E||R)&&o.createElement("ul",{className:"".concat(C,"-ranges")},E,R);return!I&&!F?null:o.createElement("div",{className:"".concat(C,"-footer")},I&&o.createElement("div",{className:"".concat(C,"-footer-extra")},I),F)}function ir(e,t,n){function a(r,l){var i=r.findIndex(function(s){return Te(e,t,s,l,n)});if(i===-1)return[].concat(Le(r),[l]);var u=Le(r);return u.splice(i,1),u}return a}var gt=o.createContext(null);function on(){return o.useContext(gt)}function Mt(e,t){var n=e.prefixCls,a=e.generateConfig,r=e.locale,l=e.disabledDate,i=e.minDate,u=e.maxDate,s=e.cellRender,d=e.hoverValue,c=e.hoverRangeValue,f=e.onHover,m=e.values,C=e.pickerValue,p=e.onSelect,v=e.prevIcon,g=e.nextIcon,h=e.superPrevIcon,S=e.superNextIcon,x=a.getNow(),y={now:x,values:m,pickerValue:C,prefixCls:n,disabledDate:l,minDate:i,maxDate:u,cellRender:s,hoverValue:d,hoverRangeValue:c,onHover:f,locale:r,generateConfig:a,onSelect:p,panelType:t,prevIcon:v,nextIcon:g,superPrevIcon:h,superNextIcon:S};return[y,x]}var it=o.createContext({});function Yt(e){for(var t=e.rowNum,n=e.colNum,a=e.baseDate,r=e.getCellDate,l=e.prefixColumn,i=e.rowClassName,u=e.titleFormat,s=e.getCellText,d=e.getCellClassName,c=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,C=e.disabledDate,p=on(),v=p.prefixCls,g=p.panelType,h=p.now,S=p.disabledDate,x=p.cellRender,y=p.onHover,I=p.hoverValue,k=p.hoverRangeValue,D=p.generateConfig,O=p.values,N=p.locale,E=p.onSelect,R=C||S,F="".concat(v,"-cell"),H=o.useContext(it),L=H.onCellDblClick,V=function(_){return O.some(function(T){return T&&Te(D,N,_,T,g)})},Y=[],j=0;j1&&arguments[1]!==void 0?arguments[1]:!1;ke(Q),g==null||g(Q),me&&Re(Q)},ve=function(Q,me){K(Q),me&&X(me),Re(me,Q)},de=function(Q){if(be(Q),X(Q),B!==y){var me=["decade","year"],Ie=[].concat(me,["month"]),Ve={quarter:[].concat(me,["quarter"]),week:[].concat(Le(Ie),["week"]),date:[].concat(Le(Ie),["date"])},Ge=Ve[y]||Ie,Ue=Ge.indexOf(B),je=Ge[Ue+1];je&&ve(je,Q)}},we=o.useMemo(function(){var q,Q;if(Array.isArray(D)){var me=A(D,2);q=me[0],Q=me[1]}else q=D;return!q&&!Q?null:(q=q||Q,Q=Q||q,r.isAfter(q,Q)?[Q,q]:[q,Q])},[D,r]),Se=Xn(O,N,E),De=F[G]||Jo[G]||ln,_e=o.useContext(it),Ee=o.useMemo(function(){return ne(ne({},_e),{},{hideHeader:H})},[_e,H]),ue="".concat(L,"-panel"),ye=an(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return o.createElement(it.Provider,{value:Ee},o.createElement("div",{ref:V,tabIndex:s,className:xe(ue,ce({},"".concat(ue,"-rtl"),l==="rtl"))},o.createElement(De,pe({},ye,{showTime:T,prefixCls:L,locale:P,generateConfig:r,onModeChange:ve,pickerValue:Pe,onPickerValueChange:function(Q){X(Q,!0)},value:ae[0],onSelect:de,values:ae,cellRender:Se,hoverRangeValue:we,hoverValue:k}))))}var Yn=o.memo(o.forwardRef(el));function tl(e){var t=e.picker,n=e.multiplePanel,a=e.pickerValue,r=e.onPickerValueChange,l=e.needConfirm,i=e.onSubmit,u=e.range,s=e.hoverValue,d=o.useContext(Ke),c=d.prefixCls,f=d.generateConfig,m=o.useCallback(function(S,x){return _t(f,t,S,x)},[f,t]),C=o.useMemo(function(){return m(a,1)},[a,m]),p=function(x){r(m(x,-1))},v={onCellDblClick:function(){l&&i()}},g=t==="time",h=ne(ne({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return u?h.hoverRangeValue=s:h.hoverValue=s,n?o.createElement("div",{className:"".concat(c,"-panels")},o.createElement(it.Provider,{value:ne(ne({},v),{},{hideNext:!0})},o.createElement(Yn,h)),o.createElement(it.Provider,{value:ne(ne({},v),{},{hidePrev:!0})},o.createElement(Yn,pe({},h,{pickerValue:C,onPickerValueChange:p})))):o.createElement(it.Provider,{value:ne({},v)},o.createElement(Yn,h))}function ca(e){return typeof e=="function"?e():e}function nl(e){var t=e.prefixCls,n=e.presets,a=e.onClick,r=e.onHover;return n.length?o.createElement("div",{className:"".concat(t,"-presets")},o.createElement("ul",null,n.map(function(l,i){var u=l.label,s=l.value;return o.createElement("li",{key:i,onClick:function(){a(ca(s))},onMouseEnter:function(){r(ca(s))},onMouseLeave:function(){r(null)}},u)}))):null}function cr(e){var t=e.panelRender,n=e.internalMode,a=e.picker,r=e.showNow,l=e.range,i=e.multiple,u=e.activeOffset,s=u===void 0?0:u,d=e.presets,c=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,C=e.onBlur,p=e.direction,v=e.value,g=e.onSelect,h=e.isInvalid,S=e.defaultOpenValue,x=e.onOk,y=e.onSubmit,I=o.useContext(Ke),k=I.prefixCls,D="".concat(k,"-panel"),O=p==="rtl",N=o.useRef(null),E=o.useRef(null),R=o.useState(0),F=A(R,2),H=F[0],L=F[1],V=o.useState(0),Y=A(V,2),j=Y[0],w=Y[1],b=function(Z){Z.offsetWidth&&L(Z.offsetWidth)};o.useEffect(function(){if(l){var ee,Z=((ee=N.current)===null||ee===void 0?void 0:ee.offsetWidth)||0,le=H-Z;s<=le?w(0):w(s+Z-H)}},[H,s,l]);function M(ee){return ee.filter(function(Z){return Z})}var $=o.useMemo(function(){return M(mt(v))},[v]),P=a==="time"&&!$.length,_=o.useMemo(function(){return P?M([S]):$},[P,$,S]),T=P?S:$,W=o.useMemo(function(){return _.length?_.some(function(ee){return h(ee)}):!0},[_,h]),z=function(){P&&g(S),x(),y()},U=o.createElement("div",{className:"".concat(k,"-panel-layout")},o.createElement(nl,{prefixCls:k,presets:d,onClick:f,onHover:c}),o.createElement("div",null,o.createElement(tl,pe({},e,{value:T})),o.createElement(jo,pe({},e,{showNow:i?!1:r,invalid:W,onSubmit:z}))));t&&(U=t(U));var B="".concat(D,"-container"),K="marginLeft",G="marginRight",J=o.createElement("div",{tabIndex:-1,className:xe(B,"".concat(k,"-").concat(n,"-panel-container")),style:ce(ce({},O?G:K,j),O?K:G,"auto"),onFocus:m,onBlur:C},U);return l&&(J=o.createElement("div",{ref:E,className:xe("".concat(k,"-range-wrapper"),"".concat(k,"-").concat(a,"-range-wrapper"))},o.createElement("div",{ref:N,className:"".concat(k,"-range-arrow"),style:ce({},O?"right":"left",s)}),o.createElement(Ma,{onResize:b},J))),J}function sr(e,t){var n=e.format,a=e.maskFormat,r=e.generateConfig,l=e.locale,i=e.preserveInvalidOnBlur,u=e.inputReadOnly,s=e.required,d=e["aria-required"],c=e.onSubmit,f=e.onFocus,m=e.onBlur,C=e.onInputChange,p=e.onInvalid,v=e.open,g=e.onOpenChange,h=e.onKeyDown,S=e.onChange,x=e.activeHelp,y=e.name,I=e.autoComplete,k=e.id,D=e.value,O=e.invalid,N=e.placeholder,E=e.disabled,R=e.activeIndex,F=e.allHelp,H=e.picker,L=function(P,_){var T=r.locale.parse(l.locale,P,[_]);return T&&r.isValidate(T)?T:null},V=n[0],Y=o.useCallback(function($){return Ne($,{locale:l,format:V,generateConfig:r})},[l,r,V]),j=o.useMemo(function(){return D.map(Y)},[D,Y]),w=o.useMemo(function(){var $=H==="time"?8:10,P=typeof V=="function"?V(r.getNow()).length:V.length;return Math.max($,P)+2},[V,H,r]),b=function(P){for(var _=0;_=u&&n<=s)return l;var d=Math.min(Math.abs(n-u),Math.abs(n-s));d0?tt:st));var bt=Ct+qe,at=st-tt+1;return String(tt+(at+bt-tt)%at)};switch(Q){case"Backspace":case"Delete":me="",Ie=Ge;break;case"ArrowLeft":me="",Ue(-1);break;case"ArrowRight":me="",Ue(1);break;case"ArrowUp":me="",Ie=je(1);break;case"ArrowDown":me="",Ie=je(-1);break;default:isNaN(Number(Q))||(me=$+Q,Ie=me);break}if(me!==null&&(P(me),me.length>=Ve&&(Ue(1),P(""))),Ie!==null){var ht=J.slice(0,Ce)+Gn(Ie,Ve)+J.slice(be);Me(ht.slice(0,i.length))}G({})},Ee=o.useRef();ut(function(){if(!(!H||!i||Re.current)){if(!le.match(J)){Me(i);return}return Z.current.setSelectionRange(Ce,be),Ee.current=Je(function(){Z.current.setSelectionRange(Ce,be)}),function(){Je.cancel(Ee.current)}}},[le,i,H,J,W,Ce,be,K,Me]);var ue=i?{onFocus:de,onBlur:Se,onKeyDown:_e,onMouseDown:X,onMouseUp:ve,onPaste:ke}:{};return o.createElement("div",{ref:ee,className:xe(E,ce(ce({},"".concat(E,"-active"),n&&r),"".concat(E,"-placeholder"),d))},o.createElement(N,pe({ref:Z,"aria-invalid":v,autoComplete:"off"},h,{onKeyDown:De,onBlur:we},ue,{value:J,onChange:Pe})),o.createElement(un,{type:"suffix",icon:l}),g)}),cl=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],sl=["index"];function dl(e,t){var n=e.id,a=e.clearIcon,r=e.suffixIcon,l=e.separator,i=l===void 0?"~":l,u=e.activeIndex;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,c=e.className,f=e.style,m=e.onClick,C=e.onClear,p=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,g=e.invalid;e.inputReadOnly;var h=e.direction;e.onOpenChange;var S=e.onActiveOffset,x=e.onMouseDown;e.required,e["aria-required"];var y=e.autoFocus,I=xt(e,cl),k=h==="rtl",D=o.useContext(Ke),O=D.prefixCls,N=o.useMemo(function(){if(typeof n=="string")return[n];var B=n||{};return[B.start,B.end]},[n]),E=o.useRef(),R=o.useRef(),F=o.useRef(),H=function(K){var G;return(G=[R,F][K])===null||G===void 0?void 0:G.current};o.useImperativeHandle(t,function(){return{nativeElement:E.current,focus:function(K){if(Vt(K)==="object"){var G,J=K||{},ee=J.index,Z=ee===void 0?0:ee,le=xt(J,sl);(G=H(Z))===null||G===void 0||G.focus(le)}else{var ge;(ge=H(K??0))===null||ge===void 0||ge.focus()}},blur:function(){var K,G;(K=H(0))===null||K===void 0||K.blur(),(G=H(1))===null||G===void 0||G.blur()}}});var L=dr(I),V=o.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),Y=sr(ne(ne({},e),{},{id:N,placeholder:V})),j=A(Y,1),w=j[0],b=k?"right":"left",M=o.useState(ce({position:"absolute",width:0},b,0)),$=A(M,2),P=$[0],_=$[1],T=Oe(function(){var B=H(u);if(B){var K=B.nativeElement,G=K.offsetWidth,J=K.offsetLeft,ee=K.offsetParent,Z=J;if(k){var le=ee,ge=getComputedStyle(le);Z=le.offsetWidth-parseFloat(ge.borderRightWidth)-parseFloat(ge.borderLeftWidth)-J-G}_(function(ae){return ne(ne({},ae),{},ce({width:G},b,Z))}),S(u===0?0:Z)}});o.useEffect(function(){T()},[u]);var W=a&&(p[0]&&!v[0]||p[1]&&!v[1]),z=y&&!v[0],U=y&&!z&&!v[1];return o.createElement(Ma,{onResize:T},o.createElement("div",pe({},L,{className:xe(O,"".concat(O,"-range"),ce(ce(ce(ce({},"".concat(O,"-focused"),s),"".concat(O,"-disabled"),v.every(function(B){return B})),"".concat(O,"-invalid"),g.some(function(B){return B})),"".concat(O,"-rtl"),k),c),style:f,ref:E,onClick:m,onMouseDown:function(K){var G=K.target;G!==R.current.inputElement&&G!==F.current.inputElement&&K.preventDefault(),x==null||x(K)}}),o.createElement(Un,pe({ref:R},w(0),{autoFocus:z,"date-range":"start"})),o.createElement("div",{className:"".concat(O,"-range-separator")},i),o.createElement(Un,pe({ref:F},w(1),{autoFocus:U,"date-range":"end"})),o.createElement("div",{className:"".concat(O,"-active-bar"),style:P}),o.createElement(un,{type:"suffix",icon:r}),W&&o.createElement(zn,{icon:a,onClear:C})))}var fl=o.forwardRef(dl);function da(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Jt(e){return e===1?"end":"start"}function vl(e,t){var n=Ga(e,function(){var he=e.disabled,re=e.allowEmpty,fe=da(he,!1),Fe=da(re,!1);return{disabled:fe,allowEmpty:Fe}}),a=A(n,6),r=a[0],l=a[1],i=a[2],u=a[3],s=a[4],d=a[5],c=r.prefixCls,f=r.styles,m=r.classNames,C=r.defaultValue,p=r.value,v=r.needConfirm,g=r.onKeyDown,h=r.disabled,S=r.allowEmpty,x=r.disabledDate,y=r.minDate,I=r.maxDate,k=r.defaultOpen,D=r.open,O=r.onOpenChange,N=r.locale,E=r.generateConfig,R=r.picker,F=r.showNow,H=r.showToday,L=r.showTime,V=r.mode,Y=r.onPanelChange,j=r.onCalendarChange,w=r.onOk,b=r.defaultPickerValue,M=r.pickerValue,$=r.onPickerValueChange,P=r.inputReadOnly,_=r.suffixIcon,T=r.onFocus,W=r.onBlur,z=r.presets,U=r.ranges,B=r.components,K=r.cellRender,G=r.dateRender,J=r.monthCellRender,ee=r.onClick,Z=Qa(t),le=Xa(D,k,h,O),ge=A(le,2),ae=ge[0],Ce=ge[1],be=function(re,fe){(h.some(function(Fe){return!Fe})||!re)&&Ce(re,fe)},He=rr(E,N,u,!0,!1,C,p,j,w),Me=A(He,5),Pe=Me[0],ke=Me[1],Re=Me[2],X=Me[3],ve=Me[4],de=Re(),we=Ja(h,S),Se=A(we,7),De=Se[0],_e=Se[1],Ee=Se[2],ue=Se[3],ye=Se[4],q=Se[5],Q=Se[6],me=function(re,fe){_e(!0),T==null||T(re,{range:Jt(fe??ue)})},Ie=function(re,fe){_e(!1),W==null||W(re,{range:Jt(fe??ue)})},Ve=o.useMemo(function(){if(!L)return null;var he=L.disabledTime,re=he?function(fe){var Fe=Jt(ue),rt=Va(de,Q,ue);return he(fe,Fe,{from:rt})}:void 0;return ne(ne({},L),{},{disabledTime:re})},[L,ue,de,Q]),Ge=et([R,R],{value:V}),Ue=A(Ge,2),je=Ue[0],ht=Ue[1],We=je[ue]||R,qe=We==="date"&&Ve?"datetime":We,Ze=qe===R&&qe!=="time",Be=lr(R,We,F,H,!0),tt=or(r,Pe,ke,Re,X,h,u,De,ae,d),st=A(tt,2),pt=st[0],nt=st[1],Ct=Vo(de,h,Q,E,N,x),bt=Aa(de,d,S),at=A(bt,2),cn=at[0],sn=at[1],dn=er(E,N,de,je,ae,ue,l,Ze,b,M,Ve==null?void 0:Ve.defaultOpenValue,$,y,I),At=A(dn,2),Lt=At[0],fn=At[1],jt=Oe(function(he,re,fe){var Fe=Ht(je,ue,re);if((Fe[0]!==je[0]||Fe[1]!==je[1])&&ht(Fe),Y&&fe!==!1){var rt=Le(de);he&&(rt[ue]=he),Y(rt,Fe)}}),St=function(re,fe){return Ht(de,fe,re)},Ye=function(re,fe){var Fe=de;re&&(Fe=St(re,ue));var rt=q(Fe);X(Fe),pt(ue,rt===null),rt===null?be(!1,{force:!0}):fe||Z.current.focus({index:rt})},vn=function(re){if(!Z.current.nativeElement.contains(document.activeElement)){var fe=h.findIndex(function(Fe){return!Fe});fe>=0&&Z.current.focus({index:fe})}be(!0),ee==null||ee(re)},mn=function(){nt(null),be(!1,{force:!0})},gn=o.useState(null),It=A(gn,2),hn=It[0],$t=It[1],pn=o.useState(null),Rt=A(pn,2),ze=Rt[0],dt=Rt[1],Bt=o.useMemo(function(){return ze||de},[de,ze]);o.useEffect(function(){ae||dt(null)},[ae]);var Cn=o.useState(0),Wt=A(Cn,2),bn=Wt[0],zt=Wt[1],Sn=Za(z,U),yn=function(re){dt(re),$t("preset")},xn=function(re){var fe=nt(re);fe&&be(!1,{force:!0})},kn=function(re){Ye(re)},wn=function(re){dt(re?St(re,ue):null),$t("cell")},Mn=function(re){be(!0),me(re)},Pn=function(re){Ee("panel");var fe=Ht(de,ue,re);X(fe),!v&&!i&&l===qe&&Ye(re)},Dn=function(){be(!1)},In=Xn(K,G,J,Jt(ue)),$n=de[ue]||null,Rn=Oe(function(he){return d(he,{activeIndex:ue})}),En=o.useMemo(function(){var he=qn(r,!1),re=fa(r,[].concat(Le(Object.keys(he)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return re},[r]),Nn=o.createElement(cr,pe({},En,{showNow:Be,showTime:Ve,range:!0,multiplePanel:Ze,activeOffset:bn,disabledDate:Ct,onFocus:Mn,onBlur:Ie,picker:R,mode:We,internalMode:qe,onPanelChange:jt,format:s,value:$n,isInvalid:Rn,onChange:null,onSelect:Pn,pickerValue:Lt,defaultOpenValue:mt(L==null?void 0:L.defaultOpenValue)[ue],onPickerValueChange:fn,hoverValue:Bt,onHover:wn,needConfirm:v,onSubmit:Ye,onOk:ve,presets:Sn,onPresetHover:yn,onPresetSubmit:xn,onNow:kn,cellRender:In})),Fn=function(re,fe){var Fe=St(re,fe);X(Fe)},ie=function(){Ee("input")},te=function(re,fe){Ee("input"),be(!0,{inherit:!0}),ye(fe),me(re,fe)},Ae=function(re,fe){be(!1),Ie(re,fe)},Xe=function(re,fe){re.key==="Tab"&&Ye(null,!0),g==null||g(re,fe)},Ut=o.useMemo(function(){return{prefixCls:c,locale:N,generateConfig:E,button:B.button,input:B.input}},[c,N,E,B.button,B.input]);return ut(function(){ae&&ue!==void 0&&jt(null,R,!1)},[ae,ue,R]),ut(function(){var he=Ee();!ae&&he==="input"&&(be(!1),Ye(null,!0)),!ae&&i&&!v&&he==="panel"&&(be(!0),Ye())},[ae]),o.createElement(Ke.Provider,{value:Ut},o.createElement(_a,pe({},Ya(r),{popupElement:Nn,popupStyle:f.popup,popupClassName:m.popup,visible:ae,onClose:Dn,range:!0}),o.createElement(fl,pe({},r,{ref:Z,suffixIcon:_,activeIndex:De||ae?ue:null,activeHelp:!!ze,allHelp:!!ze&&hn==="preset",focused:De,onFocus:te,onBlur:Ae,onKeyDown:Xe,onSubmit:Ye,value:Bt,maskFormat:s,onChange:Fn,onInputChange:ie,format:u,inputReadOnly:P,disabled:h,open:ae,onOpenChange:be,onClick:vn,onClear:mn,invalid:cn,onInvalid:sn,onActiveOffset:zt}))))}var ml=o.forwardRef(vl);function gl(e){var t=e.prefixCls,n=e.value,a=e.onRemove,r=e.removeIcon,l=r===void 0?"×":r,i=e.formatDate,u=e.disabled,s=e.maxTagCount,d=e.placeholder,c="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function C(g,h){return o.createElement("span",{className:xe("".concat(f,"-item")),title:typeof g=="string"?g:null},o.createElement("span",{className:"".concat(f,"-item-content")},g),!u&&h&&o.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:h,className:"".concat(f,"-item-remove")},l))}function p(g){var h=i(g),S=function(y){y&&y.stopPropagation(),a(g)};return C(h,S)}function v(g){var h="+ ".concat(g.length," ...");return C(h)}return o.createElement("div",{className:c},o.createElement(Er,{prefixCls:m,data:n,renderItem:p,renderRest:v,itemKey:function(h){return i(h)},maxCount:s}),!n.length&&o.createElement("span",{className:"".concat(t,"-selection-placeholder")},d))}var hl=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function pl(e,t){e.id;var n=e.open,a=e.clearIcon,r=e.suffixIcon;e.activeHelp,e.allHelp;var l=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var i=e.locale,u=e.generateConfig,s=e.placeholder,d=e.className,c=e.style,f=e.onClick,m=e.onClear,C=e.internalPicker,p=e.value,v=e.onChange,g=e.onSubmit;e.onInputChange;var h=e.multiple,S=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var x=e.disabled,y=e.invalid;e.inputReadOnly;var I=e.direction;e.onOpenChange;var k=e.onMouseDown;e.required,e["aria-required"];var D=e.autoFocus,O=e.removeIcon,N=xt(e,hl),E=I==="rtl",R=o.useContext(Ke),F=R.prefixCls,H=o.useRef(),L=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:H.current,focus:function(W){var z;(z=L.current)===null||z===void 0||z.focus(W)},blur:function(){var W;(W=L.current)===null||W===void 0||W.blur()}}});var V=dr(N),Y=function(W){v([W])},j=function(W){var z=p.filter(function(U){return U&&!Te(u,i,U,W,C)});v(z),n||g()},w=sr(ne(ne({},e),{},{onChange:Y}),function(T){var W=T.valueTexts;return{value:W[0]||"",active:l}}),b=A(w,2),M=b[0],$=b[1],P=!!(a&&p.length&&!x),_=h?o.createElement(o.Fragment,null,o.createElement(gl,{prefixCls:F,value:p,onRemove:j,formatDate:$,maxTagCount:S,disabled:x,removeIcon:O,placeholder:s}),o.createElement("input",{className:"".concat(F,"-multiple-input"),value:p.map($).join(","),ref:L,readOnly:!0,autoFocus:D}),o.createElement(un,{type:"suffix",icon:r}),P&&o.createElement(zn,{icon:a,onClear:m})):o.createElement(Un,pe({ref:L},M(),{autoFocus:D,suffixIcon:r,clearIcon:P&&o.createElement(zn,{icon:a,onClear:m}),showActiveCls:!1}));return o.createElement("div",pe({},V,{className:xe(F,ce(ce(ce(ce(ce({},"".concat(F,"-multiple"),h),"".concat(F,"-focused"),l),"".concat(F,"-disabled"),x),"".concat(F,"-invalid"),y),"".concat(F,"-rtl"),E),d),style:c,ref:H,onClick:f,onMouseDown:function(W){var z,U=W.target;U!==((z=L.current)===null||z===void 0?void 0:z.inputElement)&&W.preventDefault(),k==null||k(W)}}),_)}var Cl=o.forwardRef(pl);function bl(e,t){var n=Ga(e),a=A(n,6),r=a[0],l=a[1],i=a[2],u=a[3],s=a[4],d=a[5],c=r,f=c.prefixCls,m=c.styles,C=c.classNames,p=c.order,v=c.defaultValue,g=c.value,h=c.needConfirm,S=c.onChange,x=c.onKeyDown,y=c.disabled,I=c.disabledDate,k=c.minDate,D=c.maxDate,O=c.defaultOpen,N=c.open,E=c.onOpenChange,R=c.locale,F=c.generateConfig,H=c.picker,L=c.showNow,V=c.showToday,Y=c.showTime,j=c.mode,w=c.onPanelChange,b=c.onCalendarChange,M=c.onOk,$=c.multiple,P=c.defaultPickerValue,_=c.pickerValue,T=c.onPickerValueChange,W=c.inputReadOnly,z=c.suffixIcon,U=c.removeIcon,B=c.onFocus,K=c.onBlur,G=c.presets,J=c.components,ee=c.cellRender,Z=c.dateRender,le=c.monthCellRender,ge=c.onClick,ae=Qa(t);function Ce(ie){return ie===null?null:$?ie:ie[0]}var be=ir(F,R,l),He=Xa(N,O,[y],E),Me=A(He,2),Pe=Me[0],ke=Me[1],Re=function(te,Ae,Xe){if(b){var Ut=ne({},Xe);delete Ut.range,b(Ce(te),Ce(Ae),Ut)}},X=function(te){M==null||M(Ce(te))},ve=rr(F,R,u,!1,p,v,g,Re,X),de=A(ve,5),we=de[0],Se=de[1],De=de[2],_e=de[3],Ee=de[4],ue=De(),ye=Ja([y]),q=A(ye,4),Q=q[0],me=q[1],Ie=q[2],Ve=q[3],Ge=function(te){me(!0),B==null||B(te,{})},Ue=function(te){me(!1),K==null||K(te,{})},je=et(H,{value:j}),ht=A(je,2),We=ht[0],qe=ht[1],Ze=We==="date"&&Y?"datetime":We,Be=lr(H,We,L,V),tt=S&&function(ie,te){S(Ce(ie),Ce(te))},st=or(ne(ne({},r),{},{onChange:tt}),we,Se,De,_e,[],u,Q,Pe,d),pt=A(st,2),nt=pt[1],Ct=Aa(ue,d),bt=A(Ct,2),at=bt[0],cn=bt[1],sn=o.useMemo(function(){return at.some(function(ie){return ie})},[at]),dn=function(te,Ae){if(T){var Xe=ne(ne({},Ae),{},{mode:Ae.mode[0]});delete Xe.range,T(te[0],Xe)}},At=er(F,R,ue,[We],Pe,Ve,l,!1,P,_,mt(Y==null?void 0:Y.defaultOpenValue),dn,k,D),Lt=A(At,2),fn=Lt[0],jt=Lt[1],St=Oe(function(ie,te,Ae){if(qe(te),w&&Ae!==!1){var Xe=ie||ue[ue.length-1];w(Xe,te)}}),Ye=function(){nt(De()),ke(!1,{force:!0})},vn=function(te){!y&&!ae.current.nativeElement.contains(document.activeElement)&&ae.current.focus(),ke(!0),ge==null||ge(te)},mn=function(){nt(null),ke(!1,{force:!0})},gn=o.useState(null),It=A(gn,2),hn=It[0],$t=It[1],pn=o.useState(null),Rt=A(pn,2),ze=Rt[0],dt=Rt[1],Bt=o.useMemo(function(){var ie=[ze].concat(Le(ue)).filter(function(te){return te});return $?ie:ie.slice(0,1)},[ue,ze,$]),Cn=o.useMemo(function(){return!$&&ze?[ze]:ue.filter(function(ie){return ie})},[ue,ze,$]);o.useEffect(function(){Pe||dt(null)},[Pe]);var Wt=Za(G),bn=function(te){dt(te),$t("preset")},zt=function(te){var Ae=$?be(De(),te):[te],Xe=nt(Ae);Xe&&!$&&ke(!1,{force:!0})},Sn=function(te){zt(te)},yn=function(te){dt(te),$t("cell")},xn=function(te){ke(!0),Ge(te)},kn=function(te){Ie("panel");var Ae=$?be(De(),te):[te];_e(Ae),!h&&!i&&l===Ze&&Ye()},wn=function(){ke(!1)},Mn=Xn(ee,Z,le),Pn=o.useMemo(function(){var ie=qn(r,!1),te=fa(r,[].concat(Le(Object.keys(ie)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ne(ne({},te),{},{multiple:r.multiple})},[r]),Dn=o.createElement(cr,pe({},Pn,{showNow:Be,showTime:Y,disabledDate:I,onFocus:xn,onBlur:Ue,picker:H,mode:We,internalMode:Ze,onPanelChange:St,format:s,value:ue,isInvalid:d,onChange:null,onSelect:kn,pickerValue:fn,defaultOpenValue:Y==null?void 0:Y.defaultOpenValue,onPickerValueChange:jt,hoverValue:Bt,onHover:yn,needConfirm:h,onSubmit:Ye,onOk:Ee,presets:Wt,onPresetHover:bn,onPresetSubmit:zt,onNow:Sn,cellRender:Mn})),In=function(te){_e(te)},$n=function(){Ie("input")},Rn=function(te){Ie("input"),ke(!0,{inherit:!0}),Ge(te)},En=function(te){ke(!1),Ue(te)},Nn=function(te,Ae){te.key==="Tab"&&Ye(),x==null||x(te,Ae)},Fn=o.useMemo(function(){return{prefixCls:f,locale:R,generateConfig:F,button:J.button,input:J.input}},[f,R,F,J.button,J.input]);return ut(function(){Pe&&Ve!==void 0&&St(null,H,!1)},[Pe,Ve,H]),ut(function(){var ie=Ie();!Pe&&ie==="input"&&(ke(!1),Ye()),!Pe&&i&&!h&&ie==="panel"&&(ke(!0),Ye())},[Pe]),o.createElement(Ke.Provider,{value:Fn},o.createElement(_a,pe({},Ya(r),{popupElement:Dn,popupStyle:m.popup,popupClassName:C.popup,visible:Pe,onClose:wn}),o.createElement(Cl,pe({},r,{ref:ae,suffixIcon:z,removeIcon:U,activeHelp:!!ze,allHelp:!!ze&&hn==="preset",focused:Q,onFocus:Rn,onBlur:En,onKeyDown:Nn,onSubmit:Ye,value:Cn,maskFormat:s,onChange:In,onInputChange:$n,internalPicker:l,format:u,inputReadOnly:W,disabled:y,open:Pe,onOpenChange:ke,onClick:vn,onClear:mn,invalid:sn,onInvalid:function(te){cn(te,0)}}))))}var Sl=o.forwardRef(bl);const Ln=(e,t)=>{const{componentCls:n,controlHeight:a}=e,r=t?`${n}-${t}`:"",l=lo(e);return[{[`${n}-multiple${r}`]:{paddingBlock:l.containerPadding,paddingInlineStart:l.basePadding,minHeight:a,[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:se(l.itemLineHeight)}}}]},yl=e=>{const{componentCls:t,calc:n,lineWidth:a}=e,r=Bn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),l=Bn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(a).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Ln(r,"small"),Ln(e),Ln(l,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},oo(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},xl=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:a,borderRadiusSM:r,motionDurationMid:l,cellHoverBg:i,lineWidth:u,lineType:s,colorPrimary:d,cellActiveWithRangeBg:c,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:C,colorFillSecondary:p}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:a,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:a,height:a,lineHeight:se(a),borderRadius:r,transition:`background ${l}`},[`&:hover:not(${t}-in-view), +const __vite__fileDeps=["./InfiniteScroll-Cg4lOtgH.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./index-NjHtWr7u.js","./MyApp-CmkiOnMb.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{at as kt,as as wt,aJ as br,r as o,o as xe,X as ce,h as Le,d as ne,j as A,$ as en,e as Vt,k as Oe,w as Je,Y as Sr,l as yr,q as ut,g as pe,z as xr,aK as qn,n as xt,c as kr,b as wr,Z as fa,F as Bn,D as se,a4 as tn,E as Mr,aL as Pr,H as na,a2 as Dr,T as Kn,aB as Ft,I as va,aM as ma,a7 as ga,aN as ha,aO as pa,aP as Ca,aQ as ba,aR as Sa,M as ya,N as xa,aC as Ir,au as ka,av as wa,aS as Qe,aA as oe,aF as $r}from"./index-BBriuzNA.js";import{d as $e}from"./dayjs.min-Qbr7UE_g.js";import{l as Rr,m as et,R as Ma,F as Er,n as Nr,s as Fr,p as Or,q as Tr,v as _r,w as Hr,x as aa,d as Vr,u as Yr,g as qt,y as ra,t as yt,z as Ar,A as Lr,b as ot,T as Ot,C as jr,k as On,i as Br,j as Wr}from"./MyApp-CmkiOnMb.js";import{b as Tn,m as zr,a as Ur,s as qr,f as Kr,c as _n}from"./messages-BLu7ptC2.js";import{f as Gr}from"./file-download-Dys_FsHc.js";import{V as Xr}from"./VideoWithMuted-CdYhYcjW.js";import{I as Qr}from"./index-BbXfI1Nu.js";import{i as oa,g as Pa}from"./PurePanel-yY9muMEs.js";import{i as Zr,g as Jr,a as eo,b as to,c as no,d as ao,u as Da,e as Ia,f as $a,T as ro}from"./index-Bumumc8Y.js";import{g as oo,a as lo,u as io}from"./index-CKsES7YN.js";import{L as uo}from"./index-B7udrguy.js";import{A as co}from"./index-CbmP82sr.js";import{I as la}from"./index-Dm20K0UU.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./row-C0Wk6t4-.js";import"./index-Dg6R6lHP.js";import"./addEventListener-w7NT04KM.js";var Ra={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(kt,function(){return function(n,a){a.prototype.weekday=function(r){var l=this.$locale().weekStart||0,i=this.$W,u=(i25){var c=i(this).startOf(a).add(1,a).date(d),f=i(this).endOf(n);if(c.isBefore(f))return 1}var m=i(this).startOf(a).date(d).startOf(n).subtract(1,"millisecond"),C=this.diff(m,n,!0);return C<0?i(this).startOf("week").week():Math.ceil(C)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(Na);var go=Na.exports;const ho=wt(go);var Fa={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(kt,function(){return function(n,a){a.prototype.weekYear=function(){var r=this.month(),l=this.week(),i=this.year();return l===1&&r===11?i+1:r===0&&l>=52?i-1:i}}})})(Fa);var po=Fa.exports;const Co=wt(po);var Oa={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(kt,function(){return function(n,a){var r=a.prototype,l=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return l.bind(this)(i);var d=this.$utils(),c=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),f==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),f==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return f}});return l.bind(this)(c)}}})})(Oa);var bo=Oa.exports;const So=wt(bo);var Ta={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(kt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,l=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(g){this[v]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var h=g.match(/([+-]|\d\d)/g),S=60*h[1]+(+h[2]||0);return S===0?0:h[0]==="+"?-S:S}(v)}],f=function(v){var g=u[v];return g&&(g.indexOf?g:g.s.concat(g.f))},m=function(v,g){var h,S=u.meridiem;if(S){for(var x=1;x<=24;x+=1)if(v.indexOf(S(x,0,g))>-1){h=x>12;break}}else h=v===(g?"pm":"PM");return h},C={A:[i,function(v){this.afternoon=m(v,!1)}],a:[i,function(v){this.afternoon=m(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[r,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[l,d("seconds")],ss:[l,d("seconds")],m:[l,d("minutes")],mm:[l,d("minutes")],H:[l,d("hours")],h:[l,d("hours")],HH:[l,d("hours")],hh:[l,d("hours")],D:[l,d("day")],DD:[r,d("day")],Do:[i,function(v){var g=u.ordinal,h=v.match(/\d+/);if(this.day=h[0],g)for(var S=1;S<=31;S+=1)g(S).replace(/\[|\]/g,"")===v&&(this.day=S)}],M:[l,d("month")],MM:[r,d("month")],MMM:[i,function(v){var g=f("months"),h=(f("monthsShort")||g.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if(h<1)throw new Error;this.month=h%12||h}],MMMM:[i,function(v){var g=f("months").indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(v){this.year=s(v)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function p(v){var g,h;g=v,h=u&&u.formats;for(var S=(v=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,E,R){var F=R&&R.toUpperCase();return E||h[R]||n[R]||h[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,L,V){return L||V.slice(1)})})).match(a),x=S.length,y=0;y-1)return new Date((j==="X"?1e3:1)*Y);var b=p(j)(Y),M=b.year,$=b.month,P=b.day,_=b.hours,T=b.minutes,W=b.seconds,z=b.milliseconds,U=b.zone,B=new Date,K=P||(M||$?1:B.getDate()),G=M||B.getFullYear(),J=0;M&&!$||(J=$>0?$-1:B.getMonth());var ee=_||0,Z=T||0,le=W||0,ge=z||0;return U?new Date(Date.UTC(G,J,K,ee,Z,le,ge+60*U.offset*1e3)):w?new Date(Date.UTC(G,J,K,ee,Z,le,ge)):new Date(G,J,K,ee,Z,le,ge)}catch{return new Date("")}}(I,O,k),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),R&&I!=this.format(O)&&(this.$d=new Date("")),u={}}else if(O instanceof Array)for(var H=O.length,L=1;L<=H;L+=1){D[1]=O[L-1];var V=h.apply(this,D);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}L===H&&(this.$d=new Date(""))}else x.call(this,y)}}})})(Ta);var yo=Ta.exports;const xo=wt(yo);$e.extend(xo);$e.extend(So);$e.extend(fo);$e.extend(mo);$e.extend(ho);$e.extend(Co);$e.extend(function(e,t){var n=t.prototype,a=n.format;n.format=function(l){var i=(l||"").replace("Wo","wo");return a.bind(this)(i)}});var ko={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ft=function(t){var n=ko[t];return n||t.split("_")[0]},ia=function(){br(!1,"Not match any format. Please help to fire a issue about this.")},wo={getNow:function(){return $e()},getFixedDate:function(t){return $e(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return $e().locale(ft(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(ft(t)).weekday(0)},getWeek:function(t,n){return n.locale(ft(t)).week()},getShortWeekDays:function(t){return $e().locale(ft(t)).localeData().weekdaysMin()},getShortMonths:function(t){return $e().locale(ft(t)).localeData().monthsShort()},format:function(t,n,a){return n.locale(ft(t)).format(a)},parse:function(t,n,a){for(var r=ft(t),l=0;l2&&arguments[2]!==void 0?arguments[2]:"0",a=String(e);a.length2&&arguments[2]!==void 0?arguments[2]:[],a=o.useState([!1,!1]),r=A(a,2),l=r[0],i=r[1],u=function(c,f){i(function(m){return Ht(m,f,c)})},s=o.useMemo(function(){return l.map(function(d,c){if(d)return!0;var f=e[c];return f?!!(!n[c]&&!f||f&&t(f,{activeIndex:c})):!1})},[e,l,t,n]);return[s,u]}function La(e,t,n,a,r){var l="",i=[];return e&&i.push(r?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),l=i.join(":"),a&&(l+=".SSS"),r&&(l+=" A"),l}function Po(e,t,n,a,r,l){var i=e.fieldDateTimeFormat,u=e.fieldDateFormat,s=e.fieldTimeFormat,d=e.fieldMonthFormat,c=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,C=e.yearFormat,p=e.cellYearFormat,v=e.cellQuarterFormat,g=e.dayFormat,h=e.cellDateFormat,S=La(t,n,a,r,l);return ne(ne({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(S),fieldDateFormat:u||"YYYY-MM-DD",fieldTimeFormat:s||S,fieldMonthFormat:d||"YYYY-MM",fieldYearFormat:c||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:C||"YYYY",cellYearFormat:p||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:h||g||"D"})}function ja(e,t){var n=t.showHour,a=t.showMinute,r=t.showSecond,l=t.showMillisecond,i=t.use12Hours;return en.useMemo(function(){return Po(e,n,a,r,l,i)},[e,n,a,r,l,i])}function Et(e,t,n){return n??t.some(function(a){return e.includes(a)})}var Do=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Io(e){var t=an(e,Do),n=e.format,a=e.picker,r=null;return n&&(r=n,Array.isArray(r)&&(r=r[0]),r=Vt(r)==="object"?r.format:r),a==="time"&&(t.format=r),[t,r]}function $o(e){return e&&typeof e=="string"}function Ba(e,t,n,a){return[e,t,n,a].some(function(r){return r!==void 0})}function Wa(e,t,n,a,r){var l=t,i=n,u=a;if(!e&&!l&&!i&&!u&&!r)l=!0,i=!0,u=!0;else if(e){var s,d,c,f=[l,i,u].some(function(p){return p===!1}),m=[l,i,u].some(function(p){return p===!0}),C=f?!0:!m;l=(s=l)!==null&&s!==void 0?s:C,i=(d=i)!==null&&d!==void 0?d:C,u=(c=u)!==null&&c!==void 0?c:C}return[l,i,u,r]}function za(e){var t=e.showTime,n=Io(e),a=A(n,2),r=a[0],l=a[1],i=t&&Vt(t)==="object"?t:{},u=ne(ne({defaultOpenValue:i.defaultOpenValue||i.defaultValue},r),i),s=u.showMillisecond,d=u.showHour,c=u.showMinute,f=u.showSecond,m=Ba(d,c,f,s),C=Wa(m,d,c,f,s),p=A(C,3);return d=p[0],c=p[1],f=p[2],[u,ne(ne({},u),{},{showHour:d,showMinute:c,showSecond:f,showMillisecond:s}),u.format,l]}function Ua(e,t,n,a,r){var l=e==="time";if(e==="datetime"||l){for(var i=a,u=Ha(e,r,null),s=u,d=[t,n],c=0;c1&&(i=t.addDate(i,-7)),i}function Ne(e,t){var n=t.generateConfig,a=t.locale,r=t.format;return e?typeof r=="function"?r(e):n.locale.format(a.locale,e,r):""}function nn(e,t,n){var a=t,r=["getHour","getMinute","getSecond","getMillisecond"],l=["setHour","setMinute","setSecond","setMillisecond"];return l.forEach(function(i,u){n?a=e[i](a,e[r[u]](n)):a=e[i](a,0)}),a}function Fo(e,t,n,a,r){var l=Oe(function(i,u){return!!(n&&n(i,u)||a&&e.isAfter(a,i)&&!Te(e,t,a,i,u.type)||r&&e.isAfter(i,r)&&!Te(e,t,r,i,u.type))});return l}function Oo(e,t,n){return o.useMemo(function(){var a=Ha(e,t,n),r=mt(a),l=r[0],i=Vt(l)==="object"&&l.type==="mask"?l.format:null;return[r.map(function(u){return typeof u=="string"||typeof u=="function"?u:u.format}),i]},[e,t,n])}function To(e,t,n){return typeof e[0]=="function"||n?!0:t}function _o(e,t,n,a){var r=Oe(function(l,i){var u=ne({type:t},i);if(delete u.activeIndex,!e.isValidate(l)||n&&n(l,u))return!0;if((t==="date"||t==="time")&&a){var s,d=i&&i.activeIndex===1?"end":"start",c=((s=a.disabledTime)===null||s===void 0?void 0:s.call(a,l,d,{from:u.from}))||{},f=c.disabledHours,m=c.disabledMinutes,C=c.disabledSeconds,p=c.disabledMilliseconds,v=a.disabledHours,g=a.disabledMinutes,h=a.disabledSeconds,S=f||v,x=m||g,y=C||h,I=e.getHour(l),k=e.getMinute(l),D=e.getSecond(l),O=e.getMillisecond(l);if(S&&S().includes(I)||x&&x(I).includes(k)||y&&y(I,k).includes(D)||p&&p(I,k,D).includes(O))return!0}return!1});return r}function Gt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=o.useMemo(function(){var a=e&&mt(e);return t&&a&&(a[1]=a[1]||a[0]),a},[e,t]);return n}function Ga(e,t){var n=e.generateConfig,a=e.locale,r=e.picker,l=r===void 0?"date":r,i=e.prefixCls,u=i===void 0?"rc-picker":i,s=e.styles,d=s===void 0?{}:s,c=e.classNames,f=c===void 0?{}:c,m=e.order,C=m===void 0?!0:m,p=e.components,v=p===void 0?{}:p,g=e.inputRender,h=e.allowClear,S=e.clearIcon,x=e.needConfirm,y=e.multiple,I=e.format,k=e.inputReadOnly,D=e.disabledDate,O=e.minDate,N=e.maxDate,E=e.showTime,R=e.value,F=e.defaultValue,H=e.pickerValue,L=e.defaultPickerValue,V=Gt(R),Y=Gt(F),j=Gt(H),w=Gt(L),b=l==="date"&&E?"datetime":l,M=b==="time"||b==="datetime",$=M||y,P=x??M,_=za(e),T=A(_,4),W=T[0],z=T[1],U=T[2],B=T[3],K=ja(a,z),G=o.useMemo(function(){return Ua(b,U,B,W,K)},[b,U,B,W,K]),J=o.useMemo(function(){return ne(ne({},e),{},{prefixCls:u,locale:K,picker:l,styles:d,classNames:f,order:C,components:ne({input:g},v),clearIcon:Ro(u,h,S),showTime:G,value:V,defaultValue:Y,pickerValue:j,defaultPickerValue:w},t==null?void 0:t())},[e]),ee=Oo(b,K,I),Z=A(ee,2),le=Z[0],ge=Z[1],ae=To(le,k,y),Ce=Fo(n,a,D,O,N),be=_o(n,l,Ce,G),He=o.useMemo(function(){return ne(ne({},J),{},{needConfirm:P,inputReadOnly:ae,disabledDate:Ce})},[J,P,ae,Ce]);return[He,b,$,le,ge,be]}function Ho(e,t,n){var a=et(t,{value:e}),r=A(a,2),l=r[0],i=r[1],u=en.useRef(e),s=en.useRef(),d=function(){Je.cancel(s.current)},c=Oe(function(){i(u.current),n&&l!==u.current&&n(u.current)}),f=Oe(function(m,C){d(),u.current=m,m||C?c():s.current=Je(c)});return en.useEffect(function(){return d},[]),[l,f]}function Xa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3?arguments[3]:void 0,r=n.every(function(c){return c})?!1:e,l=Ho(r,t||!1,a),i=A(l,2),u=i[0],s=i[1];function d(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||u)&&s(c,f.force)}return[u,d]}function Qa(e){var t=o.useRef();return o.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(r){var l;(l=t.current)===null||l===void 0||l.focus(r)},blur:function(){var r;(r=t.current)===null||r===void 0||r.blur()}}}),t}function Za(e,t){return o.useMemo(function(){return e||(t?(Sr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var a=A(n,2),r=a[0],l=a[1];return{label:r,value:l}})):[])},[e,t])}function Jn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=o.useRef(t);a.current=t,yr(function(){if(e)a.current(e);else{var r=Je(function(){a.current(e)},n);return function(){Je.cancel(r)}}},[e])}function Ja(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=o.useState(0),a=A(n,2),r=a[0],l=a[1],i=o.useState(!1),u=A(i,2),s=u[0],d=u[1],c=o.useRef([]),f=o.useRef(null),m=function(g){d(g)},C=function(g){return g&&(f.current=g),f.current},p=function(g){var h=c.current,S=new Set(h.filter(function(y){return g[y]||t[y]})),x=h[h.length-1]===0?1:0;return S.size>=2||e[x]?null:x};return Jn(s,function(){s||(c.current=[])}),o.useEffect(function(){s&&c.current.push(r)},[s,r]),[s,m,C,r,l,p,c.current]}function Vo(e,t,n,a,r,l){var i=n[n.length-1],u=function(d,c){var f=A(e,2),m=f[0],C=f[1],p=ne(ne({},c),{},{from:Va(e,n)});return i===1&&t[0]&&m&&!Te(a,r,m,d,p.type)&&a.isAfter(m,d)||i===0&&t[1]&&C&&!Te(a,r,C,d,p.type)&&a.isAfter(d,C)?!0:l==null?void 0:l(d,p)};return u}function _t(e,t,n,a){switch(t){case"date":case"week":return e.addMonth(n,a);case"month":case"quarter":return e.addYear(n,a);case"year":return e.addYear(n,a*10);case"decade":return e.addYear(n,a*100);default:return n}}var Vn=[];function er(e,t,n,a,r,l,i,u){var s=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Vn,d=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Vn,c=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Vn,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,C=arguments.length>13?arguments[13]:void 0,p=i==="time",v=l||0,g=function(j){var w=e.getNow();return p&&(w=nn(e,w)),s[j]||n[j]||w},h=A(d,2),S=h[0],x=h[1],y=et(function(){return g(0)},{value:S}),I=A(y,2),k=I[0],D=I[1],O=et(function(){return g(1)},{value:x}),N=A(O,2),E=N[0],R=N[1],F=o.useMemo(function(){var Y=[k,E][v];return p?Y:nn(e,Y,c[v])},[p,k,E,v,e,c]),H=function(j){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",b=[D,R][v];b(j);var M=[k,E];M[v]=j,f&&(!Te(e,t,k,M[0],i)||!Te(e,t,E,M[1],i))&&f(M,{source:w,range:v===1?"end":"start",mode:a})},L=function(j,w){if(u){var b={date:"month",week:"month",month:"year",quarter:"year"},M=b[i];if(M&&!Te(e,t,j,w,M))return _t(e,i,w,-1);if(i==="year"){var $=Math.floor(e.getYear(j)/10),P=Math.floor(e.getYear(w)/10);if($!==P)return _t(e,i,w,-1)}}return w},V=o.useRef(null);return ut(function(){if(r&&!s[v]){var Y=p?null:e.getNow();if(V.current!==null&&V.current!==v?Y=[k,E][v^1]:n[v]?Y=v===0?n[0]:L(n[0],n[1]):n[v^1]&&(Y=n[v^1]),Y){m&&e.isAfter(m,Y)&&(Y=m);var j=u?_t(e,i,Y,1):Y;C&&e.isAfter(j,C)&&(Y=u?_t(e,i,C,-1):C),H(Y,"reset")}}},[r,v,n[v]]),o.useEffect(function(){r?V.current=v:V.current=null},[r,v]),ut(function(){r&&s&&s[v]&&H(s[v],"reset")},[r,v]),[F,H]}function tr(e,t){var n=o.useRef(e),a=o.useState({}),r=A(a,2),l=r[1],i=function(d){return d&&t!==void 0?t:n.current},u=function(d){n.current=d,l({})};return[i,u,i(!0)]}var Yo=[];function nr(e,t,n){var a=function(i){return i.map(function(u){return Ne(u,{generateConfig:e,locale:t,format:n[0]})})},r=function(i,u){for(var s=Math.max(i.length,u.length),d=-1,c=0;c2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],u=n>=1?n|0:1,s=e;s<=t;s+=u){var d=r.includes(s);(!d||!a)&&i.push({label:Gn(s,l),value:s,disabled:d})}return i}function ea(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=t||{},r=a.use12Hours,l=a.hourStep,i=l===void 0?1:l,u=a.minuteStep,s=u===void 0?1:u,d=a.secondStep,c=d===void 0?1:d,f=a.millisecondStep,m=f===void 0?100:f,C=a.hideDisabledOptions,p=a.disabledTime,v=a.disabledHours,g=a.disabledMinutes,h=a.disabledSeconds,S=o.useMemo(function(){return n||e.getNow()},[n,e]),x=o.useCallback(function(w){var b=(p==null?void 0:p(w))||{};return[b.disabledHours||v||Xt,b.disabledMinutes||g||Xt,b.disabledSeconds||h||Xt,b.disabledMilliseconds||Xt]},[p,v,g,h]),y=o.useMemo(function(){return x(S)},[S,x]),I=A(y,4),k=I[0],D=I[1],O=I[2],N=I[3],E=o.useCallback(function(w,b,M,$){var P=Qt(0,23,i,C,w()),_=r?P.map(function(U){return ne(ne({},U),{},{label:Gn(U.value%12||12,2)})}):P,T=function(B){return Qt(0,59,s,C,b(B))},W=function(B,K){return Qt(0,59,c,C,M(B,K))},z=function(B,K,G){return Qt(0,999,m,C,$(B,K,G),3)};return[_,T,W,z]},[C,i,r,m,s,c]),R=o.useMemo(function(){return E(k,D,O,N)},[E,k,D,O,N]),F=A(R,4),H=F[0],L=F[1],V=F[2],Y=F[3],j=function(b,M){var $=function(){return H},P=L,_=V,T=Y;if(M){var W=x(M),z=A(W,4),U=z[0],B=z[1],K=z[2],G=z[3],J=E(U,B,K,G),ee=A(J,4),Z=ee[0],le=ee[1],ge=ee[2],ae=ee[3];$=function(){return Z},P=le,_=ge,T=ae}var Ce=Lo(b,$,P,_,T,e);return Ce};return[j,H,L,V,Y]}function jo(e){var t=e.mode,n=e.internalMode,a=e.renderExtraFooter,r=e.showNow,l=e.showTime,i=e.onSubmit,u=e.onNow,s=e.invalid,d=e.needConfirm,c=e.generateConfig,f=e.disabledDate,m=o.useContext(Ke),C=m.prefixCls,p=m.locale,v=m.button,g=v===void 0?"button":v,h=c.getNow(),S=ea(c,l,h),x=A(S,1),y=x[0],I=a==null?void 0:a(t),k=f(h,{type:t}),D=function(){if(!k){var L=y(h);u(L)}},O="".concat(C,"-now"),N="".concat(O,"-btn"),E=r&&o.createElement("li",{className:O},o.createElement("a",{className:xe(N,k&&"".concat(N,"-disabled")),"aria-disabled":k,onClick:D},n==="date"?p.today:p.now)),R=d&&o.createElement("li",{className:"".concat(C,"-ok")},o.createElement(g,{disabled:s,onClick:i},p.ok)),F=(E||R)&&o.createElement("ul",{className:"".concat(C,"-ranges")},E,R);return!I&&!F?null:o.createElement("div",{className:"".concat(C,"-footer")},I&&o.createElement("div",{className:"".concat(C,"-footer-extra")},I),F)}function ir(e,t,n){function a(r,l){var i=r.findIndex(function(s){return Te(e,t,s,l,n)});if(i===-1)return[].concat(Le(r),[l]);var u=Le(r);return u.splice(i,1),u}return a}var gt=o.createContext(null);function on(){return o.useContext(gt)}function Mt(e,t){var n=e.prefixCls,a=e.generateConfig,r=e.locale,l=e.disabledDate,i=e.minDate,u=e.maxDate,s=e.cellRender,d=e.hoverValue,c=e.hoverRangeValue,f=e.onHover,m=e.values,C=e.pickerValue,p=e.onSelect,v=e.prevIcon,g=e.nextIcon,h=e.superPrevIcon,S=e.superNextIcon,x=a.getNow(),y={now:x,values:m,pickerValue:C,prefixCls:n,disabledDate:l,minDate:i,maxDate:u,cellRender:s,hoverValue:d,hoverRangeValue:c,onHover:f,locale:r,generateConfig:a,onSelect:p,panelType:t,prevIcon:v,nextIcon:g,superPrevIcon:h,superNextIcon:S};return[y,x]}var it=o.createContext({});function Yt(e){for(var t=e.rowNum,n=e.colNum,a=e.baseDate,r=e.getCellDate,l=e.prefixColumn,i=e.rowClassName,u=e.titleFormat,s=e.getCellText,d=e.getCellClassName,c=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,C=e.disabledDate,p=on(),v=p.prefixCls,g=p.panelType,h=p.now,S=p.disabledDate,x=p.cellRender,y=p.onHover,I=p.hoverValue,k=p.hoverRangeValue,D=p.generateConfig,O=p.values,N=p.locale,E=p.onSelect,R=C||S,F="".concat(v,"-cell"),H=o.useContext(it),L=H.onCellDblClick,V=function(_){return O.some(function(T){return T&&Te(D,N,_,T,g)})},Y=[],j=0;j1&&arguments[1]!==void 0?arguments[1]:!1;ke(Q),g==null||g(Q),me&&Re(Q)},ve=function(Q,me){K(Q),me&&X(me),Re(me,Q)},de=function(Q){if(be(Q),X(Q),B!==y){var me=["decade","year"],Ie=[].concat(me,["month"]),Ve={quarter:[].concat(me,["quarter"]),week:[].concat(Le(Ie),["week"]),date:[].concat(Le(Ie),["date"])},Ge=Ve[y]||Ie,Ue=Ge.indexOf(B),je=Ge[Ue+1];je&&ve(je,Q)}},we=o.useMemo(function(){var q,Q;if(Array.isArray(D)){var me=A(D,2);q=me[0],Q=me[1]}else q=D;return!q&&!Q?null:(q=q||Q,Q=Q||q,r.isAfter(q,Q)?[Q,q]:[q,Q])},[D,r]),Se=Xn(O,N,E),De=F[G]||Jo[G]||ln,_e=o.useContext(it),Ee=o.useMemo(function(){return ne(ne({},_e),{},{hideHeader:H})},[_e,H]),ue="".concat(L,"-panel"),ye=an(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return o.createElement(it.Provider,{value:Ee},o.createElement("div",{ref:V,tabIndex:s,className:xe(ue,ce({},"".concat(ue,"-rtl"),l==="rtl"))},o.createElement(De,pe({},ye,{showTime:T,prefixCls:L,locale:P,generateConfig:r,onModeChange:ve,pickerValue:Pe,onPickerValueChange:function(Q){X(Q,!0)},value:ae[0],onSelect:de,values:ae,cellRender:Se,hoverRangeValue:we,hoverValue:k}))))}var Yn=o.memo(o.forwardRef(el));function tl(e){var t=e.picker,n=e.multiplePanel,a=e.pickerValue,r=e.onPickerValueChange,l=e.needConfirm,i=e.onSubmit,u=e.range,s=e.hoverValue,d=o.useContext(Ke),c=d.prefixCls,f=d.generateConfig,m=o.useCallback(function(S,x){return _t(f,t,S,x)},[f,t]),C=o.useMemo(function(){return m(a,1)},[a,m]),p=function(x){r(m(x,-1))},v={onCellDblClick:function(){l&&i()}},g=t==="time",h=ne(ne({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return u?h.hoverRangeValue=s:h.hoverValue=s,n?o.createElement("div",{className:"".concat(c,"-panels")},o.createElement(it.Provider,{value:ne(ne({},v),{},{hideNext:!0})},o.createElement(Yn,h)),o.createElement(it.Provider,{value:ne(ne({},v),{},{hidePrev:!0})},o.createElement(Yn,pe({},h,{pickerValue:C,onPickerValueChange:p})))):o.createElement(it.Provider,{value:ne({},v)},o.createElement(Yn,h))}function ca(e){return typeof e=="function"?e():e}function nl(e){var t=e.prefixCls,n=e.presets,a=e.onClick,r=e.onHover;return n.length?o.createElement("div",{className:"".concat(t,"-presets")},o.createElement("ul",null,n.map(function(l,i){var u=l.label,s=l.value;return o.createElement("li",{key:i,onClick:function(){a(ca(s))},onMouseEnter:function(){r(ca(s))},onMouseLeave:function(){r(null)}},u)}))):null}function cr(e){var t=e.panelRender,n=e.internalMode,a=e.picker,r=e.showNow,l=e.range,i=e.multiple,u=e.activeOffset,s=u===void 0?0:u,d=e.presets,c=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,C=e.onBlur,p=e.direction,v=e.value,g=e.onSelect,h=e.isInvalid,S=e.defaultOpenValue,x=e.onOk,y=e.onSubmit,I=o.useContext(Ke),k=I.prefixCls,D="".concat(k,"-panel"),O=p==="rtl",N=o.useRef(null),E=o.useRef(null),R=o.useState(0),F=A(R,2),H=F[0],L=F[1],V=o.useState(0),Y=A(V,2),j=Y[0],w=Y[1],b=function(Z){Z.offsetWidth&&L(Z.offsetWidth)};o.useEffect(function(){if(l){var ee,Z=((ee=N.current)===null||ee===void 0?void 0:ee.offsetWidth)||0,le=H-Z;s<=le?w(0):w(s+Z-H)}},[H,s,l]);function M(ee){return ee.filter(function(Z){return Z})}var $=o.useMemo(function(){return M(mt(v))},[v]),P=a==="time"&&!$.length,_=o.useMemo(function(){return P?M([S]):$},[P,$,S]),T=P?S:$,W=o.useMemo(function(){return _.length?_.some(function(ee){return h(ee)}):!0},[_,h]),z=function(){P&&g(S),x(),y()},U=o.createElement("div",{className:"".concat(k,"-panel-layout")},o.createElement(nl,{prefixCls:k,presets:d,onClick:f,onHover:c}),o.createElement("div",null,o.createElement(tl,pe({},e,{value:T})),o.createElement(jo,pe({},e,{showNow:i?!1:r,invalid:W,onSubmit:z}))));t&&(U=t(U));var B="".concat(D,"-container"),K="marginLeft",G="marginRight",J=o.createElement("div",{tabIndex:-1,className:xe(B,"".concat(k,"-").concat(n,"-panel-container")),style:ce(ce({},O?G:K,j),O?K:G,"auto"),onFocus:m,onBlur:C},U);return l&&(J=o.createElement("div",{ref:E,className:xe("".concat(k,"-range-wrapper"),"".concat(k,"-").concat(a,"-range-wrapper"))},o.createElement("div",{ref:N,className:"".concat(k,"-range-arrow"),style:ce({},O?"right":"left",s)}),o.createElement(Ma,{onResize:b},J))),J}function sr(e,t){var n=e.format,a=e.maskFormat,r=e.generateConfig,l=e.locale,i=e.preserveInvalidOnBlur,u=e.inputReadOnly,s=e.required,d=e["aria-required"],c=e.onSubmit,f=e.onFocus,m=e.onBlur,C=e.onInputChange,p=e.onInvalid,v=e.open,g=e.onOpenChange,h=e.onKeyDown,S=e.onChange,x=e.activeHelp,y=e.name,I=e.autoComplete,k=e.id,D=e.value,O=e.invalid,N=e.placeholder,E=e.disabled,R=e.activeIndex,F=e.allHelp,H=e.picker,L=function(P,_){var T=r.locale.parse(l.locale,P,[_]);return T&&r.isValidate(T)?T:null},V=n[0],Y=o.useCallback(function($){return Ne($,{locale:l,format:V,generateConfig:r})},[l,r,V]),j=o.useMemo(function(){return D.map(Y)},[D,Y]),w=o.useMemo(function(){var $=H==="time"?8:10,P=typeof V=="function"?V(r.getNow()).length:V.length;return Math.max($,P)+2},[V,H,r]),b=function(P){for(var _=0;_=u&&n<=s)return l;var d=Math.min(Math.abs(n-u),Math.abs(n-s));d0?tt:st));var bt=Ct+qe,at=st-tt+1;return String(tt+(at+bt-tt)%at)};switch(Q){case"Backspace":case"Delete":me="",Ie=Ge;break;case"ArrowLeft":me="",Ue(-1);break;case"ArrowRight":me="",Ue(1);break;case"ArrowUp":me="",Ie=je(1);break;case"ArrowDown":me="",Ie=je(-1);break;default:isNaN(Number(Q))||(me=$+Q,Ie=me);break}if(me!==null&&(P(me),me.length>=Ve&&(Ue(1),P(""))),Ie!==null){var ht=J.slice(0,Ce)+Gn(Ie,Ve)+J.slice(be);Me(ht.slice(0,i.length))}G({})},Ee=o.useRef();ut(function(){if(!(!H||!i||Re.current)){if(!le.match(J)){Me(i);return}return Z.current.setSelectionRange(Ce,be),Ee.current=Je(function(){Z.current.setSelectionRange(Ce,be)}),function(){Je.cancel(Ee.current)}}},[le,i,H,J,W,Ce,be,K,Me]);var ue=i?{onFocus:de,onBlur:Se,onKeyDown:_e,onMouseDown:X,onMouseUp:ve,onPaste:ke}:{};return o.createElement("div",{ref:ee,className:xe(E,ce(ce({},"".concat(E,"-active"),n&&r),"".concat(E,"-placeholder"),d))},o.createElement(N,pe({ref:Z,"aria-invalid":v,autoComplete:"off"},h,{onKeyDown:De,onBlur:we},ue,{value:J,onChange:Pe})),o.createElement(un,{type:"suffix",icon:l}),g)}),cl=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],sl=["index"];function dl(e,t){var n=e.id,a=e.clearIcon,r=e.suffixIcon,l=e.separator,i=l===void 0?"~":l,u=e.activeIndex;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,c=e.className,f=e.style,m=e.onClick,C=e.onClear,p=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,g=e.invalid;e.inputReadOnly;var h=e.direction;e.onOpenChange;var S=e.onActiveOffset,x=e.onMouseDown;e.required,e["aria-required"];var y=e.autoFocus,I=xt(e,cl),k=h==="rtl",D=o.useContext(Ke),O=D.prefixCls,N=o.useMemo(function(){if(typeof n=="string")return[n];var B=n||{};return[B.start,B.end]},[n]),E=o.useRef(),R=o.useRef(),F=o.useRef(),H=function(K){var G;return(G=[R,F][K])===null||G===void 0?void 0:G.current};o.useImperativeHandle(t,function(){return{nativeElement:E.current,focus:function(K){if(Vt(K)==="object"){var G,J=K||{},ee=J.index,Z=ee===void 0?0:ee,le=xt(J,sl);(G=H(Z))===null||G===void 0||G.focus(le)}else{var ge;(ge=H(K??0))===null||ge===void 0||ge.focus()}},blur:function(){var K,G;(K=H(0))===null||K===void 0||K.blur(),(G=H(1))===null||G===void 0||G.blur()}}});var L=dr(I),V=o.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),Y=sr(ne(ne({},e),{},{id:N,placeholder:V})),j=A(Y,1),w=j[0],b=k?"right":"left",M=o.useState(ce({position:"absolute",width:0},b,0)),$=A(M,2),P=$[0],_=$[1],T=Oe(function(){var B=H(u);if(B){var K=B.nativeElement,G=K.offsetWidth,J=K.offsetLeft,ee=K.offsetParent,Z=J;if(k){var le=ee,ge=getComputedStyle(le);Z=le.offsetWidth-parseFloat(ge.borderRightWidth)-parseFloat(ge.borderLeftWidth)-J-G}_(function(ae){return ne(ne({},ae),{},ce({width:G},b,Z))}),S(u===0?0:Z)}});o.useEffect(function(){T()},[u]);var W=a&&(p[0]&&!v[0]||p[1]&&!v[1]),z=y&&!v[0],U=y&&!z&&!v[1];return o.createElement(Ma,{onResize:T},o.createElement("div",pe({},L,{className:xe(O,"".concat(O,"-range"),ce(ce(ce(ce({},"".concat(O,"-focused"),s),"".concat(O,"-disabled"),v.every(function(B){return B})),"".concat(O,"-invalid"),g.some(function(B){return B})),"".concat(O,"-rtl"),k),c),style:f,ref:E,onClick:m,onMouseDown:function(K){var G=K.target;G!==R.current.inputElement&&G!==F.current.inputElement&&K.preventDefault(),x==null||x(K)}}),o.createElement(Un,pe({ref:R},w(0),{autoFocus:z,"date-range":"start"})),o.createElement("div",{className:"".concat(O,"-range-separator")},i),o.createElement(Un,pe({ref:F},w(1),{autoFocus:U,"date-range":"end"})),o.createElement("div",{className:"".concat(O,"-active-bar"),style:P}),o.createElement(un,{type:"suffix",icon:r}),W&&o.createElement(zn,{icon:a,onClear:C})))}var fl=o.forwardRef(dl);function da(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Jt(e){return e===1?"end":"start"}function vl(e,t){var n=Ga(e,function(){var he=e.disabled,re=e.allowEmpty,fe=da(he,!1),Fe=da(re,!1);return{disabled:fe,allowEmpty:Fe}}),a=A(n,6),r=a[0],l=a[1],i=a[2],u=a[3],s=a[4],d=a[5],c=r.prefixCls,f=r.styles,m=r.classNames,C=r.defaultValue,p=r.value,v=r.needConfirm,g=r.onKeyDown,h=r.disabled,S=r.allowEmpty,x=r.disabledDate,y=r.minDate,I=r.maxDate,k=r.defaultOpen,D=r.open,O=r.onOpenChange,N=r.locale,E=r.generateConfig,R=r.picker,F=r.showNow,H=r.showToday,L=r.showTime,V=r.mode,Y=r.onPanelChange,j=r.onCalendarChange,w=r.onOk,b=r.defaultPickerValue,M=r.pickerValue,$=r.onPickerValueChange,P=r.inputReadOnly,_=r.suffixIcon,T=r.onFocus,W=r.onBlur,z=r.presets,U=r.ranges,B=r.components,K=r.cellRender,G=r.dateRender,J=r.monthCellRender,ee=r.onClick,Z=Qa(t),le=Xa(D,k,h,O),ge=A(le,2),ae=ge[0],Ce=ge[1],be=function(re,fe){(h.some(function(Fe){return!Fe})||!re)&&Ce(re,fe)},He=rr(E,N,u,!0,!1,C,p,j,w),Me=A(He,5),Pe=Me[0],ke=Me[1],Re=Me[2],X=Me[3],ve=Me[4],de=Re(),we=Ja(h,S),Se=A(we,7),De=Se[0],_e=Se[1],Ee=Se[2],ue=Se[3],ye=Se[4],q=Se[5],Q=Se[6],me=function(re,fe){_e(!0),T==null||T(re,{range:Jt(fe??ue)})},Ie=function(re,fe){_e(!1),W==null||W(re,{range:Jt(fe??ue)})},Ve=o.useMemo(function(){if(!L)return null;var he=L.disabledTime,re=he?function(fe){var Fe=Jt(ue),rt=Va(de,Q,ue);return he(fe,Fe,{from:rt})}:void 0;return ne(ne({},L),{},{disabledTime:re})},[L,ue,de,Q]),Ge=et([R,R],{value:V}),Ue=A(Ge,2),je=Ue[0],ht=Ue[1],We=je[ue]||R,qe=We==="date"&&Ve?"datetime":We,Ze=qe===R&&qe!=="time",Be=lr(R,We,F,H,!0),tt=or(r,Pe,ke,Re,X,h,u,De,ae,d),st=A(tt,2),pt=st[0],nt=st[1],Ct=Vo(de,h,Q,E,N,x),bt=Aa(de,d,S),at=A(bt,2),cn=at[0],sn=at[1],dn=er(E,N,de,je,ae,ue,l,Ze,b,M,Ve==null?void 0:Ve.defaultOpenValue,$,y,I),At=A(dn,2),Lt=At[0],fn=At[1],jt=Oe(function(he,re,fe){var Fe=Ht(je,ue,re);if((Fe[0]!==je[0]||Fe[1]!==je[1])&&ht(Fe),Y&&fe!==!1){var rt=Le(de);he&&(rt[ue]=he),Y(rt,Fe)}}),St=function(re,fe){return Ht(de,fe,re)},Ye=function(re,fe){var Fe=de;re&&(Fe=St(re,ue));var rt=q(Fe);X(Fe),pt(ue,rt===null),rt===null?be(!1,{force:!0}):fe||Z.current.focus({index:rt})},vn=function(re){if(!Z.current.nativeElement.contains(document.activeElement)){var fe=h.findIndex(function(Fe){return!Fe});fe>=0&&Z.current.focus({index:fe})}be(!0),ee==null||ee(re)},mn=function(){nt(null),be(!1,{force:!0})},gn=o.useState(null),It=A(gn,2),hn=It[0],$t=It[1],pn=o.useState(null),Rt=A(pn,2),ze=Rt[0],dt=Rt[1],Bt=o.useMemo(function(){return ze||de},[de,ze]);o.useEffect(function(){ae||dt(null)},[ae]);var Cn=o.useState(0),Wt=A(Cn,2),bn=Wt[0],zt=Wt[1],Sn=Za(z,U),yn=function(re){dt(re),$t("preset")},xn=function(re){var fe=nt(re);fe&&be(!1,{force:!0})},kn=function(re){Ye(re)},wn=function(re){dt(re?St(re,ue):null),$t("cell")},Mn=function(re){be(!0),me(re)},Pn=function(re){Ee("panel");var fe=Ht(de,ue,re);X(fe),!v&&!i&&l===qe&&Ye(re)},Dn=function(){be(!1)},In=Xn(K,G,J,Jt(ue)),$n=de[ue]||null,Rn=Oe(function(he){return d(he,{activeIndex:ue})}),En=o.useMemo(function(){var he=qn(r,!1),re=fa(r,[].concat(Le(Object.keys(he)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return re},[r]),Nn=o.createElement(cr,pe({},En,{showNow:Be,showTime:Ve,range:!0,multiplePanel:Ze,activeOffset:bn,disabledDate:Ct,onFocus:Mn,onBlur:Ie,picker:R,mode:We,internalMode:qe,onPanelChange:jt,format:s,value:$n,isInvalid:Rn,onChange:null,onSelect:Pn,pickerValue:Lt,defaultOpenValue:mt(L==null?void 0:L.defaultOpenValue)[ue],onPickerValueChange:fn,hoverValue:Bt,onHover:wn,needConfirm:v,onSubmit:Ye,onOk:ve,presets:Sn,onPresetHover:yn,onPresetSubmit:xn,onNow:kn,cellRender:In})),Fn=function(re,fe){var Fe=St(re,fe);X(Fe)},ie=function(){Ee("input")},te=function(re,fe){Ee("input"),be(!0,{inherit:!0}),ye(fe),me(re,fe)},Ae=function(re,fe){be(!1),Ie(re,fe)},Xe=function(re,fe){re.key==="Tab"&&Ye(null,!0),g==null||g(re,fe)},Ut=o.useMemo(function(){return{prefixCls:c,locale:N,generateConfig:E,button:B.button,input:B.input}},[c,N,E,B.button,B.input]);return ut(function(){ae&&ue!==void 0&&jt(null,R,!1)},[ae,ue,R]),ut(function(){var he=Ee();!ae&&he==="input"&&(be(!1),Ye(null,!0)),!ae&&i&&!v&&he==="panel"&&(be(!0),Ye())},[ae]),o.createElement(Ke.Provider,{value:Ut},o.createElement(_a,pe({},Ya(r),{popupElement:Nn,popupStyle:f.popup,popupClassName:m.popup,visible:ae,onClose:Dn,range:!0}),o.createElement(fl,pe({},r,{ref:Z,suffixIcon:_,activeIndex:De||ae?ue:null,activeHelp:!!ze,allHelp:!!ze&&hn==="preset",focused:De,onFocus:te,onBlur:Ae,onKeyDown:Xe,onSubmit:Ye,value:Bt,maskFormat:s,onChange:Fn,onInputChange:ie,format:u,inputReadOnly:P,disabled:h,open:ae,onOpenChange:be,onClick:vn,onClear:mn,invalid:cn,onInvalid:sn,onActiveOffset:zt}))))}var ml=o.forwardRef(vl);function gl(e){var t=e.prefixCls,n=e.value,a=e.onRemove,r=e.removeIcon,l=r===void 0?"×":r,i=e.formatDate,u=e.disabled,s=e.maxTagCount,d=e.placeholder,c="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function C(g,h){return o.createElement("span",{className:xe("".concat(f,"-item")),title:typeof g=="string"?g:null},o.createElement("span",{className:"".concat(f,"-item-content")},g),!u&&h&&o.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:h,className:"".concat(f,"-item-remove")},l))}function p(g){var h=i(g),S=function(y){y&&y.stopPropagation(),a(g)};return C(h,S)}function v(g){var h="+ ".concat(g.length," ...");return C(h)}return o.createElement("div",{className:c},o.createElement(Er,{prefixCls:m,data:n,renderItem:p,renderRest:v,itemKey:function(h){return i(h)},maxCount:s}),!n.length&&o.createElement("span",{className:"".concat(t,"-selection-placeholder")},d))}var hl=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function pl(e,t){e.id;var n=e.open,a=e.clearIcon,r=e.suffixIcon;e.activeHelp,e.allHelp;var l=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var i=e.locale,u=e.generateConfig,s=e.placeholder,d=e.className,c=e.style,f=e.onClick,m=e.onClear,C=e.internalPicker,p=e.value,v=e.onChange,g=e.onSubmit;e.onInputChange;var h=e.multiple,S=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var x=e.disabled,y=e.invalid;e.inputReadOnly;var I=e.direction;e.onOpenChange;var k=e.onMouseDown;e.required,e["aria-required"];var D=e.autoFocus,O=e.removeIcon,N=xt(e,hl),E=I==="rtl",R=o.useContext(Ke),F=R.prefixCls,H=o.useRef(),L=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:H.current,focus:function(W){var z;(z=L.current)===null||z===void 0||z.focus(W)},blur:function(){var W;(W=L.current)===null||W===void 0||W.blur()}}});var V=dr(N),Y=function(W){v([W])},j=function(W){var z=p.filter(function(U){return U&&!Te(u,i,U,W,C)});v(z),n||g()},w=sr(ne(ne({},e),{},{onChange:Y}),function(T){var W=T.valueTexts;return{value:W[0]||"",active:l}}),b=A(w,2),M=b[0],$=b[1],P=!!(a&&p.length&&!x),_=h?o.createElement(o.Fragment,null,o.createElement(gl,{prefixCls:F,value:p,onRemove:j,formatDate:$,maxTagCount:S,disabled:x,removeIcon:O,placeholder:s}),o.createElement("input",{className:"".concat(F,"-multiple-input"),value:p.map($).join(","),ref:L,readOnly:!0,autoFocus:D}),o.createElement(un,{type:"suffix",icon:r}),P&&o.createElement(zn,{icon:a,onClear:m})):o.createElement(Un,pe({ref:L},M(),{autoFocus:D,suffixIcon:r,clearIcon:P&&o.createElement(zn,{icon:a,onClear:m}),showActiveCls:!1}));return o.createElement("div",pe({},V,{className:xe(F,ce(ce(ce(ce(ce({},"".concat(F,"-multiple"),h),"".concat(F,"-focused"),l),"".concat(F,"-disabled"),x),"".concat(F,"-invalid"),y),"".concat(F,"-rtl"),E),d),style:c,ref:H,onClick:f,onMouseDown:function(W){var z,U=W.target;U!==((z=L.current)===null||z===void 0?void 0:z.inputElement)&&W.preventDefault(),k==null||k(W)}}),_)}var Cl=o.forwardRef(pl);function bl(e,t){var n=Ga(e),a=A(n,6),r=a[0],l=a[1],i=a[2],u=a[3],s=a[4],d=a[5],c=r,f=c.prefixCls,m=c.styles,C=c.classNames,p=c.order,v=c.defaultValue,g=c.value,h=c.needConfirm,S=c.onChange,x=c.onKeyDown,y=c.disabled,I=c.disabledDate,k=c.minDate,D=c.maxDate,O=c.defaultOpen,N=c.open,E=c.onOpenChange,R=c.locale,F=c.generateConfig,H=c.picker,L=c.showNow,V=c.showToday,Y=c.showTime,j=c.mode,w=c.onPanelChange,b=c.onCalendarChange,M=c.onOk,$=c.multiple,P=c.defaultPickerValue,_=c.pickerValue,T=c.onPickerValueChange,W=c.inputReadOnly,z=c.suffixIcon,U=c.removeIcon,B=c.onFocus,K=c.onBlur,G=c.presets,J=c.components,ee=c.cellRender,Z=c.dateRender,le=c.monthCellRender,ge=c.onClick,ae=Qa(t);function Ce(ie){return ie===null?null:$?ie:ie[0]}var be=ir(F,R,l),He=Xa(N,O,[y],E),Me=A(He,2),Pe=Me[0],ke=Me[1],Re=function(te,Ae,Xe){if(b){var Ut=ne({},Xe);delete Ut.range,b(Ce(te),Ce(Ae),Ut)}},X=function(te){M==null||M(Ce(te))},ve=rr(F,R,u,!1,p,v,g,Re,X),de=A(ve,5),we=de[0],Se=de[1],De=de[2],_e=de[3],Ee=de[4],ue=De(),ye=Ja([y]),q=A(ye,4),Q=q[0],me=q[1],Ie=q[2],Ve=q[3],Ge=function(te){me(!0),B==null||B(te,{})},Ue=function(te){me(!1),K==null||K(te,{})},je=et(H,{value:j}),ht=A(je,2),We=ht[0],qe=ht[1],Ze=We==="date"&&Y?"datetime":We,Be=lr(H,We,L,V),tt=S&&function(ie,te){S(Ce(ie),Ce(te))},st=or(ne(ne({},r),{},{onChange:tt}),we,Se,De,_e,[],u,Q,Pe,d),pt=A(st,2),nt=pt[1],Ct=Aa(ue,d),bt=A(Ct,2),at=bt[0],cn=bt[1],sn=o.useMemo(function(){return at.some(function(ie){return ie})},[at]),dn=function(te,Ae){if(T){var Xe=ne(ne({},Ae),{},{mode:Ae.mode[0]});delete Xe.range,T(te[0],Xe)}},At=er(F,R,ue,[We],Pe,Ve,l,!1,P,_,mt(Y==null?void 0:Y.defaultOpenValue),dn,k,D),Lt=A(At,2),fn=Lt[0],jt=Lt[1],St=Oe(function(ie,te,Ae){if(qe(te),w&&Ae!==!1){var Xe=ie||ue[ue.length-1];w(Xe,te)}}),Ye=function(){nt(De()),ke(!1,{force:!0})},vn=function(te){!y&&!ae.current.nativeElement.contains(document.activeElement)&&ae.current.focus(),ke(!0),ge==null||ge(te)},mn=function(){nt(null),ke(!1,{force:!0})},gn=o.useState(null),It=A(gn,2),hn=It[0],$t=It[1],pn=o.useState(null),Rt=A(pn,2),ze=Rt[0],dt=Rt[1],Bt=o.useMemo(function(){var ie=[ze].concat(Le(ue)).filter(function(te){return te});return $?ie:ie.slice(0,1)},[ue,ze,$]),Cn=o.useMemo(function(){return!$&&ze?[ze]:ue.filter(function(ie){return ie})},[ue,ze,$]);o.useEffect(function(){Pe||dt(null)},[Pe]);var Wt=Za(G),bn=function(te){dt(te),$t("preset")},zt=function(te){var Ae=$?be(De(),te):[te],Xe=nt(Ae);Xe&&!$&&ke(!1,{force:!0})},Sn=function(te){zt(te)},yn=function(te){dt(te),$t("cell")},xn=function(te){ke(!0),Ge(te)},kn=function(te){Ie("panel");var Ae=$?be(De(),te):[te];_e(Ae),!h&&!i&&l===Ze&&Ye()},wn=function(){ke(!1)},Mn=Xn(ee,Z,le),Pn=o.useMemo(function(){var ie=qn(r,!1),te=fa(r,[].concat(Le(Object.keys(ie)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ne(ne({},te),{},{multiple:r.multiple})},[r]),Dn=o.createElement(cr,pe({},Pn,{showNow:Be,showTime:Y,disabledDate:I,onFocus:xn,onBlur:Ue,picker:H,mode:We,internalMode:Ze,onPanelChange:St,format:s,value:ue,isInvalid:d,onChange:null,onSelect:kn,pickerValue:fn,defaultOpenValue:Y==null?void 0:Y.defaultOpenValue,onPickerValueChange:jt,hoverValue:Bt,onHover:yn,needConfirm:h,onSubmit:Ye,onOk:Ee,presets:Wt,onPresetHover:bn,onPresetSubmit:zt,onNow:Sn,cellRender:Mn})),In=function(te){_e(te)},$n=function(){Ie("input")},Rn=function(te){Ie("input"),ke(!0,{inherit:!0}),Ge(te)},En=function(te){ke(!1),Ue(te)},Nn=function(te,Ae){te.key==="Tab"&&Ye(),x==null||x(te,Ae)},Fn=o.useMemo(function(){return{prefixCls:f,locale:R,generateConfig:F,button:J.button,input:J.input}},[f,R,F,J.button,J.input]);return ut(function(){Pe&&Ve!==void 0&&St(null,H,!1)},[Pe,Ve,H]),ut(function(){var ie=Ie();!Pe&&ie==="input"&&(ke(!1),Ye()),!Pe&&i&&!h&&ie==="panel"&&(ke(!0),Ye())},[Pe]),o.createElement(Ke.Provider,{value:Fn},o.createElement(_a,pe({},Ya(r),{popupElement:Dn,popupStyle:m.popup,popupClassName:C.popup,visible:Pe,onClose:wn}),o.createElement(Cl,pe({},r,{ref:ae,suffixIcon:z,removeIcon:U,activeHelp:!!ze,allHelp:!!ze&&hn==="preset",focused:Q,onFocus:Rn,onBlur:En,onKeyDown:Nn,onSubmit:Ye,value:Cn,maskFormat:s,onChange:In,onInputChange:$n,internalPicker:l,format:u,inputReadOnly:W,disabled:y,open:Pe,onOpenChange:ke,onClick:vn,onClear:mn,invalid:sn,onInvalid:function(te){cn(te,0)}}))))}var Sl=o.forwardRef(bl);const Ln=(e,t)=>{const{componentCls:n,controlHeight:a}=e,r=t?`${n}-${t}`:"",l=lo(e);return[{[`${n}-multiple${r}`]:{paddingBlock:l.containerPadding,paddingInlineStart:l.basePadding,minHeight:a,[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:se(l.itemLineHeight)}}}]},yl=e=>{const{componentCls:t,calc:n,lineWidth:a}=e,r=Bn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),l=Bn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(a).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Ln(r,"small"),Ln(e),Ln(l,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},oo(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},xl=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:a,borderRadiusSM:r,motionDurationMid:l,cellHoverBg:i,lineWidth:u,lineType:s,colorPrimary:d,cellActiveWithRangeBg:c,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:C,colorFillSecondary:p}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:a,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:a,height:a,lineHeight:se(a),borderRadius:r,transition:`background ${l}`},[`&:hover:not(${t}-in-view), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${se(u)} ${s} ${d}`,borderRadius:r,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:c}},[`&-in-view${t}-selected, @@ -19,4 +19,4 @@ import{at as kt,as as wt,aJ as br,r as o,o as xe,X as ce,h as Le,d as ne,j as A, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Or},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Tr},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:_r},[`${t}-panel > ${t}-time-panel`]:{paddingTop:D},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${I} ease-out`},Hr(e,N,j)),{"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:N,borderRadius:E,boxShadow:R,transition:`margin ${I}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:V,maxWidth:Y,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${se(l)} ${i} ${H}`,li:Object.assign(Object.assign({},Dr),{borderRadius:F,paddingInline:g,paddingBlock:e.calc(p).sub(w).div(2).equal(),cursor:"pointer",transition:`all ${I}`,"+ li":{marginTop:h},"&:hover":{background:L}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${se(e.calc(O).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},aa(e,"slide-up"),aa(e,"slide-down"),oa(e,"move-up"),oa(e,"move-down")]},fr=Mr("DatePicker",e=>{const t=Bn(no(e),Ml(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[wl(t),Rl(t),Il(t),$l(t),yl(t),Pr(e,{focusElCls:`${e.componentCls}-focused`})]},Dl);var El={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Nl=function(t,n){return o.createElement(Kn,pe({},t,{ref:n,icon:El}))},vr=o.forwardRef(Nl),Fl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Ol=function(t,n){return o.createElement(Kn,pe({},t,{ref:n,icon:Fl}))},mr=o.forwardRef(Ol),Tl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},_l=function(t,n){return o.createElement(Kn,pe({},t,{ref:n,icon:Tl}))},Hl=o.forwardRef(_l);function Vl(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Yl(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function ta(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function gr(e,t){const{allowClear:n=!0}=e,{clearIcon:a,removeIcon:r}=io(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[o.useMemo(()=>n===!1?!1:Object.assign({clearIcon:a},n===!0?{}:n),[n,a]),r]}function Al(e){return o.createElement(Ft,Object.assign({size:"small",type:"primary"},e))}function hr(e){return o.useMemo(()=>Object.assign({button:Al},e),[e])}var Ll=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var r;const{prefixCls:l,getPopupContainer:i,components:u,className:s,style:d,placement:c,size:f,disabled:m,bordered:C=!0,placeholder:p,popupClassName:v,dropdownClassName:g,status:h,rootClassName:S,variant:x}=n,y=Ll(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),I=o.useRef(null),{getPrefixCls:k,direction:D,getPopupContainer:O,rangePicker:N}=o.useContext(va),E=k("picker",l),{compactSize:R,compactItemClassnames:F}=ma(E,D),{picker:H}=n,L=k(),[V,Y]=Da(x,C),j=ga(E),[w,b,M]=fr(E,j),[$]=gr(n,E),P=hr(u),_=ha(le=>{var ge;return(ge=f??R)!==null&&ge!==void 0?ge:le}),T=o.useContext(pa),W=m??T,z=o.useContext(Ca),{hasFeedback:U,status:B,feedbackIcon:K}=z,G=o.createElement(o.Fragment,null,H==="time"?o.createElement(mr,null):o.createElement(vr,null),U&&K);o.useImperativeHandle(a,()=>I.current);const[J]=ba("Calendar",Sa),ee=Object.assign(Object.assign({},J),n.locale),[Z]=ya("DatePicker",(r=n.popupStyle)===null||r===void 0?void 0:r.zIndex);return w(o.createElement(xa,null,o.createElement(ml,Object.assign({separator:o.createElement("span",{"aria-label":"to",className:`${E}-separator`},o.createElement(Hl,null)),disabled:W,ref:I,popupAlign:ta(D,c),placement:c,placeholder:Yl(ee,H,p),suffixIcon:G,prevIcon:o.createElement("span",{className:`${E}-prev-icon`}),nextIcon:o.createElement("span",{className:`${E}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${E}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${E}-super-next-icon`}),transitionName:`${L}-slide-up`},y,{className:xe({[`${E}-${_}`]:_,[`${E}-${V}`]:Y},Ia(E,$a(B,h),U),b,F,s,N==null?void 0:N.className,M,j,S),style:Object.assign(Object.assign({},N==null?void 0:N.style),d),locale:ee.lang,prefixCls:E,getPopupContainer:i||O,generateConfig:e,components:P,direction:D,classNames:{popup:xe(b,v||g,M,j,S)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:Z})},allowClear:$}))))})}var Bl=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var p;const{prefixCls:v,getPopupContainer:g,components:h,style:S,className:x,rootClassName:y,size:I,bordered:k,placement:D,placeholder:O,popupClassName:N,dropdownClassName:E,disabled:R,status:F,variant:H,onCalendarChange:L}=m,V=Bl(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:Y,direction:j,getPopupContainer:w,[c]:b}=o.useContext(va),M=Y("picker",v),{compactSize:$,compactItemClassnames:P}=ma(M,j),_=o.useRef(null),[T,W]=Da(H,k),z=ga(M),[U,B,K]=fr(M,z);o.useImperativeHandle(C,()=>_.current);const G={showToday:!0},J=s||m.picker,ee=Y(),{onSelect:Z,multiple:le}=V,ge=Z&&s==="time"&&!le,ae=(Ee,ue,ye)=>{L==null||L(Ee,ue,ye),ge&&Z(Ee)},[Ce,be]=gr(m,M),He=hr(h),Me=ha(Ee=>{var ue;return(ue=I??$)!==null&&ue!==void 0?ue:Ee}),Pe=o.useContext(pa),ke=R??Pe,Re=o.useContext(Ca),{hasFeedback:X,status:ve,feedbackIcon:de}=Re,we=o.createElement(o.Fragment,null,J==="time"?o.createElement(mr,null):o.createElement(vr,null),X&&de),[Se]=ba("DatePicker",Sa),De=Object.assign(Object.assign({},Se),m.locale),[_e]=ya("DatePicker",(p=m.popupStyle)===null||p===void 0?void 0:p.zIndex);return U(o.createElement(xa,null,o.createElement(Sl,Object.assign({ref:_,placeholder:Vl(De,J,O),suffixIcon:we,dropdownAlign:ta(j,D),placement:D,prevIcon:o.createElement("span",{className:`${M}-prev-icon`}),nextIcon:o.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${ee}-slide-up`,picker:s,onCalendarChange:ae},G,V,{locale:De.lang,className:xe({[`${M}-${Me}`]:Me,[`${M}-${T}`]:W},Ia(M,$a(ve,F),X),B,P,b==null?void 0:b.className,x,K,z,y),style:Object.assign(Object.assign({},b==null?void 0:b.style),S),prefixCls:M,getPopupContainer:g||w,generateConfig:e,components:He,direction:j,disabled:ke,classNames:{popup:xe(B,K,z,y,N||E)},styles:{popup:Object.assign(Object.assign({},m.popupStyle),{zIndex:_e})},allowClear:Ce,removeIcon:be}))))})}const n=t(),a=t("week","WeekPicker"),r=t("month","MonthPicker"),l=t("year","YearPicker"),i=t("quarter","QuarterPicker"),u=t("time","TimePicker");return{DatePicker:n,WeekPicker:a,MonthPicker:r,YearPicker:l,TimePicker:u,QuarterPicker:i}}function pr(e){const{DatePicker:t,WeekPicker:n,MonthPicker:a,YearPicker:r,TimePicker:l,QuarterPicker:i}=Wl(e),u=jl(e),s=t;return s.WeekPicker=n,s.MonthPicker=a,s.YearPicker=r,s.RangePicker=u,s.TimePicker=l,s.QuarterPicker=i,s}const Dt=pr(wo);function Cr(e){const t=ta(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const zl=Pa(Dt,"picker",null,Cr);Dt._InternalPanelDoNotUseOrYouWillBeFired=zl;const Ul=Pa(Dt.RangePicker,"picker",null,Cr);Dt._InternalRangePanelDoNotUseOrYouWillBeFired=Ul;Dt.generatePicker=pr;const ql=o.lazy(()=>$r(()=>import("./InfiniteScroll-GdRBIjZP.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url));function pi(){var Y,j;const{message:e,notification:t}=Vr(),n=Ir(),{ti:a}=Yr(),r=ka(wa.profile),l=((Y=n.state)==null?void 0:Y.threadId)||"",[i,u]=qt("FirstMessages.friendUrlOrUid."+l,l),[s,d]=qt("FirstMessages.friendProfile."+i,null),[c,f]=qt("FirstMessages.messages."+i,[]),[m,C]=qt("FirstMessages.time."+l,null),[p,v]=o.useState(!1),[g,h]=o.useState({fetchingNext:!1,fetchingPrev:!1,hasNext:!0,hasPrev:!0}),S=(s==null?void 0:s.name)||((j=n.state)==null?void 0:j.threadName)||"";o.useEffect(()=>{i&&N()},[i]),o.useEffect(()=>{var w,b,M;(M=(w=y.current)==null?void 0:w.scrollTo)==null||M.call(w,{top:ra("FirstMessages.scrollY",((b=y.current)==null?void 0:b.scrollHeight)||0)})},[]);const x=o.useMemo(()=>{var b,M,$;if(!(c!=null&&c.length))return[];const w=[];for(let P=0;P{var b;I.current=((b=y.current)==null?void 0:b.scrollHeight)||0,console.log(w),f(w),jr("FirstMessages.scrollY",I.current)},D=o.useRef({prev:!1,next:!1});o.useLayoutEffect(()=>{var w,b,M,$;if(D.current.prev&&!g.fetchingPrev){D.current.prev=!1;let P=((w=y.current)==null?void 0:w.scrollHeight)||0;P>I.current&&((b=y.current)==null||b.scrollTo({top:P-I.current}))}O.current&&(O.current=!1,($=y.current)==null||$.scrollTo({top:((M=y.current)==null?void 0:M.scrollHeight)||0}))},[c,g.fetchingPrev]);const O=o.useRef(!1),N=async()=>{var b,M;if(!((M=(b=i==null?void 0:i.trim)==null?void 0:b.call(i))!=null&&M.length))return e.warning({content:a({en:"Please input friend's url/uid first",vi:"Vui lý nhập uid hoặc link bạn bè trước"})});yt("FirstMessages:getRecentMessage");const w="getRecentMessage";try{h(Qe(T=>{T.hasNext=!1,T.hasPrev=!1}));let $=ra("FirstMessages.friendProfile."+i);if(!$){let T;if(/\d+$/.test(i)?T=i:(e.loading({key:w,duration:0,content:a({en:"Fetching friend uid...",vi:"Đang tải uid bạn bè..."})}),T=await Ar(i)),!T)throw new Error("Invalid friend url");if(e.loading({key:w,duration:0,content:a({en:"Fetching friend info...",vi:"Đang tải thông tin bạn bè"})}),$=await Lr(T),!$)throw new Error(a({en:"Failed to fetch friend info",vi:"Không thể tải thông tin bạn bè"}))}d($),console.log($),e.loading({key:w,duration:0,content:a({en:"Fetching recent messages...",vi:"Đang tải tin nhắn gần nhất..."})});const P=$e();C(P);const _=await Tn({threadId:$.uid,time:P.valueOf()});k(_),(_==null?void 0:_.length)>0?e.success({key:w,content:a({en:"Fetch completed",vi:"Tải xong"})}):e.info({key:w,content:a({en:"No data to show",vi:"Không có dữ liệu"})}),O.current=!0,h(Qe(T=>{T.hasNext=_.length>1,T.hasPrev=!0,T.fetchingNext=!1,T.fetchingPrev=!1}))}catch($){e.error({key:w,content:a({en:"Failed to fetch",vi:"Lỗi tải"})+": "+$.message})}},E=async()=>{if(!await On())return;const w="FirstMessages:downloadAllMessages";yt(w);const b=w+(s==null?void 0:s.uid);e.loading({key:b,duration:0,content:a({en:"Downloading messages...",vi:"Đang tải tin nhắn..."})+S});let M=!1;const $=await Ur({threadId:s==null?void 0:s.uid,checkStopFn:()=>M,progressCallback:_=>{e.loading({key:b,duration:0,content:oe.jsxs(oe.Fragment,{children:[a({en:"Downloading messages... ",vi:"Đang tải tin nhắn... "})+S,oe.jsx("br",{}),_.length,a({en:" messages",vi:" tin nhắn"}),oe.jsx("br",{}),$e(_[0].time).format("YYYY-MM-DD HH:mm:ss"),oe.jsx("br",{}),oe.jsx("i",{children:a({en:"Click to stop",vi:"Bấm để dừng"})})]}),onClick:()=>{e.loading({key:b,duration:0,content:a({en:"Stopping...",vi:"Đang dừng..."})}),M=!0}})}});e.destroy(b),t.open({type:"success",duration:0,message:a(M?{en:"Download stopped: ",vi:"Đã dừng tải: "}:{en:"Download completed: ",vi:"Tải xong: "})+S,description:$.length+a({en:" messages",vi:" tin nhắn"})});const P=qr({threadId:(s==null?void 0:s.uid)||"",threadName:S,myUid:(r==null?void 0:r.uid)||"",msgs:$});Gr(P,S+".html")},R=async()=>{if(!(!await On()||!s)){yt("FirstMessages:getFirstMessage");try{v(!0);const w=await Kr({threadId:s.uid,progress:b=>{C($e(b))}});if(console.log("first message",w),!(w!=null&&w.length))e.info(a({en:"No data to show",vi:"Không có dữ liệu"}));else{let b=await _n({threadId:s.uid,msgId:w[0].id});b!=null&&b.length||(b=await Tn({threadId:s.uid,time:$e(Number(w[0].time)).add(1,"day").valueOf()})),console.log(b),b.length?k(b):e.info(a({en:"No data to show",vi:"Không có dữ liệu"})),h(Qe(M=>{M.hasNext=!0,M.hasPrev=!0}))}}catch(w){e.error(a({en:"Failed to fetch",vi:"Lỗi tải"})+": "+w.message),console.log(w)}finally{v(!1)}}},F=async w=>{if(!await On()||!s)return;yt("FirstMessages:onSelectDate");let b=$e(w).valueOf();const M=await Tn({threadId:s.uid,time:b});console.log(M),k(M),h(Qe($=>{$.hasNext=!0,$.hasPrev=!0}))},H=async()=>{var w;if(s){yt("FirstMessages:fetchNext");try{h(Qe(M=>{M.fetchingNext=!0}));const b=await _n({threadId:s.uid,msgId:(w=c==null?void 0:c[c.length-1])==null?void 0:w.id,direction:"down"});console.log(b),b.length>1&&(b.shift(),k([...c,...b])),D.current.next=!0,h(Qe(M=>{M.hasNext=b.length>1}))}catch(b){e.error(a({en:"Failed to fetch",vi:"Lỗi tải"})+": "+b.message)}finally{h(Qe(b=>{b.fetchingNext=!1}))}}},L=async()=>{var w;if(s){yt("FirstMessages:fetchPrev");try{h(Qe(M=>{M.fetchingPrev=!0}));const b=await _n({threadId:s.uid,msgId:(w=c==null?void 0:c[0])==null?void 0:w.id,direction:"up"});b.length>1&&(b.pop(),k([...b,...c])),D.current.prev=!0,h(Qe(M=>{M.hasPrev=b.length>1}))}catch(b){console.error(b),e.error(a({en:"Failed to fetch",vi:"Lỗi tải"})+": "+b.message)}finally{h(Qe(b=>{b.fetchingPrev=!1}))}}},V=()=>x!=null&&x.length?oe.jsx(ql,{prev:L,next:H,hasPrev:g.hasPrev,hasNext:g.hasNext,loader:oe.jsx(ot,{style:{display:"flex",justifyContent:"center"},children:oe.jsx("i",{className:"fa-solid fa-spinner fa-spin fa-lg"})}),endMessage:oe.jsx(ot,{style:{display:"flex",justifyContent:"center"},children:a({en:"No more message",vi:"Không còn tin nào"})}),children:oe.jsx(uo,{split:!1,dataSource:x,renderItem:w=>oe.jsx(Gl,{message:w,myProfile:r})})}):null;return oe.jsxs(ot,{direction:"vertical",style:{width:"100%"},children:[oe.jsxs(ot,{direction:"horizontal",style:{alignItems:"center"},children:[oe.jsx("h1",{style:{margin:0},children:S||a({en:"First messages",vi:"Tin nhắn đầu tiên"})}),(s==null?void 0:s.uid)&&oe.jsxs(ot.Compact,{children:[oe.jsx(Ot,{title:a({en:"Open in Messenger",vi:"Mở trong Messenger"}),children:oe.jsx(Ft,{icon:oe.jsx("i",{className:"fa-solid fa-external-link"}),href:"https://www.facebook.com/messages/t/"+s.uid,target:"_blank"})}),oe.jsx(Ot,{title:a({en:"Download all messages",vi:"Tải xuống tất cả tin nhắn"}),children:oe.jsx(Ft,{icon:oe.jsx("i",{className:"fa-solid fa-download"}),onClick:E,disabled:!s})})]}),oe.jsxs(ot.Compact,{children:[oe.jsx(Qr,{value:i,placeholder:a({en:"Enter friend url/uid",vi:"Nhập url/uid của bạn bè"}),onChange:w=>u(w.target.value)}),oe.jsx(Ft,{type:"primary",onClick:N,loading:p,children:oe.jsx("i",{className:"fas fa-search"})})]}),oe.jsxs(ot.Compact,{children:[oe.jsx(Ot,{title:a({en:"Choose any date to view messages in that day",vi:"Chọn ngày bất kỳ để xem tin nhắn trong ngày đó"}),children:oe.jsx(Dt,{showTime:!0,value:m,minDate:zr,onChange:(w,b)=>{console.log("Selected Time: ",w),console.log("Formatted Selected Time: ",b),C(w)},onOk:F,disabled:!s,placeholder:a({en:"Select time",vi:"Chọn thời gian"})})}),oe.jsx(Ot,{title:a({en:"Find first message",vi:"Tìm tin nhắn đầu tiên"}),children:oe.jsx(Ft,{type:"primary",onClick:R,loading:p,disabled:!s,children:oe.jsx("i",{className:"fa-solid fa-clock-rotate-left"})})})]})]}),oe.jsx(ot,{ref:y,direction:"vertical",size:3,style:{width:"100%",maxHeight:"70vh",overflow:"auto",padding:12},children:V()})]})}function Kl(e,t){let n=4;if(t){if(e==="start")return{borderBottomRightRadius:n};if(e==="middle")return{borderBottomRightRadius:n,borderTopRightRadius:n};if(e==="end")return{borderTopRightRadius:n}}else{if(e==="start")return{borderBottomLeftRadius:n};if(e==="middle")return{borderBottomLeftRadius:n,borderTopLeftRadius:n};if(e==="end")return{borderTopLeftRadius:n}}return{}}function Gl({message:e,myProfile:t}){var s;const n=ka(wa.darkMode),a=e.position,r=e.sender===t.uid,l={display:"block",wordBreak:"break-word",padding:"8px 12px",backgroundColor:r?"#0184ff":n?"#303030":"#f0f0f0",color:n||r?"#eee":"#111",whiteSpace:"pre-line",margin:0,maxWidth:400,borderTopLeftRadius:24,borderTopRightRadius:24,borderBottomLeftRadius:24,borderBottomRightRadius:24,...Kl(a,r)},i=a==="end"||a==="single",u=oe.jsx("div",{style:{flex:1}});return oe.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",marginBottom:i?12:2},children:[r?u:i?oe.jsx("a",{href:Br(e.sender),target:"_blank",children:oe.jsx(co,{shape:"circle",size:40,src:Wr(e.sender),style:{marginRight:8}})}):oe.jsx("div",{style:{width:48}}),oe.jsxs(Ot,{title:$e(e.time).format("YYYY-MM-DD HH:mm"),placement:r?"left":"right",children:[e.text&&oe.jsx(ro.Paragraph,{style:l,children:e.text}),e.sticker&&oe.jsx(la,{width:150,src:e.sticker}),(s=e.attachments)==null?void 0:s.map((d,c)=>d.type==="video"?oe.jsx(Xr,{src:d.uri,style:{maxHeight:300,maxWidth:300}},"attachment"+c):d.type==="image"||d.type==="gif"?oe.jsx(la,{src:d.uri,style:{maxHeight:300,maxWidth:300}},"attachment"+c):d.type==="file"?oe.jsxs("a",{href:d.uri,target:"_blank",rel:"noreferrer",style:l,children:["File: ",d.filename]},"attachment"+c):null)]}),!r&&u]})}export{pi as default}; + table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${se(e.calc(O).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},aa(e,"slide-up"),aa(e,"slide-down"),oa(e,"move-up"),oa(e,"move-down")]},fr=Mr("DatePicker",e=>{const t=Bn(no(e),Ml(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[wl(t),Rl(t),Il(t),$l(t),yl(t),Pr(e,{focusElCls:`${e.componentCls}-focused`})]},Dl);var El={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Nl=function(t,n){return o.createElement(Kn,pe({},t,{ref:n,icon:El}))},vr=o.forwardRef(Nl),Fl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Ol=function(t,n){return o.createElement(Kn,pe({},t,{ref:n,icon:Fl}))},mr=o.forwardRef(Ol),Tl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},_l=function(t,n){return o.createElement(Kn,pe({},t,{ref:n,icon:Tl}))},Hl=o.forwardRef(_l);function Vl(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Yl(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function ta(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function gr(e,t){const{allowClear:n=!0}=e,{clearIcon:a,removeIcon:r}=io(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[o.useMemo(()=>n===!1?!1:Object.assign({clearIcon:a},n===!0?{}:n),[n,a]),r]}function Al(e){return o.createElement(Ft,Object.assign({size:"small",type:"primary"},e))}function hr(e){return o.useMemo(()=>Object.assign({button:Al},e),[e])}var Ll=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var r;const{prefixCls:l,getPopupContainer:i,components:u,className:s,style:d,placement:c,size:f,disabled:m,bordered:C=!0,placeholder:p,popupClassName:v,dropdownClassName:g,status:h,rootClassName:S,variant:x}=n,y=Ll(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),I=o.useRef(null),{getPrefixCls:k,direction:D,getPopupContainer:O,rangePicker:N}=o.useContext(va),E=k("picker",l),{compactSize:R,compactItemClassnames:F}=ma(E,D),{picker:H}=n,L=k(),[V,Y]=Da(x,C),j=ga(E),[w,b,M]=fr(E,j),[$]=gr(n,E),P=hr(u),_=ha(le=>{var ge;return(ge=f??R)!==null&&ge!==void 0?ge:le}),T=o.useContext(pa),W=m??T,z=o.useContext(Ca),{hasFeedback:U,status:B,feedbackIcon:K}=z,G=o.createElement(o.Fragment,null,H==="time"?o.createElement(mr,null):o.createElement(vr,null),U&&K);o.useImperativeHandle(a,()=>I.current);const[J]=ba("Calendar",Sa),ee=Object.assign(Object.assign({},J),n.locale),[Z]=ya("DatePicker",(r=n.popupStyle)===null||r===void 0?void 0:r.zIndex);return w(o.createElement(xa,null,o.createElement(ml,Object.assign({separator:o.createElement("span",{"aria-label":"to",className:`${E}-separator`},o.createElement(Hl,null)),disabled:W,ref:I,popupAlign:ta(D,c),placement:c,placeholder:Yl(ee,H,p),suffixIcon:G,prevIcon:o.createElement("span",{className:`${E}-prev-icon`}),nextIcon:o.createElement("span",{className:`${E}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${E}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${E}-super-next-icon`}),transitionName:`${L}-slide-up`},y,{className:xe({[`${E}-${_}`]:_,[`${E}-${V}`]:Y},Ia(E,$a(B,h),U),b,F,s,N==null?void 0:N.className,M,j,S),style:Object.assign(Object.assign({},N==null?void 0:N.style),d),locale:ee.lang,prefixCls:E,getPopupContainer:i||O,generateConfig:e,components:P,direction:D,classNames:{popup:xe(b,v||g,M,j,S)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:Z})},allowClear:$}))))})}var Bl=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var p;const{prefixCls:v,getPopupContainer:g,components:h,style:S,className:x,rootClassName:y,size:I,bordered:k,placement:D,placeholder:O,popupClassName:N,dropdownClassName:E,disabled:R,status:F,variant:H,onCalendarChange:L}=m,V=Bl(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:Y,direction:j,getPopupContainer:w,[c]:b}=o.useContext(va),M=Y("picker",v),{compactSize:$,compactItemClassnames:P}=ma(M,j),_=o.useRef(null),[T,W]=Da(H,k),z=ga(M),[U,B,K]=fr(M,z);o.useImperativeHandle(C,()=>_.current);const G={showToday:!0},J=s||m.picker,ee=Y(),{onSelect:Z,multiple:le}=V,ge=Z&&s==="time"&&!le,ae=(Ee,ue,ye)=>{L==null||L(Ee,ue,ye),ge&&Z(Ee)},[Ce,be]=gr(m,M),He=hr(h),Me=ha(Ee=>{var ue;return(ue=I??$)!==null&&ue!==void 0?ue:Ee}),Pe=o.useContext(pa),ke=R??Pe,Re=o.useContext(Ca),{hasFeedback:X,status:ve,feedbackIcon:de}=Re,we=o.createElement(o.Fragment,null,J==="time"?o.createElement(mr,null):o.createElement(vr,null),X&&de),[Se]=ba("DatePicker",Sa),De=Object.assign(Object.assign({},Se),m.locale),[_e]=ya("DatePicker",(p=m.popupStyle)===null||p===void 0?void 0:p.zIndex);return U(o.createElement(xa,null,o.createElement(Sl,Object.assign({ref:_,placeholder:Vl(De,J,O),suffixIcon:we,dropdownAlign:ta(j,D),placement:D,prevIcon:o.createElement("span",{className:`${M}-prev-icon`}),nextIcon:o.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${ee}-slide-up`,picker:s,onCalendarChange:ae},G,V,{locale:De.lang,className:xe({[`${M}-${Me}`]:Me,[`${M}-${T}`]:W},Ia(M,$a(ve,F),X),B,P,b==null?void 0:b.className,x,K,z,y),style:Object.assign(Object.assign({},b==null?void 0:b.style),S),prefixCls:M,getPopupContainer:g||w,generateConfig:e,components:He,direction:j,disabled:ke,classNames:{popup:xe(B,K,z,y,N||E)},styles:{popup:Object.assign(Object.assign({},m.popupStyle),{zIndex:_e})},allowClear:Ce,removeIcon:be}))))})}const n=t(),a=t("week","WeekPicker"),r=t("month","MonthPicker"),l=t("year","YearPicker"),i=t("quarter","QuarterPicker"),u=t("time","TimePicker");return{DatePicker:n,WeekPicker:a,MonthPicker:r,YearPicker:l,TimePicker:u,QuarterPicker:i}}function pr(e){const{DatePicker:t,WeekPicker:n,MonthPicker:a,YearPicker:r,TimePicker:l,QuarterPicker:i}=Wl(e),u=jl(e),s=t;return s.WeekPicker=n,s.MonthPicker=a,s.YearPicker=r,s.RangePicker=u,s.TimePicker=l,s.QuarterPicker=i,s}const Dt=pr(wo);function Cr(e){const t=ta(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const zl=Pa(Dt,"picker",null,Cr);Dt._InternalPanelDoNotUseOrYouWillBeFired=zl;const Ul=Pa(Dt.RangePicker,"picker",null,Cr);Dt._InternalRangePanelDoNotUseOrYouWillBeFired=Ul;Dt.generatePicker=pr;const ql=o.lazy(()=>$r(()=>import("./InfiniteScroll-Cg4lOtgH.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url));function pi(){var Y,j;const{message:e,notification:t}=Vr(),n=Ir(),{ti:a}=Yr(),r=ka(wa.profile),l=((Y=n.state)==null?void 0:Y.threadId)||"",[i,u]=qt("FirstMessages.friendUrlOrUid."+l,l),[s,d]=qt("FirstMessages.friendProfile."+i,null),[c,f]=qt("FirstMessages.messages."+i,[]),[m,C]=qt("FirstMessages.time."+l,null),[p,v]=o.useState(!1),[g,h]=o.useState({fetchingNext:!1,fetchingPrev:!1,hasNext:!0,hasPrev:!0}),S=(s==null?void 0:s.name)||((j=n.state)==null?void 0:j.threadName)||"";o.useEffect(()=>{i&&N()},[i]),o.useEffect(()=>{var w,b,M;(M=(w=y.current)==null?void 0:w.scrollTo)==null||M.call(w,{top:ra("FirstMessages.scrollY",((b=y.current)==null?void 0:b.scrollHeight)||0)})},[]);const x=o.useMemo(()=>{var b,M,$;if(!(c!=null&&c.length))return[];const w=[];for(let P=0;P{var b;I.current=((b=y.current)==null?void 0:b.scrollHeight)||0,console.log(w),f(w),jr("FirstMessages.scrollY",I.current)},D=o.useRef({prev:!1,next:!1});o.useLayoutEffect(()=>{var w,b,M,$;if(D.current.prev&&!g.fetchingPrev){D.current.prev=!1;let P=((w=y.current)==null?void 0:w.scrollHeight)||0;P>I.current&&((b=y.current)==null||b.scrollTo({top:P-I.current}))}O.current&&(O.current=!1,($=y.current)==null||$.scrollTo({top:((M=y.current)==null?void 0:M.scrollHeight)||0}))},[c,g.fetchingPrev]);const O=o.useRef(!1),N=async()=>{var b,M;if(!((M=(b=i==null?void 0:i.trim)==null?void 0:b.call(i))!=null&&M.length))return e.warning({content:a({en:"Please input friend's url/uid first",vi:"Vui lý nhập uid hoặc link bạn bè trước"})});yt("FirstMessages:getRecentMessage");const w="getRecentMessage";try{h(Qe(T=>{T.hasNext=!1,T.hasPrev=!1}));let $=ra("FirstMessages.friendProfile."+i);if(!$){let T;if(/\d+$/.test(i)?T=i:(e.loading({key:w,duration:0,content:a({en:"Fetching friend uid...",vi:"Đang tải uid bạn bè..."})}),T=await Ar(i)),!T)throw new Error("Invalid friend url");if(e.loading({key:w,duration:0,content:a({en:"Fetching friend info...",vi:"Đang tải thông tin bạn bè"})}),$=await Lr(T),!$)throw new Error(a({en:"Failed to fetch friend info",vi:"Không thể tải thông tin bạn bè"}))}d($),console.log($),e.loading({key:w,duration:0,content:a({en:"Fetching recent messages...",vi:"Đang tải tin nhắn gần nhất..."})});const P=$e();C(P);const _=await Tn({threadId:$.uid,time:P.valueOf()});k(_),(_==null?void 0:_.length)>0?e.success({key:w,content:a({en:"Fetch completed",vi:"Tải xong"})}):e.info({key:w,content:a({en:"No data to show",vi:"Không có dữ liệu"})}),O.current=!0,h(Qe(T=>{T.hasNext=_.length>1,T.hasPrev=!0,T.fetchingNext=!1,T.fetchingPrev=!1}))}catch($){e.error({key:w,content:a({en:"Failed to fetch",vi:"Lỗi tải"})+": "+$.message})}},E=async()=>{if(!await On())return;const w="FirstMessages:downloadAllMessages";yt(w);const b=w+(s==null?void 0:s.uid);e.loading({key:b,duration:0,content:a({en:"Downloading messages...",vi:"Đang tải tin nhắn..."})+S});let M=!1;const $=await Ur({threadId:s==null?void 0:s.uid,checkStopFn:()=>M,progressCallback:_=>{e.loading({key:b,duration:0,content:oe.jsxs(oe.Fragment,{children:[a({en:"Downloading messages... ",vi:"Đang tải tin nhắn... "})+S,oe.jsx("br",{}),_.length,a({en:" messages",vi:" tin nhắn"}),oe.jsx("br",{}),$e(_[0].time).format("YYYY-MM-DD HH:mm:ss"),oe.jsx("br",{}),oe.jsx("i",{children:a({en:"Click to stop",vi:"Bấm để dừng"})})]}),onClick:()=>{e.loading({key:b,duration:0,content:a({en:"Stopping...",vi:"Đang dừng..."})}),M=!0}})}});e.destroy(b),t.open({type:"success",duration:0,message:a(M?{en:"Download stopped: ",vi:"Đã dừng tải: "}:{en:"Download completed: ",vi:"Tải xong: "})+S,description:$.length+a({en:" messages",vi:" tin nhắn"})});const P=qr({threadId:(s==null?void 0:s.uid)||"",threadName:S,myUid:(r==null?void 0:r.uid)||"",msgs:$});Gr(P,S+".html")},R=async()=>{if(!(!await On()||!s)){yt("FirstMessages:getFirstMessage");try{v(!0);const w=await Kr({threadId:s.uid,progress:b=>{C($e(b))}});if(console.log("first message",w),!(w!=null&&w.length))e.info(a({en:"No data to show",vi:"Không có dữ liệu"}));else{let b=await _n({threadId:s.uid,msgId:w[0].id});b!=null&&b.length||(b=await Tn({threadId:s.uid,time:$e(Number(w[0].time)).add(1,"day").valueOf()})),console.log(b),b.length?k(b):e.info(a({en:"No data to show",vi:"Không có dữ liệu"})),h(Qe(M=>{M.hasNext=!0,M.hasPrev=!0}))}}catch(w){e.error(a({en:"Failed to fetch",vi:"Lỗi tải"})+": "+w.message),console.log(w)}finally{v(!1)}}},F=async w=>{if(!await On()||!s)return;yt("FirstMessages:onSelectDate");let b=$e(w).valueOf();const M=await Tn({threadId:s.uid,time:b});console.log(M),k(M),h(Qe($=>{$.hasNext=!0,$.hasPrev=!0}))},H=async()=>{var w;if(s){yt("FirstMessages:fetchNext");try{h(Qe(M=>{M.fetchingNext=!0}));const b=await _n({threadId:s.uid,msgId:(w=c==null?void 0:c[c.length-1])==null?void 0:w.id,direction:"down"});console.log(b),b.length>1&&(b.shift(),k([...c,...b])),D.current.next=!0,h(Qe(M=>{M.hasNext=b.length>1}))}catch(b){e.error(a({en:"Failed to fetch",vi:"Lỗi tải"})+": "+b.message)}finally{h(Qe(b=>{b.fetchingNext=!1}))}}},L=async()=>{var w;if(s){yt("FirstMessages:fetchPrev");try{h(Qe(M=>{M.fetchingPrev=!0}));const b=await _n({threadId:s.uid,msgId:(w=c==null?void 0:c[0])==null?void 0:w.id,direction:"up"});b.length>1&&(b.pop(),k([...b,...c])),D.current.prev=!0,h(Qe(M=>{M.hasPrev=b.length>1}))}catch(b){console.error(b),e.error(a({en:"Failed to fetch",vi:"Lỗi tải"})+": "+b.message)}finally{h(Qe(b=>{b.fetchingPrev=!1}))}}},V=()=>x!=null&&x.length?oe.jsx(ql,{prev:L,next:H,hasPrev:g.hasPrev,hasNext:g.hasNext,loader:oe.jsx(ot,{style:{display:"flex",justifyContent:"center"},children:oe.jsx("i",{className:"fa-solid fa-spinner fa-spin fa-lg"})}),endMessage:oe.jsx(ot,{style:{display:"flex",justifyContent:"center"},children:a({en:"No more message",vi:"Không còn tin nào"})}),children:oe.jsx(uo,{split:!1,dataSource:x,renderItem:w=>oe.jsx(Gl,{message:w,myProfile:r})})}):null;return oe.jsxs(ot,{direction:"vertical",style:{width:"100%"},children:[oe.jsxs(ot,{direction:"horizontal",style:{alignItems:"center"},children:[oe.jsx("h1",{style:{margin:0},children:S||a({en:"First messages",vi:"Tin nhắn đầu tiên"})}),(s==null?void 0:s.uid)&&oe.jsxs(ot.Compact,{children:[oe.jsx(Ot,{title:a({en:"Open in Messenger",vi:"Mở trong Messenger"}),children:oe.jsx(Ft,{icon:oe.jsx("i",{className:"fa-solid fa-external-link"}),href:"https://www.facebook.com/messages/t/"+s.uid,target:"_blank"})}),oe.jsx(Ot,{title:a({en:"Download all messages",vi:"Tải xuống tất cả tin nhắn"}),children:oe.jsx(Ft,{icon:oe.jsx("i",{className:"fa-solid fa-download"}),onClick:E,disabled:!s})})]}),oe.jsxs(ot.Compact,{children:[oe.jsx(Qr,{value:i,placeholder:a({en:"Enter friend url/uid",vi:"Nhập url/uid của bạn bè"}),onChange:w=>u(w.target.value)}),oe.jsx(Ft,{type:"primary",onClick:N,loading:p,children:oe.jsx("i",{className:"fas fa-search"})})]}),oe.jsxs(ot.Compact,{children:[oe.jsx(Ot,{title:a({en:"Choose any date to view messages in that day",vi:"Chọn ngày bất kỳ để xem tin nhắn trong ngày đó"}),children:oe.jsx(Dt,{showTime:!0,value:m,minDate:zr,onChange:(w,b)=>{console.log("Selected Time: ",w),console.log("Formatted Selected Time: ",b),C(w)},onOk:F,disabled:!s,placeholder:a({en:"Select time",vi:"Chọn thời gian"})})}),oe.jsx(Ot,{title:a({en:"Find first message",vi:"Tìm tin nhắn đầu tiên"}),children:oe.jsx(Ft,{type:"primary",onClick:R,loading:p,disabled:!s,children:oe.jsx("i",{className:"fa-solid fa-clock-rotate-left"})})})]})]}),oe.jsx(ot,{ref:y,direction:"vertical",size:3,style:{width:"100%",maxHeight:"70vh",overflow:"auto",padding:12},children:V()})]})}function Kl(e,t){let n=4;if(t){if(e==="start")return{borderBottomRightRadius:n};if(e==="middle")return{borderBottomRightRadius:n,borderTopRightRadius:n};if(e==="end")return{borderTopRightRadius:n}}else{if(e==="start")return{borderBottomLeftRadius:n};if(e==="middle")return{borderBottomLeftRadius:n,borderTopLeftRadius:n};if(e==="end")return{borderTopLeftRadius:n}}return{}}function Gl({message:e,myProfile:t}){var s;const n=ka(wa.darkMode),a=e.position,r=e.sender===t.uid,l={display:"block",wordBreak:"break-word",padding:"8px 12px",backgroundColor:r?"#0184ff":n?"#303030":"#f0f0f0",color:n||r?"#eee":"#111",whiteSpace:"pre-line",margin:0,maxWidth:400,borderTopLeftRadius:24,borderTopRightRadius:24,borderBottomLeftRadius:24,borderBottomRightRadius:24,...Kl(a,r)},i=a==="end"||a==="single",u=oe.jsx("div",{style:{flex:1}});return oe.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",marginBottom:i?12:2},children:[r?u:i?oe.jsx("a",{href:Br(e.sender),target:"_blank",children:oe.jsx(co,{shape:"circle",size:40,src:Wr(e.sender),style:{marginRight:8}})}):oe.jsx("div",{style:{width:48}}),oe.jsxs(Ot,{title:$e(e.time).format("YYYY-MM-DD HH:mm"),placement:r?"left":"right",children:[e.text&&oe.jsx(ro.Paragraph,{style:l,children:e.text}),e.sticker&&oe.jsx(la,{width:150,src:e.sticker}),(s=e.attachments)==null?void 0:s.map((d,c)=>d.type==="video"?oe.jsx(Xr,{src:d.uri,style:{maxHeight:300,maxWidth:300}},"attachment"+c):d.type==="image"||d.type==="gif"?oe.jsx(la,{src:d.uri,style:{maxHeight:300,maxWidth:300}},"attachment"+c):d.type==="file"?oe.jsxs("a",{href:d.uri,target:"_blank",rel:"noreferrer",style:l,children:["File: ",d.filename]},"attachment"+c):null)]}),!r&&u]})}export{pi as default}; diff --git a/public/assets/FriendRequests-MGmAsJvG.js b/public/assets/FriendRequests-Cjy_XoL8.js similarity index 93% rename from public/assets/FriendRequests-MGmAsJvG.js rename to public/assets/FriendRequests-Cjy_XoL8.js index c41a51c..3606e11 100644 --- a/public/assets/FriendRequests-MGmAsJvG.js +++ b/public/assets/FriendRequests-Cjy_XoL8.js @@ -1 +1 @@ -import{r as H,aA as s,aB as k,aS as A}from"./index--trdnQFa.js";import{D,E as O,G as X,u as ee,d as ne,g as w,t as $,M as V,b,j as te,f as W,L as ie,c as se,T as I,k as ce,i as re,U as ae}from"./MyApp-BHr373cy.js";import oe from"./MyTable-BTHATUSD.js";import{u as le}from"./useForceStop-B53S8Rhf.js";import{A as de}from"./index-DTxLlwd8.js";import{I as ue}from"./index-CB9InVBI.js";import{R as ge}from"./row-DQoT4CfJ.js";import{T as he}from"./index-VHrAsB-Q.js";import{R as z}from"./Table-GiCOcILW.js";import{P as Q}from"./index-CB2nR54F.js";import"./index-X7jfXLlB.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./responsiveObserver-DiDk9dGL.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";import"./addEventListener-KkFh1sjE.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./Pagination-CPGTHysj.js";var a=(e=>(e.INCOMING_REQUEST="INCOMING_REQUEST",e.OUTGOING_REQUEST="OUTGOING_REQUEST",e.DECLINED="DECLINED",e.ACCEPTED="ACCEPTED",e.CANCELED="CANCELED",e))(a||{});async function me(e=""){const o=await D({fb_api_req_friendly_name:"FriendingCometFriendRequestsGridPaginationQuery",variables:{count:20,cursor:e,scale:2},doc_id:"5073444706045886"}),l=O(o),{edges:h=[],page_info:d={}}=X(l);return h.map((t,C)=>{var p,E,_,N,q,R,v,y;return{id:(p=t==null?void 0:t.node)==null?void 0:p.id,name:(E=t==null?void 0:t.node)==null?void 0:E.name,avatar:(N=(_=t==null?void 0:t.node)==null?void 0:_.profile_picture)==null?void 0:N.uri,url:(q=t==null?void 0:t.node)==null?void 0:q.url,desc:(v=(R=t==null?void 0:t.node)==null?void 0:R.social_context)==null?void 0:v.text,seen:t==null?void 0:t.is_seen,time:((t==null?void 0:t.time)||0)*1e3,type:(y=t==null?void 0:t.node)==null?void 0:y.friendship_status,cursor:t==null?void 0:t.cursor}})}async function fe(e=""){const o=await D({fb_api_req_friendly_name:"FriendingCometOutgoingRequestsDialogPaginationQuery",variables:{count:10,cursor:e,scale:2},doc_id:"4420916318007844"}),l=O(o),{edges:h=[],page_info:d={}}=X(l);return h.map((t,C)=>{var p,E,_,N,q,R,v,y;return{id:(p=t==null?void 0:t.node)==null?void 0:p.id,name:(E=t==null?void 0:t.node)==null?void 0:E.name,avatar:(N=(_=t==null?void 0:t.node)==null?void 0:_.profile_picture)==null?void 0:N.uri,url:(q=t==null?void 0:t.node)==null?void 0:q.url,desc:(v=(R=t==null?void 0:t.node)==null?void 0:R.social_context)==null?void 0:v.text,seen:t==null?void 0:t.is_seen,time:((t==null?void 0:t.time)||0)*1e3,type:(y=t==null?void 0:t.node)==null?void 0:y.friendship_status,cursor:t==null?void 0:t.cursor}})}async function pe(e=""){var h,d,t;const o=await D({variables:{input:{friend_requester_id:e,source:"friends_tab",actor_id:"me"},scale:2,refresh_num:0},doc_id:"4189738374386264"}),l=O(o);return((t=(d=(h=l==null?void 0:l.data)==null?void 0:h.friend_request_delete)==null?void 0:d.friend_requester)==null?void 0:t.id)==e}async function xe(e=""){var h,d,t;const o=await D({variables:{input:{friend_requester_id:e,source:"friends_tab",actor_id:"me"},scale:2,refresh_num:0},doc_id:"3750307704981867"}),l=O(o);return((t=(d=(h=l==null?void 0:l.data)==null?void 0:h.friend_request_accept)==null?void 0:d.friend_requester)==null?void 0:t.id)==e}async function ye(e=""){var h,d,t;const o=await D({fb_api_req_friendly_name:"FriendingCometFriendRequestCancelMutation",variables:{input:{attribution_id_v2:"FriendingCometFriendRequestsRoot.react,comet.friending.friendrequests,unexpected,1724509964587,135627,2356318349,,;FriendingCometRoot.react,comet.friending,tap_bookmark,1724509961317,200700,2356318349,,",cancelled_friend_requestee_id:e,friending_channel:"MANAGE_OUTGOING_REQUESTS",actor_id:"me"},scale:2},doc_id:"5247084515315799"}),l=O(o);return((t=(d=(h=l==null?void 0:l.data)==null?void 0:h.friend_request_cancel)==null?void 0:d.cancelled_friend_requestee)==null?void 0:t.id)==e}const S={[a.INCOMING_REQUEST]:{vi:"Đã nhận",en:"Incoming",color:"default",icon:"fa-solid fa-arrow-turn-down"},[a.OUTGOING_REQUEST]:{vi:"Đã gửi",en:"Outgoing",color:"default",icon:"fa-solid fa-arrow-turn-up"},[a.DECLINED]:{vi:"Đã từ chối",en:"Declined",color:"error",icon:"fa-solid fa-xmark"},[a.ACCEPTED]:{vi:"Đã chấp nhận",en:"Accepted",color:"success",icon:"fa-solid fa-check"},[a.CANCELED]:{vi:"Đã huỷ",en:"Canceled",color:"error",icon:"fa-solid fa-xmark"}};function Pe(){const{ti:e}=ee(),{message:o,notification:l}=ne(),h=le(),[d,t]=w("FriendRequestType",a.INCOMING_REQUEST),[C,p]=w("FriendRequests.data",[]),[E,_]=w("FriendRequests.finished",!1),[N,q]=w("FriendRequests.loading",!1),R=H.useMemo(()=>C.filter(n=>n.type===d).map((n,i)=>({...n,recent:i})),[C,d]);H.useEffect(()=>{E||v(!1)},[d,E]);const v=async(n=!1)=>{const i=n?[]:C,c=h.start(),r="FriendRequests:onReload";$(r);const u=[a.INCOMING_REQUEST,a.OUTGOING_REQUEST].map(async x=>{var f;const m=S[x],T=r+x;try{const F=i.filter(g=>g.type===x),j=F[F.length-1];let G=F.length,B=n?"":j==null?void 0:j.cursor;const K=x===a.INCOMING_REQUEST?me:fe;for(;!c.value();){o.loading({key:T,content:e({en:`Loading ${m.en} friend requests...`,vi:`Đang tải yêu cầu kết bạn ${m.vi}...`})+G,duration:0});const g=await K(B);if(!(g!=null&&g.length))break;G+=g==null?void 0:g.length,B=(f=g==null?void 0:g[(g==null?void 0:g.length)-1])==null?void 0:f.cursor,p(Z=>[...Z,...g]),await V(1e3)}o.success({key:T,content:e({en:"Loaded friend requests "+m.en+": ",vi:"Tải xong yêu cầu kết bạn "+m.vi+": "})+G})}catch(F){l.open({type:"error",message:e({en:"Failed to load friend requests "+m.en+": ",vi:"Lỗi tải yêu cầu kết bạn "+m.vi+": "}),description:F.message})}});q(!0),_(!1),await Promise.all(u),q(!1),_(!c.value())},y=async({data:n,key:i,actionFn:c,loadingText:r,successText:u})=>{if(!await ce()||!(n!=null&&n.length))return;const x=i+":waiting";$(i);let m=!1,T=[];for(let f=0;f{o.loading({key:i,content:e({en:"Stopping...",vi:"Đang dừng..."}),duration:0}),m=!0}}),await c(n[f])&&T.push(n[f]),!m);f++)if(fs.jsx("li",{children:s.jsx("a",{target:"_blank",href:re(f.id),children:f.name})},f.id))})})},U=async({key:n,record:i,loadingText:c,successText:r,failedText:u,action:x,onSuccess:m})=>{$(n);try{if(o.loading({key:n,content:c+i.name,duration:0}),await x())return m==null||m(),o.success({key:n,content:r+i.name}),!0;throw new Error("Facebook response error")}catch(T){return o.destroy(n),l.open({type:"error",message:u+i.name,description:T.message}),!1}finally{}},L=n=>U({key:"FriendRequests:onClickDeclineFriendRequest",record:n,loadingText:e({en:"Declining friend request...",vi:"Đang từ chối yêu cầu kết bạn..."}),successText:e({en:"Declined friend request ",vi:"Từ chối yêu cầu thành công "}),failedText:e({en:"Failed to decline friend request: ",vi:"Lỗi từ chối yêu cầu kết bạn: "}),action:()=>pe(n.id),onSuccess:()=>{p(i=>A(i,c=>{const r=c.findIndex(u=>u.id===n.id);return r>=0&&(c[r].type=a.DECLINED),c}))}}),M=n=>U({key:"FriendRequests:onClickAcceptFriendRequest",record:n,loadingText:e({en:"Accepting friend request...",vi:"Đang đồng ý yêu cầu kết bạn..."}),successText:e({en:"Accepted friend request ",vi:"Đã đồng ý yêu cầu kết bạn "}),failedText:e({en:"Failed to accept friend request: ",vi:"Lỗi đồng ý yêu cầu kết bạn: "}),action:()=>xe(n.id),onSuccess:()=>{p(i=>A(i,c=>{const r=c.findIndex(u=>u.id===n.id);return r>=0&&(c[r].type=a.ACCEPTED),c}))}}),P=n=>U({key:"FriendRequests:onClickCancelOutgoingRequest",record:n,loadingText:e({en:"Canceling friend request...",vi:"Đang thu hồi yêu cầu kết bạn..."}),successText:e({en:"canceled friend request ",vi:"Đã thu hồi yêu cầu kết bạn "}),failedText:e({en:"Failed to cancel friend request: ",vi:"Lỗi thu hồi yêu cầu kết bạn: "}),action:()=>ye(n.id),onSuccess:()=>{p(i=>A(i,c=>{const r=c.findIndex(u=>u.id===n.id);return r>=0&&(c[r].type=a.CANCELED),c}))}}),Y=n=>{const i=n!=null&&n.length?[...n]:[...C],c=i.filter(u=>u.type===a.INCOMING_REQUEST),r=i.filter(u=>u.type===a.OUTGOING_REQUEST);return s.jsxs(s.Fragment,{children:[s.jsx(k,{type:"primary",icon:N?s.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):s.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>v(!0),children:e({en:"Reload",vi:"Tải lại"})}),d===a.INCOMING_REQUEST?s.jsxs(b.Compact,{children:[s.jsx(I,{title:e({en:`Accept ${c.length} selected incoming requests`,vi:`Đồng ý ${c.length} lời mời đang chọn`}),children:s.jsx(Q,{title:e({en:`Accept ${c.length} selected incoming requests`,vi:`Đồng ý ${c.length} lời mời đang chọn`}),description:e({en:`Are your sure want to accept ${c.length} incoming requests?`,vi:`Bản có chãc muốn đồng ý ${c.length} lời mời?`}),onConfirm:()=>y({data:c,key:"FriendRequests:onClickAcceptSelectedIncomingFriendRequests",actionFn:M,loadingText:e({en:"Accepting incoming requests...",vi:"Đang đồng ý lời mời..."}),successText:e({en:"Accepted incoming requests done: ",vi:"Đồng ý lời mời xong: "})}),okText:e({en:"Accept",vi:"Đồng ý"}),cancelText:e({en:"No",vi:"Huỷ"}),children:s.jsx(k,{disabled:c.length<=0,icon:s.jsx("i",{className:"fa-solid fa-check"}),children:c.length})})}),s.jsx(I,{title:e({en:`Decline ${c.length} selected incoming requests`,vi:`Từ chối ${c.length} lời mời đang chọn`}),children:s.jsx(Q,{title:e({en:`Decline ${c.length} selected incoming requests`,vi:`Từ chối ${c.length} lời mời đang chọn`}),description:e({en:`Are your sure want to decline ${c.length} incoming requests?`,vi:`Bản có chãc muốn từ chối ${c.length} lời mời?`}),onConfirm:()=>y({data:c,key:"FriendRequests:onClickDeclineSelectedIncomingFriendRequests",actionFn:L,loadingText:e({en:"Declining incoming requests...",vi:"Đang từ chối lời mời..."}),successText:e({en:"Declined incoming requests done: ",vi:"Từ chối lời mời xong: "})}),okText:e({en:"Decline",vi:"Từ chối"}),cancelText:e({en:"No",vi:"Huỷ"}),children:s.jsx(k,{danger:!0,disabled:c.length<=0,icon:s.jsx("i",{className:"fa-regular fa-trash-can"}),children:c.length})})})]}):s.jsx(s.Fragment,{children:s.jsx(I,{title:e({en:`Cancel ${r.length} selected outgoing requests`,vi:`Thu hồi ${r.length} yêu cầu đang chọn`}),children:s.jsx(Q,{title:e({en:`Cancel ${r.length} selected outgoing requests`,vi:`Thu hồi ${r.length} yêu cầu đang chọn`}),description:e({en:`Are your sure want to cancel ${r.length} outgoing requests?`,vi:`Bản có chãc muốn thu hồi ${r.length} yêu cầu?`}),onConfirm:()=>y({data:r,key:"FriendRequests:onClickCancelSelectedOutgoingFriendRequests",actionFn:P,loadingText:e({en:"Canceling outgoing requests...",vi:"Đang thu hồi yêu cầu..."}),successText:e({en:"Declined requests done: ",vi:"Thu hồi yêu cầu xong: "})}),okText:e({en:"Cancel",vi:"Thu hồi"}),cancelText:e({en:"No",vi:"Huỷ"}),children:s.jsx(k,{danger:!0,disabled:r.length<=0,icon:s.jsx("i",{className:"fa-regular fa-trash-can"}),children:r.length})})})}),s.jsx(I,{title:e({en:"View on Facebook",vi:"Xem trên Facebook"}),children:s.jsx(k,{icon:s.jsx("i",{className:"fa-solid fa-external-link"}),onClick:()=>window.open("https://www.facebook.com/friends/requests","_blank")})})]})},J=[{title:"#",key:"recent",dataIndex:"recent",render:(n,i,c)=>i.recent+1,sorter:(n,i)=>n.recent-i.recent,width:50},{title:e({en:"Name",vi:"Tên"}),key:"name",dataIndex:"name",sorter:(n,i)=>(n.name||"").localeCompare(i.name||""),render:(n,i,c)=>s.jsxs(b,{align:"center",style:{maxWidth:300},children:[s.jsx(de,{shape:"square",src:s.jsx(ue,{src:te(i.id),fallback:i.avatar}),size:50}),s.jsxs(b,{direction:"vertical",style:{marginLeft:"10px"},size:0,children:[s.jsx("a",{href:i.url,target:"_blank",children:s.jsx("b",{children:i.name})}),s.jsx("span",{style:{opacity:.5},children:i.id})]})]})},{title:e({en:"Description",vi:"Mô tả"}),key:"desc",dataIndex:"desc",sorter:(n,i)=>(n.desc||"").localeCompare(i.desc||""),render:(n,i,c)=>s.jsx("p",{style:{maxWidth:150,minWidth:100},children:i.desc}),width:"auto"},{title:e({en:"Time",vi:"Thời gian"}),key:"time",dataIndex:"time",sorter:(n,i)=>n.time-i.time,render:(n,i,c)=>W(i.time,e({en:"en-US",vi:"vi-VN"}))||"-",onSearch:(n,i)=>ie(n,W(i,e({en:"en-US",vi:"vi-VN"}))),align:"right",width:180},{title:e({en:"Status",vi:"Trạng thái"}),key:"type",dataIndex:"type",filters:(d===a.INCOMING_REQUEST?[a.INCOMING_REQUEST,a.ACCEPTED,a.DECLINED]:[a.OUTGOING_REQUEST,a.CANCELED]).map(n=>{const i=S[n],c=C.filter(r=>r.type===n).length;return{text:e(i)+` (${c})`,value:n}}),onFilter:(n,i)=>i.type===n,render:(n,i,c)=>{const r=S[i.type];return s.jsx(se,{color:r==null?void 0:r.color,children:e(r)})},align:"right"},{title:e({en:"Action",vi:"Hành động"}),key:"action",dataIndex:"action",render:(n,i,c)=>i.type===a.INCOMING_REQUEST?s.jsxs(b.Compact,{children:[s.jsx(I,{title:e({en:"Accept",vi:"Đồng ý"}),children:s.jsx(k,{onClick:()=>M(i),icon:s.jsx("i",{className:"fa-solid fa-check"})})}),s.jsx(I,{title:e({en:"Decline",vi:"Từ chối"}),children:s.jsx(k,{danger:!0,onClick:()=>L(i),icon:s.jsx("i",{className:"fa-solid fa-trash-can"})})})]}):i.type===a.OUTGOING_REQUEST?s.jsx(b.Compact,{children:s.jsx(I,{title:e({en:"Cancel",vi:"Thu hồi"}),children:s.jsx(k,{danger:!0,onClick:()=>P(i),icon:s.jsx("i",{className:"fa-solid fa-trash-can"})})})}):null,align:"right",width:100}];return s.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[s.jsx(ge,{align:"middle",style:{margin:"16px"},children:s.jsx(he.Title,{level:3,style:{margin:0},children:e({en:"Friend Requests",vi:"Lời mời kết bạn"})})}),s.jsx(z.Group,{defaultValue:d,buttonStyle:"solid",style:{marginBottom:10},children:[a.INCOMING_REQUEST,a.OUTGOING_REQUEST].map(n=>s.jsxs(z.Button,{value:n,onClick:()=>{t(n)},children:[s.jsx("i",{className:S[n].icon})," ",`${e(S[n])} ${C.filter(i=>i.type===n).length}`]},n))}),s.jsx(oe,{data:R,columns:J,renderTitle:Y,size:"small",searchable:!0,selectable:!0,keyExtractor:n=>n.id})]})}export{Pe as default}; +import{r as H,aA as s,aB as k,aS as A}from"./index-BBriuzNA.js";import{D,E as O,G as X,u as ee,d as ne,g as w,t as $,M as V,b,j as te,f as W,L as ie,c as se,T as I,k as ce,i as re,U as ae}from"./MyApp-CmkiOnMb.js";import oe from"./MyTable-C-6hHnGo.js";import{u as le}from"./useForceStop-DOwcs-PE.js";import{A as de}from"./index-CbmP82sr.js";import{I as ue}from"./index-Dm20K0UU.js";import{R as ge}from"./row-C0Wk6t4-.js";import{T as he}from"./index-Bumumc8Y.js";import{R as z}from"./Table-By6CV266.js";import{P as Q}from"./index-BM7CeakW.js";import"./index-NjHtWr7u.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./responsiveObserver-Bb1LONna.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";import"./addEventListener-w7NT04KM.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./Pagination-slfcHA-i.js";var a=(e=>(e.INCOMING_REQUEST="INCOMING_REQUEST",e.OUTGOING_REQUEST="OUTGOING_REQUEST",e.DECLINED="DECLINED",e.ACCEPTED="ACCEPTED",e.CANCELED="CANCELED",e))(a||{});async function me(e=""){const o=await D({fb_api_req_friendly_name:"FriendingCometFriendRequestsGridPaginationQuery",variables:{count:20,cursor:e,scale:2},doc_id:"5073444706045886"}),l=O(o),{edges:h=[],page_info:d={}}=X(l);return h.map((t,C)=>{var p,E,_,N,q,R,v,y;return{id:(p=t==null?void 0:t.node)==null?void 0:p.id,name:(E=t==null?void 0:t.node)==null?void 0:E.name,avatar:(N=(_=t==null?void 0:t.node)==null?void 0:_.profile_picture)==null?void 0:N.uri,url:(q=t==null?void 0:t.node)==null?void 0:q.url,desc:(v=(R=t==null?void 0:t.node)==null?void 0:R.social_context)==null?void 0:v.text,seen:t==null?void 0:t.is_seen,time:((t==null?void 0:t.time)||0)*1e3,type:(y=t==null?void 0:t.node)==null?void 0:y.friendship_status,cursor:t==null?void 0:t.cursor}})}async function fe(e=""){const o=await D({fb_api_req_friendly_name:"FriendingCometOutgoingRequestsDialogPaginationQuery",variables:{count:10,cursor:e,scale:2},doc_id:"4420916318007844"}),l=O(o),{edges:h=[],page_info:d={}}=X(l);return h.map((t,C)=>{var p,E,_,N,q,R,v,y;return{id:(p=t==null?void 0:t.node)==null?void 0:p.id,name:(E=t==null?void 0:t.node)==null?void 0:E.name,avatar:(N=(_=t==null?void 0:t.node)==null?void 0:_.profile_picture)==null?void 0:N.uri,url:(q=t==null?void 0:t.node)==null?void 0:q.url,desc:(v=(R=t==null?void 0:t.node)==null?void 0:R.social_context)==null?void 0:v.text,seen:t==null?void 0:t.is_seen,time:((t==null?void 0:t.time)||0)*1e3,type:(y=t==null?void 0:t.node)==null?void 0:y.friendship_status,cursor:t==null?void 0:t.cursor}})}async function pe(e=""){var h,d,t;const o=await D({variables:{input:{friend_requester_id:e,source:"friends_tab",actor_id:"me"},scale:2,refresh_num:0},doc_id:"4189738374386264"}),l=O(o);return((t=(d=(h=l==null?void 0:l.data)==null?void 0:h.friend_request_delete)==null?void 0:d.friend_requester)==null?void 0:t.id)==e}async function xe(e=""){var h,d,t;const o=await D({variables:{input:{friend_requester_id:e,source:"friends_tab",actor_id:"me"},scale:2,refresh_num:0},doc_id:"3750307704981867"}),l=O(o);return((t=(d=(h=l==null?void 0:l.data)==null?void 0:h.friend_request_accept)==null?void 0:d.friend_requester)==null?void 0:t.id)==e}async function ye(e=""){var h,d,t;const o=await D({fb_api_req_friendly_name:"FriendingCometFriendRequestCancelMutation",variables:{input:{attribution_id_v2:"FriendingCometFriendRequestsRoot.react,comet.friending.friendrequests,unexpected,1724509964587,135627,2356318349,,;FriendingCometRoot.react,comet.friending,tap_bookmark,1724509961317,200700,2356318349,,",cancelled_friend_requestee_id:e,friending_channel:"MANAGE_OUTGOING_REQUESTS",actor_id:"me"},scale:2},doc_id:"5247084515315799"}),l=O(o);return((t=(d=(h=l==null?void 0:l.data)==null?void 0:h.friend_request_cancel)==null?void 0:d.cancelled_friend_requestee)==null?void 0:t.id)==e}const S={[a.INCOMING_REQUEST]:{vi:"Đã nhận",en:"Incoming",color:"default",icon:"fa-solid fa-arrow-turn-down"},[a.OUTGOING_REQUEST]:{vi:"Đã gửi",en:"Outgoing",color:"default",icon:"fa-solid fa-arrow-turn-up"},[a.DECLINED]:{vi:"Đã từ chối",en:"Declined",color:"error",icon:"fa-solid fa-xmark"},[a.ACCEPTED]:{vi:"Đã chấp nhận",en:"Accepted",color:"success",icon:"fa-solid fa-check"},[a.CANCELED]:{vi:"Đã huỷ",en:"Canceled",color:"error",icon:"fa-solid fa-xmark"}};function Pe(){const{ti:e}=ee(),{message:o,notification:l}=ne(),h=le(),[d,t]=w("FriendRequestType",a.INCOMING_REQUEST),[C,p]=w("FriendRequests.data",[]),[E,_]=w("FriendRequests.finished",!1),[N,q]=w("FriendRequests.loading",!1),R=H.useMemo(()=>C.filter(n=>n.type===d).map((n,i)=>({...n,recent:i})),[C,d]);H.useEffect(()=>{E||v(!1)},[d,E]);const v=async(n=!1)=>{const i=n?[]:C,c=h.start(),r="FriendRequests:onReload";$(r);const u=[a.INCOMING_REQUEST,a.OUTGOING_REQUEST].map(async x=>{var f;const m=S[x],T=r+x;try{const F=i.filter(g=>g.type===x),j=F[F.length-1];let G=F.length,B=n?"":j==null?void 0:j.cursor;const K=x===a.INCOMING_REQUEST?me:fe;for(;!c.value();){o.loading({key:T,content:e({en:`Loading ${m.en} friend requests...`,vi:`Đang tải yêu cầu kết bạn ${m.vi}...`})+G,duration:0});const g=await K(B);if(!(g!=null&&g.length))break;G+=g==null?void 0:g.length,B=(f=g==null?void 0:g[(g==null?void 0:g.length)-1])==null?void 0:f.cursor,p(Z=>[...Z,...g]),await V(1e3)}o.success({key:T,content:e({en:"Loaded friend requests "+m.en+": ",vi:"Tải xong yêu cầu kết bạn "+m.vi+": "})+G})}catch(F){l.open({type:"error",message:e({en:"Failed to load friend requests "+m.en+": ",vi:"Lỗi tải yêu cầu kết bạn "+m.vi+": "}),description:F.message})}});q(!0),_(!1),await Promise.all(u),q(!1),_(!c.value())},y=async({data:n,key:i,actionFn:c,loadingText:r,successText:u})=>{if(!await ce()||!(n!=null&&n.length))return;const x=i+":waiting";$(i);let m=!1,T=[];for(let f=0;f{o.loading({key:i,content:e({en:"Stopping...",vi:"Đang dừng..."}),duration:0}),m=!0}}),await c(n[f])&&T.push(n[f]),!m);f++)if(fs.jsx("li",{children:s.jsx("a",{target:"_blank",href:re(f.id),children:f.name})},f.id))})})},U=async({key:n,record:i,loadingText:c,successText:r,failedText:u,action:x,onSuccess:m})=>{$(n);try{if(o.loading({key:n,content:c+i.name,duration:0}),await x())return m==null||m(),o.success({key:n,content:r+i.name}),!0;throw new Error("Facebook response error")}catch(T){return o.destroy(n),l.open({type:"error",message:u+i.name,description:T.message}),!1}finally{}},L=n=>U({key:"FriendRequests:onClickDeclineFriendRequest",record:n,loadingText:e({en:"Declining friend request...",vi:"Đang từ chối yêu cầu kết bạn..."}),successText:e({en:"Declined friend request ",vi:"Từ chối yêu cầu thành công "}),failedText:e({en:"Failed to decline friend request: ",vi:"Lỗi từ chối yêu cầu kết bạn: "}),action:()=>pe(n.id),onSuccess:()=>{p(i=>A(i,c=>{const r=c.findIndex(u=>u.id===n.id);return r>=0&&(c[r].type=a.DECLINED),c}))}}),M=n=>U({key:"FriendRequests:onClickAcceptFriendRequest",record:n,loadingText:e({en:"Accepting friend request...",vi:"Đang đồng ý yêu cầu kết bạn..."}),successText:e({en:"Accepted friend request ",vi:"Đã đồng ý yêu cầu kết bạn "}),failedText:e({en:"Failed to accept friend request: ",vi:"Lỗi đồng ý yêu cầu kết bạn: "}),action:()=>xe(n.id),onSuccess:()=>{p(i=>A(i,c=>{const r=c.findIndex(u=>u.id===n.id);return r>=0&&(c[r].type=a.ACCEPTED),c}))}}),P=n=>U({key:"FriendRequests:onClickCancelOutgoingRequest",record:n,loadingText:e({en:"Canceling friend request...",vi:"Đang thu hồi yêu cầu kết bạn..."}),successText:e({en:"canceled friend request ",vi:"Đã thu hồi yêu cầu kết bạn "}),failedText:e({en:"Failed to cancel friend request: ",vi:"Lỗi thu hồi yêu cầu kết bạn: "}),action:()=>ye(n.id),onSuccess:()=>{p(i=>A(i,c=>{const r=c.findIndex(u=>u.id===n.id);return r>=0&&(c[r].type=a.CANCELED),c}))}}),Y=n=>{const i=n!=null&&n.length?[...n]:[...C],c=i.filter(u=>u.type===a.INCOMING_REQUEST),r=i.filter(u=>u.type===a.OUTGOING_REQUEST);return s.jsxs(s.Fragment,{children:[s.jsx(k,{type:"primary",icon:N?s.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):s.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>v(!0),children:e({en:"Reload",vi:"Tải lại"})}),d===a.INCOMING_REQUEST?s.jsxs(b.Compact,{children:[s.jsx(I,{title:e({en:`Accept ${c.length} selected incoming requests`,vi:`Đồng ý ${c.length} lời mời đang chọn`}),children:s.jsx(Q,{title:e({en:`Accept ${c.length} selected incoming requests`,vi:`Đồng ý ${c.length} lời mời đang chọn`}),description:e({en:`Are your sure want to accept ${c.length} incoming requests?`,vi:`Bản có chãc muốn đồng ý ${c.length} lời mời?`}),onConfirm:()=>y({data:c,key:"FriendRequests:onClickAcceptSelectedIncomingFriendRequests",actionFn:M,loadingText:e({en:"Accepting incoming requests...",vi:"Đang đồng ý lời mời..."}),successText:e({en:"Accepted incoming requests done: ",vi:"Đồng ý lời mời xong: "})}),okText:e({en:"Accept",vi:"Đồng ý"}),cancelText:e({en:"No",vi:"Huỷ"}),children:s.jsx(k,{disabled:c.length<=0,icon:s.jsx("i",{className:"fa-solid fa-check"}),children:c.length})})}),s.jsx(I,{title:e({en:`Decline ${c.length} selected incoming requests`,vi:`Từ chối ${c.length} lời mời đang chọn`}),children:s.jsx(Q,{title:e({en:`Decline ${c.length} selected incoming requests`,vi:`Từ chối ${c.length} lời mời đang chọn`}),description:e({en:`Are your sure want to decline ${c.length} incoming requests?`,vi:`Bản có chãc muốn từ chối ${c.length} lời mời?`}),onConfirm:()=>y({data:c,key:"FriendRequests:onClickDeclineSelectedIncomingFriendRequests",actionFn:L,loadingText:e({en:"Declining incoming requests...",vi:"Đang từ chối lời mời..."}),successText:e({en:"Declined incoming requests done: ",vi:"Từ chối lời mời xong: "})}),okText:e({en:"Decline",vi:"Từ chối"}),cancelText:e({en:"No",vi:"Huỷ"}),children:s.jsx(k,{danger:!0,disabled:c.length<=0,icon:s.jsx("i",{className:"fa-regular fa-trash-can"}),children:c.length})})})]}):s.jsx(s.Fragment,{children:s.jsx(I,{title:e({en:`Cancel ${r.length} selected outgoing requests`,vi:`Thu hồi ${r.length} yêu cầu đang chọn`}),children:s.jsx(Q,{title:e({en:`Cancel ${r.length} selected outgoing requests`,vi:`Thu hồi ${r.length} yêu cầu đang chọn`}),description:e({en:`Are your sure want to cancel ${r.length} outgoing requests?`,vi:`Bản có chãc muốn thu hồi ${r.length} yêu cầu?`}),onConfirm:()=>y({data:r,key:"FriendRequests:onClickCancelSelectedOutgoingFriendRequests",actionFn:P,loadingText:e({en:"Canceling outgoing requests...",vi:"Đang thu hồi yêu cầu..."}),successText:e({en:"Declined requests done: ",vi:"Thu hồi yêu cầu xong: "})}),okText:e({en:"Cancel",vi:"Thu hồi"}),cancelText:e({en:"No",vi:"Huỷ"}),children:s.jsx(k,{danger:!0,disabled:r.length<=0,icon:s.jsx("i",{className:"fa-regular fa-trash-can"}),children:r.length})})})}),s.jsx(I,{title:e({en:"View on Facebook",vi:"Xem trên Facebook"}),children:s.jsx(k,{icon:s.jsx("i",{className:"fa-solid fa-external-link"}),onClick:()=>window.open("https://www.facebook.com/friends/requests","_blank")})})]})},J=[{title:"#",key:"recent",dataIndex:"recent",render:(n,i,c)=>i.recent+1,sorter:(n,i)=>n.recent-i.recent,width:50},{title:e({en:"Name",vi:"Tên"}),key:"name",dataIndex:"name",sorter:(n,i)=>(n.name||"").localeCompare(i.name||""),render:(n,i,c)=>s.jsxs(b,{align:"center",style:{maxWidth:300},children:[s.jsx(de,{shape:"square",src:s.jsx(ue,{src:te(i.id),fallback:i.avatar}),size:50}),s.jsxs(b,{direction:"vertical",style:{marginLeft:"10px"},size:0,children:[s.jsx("a",{href:i.url,target:"_blank",children:s.jsx("b",{children:i.name})}),s.jsx("span",{style:{opacity:.5},children:i.id})]})]})},{title:e({en:"Description",vi:"Mô tả"}),key:"desc",dataIndex:"desc",sorter:(n,i)=>(n.desc||"").localeCompare(i.desc||""),render:(n,i,c)=>s.jsx("p",{style:{maxWidth:150,minWidth:100},children:i.desc}),width:"auto"},{title:e({en:"Time",vi:"Thời gian"}),key:"time",dataIndex:"time",sorter:(n,i)=>n.time-i.time,render:(n,i,c)=>W(i.time,e({en:"en-US",vi:"vi-VN"}))||"-",onSearch:(n,i)=>ie(n,W(i,e({en:"en-US",vi:"vi-VN"}))),align:"right",width:180},{title:e({en:"Status",vi:"Trạng thái"}),key:"type",dataIndex:"type",filters:(d===a.INCOMING_REQUEST?[a.INCOMING_REQUEST,a.ACCEPTED,a.DECLINED]:[a.OUTGOING_REQUEST,a.CANCELED]).map(n=>{const i=S[n],c=C.filter(r=>r.type===n).length;return{text:e(i)+` (${c})`,value:n}}),onFilter:(n,i)=>i.type===n,render:(n,i,c)=>{const r=S[i.type];return s.jsx(se,{color:r==null?void 0:r.color,children:e(r)})},align:"right"},{title:e({en:"Action",vi:"Hành động"}),key:"action",dataIndex:"action",render:(n,i,c)=>i.type===a.INCOMING_REQUEST?s.jsxs(b.Compact,{children:[s.jsx(I,{title:e({en:"Accept",vi:"Đồng ý"}),children:s.jsx(k,{onClick:()=>M(i),icon:s.jsx("i",{className:"fa-solid fa-check"})})}),s.jsx(I,{title:e({en:"Decline",vi:"Từ chối"}),children:s.jsx(k,{danger:!0,onClick:()=>L(i),icon:s.jsx("i",{className:"fa-solid fa-trash-can"})})})]}):i.type===a.OUTGOING_REQUEST?s.jsx(b.Compact,{children:s.jsx(I,{title:e({en:"Cancel",vi:"Thu hồi"}),children:s.jsx(k,{danger:!0,onClick:()=>P(i),icon:s.jsx("i",{className:"fa-solid fa-trash-can"})})})}):null,align:"right",width:100}];return s.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[s.jsx(ge,{align:"middle",style:{margin:"16px"},children:s.jsx(he.Title,{level:3,style:{margin:0},children:e({en:"Friend Requests",vi:"Lời mời kết bạn"})})}),s.jsx(z.Group,{defaultValue:d,buttonStyle:"solid",style:{marginBottom:10},children:[a.INCOMING_REQUEST,a.OUTGOING_REQUEST].map(n=>s.jsxs(z.Button,{value:n,onClick:()=>{t(n)},children:[s.jsx("i",{className:S[n].icon})," ",`${e(S[n])} ${C.filter(i=>i.type===n).length}`]},n))}),s.jsx(oe,{data:R,columns:J,renderTitle:Y,size:"small",searchable:!0,selectable:!0,keyExtractor:n=>n.id})]})}export{Pe as default}; diff --git a/public/assets/GroupFiles-D5TDbajV.js b/public/assets/GroupFiles-DQveYTaN.js similarity index 74% rename from public/assets/GroupFiles-D5TDbajV.js rename to public/assets/GroupFiles-DQveYTaN.js index 78b0c7b..18871b6 100644 --- a/public/assets/GroupFiles-D5TDbajV.js +++ b/public/assets/GroupFiles-DQveYTaN.js @@ -1 +1 @@ -import{r as _,aA as s}from"./index--trdnQFa.js";import{C as I}from"./Collection-CPPE61tF.js";import{D as T,E,u as F,b as k,T as v,B as N,L as S}from"./MyApp-BHr373cy.js";import{L as G}from"./index-BJNnFmyH.js";import{I as L}from"./index-CB9InVBI.js";import{T as R}from"./index-VHrAsB-Q.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";async function W({groupId:r="",cursor:a=""}){var o,l;const m=await T({fb_api_req_friendly_name:"GroupsCometFilesTabPaginationQuery",variables:{count:15,cursor:a,groupDocsFileName:null,groupID:r,orderby:"TIME_DESC",scale:1,id:r},doc_id:"24326962373618252"}),p=E(m),{edges:t=[],page_info:c={}}=((l=(o=p==null?void 0:p.data)==null?void 0:o.node)==null?void 0:l.group_docs_and_files)||{};return t.map(i=>{var u,w,f,x,h,y,d,b,j,C,e;return{download_url:(u=i==null?void 0:i.node)==null?void 0:u.download_url,name:(w=i==null?void 0:i.node)==null?void 0:w.name,post_url:(x=(f=i==null?void 0:i.node)==null?void 0:f.original_post)==null?void 0:x.url,creation_time:(y=(h=i==null?void 0:i.node)==null?void 0:h.original_post)==null?void 0:y.creation_time,icon:(b=(d=i==null?void 0:i.node)==null?void 0:d.icon)==null?void 0:b.uri,file_type:(j=i==null?void 0:i.node)==null?void 0:j.file_type,owners:(e=(C=i==null?void 0:i.node)==null?void 0:C.original_post)==null?void 0:e.actors.map(n=>({id:n==null?void 0:n.id,name:n==null?void 0:n.name,url:n==null?void 0:n.url})),cursor:c==null?void 0:c.end_cursor}})}function so({target:r}){const{ti:a}=F(),m=_.useCallback(async(o=[],l)=>{if(!(r!=null&&r.id)||!(r!=null&&r.type))return;const i=o==null?void 0:o[(o==null?void 0:o.length)-1];return await W({groupId:r==null?void 0:r.id,cursor:l||(i==null?void 0:i.cursor)||""})},[r]),p=_.useCallback(o=>s.jsx(G.Item,{children:s.jsxs(k,{direction:"vertical",align:"center",style:{minWidth:150},children:[s.jsx(v,{title:o.download_url?a({en:"Download",vi:"Tải xuống"}):a({en:"No download link",vi:"Không có link tải"}),children:s.jsx(k,{style:{padding:"10px"},children:s.jsx(N.Ribbon,{text:s.jsx("i",{className:"fa fa-times"}),color:"red",style:{display:o.download_url?"none":"block"},children:s.jsx(L,{src:o.icon,alt:o.name,width:70,height:70,style:{objectFit:"cover",borderRadius:"10px",cursor:"pointer"},preview:!1,onClick:()=>o.download_url&&window.open(o.download_url)})})})}),s.jsx(v,{title:a({en:"View post",vi:"Xem bài viết"}),placement:"bottom",children:s.jsx(R.Paragraph,{style:{maxWidth:"150px",wordWrap:"break-word"},onClick:()=>window.open(o.post_url),children:o.name})})]})}),[]),t=_.useCallback(async o=>({url:o.download_url,name:o.name}),[]),c=o=>o.cursor||"";return s.jsx(I,{collectionName:(r==null?void 0:r.name)+" - Files",fetchNext:m,renderItem:p,downloadItem:t,getItemCursor:c,rowKey:o=>o.name+o.creation_time,onSearch:(o,l)=>S(o,l.name)})}export{so as default}; +import{r as _,aA as s}from"./index-BBriuzNA.js";import{C as I}from"./Collection-B9SxfYr4.js";import{D as T,E,u as F,b as k,T as v,B as N,L as S}from"./MyApp-CmkiOnMb.js";import{L as G}from"./index-B7udrguy.js";import{I as L}from"./index-Dm20K0UU.js";import{T as R}from"./index-Bumumc8Y.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";async function W({groupId:r="",cursor:a=""}){var o,l;const m=await T({fb_api_req_friendly_name:"GroupsCometFilesTabPaginationQuery",variables:{count:15,cursor:a,groupDocsFileName:null,groupID:r,orderby:"TIME_DESC",scale:1,id:r},doc_id:"24326962373618252"}),p=E(m),{edges:t=[],page_info:c={}}=((l=(o=p==null?void 0:p.data)==null?void 0:o.node)==null?void 0:l.group_docs_and_files)||{};return t.map(i=>{var u,w,f,x,h,y,d,b,j,C,e;return{download_url:(u=i==null?void 0:i.node)==null?void 0:u.download_url,name:(w=i==null?void 0:i.node)==null?void 0:w.name,post_url:(x=(f=i==null?void 0:i.node)==null?void 0:f.original_post)==null?void 0:x.url,creation_time:(y=(h=i==null?void 0:i.node)==null?void 0:h.original_post)==null?void 0:y.creation_time,icon:(b=(d=i==null?void 0:i.node)==null?void 0:d.icon)==null?void 0:b.uri,file_type:(j=i==null?void 0:i.node)==null?void 0:j.file_type,owners:(e=(C=i==null?void 0:i.node)==null?void 0:C.original_post)==null?void 0:e.actors.map(n=>({id:n==null?void 0:n.id,name:n==null?void 0:n.name,url:n==null?void 0:n.url})),cursor:c==null?void 0:c.end_cursor}})}function so({target:r}){const{ti:a}=F(),m=_.useCallback(async(o=[],l)=>{if(!(r!=null&&r.id)||!(r!=null&&r.type))return;const i=o==null?void 0:o[(o==null?void 0:o.length)-1];return await W({groupId:r==null?void 0:r.id,cursor:l||(i==null?void 0:i.cursor)||""})},[r]),p=_.useCallback(o=>s.jsx(G.Item,{children:s.jsxs(k,{direction:"vertical",align:"center",style:{minWidth:150},children:[s.jsx(v,{title:o.download_url?a({en:"Download",vi:"Tải xuống"}):a({en:"No download link",vi:"Không có link tải"}),children:s.jsx(k,{style:{padding:"10px"},children:s.jsx(N.Ribbon,{text:s.jsx("i",{className:"fa fa-times"}),color:"red",style:{display:o.download_url?"none":"block"},children:s.jsx(L,{src:o.icon,alt:o.name,width:70,height:70,style:{objectFit:"cover",borderRadius:"10px",cursor:"pointer"},preview:!1,onClick:()=>o.download_url&&window.open(o.download_url)})})})}),s.jsx(v,{title:a({en:"View post",vi:"Xem bài viết"}),placement:"bottom",children:s.jsx(R.Paragraph,{style:{maxWidth:"150px",wordWrap:"break-word"},onClick:()=>window.open(o.post_url),children:o.name})})]})}),[]),t=_.useCallback(async o=>({url:o.download_url,name:o.name}),[]),c=o=>o.cursor||"";return s.jsx(I,{collectionName:(r==null?void 0:r.name)+" - Files",fetchNext:m,renderItem:p,downloadItem:t,getItemCursor:c,rowKey:o=>o.name+o.creation_time,onSearch:(o,l)=>S(o,l.name)})}export{so as default}; diff --git a/public/assets/GroupMembers-DssH4ITR.js b/public/assets/GroupMembers-Chpl4Jw5.js similarity index 64% rename from public/assets/GroupMembers-DssH4ITR.js rename to public/assets/GroupMembers-Chpl4Jw5.js index 6fcacb6..cdbb89e 100644 --- a/public/assets/GroupMembers-DssH4ITR.js +++ b/public/assets/GroupMembers-Chpl4Jw5.js @@ -1 +1 @@ -import{r as s,aA as i,aB as x}from"./index--trdnQFa.js";import{u as f}from"./useForceStop-B53S8Rhf.js";import{u as h,T as j,h as T}from"./MyApp-BHr373cy.js";import y from"./MyTable-BTHATUSD.js";import{b}from"./groups-DwKzy7u6.js";import{R as v}from"./row-DQoT4CfJ.js";import{A}from"./index-DTxLlwd8.js";import{I as C}from"./index-CB9InVBI.js";import{A as I}from"./index-fivsYW1W.js";import"./index-X7jfXLlB.js";import"./Table-GiCOcILW.js";import"./index-VHrAsB-Q.js";import"./addEventListener-KkFh1sjE.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";import"./index-DmA8T0X5.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./Pagination-CPGTHysj.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./index-CU7pBSDU.js";function Y({target:a}){const{ti:o}=h();f();const[n,k]=s.useState(!1),[r,d]=s.useState(null),[m,S]=s.useState([]),l=s.useMemo(()=>m.map((e,t)=>({...e,recent:t})),[m]);s.useEffect(()=>{!(a!=null&&a.id)||!(a!=null&&a.type)||b(a==null?void 0:a.id).then(e=>{d(e)})},[a]);const p=e=>i.jsxs(i.Fragment,{children:[i.jsx(j,{title:o({en:"Coming Soon",vi:"Sắp có"}),children:i.jsx(x,{type:"primary",icon:n?i.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):i.jsx("i",{className:"fa-solid fa-rotate-right"}),disabled:!0,children:o("Fetch all")})}),i.jsx(I,{showIcon:!0,type:"info",message:`${r==null?void 0:r.adminCount} admins. ${T(r==null?void 0:r.memberCount)} members`})]}),c=[{title:"#",dataIndex:"recent",key:"recent",render:(e,t,u)=>(t.recent||0)+1},{title:o({en:"Name",vi:"Tên"}),key:"name",dataIndex:"name",sorter:(e,t)=>e.name.localeCompare(t.name),render:(e,t,u)=>i.jsxs(v,{align:"middle",children:[i.jsx(A,{shape:"square",src:i.jsx(C,{src:t.avatar}),size:50}),i.jsx("a",{href:t.url,target:"_blank",style:{marginLeft:"10px"},children:i.jsx("b",{children:t.name})})]}),width:"auto"},{title:"Uid",dataIndex:"id",key:"id",sorter:(e,t)=>e.id.localeCompare(t.id),width:150},{title:o({en:"Joined time",vi:"Tham gia lúc"}),dataIndex:"joinedTime",key:"joinedTime",sorter:(e,t)=>e.joinedTime.localeCompare(t.joinedTime)},{title:o({en:"Last Active",vi:"Hoạt động gần nhất"}),dataIndex:"lastActiveTime",key:"lastActiveTime",sorter:(e,t)=>e.lastActiveTime.localeCompare(t.lastActiveTime)}];return i.jsx(y,{columns:c,data:l,keyExtractor:e=>e.id,searchable:!0,renderTitle:p})}export{Y as default}; +import{r as s,aA as i,aB as x}from"./index-BBriuzNA.js";import{u as f}from"./useForceStop-DOwcs-PE.js";import{u as h,T as j,h as T}from"./MyApp-CmkiOnMb.js";import y from"./MyTable-C-6hHnGo.js";import{b}from"./groups-DGwrOePX.js";import{R as v}from"./row-C0Wk6t4-.js";import{A}from"./index-CbmP82sr.js";import{I as C}from"./index-Dm20K0UU.js";import{A as I}from"./index-BhyNApA-.js";import"./index-NjHtWr7u.js";import"./Table-By6CV266.js";import"./index-Bumumc8Y.js";import"./addEventListener-w7NT04KM.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-tTPNrueW.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./Pagination-slfcHA-i.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./index-Dg6R6lHP.js";function Y({target:a}){const{ti:o}=h();f();const[n,k]=s.useState(!1),[r,d]=s.useState(null),[m,S]=s.useState([]),l=s.useMemo(()=>m.map((e,t)=>({...e,recent:t})),[m]);s.useEffect(()=>{!(a!=null&&a.id)||!(a!=null&&a.type)||b(a==null?void 0:a.id).then(e=>{d(e)})},[a]);const p=e=>i.jsxs(i.Fragment,{children:[i.jsx(j,{title:o({en:"Coming Soon",vi:"Sắp có"}),children:i.jsx(x,{type:"primary",icon:n?i.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):i.jsx("i",{className:"fa-solid fa-rotate-right"}),disabled:!0,children:o("Fetch all")})}),i.jsx(I,{showIcon:!0,type:"info",message:`${r==null?void 0:r.adminCount} admins. ${T(r==null?void 0:r.memberCount)} members`})]}),c=[{title:"#",dataIndex:"recent",key:"recent",render:(e,t,u)=>(t.recent||0)+1},{title:o({en:"Name",vi:"Tên"}),key:"name",dataIndex:"name",sorter:(e,t)=>e.name.localeCompare(t.name),render:(e,t,u)=>i.jsxs(v,{align:"middle",children:[i.jsx(A,{shape:"square",src:i.jsx(C,{src:t.avatar}),size:50}),i.jsx("a",{href:t.url,target:"_blank",style:{marginLeft:"10px"},children:i.jsx("b",{children:t.name})})]}),width:"auto"},{title:"Uid",dataIndex:"id",key:"id",sorter:(e,t)=>e.id.localeCompare(t.id),width:150},{title:o({en:"Joined time",vi:"Tham gia lúc"}),dataIndex:"joinedTime",key:"joinedTime",sorter:(e,t)=>e.joinedTime.localeCompare(t.joinedTime)},{title:o({en:"Last Active",vi:"Hoạt động gần nhất"}),dataIndex:"lastActiveTime",key:"lastActiveTime",sorter:(e,t)=>e.lastActiveTime.localeCompare(t.lastActiveTime)}];return i.jsx(y,{columns:c,data:l,keyExtractor:e=>e.id,searchable:!0,renderTitle:p})}export{Y as default}; diff --git a/public/assets/IGHighlightMedias-BFJbJEwN.js b/public/assets/IGHighlightMedias-Cnz2RLCm.js similarity index 52% rename from public/assets/IGHighlightMedias-BFJbJEwN.js rename to public/assets/IGHighlightMedias-Cnz2RLCm.js index 45eaa2b..af4d47f 100644 --- a/public/assets/IGHighlightMedias-BFJbJEwN.js +++ b/public/assets/IGHighlightMedias-Cnz2RLCm.js @@ -1 +1 @@ -import{r as i,aA as r}from"./index--trdnQFa.js";import{i as d}from"./icons-BAGZq2AS.js";import{C as c}from"./Collection-CPPE61tF.js";import{a as l}from"./highlights-BzKltXsd.js";import{V as u}from"./VideoWithMuted-xvYRNY0l.js";import{ad as f,f as x}from"./MyApp-BHr373cy.js";import{L as b}from"./index-BJNnFmyH.js";import{I as j}from"./index-CB9InVBI.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./index-CSZp6KTZ.js";import"./videos-CpxHGGu6.js";import"./index-DTxLlwd8.js";import"./responsiveObserver-DiDk9dGL.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";import"./index-CETJ8txP.js";import"./index-DYW0YRm8.js";import"./index-fivsYW1W.js";import"./Pagination-CPGTHysj.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";function U({target:e,highlight:t}){const a=i.useCallback(async o=>t!=null&&t.id?await l(t.id):void 0,[t]),m=i.useCallback(o=>r.jsxs(b.Item,{children:[r.jsx(j,{src:o.image,width:200,height:330,style:{objectFit:"cover",borderRadius:10},preview:o.video?{destroyOnClose:!0,imageRender:()=>r.jsx(u,{src:o.video,style:{maxWidth:"90vw",maxHeight:"90vh"}}),toolbarRender:()=>null}:!0}),o.video&&r.jsx("div",{style:{position:"absolute",top:10,right:10,pointerEvents:"none"},children:d.IGVideo}),r.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%)",pointerEvents:"none"},children:r.jsxs("div",{style:{position:"absolute",bottom:15,left:15,fontSize:"1.1em"},children:[o.caption&&r.jsxs(r.Fragment,{children:[r.jsx("i",{className:"fa-solid fa-comment"})," ",f(o.caption,100),r.jsx("br",{})]}),r.jsx("i",{className:"fa-solid fa-clock"})," ",x(o.created_at)]})})]}),[]),n=i.useCallback((o,p)=>{const s=!!o.video;return{url:s?o.video:o.image,name:o.id+(s?".mp4":".jpg")}},[]);return r.jsx(c,{collectionName:(e==null?void 0:e.username)+" - IG Highlight - "+t.title,fetchNext:a,renderItem:m,downloadItem:n,rowKey:o=>o.id,once:!0})}export{U as default}; +import{r as i,aA as r}from"./index-BBriuzNA.js";import{i as d}from"./icons-CG0UnJU2.js";import{C as c}from"./Collection-B9SxfYr4.js";import{a as l}from"./highlights-DQPggAnb.js";import{V as u}from"./VideoWithMuted-CdYhYcjW.js";import{ad as f,f as x}from"./MyApp-CmkiOnMb.js";import{L as b}from"./index-B7udrguy.js";import{I as j}from"./index-Dm20K0UU.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./index-Cp3vfVbK.js";import"./videos-VQJKJ_Wq.js";import"./index-CbmP82sr.js";import"./responsiveObserver-Bb1LONna.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";import"./index-CKsES7YN.js";import"./index-C9vPYMV7.js";import"./index-BhyNApA-.js";import"./Pagination-slfcHA-i.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";function U({target:e,highlight:t}){const a=i.useCallback(async o=>t!=null&&t.id?await l(t.id):void 0,[t]),m=i.useCallback(o=>r.jsxs(b.Item,{children:[r.jsx(j,{src:o.image,width:200,height:330,style:{objectFit:"cover",borderRadius:10},preview:o.video?{destroyOnClose:!0,imageRender:()=>r.jsx(u,{src:o.video,style:{maxWidth:"90vw",maxHeight:"90vh"}}),toolbarRender:()=>null}:!0}),o.video&&r.jsx("div",{style:{position:"absolute",top:10,right:10,pointerEvents:"none"},children:d.IGVideo}),r.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%)",pointerEvents:"none"},children:r.jsxs("div",{style:{position:"absolute",bottom:15,left:15,fontSize:"1.1em"},children:[o.caption&&r.jsxs(r.Fragment,{children:[r.jsx("i",{className:"fa-solid fa-comment"})," ",f(o.caption,100),r.jsx("br",{})]}),r.jsx("i",{className:"fa-solid fa-clock"})," ",x(o.created_at)]})})]}),[]),n=i.useCallback((o,p)=>{const s=!!o.video;return{url:s?o.video:o.image,name:o.id+(s?".mp4":".jpg")}},[]);return r.jsx(c,{collectionName:(e==null?void 0:e.username)+" - IG Highlight - "+t.title,fetchNext:a,renderItem:m,downloadItem:n,rowKey:o=>o.id,once:!0})}export{U as default}; diff --git a/public/assets/IGHighlights-CUpz2Uzb.js b/public/assets/IGHighlights-B2M-y0e6.js similarity index 53% rename from public/assets/IGHighlights-CUpz2Uzb.js rename to public/assets/IGHighlights-B2M-y0e6.js index 17df1f7..ffc09cb 100644 --- a/public/assets/IGHighlights-CUpz2Uzb.js +++ b/public/assets/IGHighlights-B2M-y0e6.js @@ -1 +1 @@ -import{r as m,aA as t,aB as c}from"./index--trdnQFa.js";import{ad as h}from"./MyApp-BHr373cy.js";import{C as u}from"./Collection-CPPE61tF.js";import{g as f,a as x}from"./highlights-BzKltXsd.js";import{a as g}from"./index-CSZp6KTZ.js";import{L as w}from"./index-BJNnFmyH.js";import{I as b}from"./index-CB9InVBI.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./videos-CpxHGGu6.js";import"./index-DTxLlwd8.js";import"./responsiveObserver-DiDk9dGL.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";import"./index-CETJ8txP.js";import"./index-DYW0YRm8.js";import"./index-fivsYW1W.js";import"./Pagination-CPGTHysj.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";function X({target:r,onOpenHighlight:e}){const l=m.useCallback(async(i=[])=>r!=null&&r.id?i.length?[]:await f(r.id):void 0,[r]),n=m.useCallback(i=>{var o,a;return t.jsxs(w.Item,{className:"show-on-hover-trigger",children:[t.jsx(b,{src:i.cover,width:100,height:100,style:{objectFit:"cover",borderRadius:"50%",cursor:"pointer"},preview:!1,onClick:()=>{e==null||e(i)}}),t.jsx("a",{href:"https://www.instagram.com/stories/highlights/"+i.id.split(":")[1],target:"_blank",style:{display:"block",wordWrap:"break-word",maxWidth:100,padding:5,fontWeight:"bold",textAlign:"center",fontSize:"1em"},title:i.title,children:h(i.title,30)}),t.jsx(c,{type:"default",icon:t.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",top:0,right:0},className:"show-on-hover-item",target:"_blank",href:g("stories/highlights/"+((a=(o=i.id)==null?void 0:o.split(":"))==null?void 0:a[1]))})]})},[]),d=m.useCallback(async(i,o)=>(await x(i.id)).map(s=>{const p=!!s.video;return{url:p?s.video:s.image,name:s.id+(p?".mp4":".jpg")}}),[]);return t.jsx(u,{collectionName:(r==null?void 0:r.username)+" - IG Highlights",fetchNext:l,renderItem:n,downloadItem:d,rowKey:i=>i.id})}export{X as default}; +import{r as m,aA as t,aB as c}from"./index-BBriuzNA.js";import{ad as h}from"./MyApp-CmkiOnMb.js";import{C as u}from"./Collection-B9SxfYr4.js";import{g as f,a as x}from"./highlights-DQPggAnb.js";import{a as g}from"./index-Cp3vfVbK.js";import{L as w}from"./index-B7udrguy.js";import{I as b}from"./index-Dm20K0UU.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./videos-VQJKJ_Wq.js";import"./index-CbmP82sr.js";import"./responsiveObserver-Bb1LONna.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";import"./index-CKsES7YN.js";import"./index-C9vPYMV7.js";import"./index-BhyNApA-.js";import"./Pagination-slfcHA-i.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";function X({target:r,onOpenHighlight:e}){const l=m.useCallback(async(i=[])=>r!=null&&r.id?i.length?[]:await f(r.id):void 0,[r]),n=m.useCallback(i=>{var o,a;return t.jsxs(w.Item,{className:"show-on-hover-trigger",children:[t.jsx(b,{src:i.cover,width:100,height:100,style:{objectFit:"cover",borderRadius:"50%",cursor:"pointer"},preview:!1,onClick:()=>{e==null||e(i)}}),t.jsx("a",{href:"https://www.instagram.com/stories/highlights/"+i.id.split(":")[1],target:"_blank",style:{display:"block",wordWrap:"break-word",maxWidth:100,padding:5,fontWeight:"bold",textAlign:"center",fontSize:"1em"},title:i.title,children:h(i.title,30)}),t.jsx(c,{type:"default",icon:t.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",top:0,right:0},className:"show-on-hover-item",target:"_blank",href:g("stories/highlights/"+((a=(o=i.id)==null?void 0:o.split(":"))==null?void 0:a[1]))})]})},[]),d=m.useCallback(async(i,o)=>(await x(i.id)).map(s=>{const p=!!s.video;return{url:p?s.video:s.image,name:s.id+(p?".mp4":".jpg")}}),[]);return t.jsx(u,{collectionName:(r==null?void 0:r.username)+" - IG Highlights",fetchNext:l,renderItem:n,downloadItem:d,rowKey:i=>i.id})}export{X as default}; diff --git a/public/assets/IGPosts-C6qr4Cso.js b/public/assets/IGPosts-B6k1_Vjg.js similarity index 75% rename from public/assets/IGPosts-C6qr4Cso.js rename to public/assets/IGPosts-B6k1_Vjg.js index ca9a986..11c595a 100644 --- a/public/assets/IGPosts-C6qr4Cso.js +++ b/public/assets/IGPosts-B6k1_Vjg.js @@ -1 +1 @@ -import{r as _,aA as t,aB as g}from"./index--trdnQFa.js";import{E as f,G as j,b as w,ad as I}from"./MyApp-BHr373cy.js";import{i as v}from"./icons-BAGZq2AS.js";import{C as P}from"./Collection-CPPE61tF.js";import{f as x,g as d,a as C}from"./index-CSZp6KTZ.js";import{V as k}from"./VideoWithMuted-xvYRNY0l.js";import{L as b}from"./index-BJNnFmyH.js";import{I as G}from"./index-CB9InVBI.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./videos-CpxHGGu6.js";import"./index-DTxLlwd8.js";import"./responsiveObserver-DiDk9dGL.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";import"./index-CETJ8txP.js";import"./index-DYW0YRm8.js";import"./index-fivsYW1W.js";import"./Pagination-CPGTHysj.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";async function S(s="",u=""){let l;if(u){const o=await x({fb_api_req_friendly_name:"PolarisProfilePostsTabContentDirectQuery_connection",variables:{after:u,before:null,data:{count:12,include_relationship_info:!0,latest_besties_reel_media:!0,latest_reel_media:!0},first:12,last:null,username:s,__relay_internal__pv__PolarisFeedShareMenurelayprovider:!0},doc_id:"7935114066569227"});l=f(o),console.log("cursor fetch",l)}else{const o=await x({fb_api_req_friendly_name:"PolarisProfilePostsDirectQuery",variables:{data:{count:12,include_relationship_info:!0,latest_besties_reel_media:!0,latest_reel_media:!0},username:s,__relay_internal__pv__PolarisFeedShareMenurelayprovider:!0},doc_id:"7898261790222653"});l=f(o),console.log("first fetch",l)}const{edges:m=[],page_info:e={}}=j(l);return console.log(l),m.map(o=>{var a,i,n,c;const r=((a=o==null?void 0:o.node)==null?void 0:a.media)||(o==null?void 0:o.node);return{id:r==null?void 0:r.id,post_id:r==null?void 0:r.code,caption:((i=r==null?void 0:r.caption)==null?void 0:i.text)||"",video:d(r==null?void 0:r.video_versions),image:d((n=r==null?void 0:r.image_versions2)==null?void 0:n.candidates),carousel:(c=r==null?void 0:r.carousel_media)==null?void 0:c.map((p,y)=>{var h;return{id:p.id,post_id:r==null?void 0:r.code,index:y+1,video:d(p.video_versions),image:d((h=p.image_versions2)==null?void 0:h.candidates)}}),created_at:(r==null?void 0:r.taken_at)*1e3,like_count:r==null?void 0:r.like_count,comment_count:r==null?void 0:r.comment_count,cursor:(o==null?void 0:o.cursor)||(e==null?void 0:e.end_cursor)}}).filter(o=>o.image||o.video)}function ar({target:s}){const u=_.useCallback(async(e=[],o)=>{var a;return s!=null&&s.id?await S(s.username,o||((a=e[e.length-1])==null?void 0:a.cursor)):void 0},[s]),l=_.useCallback(e=>{var o,r,a;return t.jsxs(b.Item,{children:[t.jsxs("div",{className:"show-on-hover-trigger",children:[t.jsx(G,{src:e.image,width:250,height:250,style:{objectFit:"cover",borderRadius:10},preview:e.video||(o=e.carousel)!=null&&o.length?{destroyOnClose:!0,imageRender:()=>{var i;return(i=e.carousel)!=null&&i.length?t.jsx(w,{style:{maxWidth:"90vw",maxHeight:"90vh",alignItems:"center",overflowY:"auto",overflowX:"hidden",backgroundColor:"#111",padding:20,borderRadius:10},children:t.jsx(b,{grid:{gutter:10},style:{width:"100%"},dataSource:e.carousel,renderItem:l,rowKey:n=>n.id})}):t.jsx(k,{src:e.video,style:{maxWidth:"90vw",maxHeight:"90vh"}})},toolbarRender:()=>null}:void 0}),t.jsx(g,{type:"default",icon:t.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:C("p/"+e.post_id+(e.index?"/?img_index="+e.index:""))})]}),t.jsx("p",{style:{wordWrap:"break-word",maxWidth:250,padding:5},title:e.caption,children:I(e.caption,30)}),t.jsx("div",{style:{position:"absolute",top:10,right:10,pointerEvents:"none"},children:((r=e.carousel)==null?void 0:r.length)>0?t.jsxs(t.Fragment,{children:[t.jsx("span",{children:(a=e.carousel)==null?void 0:a.length}),v.IGCarousel]}):e.video?v.IGVideo:null})]})},[]),m=_.useCallback((e,o)=>{var a;function r(i,n=""){const c=!!i.video;return{url:c?i.video:i.image,name:n+i.id+(c?".mp4":".jpg")}}return((a=e.carousel)==null?void 0:a.length)>0?e.carousel.map((i,n)=>r(i,n+"_")):r(e)},[]);return t.jsx(P,{collectionName:(s==null?void 0:s.username)+" - IG Posts",fetchNext:u,renderItem:l,downloadItem:m,getItemCursor:e=>e.cursor||"",rowKey:e=>e.id})}export{ar as default}; +import{r as _,aA as t,aB as g}from"./index-BBriuzNA.js";import{E as f,G as j,b as w,ad as I}from"./MyApp-CmkiOnMb.js";import{i as v}from"./icons-CG0UnJU2.js";import{C as P}from"./Collection-B9SxfYr4.js";import{f as x,g as d,a as C}from"./index-Cp3vfVbK.js";import{V as k}from"./VideoWithMuted-CdYhYcjW.js";import{L as b}from"./index-B7udrguy.js";import{I as G}from"./index-Dm20K0UU.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./videos-VQJKJ_Wq.js";import"./index-CbmP82sr.js";import"./responsiveObserver-Bb1LONna.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";import"./index-CKsES7YN.js";import"./index-C9vPYMV7.js";import"./index-BhyNApA-.js";import"./Pagination-slfcHA-i.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";async function S(s="",u=""){let l;if(u){const o=await x({fb_api_req_friendly_name:"PolarisProfilePostsTabContentDirectQuery_connection",variables:{after:u,before:null,data:{count:12,include_relationship_info:!0,latest_besties_reel_media:!0,latest_reel_media:!0},first:12,last:null,username:s,__relay_internal__pv__PolarisFeedShareMenurelayprovider:!0},doc_id:"7935114066569227"});l=f(o),console.log("cursor fetch",l)}else{const o=await x({fb_api_req_friendly_name:"PolarisProfilePostsDirectQuery",variables:{data:{count:12,include_relationship_info:!0,latest_besties_reel_media:!0,latest_reel_media:!0},username:s,__relay_internal__pv__PolarisFeedShareMenurelayprovider:!0},doc_id:"7898261790222653"});l=f(o),console.log("first fetch",l)}const{edges:m=[],page_info:e={}}=j(l);return console.log(l),m.map(o=>{var a,i,n,c;const r=((a=o==null?void 0:o.node)==null?void 0:a.media)||(o==null?void 0:o.node);return{id:r==null?void 0:r.id,post_id:r==null?void 0:r.code,caption:((i=r==null?void 0:r.caption)==null?void 0:i.text)||"",video:d(r==null?void 0:r.video_versions),image:d((n=r==null?void 0:r.image_versions2)==null?void 0:n.candidates),carousel:(c=r==null?void 0:r.carousel_media)==null?void 0:c.map((p,y)=>{var h;return{id:p.id,post_id:r==null?void 0:r.code,index:y+1,video:d(p.video_versions),image:d((h=p.image_versions2)==null?void 0:h.candidates)}}),created_at:(r==null?void 0:r.taken_at)*1e3,like_count:r==null?void 0:r.like_count,comment_count:r==null?void 0:r.comment_count,cursor:(o==null?void 0:o.cursor)||(e==null?void 0:e.end_cursor)}}).filter(o=>o.image||o.video)}function ar({target:s}){const u=_.useCallback(async(e=[],o)=>{var a;return s!=null&&s.id?await S(s.username,o||((a=e[e.length-1])==null?void 0:a.cursor)):void 0},[s]),l=_.useCallback(e=>{var o,r,a;return t.jsxs(b.Item,{children:[t.jsxs("div",{className:"show-on-hover-trigger",children:[t.jsx(G,{src:e.image,width:250,height:250,style:{objectFit:"cover",borderRadius:10},preview:e.video||(o=e.carousel)!=null&&o.length?{destroyOnClose:!0,imageRender:()=>{var i;return(i=e.carousel)!=null&&i.length?t.jsx(w,{style:{maxWidth:"90vw",maxHeight:"90vh",alignItems:"center",overflowY:"auto",overflowX:"hidden",backgroundColor:"#111",padding:20,borderRadius:10},children:t.jsx(b,{grid:{gutter:10},style:{width:"100%"},dataSource:e.carousel,renderItem:l,rowKey:n=>n.id})}):t.jsx(k,{src:e.video,style:{maxWidth:"90vw",maxHeight:"90vh"}})},toolbarRender:()=>null}:void 0}),t.jsx(g,{type:"default",icon:t.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:C("p/"+e.post_id+(e.index?"/?img_index="+e.index:""))})]}),t.jsx("p",{style:{wordWrap:"break-word",maxWidth:250,padding:5},title:e.caption,children:I(e.caption,30)}),t.jsx("div",{style:{position:"absolute",top:10,right:10,pointerEvents:"none"},children:((r=e.carousel)==null?void 0:r.length)>0?t.jsxs(t.Fragment,{children:[t.jsx("span",{children:(a=e.carousel)==null?void 0:a.length}),v.IGCarousel]}):e.video?v.IGVideo:null})]})},[]),m=_.useCallback((e,o)=>{var a;function r(i,n=""){const c=!!i.video;return{url:c?i.video:i.image,name:n+i.id+(c?".mp4":".jpg")}}return((a=e.carousel)==null?void 0:a.length)>0?e.carousel.map((i,n)=>r(i,n+"_")):r(e)},[]);return t.jsx(P,{collectionName:(s==null?void 0:s.username)+" - IG Posts",fetchNext:u,renderItem:l,downloadItem:m,getItemCursor:e=>e.cursor||"",rowKey:e=>e.id})}export{ar as default}; diff --git a/public/assets/IGReels-CPoWE3Jh.js b/public/assets/IGReels-Bz59aqZM.js similarity index 69% rename from public/assets/IGReels-CPoWE3Jh.js rename to public/assets/IGReels-Bz59aqZM.js index 663018d..2c9ff5d 100644 --- a/public/assets/IGReels-CPoWE3Jh.js +++ b/public/assets/IGReels-Bz59aqZM.js @@ -1 +1 @@ -import{r as m,aA as r,aB as h}from"./index--trdnQFa.js";import{E as _,G as b,au as c}from"./MyApp-BHr373cy.js";import{C as x}from"./Collection-CPPE61tF.js";import{f as v,g as f,a as j}from"./index-CSZp6KTZ.js";import{V as y}from"./VideoWithMuted-xvYRNY0l.js";import{L as w}from"./index-BJNnFmyH.js";import{I}from"./index-CB9InVBI.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./videos-CpxHGGu6.js";import"./index-DTxLlwd8.js";import"./responsiveObserver-DiDk9dGL.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";import"./index-CETJ8txP.js";import"./index-DYW0YRm8.js";import"./index-fivsYW1W.js";import"./Pagination-CPGTHysj.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";async function g(i="",n=""){const l=await v({fb_api_req_friendly_name:"PolarisProfileReelsTabContentQuery_connection",variables:{after:n,before:null,data:{include_feed_video:!0,page_size:12,target_user_id:i},first:4,last:null},doc_id:"7845543455542541"}),a=_(l);console.log("res ne",a);const{edges:o=[],page_info:e={}}=b(a);return o.map(s=>{var p,u,d;const t=((p=s==null?void 0:s.node)==null?void 0:p.media)||{};return{id:t.id,post_id:t==null?void 0:t.code,type:(u=s==null?void 0:s.node)==null?void 0:u.__typename,width:t.original_width,height:t.original_height,image:f((d=t.image_versions2)==null?void 0:d.candidates),video:f(t.video_versions),comment_count:t.comment_count,like_count:t.like_count,play_count:t.play_count,view_count:t.view_count,cursor:(s==null?void 0:s.cursor)||(e==null?void 0:e.end_cursor),raw:s}})}function oo({target:i}){const n=m.useCallback(async(o=[],e)=>{var t;return i!=null&&i.id?await g(i.id,e||((t=o[o.length-1])==null?void 0:t.cursor)):void 0},[i]),l=m.useCallback(o=>r.jsxs(w.Item,{className:"show-on-hover-trigger",children:[r.jsx(I,{src:o.image,width:200,height:330,style:{objectFit:"cover",borderRadius:10},preview:{destroyOnClose:!0,imageRender:()=>r.jsx(y,{src:o.video,style:{maxWidth:"90vw",maxHeight:"90vh"}}),toolbarRender:()=>null}}),r.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%)",pointerEvents:"none"},children:r.jsxs("div",{style:{position:"absolute",bottom:15,left:15,fontWeight:"bold",fontSize:"1.1em"},children:[r.jsx("i",{className:"fa-solid fa-play"})," ",c(o.play_count),r.jsx("br",{}),r.jsx("i",{className:"fa-solid fa-heart"})," ",c(o.like_count),r.jsx("br",{}),r.jsx("i",{className:"fa-solid fa-message"})," ",c(o.comment_count)]})}),r.jsx(h,{type:"default",icon:r.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:j("p/"+o.post_id)})]}),[]),a=m.useCallback((o,e)=>{const s=!!o.video;return{url:s?o.video:o.image,name:o.id+(s?".mp4":".jpg")}},[]);return r.jsx(x,{collectionName:(i==null?void 0:i.username)+" - IG Reels",fetchNext:n,renderItem:l,downloadItem:a,getItemCursor:o=>o.cursor||"",rowKey:o=>o.id})}export{oo as default}; +import{r as m,aA as r,aB as h}from"./index-BBriuzNA.js";import{E as _,G as b,au as c}from"./MyApp-CmkiOnMb.js";import{C as x}from"./Collection-B9SxfYr4.js";import{f as v,g as f,a as j}from"./index-Cp3vfVbK.js";import{V as y}from"./VideoWithMuted-CdYhYcjW.js";import{L as w}from"./index-B7udrguy.js";import{I}from"./index-Dm20K0UU.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./videos-VQJKJ_Wq.js";import"./index-CbmP82sr.js";import"./responsiveObserver-Bb1LONna.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";import"./index-CKsES7YN.js";import"./index-C9vPYMV7.js";import"./index-BhyNApA-.js";import"./Pagination-slfcHA-i.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";async function g(i="",n=""){const l=await v({fb_api_req_friendly_name:"PolarisProfileReelsTabContentQuery_connection",variables:{after:n,before:null,data:{include_feed_video:!0,page_size:12,target_user_id:i},first:4,last:null},doc_id:"7845543455542541"}),a=_(l);console.log("res ne",a);const{edges:o=[],page_info:e={}}=b(a);return o.map(s=>{var p,u,d;const t=((p=s==null?void 0:s.node)==null?void 0:p.media)||{};return{id:t.id,post_id:t==null?void 0:t.code,type:(u=s==null?void 0:s.node)==null?void 0:u.__typename,width:t.original_width,height:t.original_height,image:f((d=t.image_versions2)==null?void 0:d.candidates),video:f(t.video_versions),comment_count:t.comment_count,like_count:t.like_count,play_count:t.play_count,view_count:t.view_count,cursor:(s==null?void 0:s.cursor)||(e==null?void 0:e.end_cursor),raw:s}})}function oo({target:i}){const n=m.useCallback(async(o=[],e)=>{var t;return i!=null&&i.id?await g(i.id,e||((t=o[o.length-1])==null?void 0:t.cursor)):void 0},[i]),l=m.useCallback(o=>r.jsxs(w.Item,{className:"show-on-hover-trigger",children:[r.jsx(I,{src:o.image,width:200,height:330,style:{objectFit:"cover",borderRadius:10},preview:{destroyOnClose:!0,imageRender:()=>r.jsx(y,{src:o.video,style:{maxWidth:"90vw",maxHeight:"90vh"}}),toolbarRender:()=>null}}),r.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%)",pointerEvents:"none"},children:r.jsxs("div",{style:{position:"absolute",bottom:15,left:15,fontWeight:"bold",fontSize:"1.1em"},children:[r.jsx("i",{className:"fa-solid fa-play"})," ",c(o.play_count),r.jsx("br",{}),r.jsx("i",{className:"fa-solid fa-heart"})," ",c(o.like_count),r.jsx("br",{}),r.jsx("i",{className:"fa-solid fa-message"})," ",c(o.comment_count)]})}),r.jsx(h,{type:"default",icon:r.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:j("p/"+o.post_id)})]}),[]),a=m.useCallback((o,e)=>{const s=!!o.video;return{url:s?o.video:o.image,name:o.id+(s?".mp4":".jpg")}},[]);return r.jsx(x,{collectionName:(i==null?void 0:i.username)+" - IG Reels",fetchNext:n,renderItem:l,downloadItem:a,getItemCursor:o=>o.cursor||"",rowKey:o=>o.id})}export{oo as default}; diff --git a/public/assets/IGStories-CbiUgCWA.js b/public/assets/IGStories-BI3Jj1hq.js similarity index 71% rename from public/assets/IGStories-CbiUgCWA.js rename to public/assets/IGStories-BI3Jj1hq.js index a65e6ef..b7ed8f1 100644 --- a/public/assets/IGStories-CbiUgCWA.js +++ b/public/assets/IGStories-BI3Jj1hq.js @@ -1 +1 @@ -import{r as p,aA as e,aB as _}from"./index--trdnQFa.js";import{i as v}from"./icons-BAGZq2AS.js";import{C as b}from"./Collection-CPPE61tF.js";import{E as j,u as y,a9 as h}from"./MyApp-BHr373cy.js";import{f as g,g as x,a as k}from"./index-CSZp6KTZ.js";import{V as w}from"./VideoWithMuted-xvYRNY0l.js";import{L as I}from"./index-BJNnFmyH.js";import{I as N}from"./index-CB9InVBI.js";import{A as C}from"./index-fivsYW1W.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./videos-CpxHGGu6.js";import"./index-DTxLlwd8.js";import"./responsiveObserver-DiDk9dGL.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";import"./index-CETJ8txP.js";import"./index-DYW0YRm8.js";import"./Pagination-CPGTHysj.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";async function S(i){var m,s,d,n;const l=await g({fb_api_req_friendly_name:"PolarisStoriesV3ReelPageStandaloneDirectQuery",variables:{reel_ids_arr:[i]},doc_id:"8118053404899604"}),a=j(l),r=((d=(s=(m=a==null?void 0:a.data)==null?void 0:m.xdt_api__v1__feed__reels_media)==null?void 0:s.reels_media)==null?void 0:d[0])||{};return console.log(a,r),((n=r==null?void 0:r.items)==null?void 0:n.map(o=>{var c,u,f;const t=(u=(c=o.story_music_stickers)==null?void 0:c[0])==null?void 0:u.music_asset_info;return{id:o.id,pk:o.pk,image:x((f=o.image_versions2)==null?void 0:f.candidates),video:x(o.video_versions),video_duration:o.video_duration||0,taken_at:(o.taken_at||0)*1e3,expiring_at:(o.expiring_at||0)*1e3,music:t?(t==null?void 0:t.title)+" - "+(t==null?void 0:t.display_artist):"",latest_reel_media:(r.latest_reel_media||0)*1e3,seen_at:(r.seen||0)*1e3,raw:o}}))||[]}function te({target:i}){const{ti:l}=y(),a=p.useCallback(async s=>i!=null&&i.id?await S(i.id):void 0,[i]),r=p.useCallback(s=>e.jsxs(I.Item,{className:"show-on-hover-trigger",children:[e.jsx(N,{src:s.image,width:200,height:330,style:{objectFit:"cover",borderRadius:10},preview:s.video?{destroyOnClose:!0,imageRender:()=>e.jsx(w,{src:s.video,style:{maxWidth:"90vw",maxHeight:"90vh"}}),toolbarRender:()=>null}:!0}),s.video&&e.jsx("div",{style:{position:"absolute",top:10,right:10,pointerEvents:"none"},children:v.IGVideo}),e.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%)",pointerEvents:"none"},children:e.jsxs("div",{style:{position:"absolute",bottom:15,left:15},children:[s.music&&e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa-solid fa-music"})," ",s.music,e.jsx("br",{})]}),s.seen_at?e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa-solid fa-eye"})," ",h(s.seen_at)]}):e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa-solid fa-eye-slash"})," ",l({en:"Not seen",vi:"Chưa xem"})]}),e.jsx("br",{}),e.jsx("i",{className:"fa-solid fa-clock"})," ",h(s.taken_at)]})}),e.jsx(_,{type:"default",icon:e.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:k("stories/"+(i==null?void 0:i.username)+"/"+s.pk)})]}),[]),m=p.useCallback((s,d)=>{const n=!!s.video;return{url:n?s.video:s.image,name:s.id+(n?".mp4":".jpg")}},[]);return e.jsx(b,{collectionName:(i==null?void 0:i.username)+" - IG Stories",fetchNext:a,renderItem:r,downloadItem:m,rowKey:s=>s.id,once:!0,header:()=>e.jsx(C,{showIcon:!0,type:"info",message:(i==null?void 0:i.name)+l({en:" will not know you see this story",vi:" sẽ không biết bạn đã xem tin"})})})}export{te as default}; +import{r as p,aA as e,aB as _}from"./index-BBriuzNA.js";import{i as v}from"./icons-CG0UnJU2.js";import{C as b}from"./Collection-B9SxfYr4.js";import{E as j,u as y,a9 as h}from"./MyApp-CmkiOnMb.js";import{f as g,g as x,a as k}from"./index-Cp3vfVbK.js";import{V as w}from"./VideoWithMuted-CdYhYcjW.js";import{L as I}from"./index-B7udrguy.js";import{I as N}from"./index-Dm20K0UU.js";import{A as C}from"./index-BhyNApA-.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./videos-VQJKJ_Wq.js";import"./index-CbmP82sr.js";import"./responsiveObserver-Bb1LONna.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";import"./index-CKsES7YN.js";import"./index-C9vPYMV7.js";import"./Pagination-slfcHA-i.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";async function S(i){var m,s,d,n;const l=await g({fb_api_req_friendly_name:"PolarisStoriesV3ReelPageStandaloneDirectQuery",variables:{reel_ids_arr:[i]},doc_id:"8118053404899604"}),a=j(l),r=((d=(s=(m=a==null?void 0:a.data)==null?void 0:m.xdt_api__v1__feed__reels_media)==null?void 0:s.reels_media)==null?void 0:d[0])||{};return console.log(a,r),((n=r==null?void 0:r.items)==null?void 0:n.map(o=>{var c,u,f;const t=(u=(c=o.story_music_stickers)==null?void 0:c[0])==null?void 0:u.music_asset_info;return{id:o.id,pk:o.pk,image:x((f=o.image_versions2)==null?void 0:f.candidates),video:x(o.video_versions),video_duration:o.video_duration||0,taken_at:(o.taken_at||0)*1e3,expiring_at:(o.expiring_at||0)*1e3,music:t?(t==null?void 0:t.title)+" - "+(t==null?void 0:t.display_artist):"",latest_reel_media:(r.latest_reel_media||0)*1e3,seen_at:(r.seen||0)*1e3,raw:o}}))||[]}function te({target:i}){const{ti:l}=y(),a=p.useCallback(async s=>i!=null&&i.id?await S(i.id):void 0,[i]),r=p.useCallback(s=>e.jsxs(I.Item,{className:"show-on-hover-trigger",children:[e.jsx(N,{src:s.image,width:200,height:330,style:{objectFit:"cover",borderRadius:10},preview:s.video?{destroyOnClose:!0,imageRender:()=>e.jsx(w,{src:s.video,style:{maxWidth:"90vw",maxHeight:"90vh"}}),toolbarRender:()=>null}:!0}),s.video&&e.jsx("div",{style:{position:"absolute",top:10,right:10,pointerEvents:"none"},children:v.IGVideo}),e.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%)",pointerEvents:"none"},children:e.jsxs("div",{style:{position:"absolute",bottom:15,left:15},children:[s.music&&e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa-solid fa-music"})," ",s.music,e.jsx("br",{})]}),s.seen_at?e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa-solid fa-eye"})," ",h(s.seen_at)]}):e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa-solid fa-eye-slash"})," ",l({en:"Not seen",vi:"Chưa xem"})]}),e.jsx("br",{}),e.jsx("i",{className:"fa-solid fa-clock"})," ",h(s.taken_at)]})}),e.jsx(_,{type:"default",icon:e.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:k("stories/"+(i==null?void 0:i.username)+"/"+s.pk)})]}),[]),m=p.useCallback((s,d)=>{const n=!!s.video;return{url:n?s.video:s.image,name:s.id+(n?".mp4":".jpg")}},[]);return e.jsx(b,{collectionName:(i==null?void 0:i.username)+" - IG Stories",fetchNext:a,renderItem:r,downloadItem:m,rowKey:s=>s.id,once:!0,header:()=>e.jsx(C,{showIcon:!0,type:"info",message:(i==null?void 0:i.name)+l({en:" will not know you see this story",vi:" sẽ không biết bạn đã xem tin"})})})}export{te as default}; diff --git a/public/assets/ImageLazyPreview-CSLUs9MG.js b/public/assets/ImageLazyPreview-DbcS5lXO.js similarity index 72% rename from public/assets/ImageLazyPreview-CSLUs9MG.js rename to public/assets/ImageLazyPreview-DbcS5lXO.js index 6d5402b..e711dbc 100644 --- a/public/assets/ImageLazyPreview-CSLUs9MG.js +++ b/public/assets/ImageLazyPreview-DbcS5lXO.js @@ -1 +1 @@ -import{ay as L,r as f,aA as h}from"./index--trdnQFa.js";import{u as C,y as k,C as x}from"./MyApp-BHr373cy.js";import{I}from"./index-CB9InVBI.js";import"./EyeOutlined-BALW2cms.js";import"./addEventListener-KkFh1sjE.js";function z(g){const{cacheId:p,getPreview:y,renderPreview:s,...a}=g,{message:n}=L.useApp(),{ti:c}=C(),r=a.src||"",o="ImageLazyPreview."+(p||r),[d,i]=f.useState(!1),[l,u]=f.useState(k(o,"")),w=async()=>{if(!l)try{i(!0),n.loading({duration:0,key:o,content:c({en:"Loading...",vi:"Đang tải..."})});let t=performance.now();const e=await y();let v=performance.now();console.log("getPreview",v-t),e&&e!==r&&(u(e),x(o,e)),n.destroy(o)}catch(t){console.error(t),n.error({key:o,content:c({en:"Load failed: ",vi:"Load lỗi: "})+t.message})}finally{i(!1)}},m=l||r;return h.jsx(I,{...a,preview:typeof s=="function"?s(m,d):{src:m},onClick:t=>{var e;(e=a.onClick)==null||e.call(a,t),w()}})}export{z as default}; +import{ay as L,r as f,aA as h}from"./index-BBriuzNA.js";import{u as C,y as k,C as x}from"./MyApp-CmkiOnMb.js";import{I}from"./index-Dm20K0UU.js";import"./EyeOutlined-Du2MtFRM.js";import"./addEventListener-w7NT04KM.js";function z(g){const{cacheId:p,getPreview:y,renderPreview:s,...a}=g,{message:n}=L.useApp(),{ti:c}=C(),r=a.src||"",o="ImageLazyPreview."+(p||r),[d,i]=f.useState(!1),[l,u]=f.useState(k(o,"")),w=async()=>{if(!l)try{i(!0),n.loading({duration:0,key:o,content:c({en:"Loading...",vi:"Đang tải..."})});let t=performance.now();const e=await y();let v=performance.now();console.log("getPreview",v-t),e&&e!==r&&(u(e),x(o,e)),n.destroy(o)}catch(t){console.error(t),n.error({key:o,content:c({en:"Load failed: ",vi:"Load lỗi: "})+t.message})}finally{i(!1)}},m=l||r;return h.jsx(I,{...a,preview:typeof s=="function"?s(m,d):{src:m},onClick:t=>{var e;(e=a.onClick)==null||e.call(a,t),w()}})}export{z as default}; diff --git a/public/assets/InfiniteScroll-GdRBIjZP.js b/public/assets/InfiniteScroll-Cg4lOtgH.js similarity index 86% rename from public/assets/InfiniteScroll-GdRBIjZP.js rename to public/assets/InfiniteScroll-Cg4lOtgH.js index d4791d2..13023fc 100644 --- a/public/assets/InfiniteScroll-GdRBIjZP.js +++ b/public/assets/InfiniteScroll-Cg4lOtgH.js @@ -1 +1 @@ -import{r as o,aA as a}from"./index--trdnQFa.js";import{u as I,a as E}from"./index-X7jfXLlB.js";import{d as T,u as L}from"./MyApp-BHr373cy.js";function V({disabled:i,children:R,next:r,hasNext:l,prev:n,hasPrev:h,loader:g,endMessage:m,prevLoader:d,prevEndMessage:k}){const{message:t}=T(),{ti:c}=L(),{isIntersecting:v,ref:j}=I(),{isIntersecting:x,ref:p}=I();E(()=>{F(),y()},1e3),o.useLayoutEffect(()=>{F()},[x]),o.useLayoutEffect(()=>{y()},[v]);const f=o.useRef(!1),F=()=>{if(!i&&x&&!f.current){f.current=!0;const e="checkFetchNext";t.loading({key:e,content:c({en:"Fetching next...",vi:"Đang tải tiếp theo..."}),duration:0}),r==null||r().then(()=>{t.success({key:e,content:c({en:"Fetch success",vi:"Tải xong"})})}).catch(s=>{t.error({key:e,content:c({en:"Fetch failed: ",vi:"Tải lỗi: "})+s.message}),console.log(s)}).finally(()=>{f.current=!1})}},u=o.useRef(!1),y=()=>{if(!i&&v&&!u.current){u.current=!0;const e="checkFetchPrev";t.loading({key:e,content:c({en:"Fetching previous...",vi:"Đang tải trước đó..."}),duration:0}),n==null||n().then(()=>{t.success({key:e,content:c({en:"Fetch success",vi:"Tải xong"})})}).catch(s=>{t.error({key:e,content:c({en:"Fetch failed: ",vi:"Tải lỗi: "})+s.message}),console.log(s)}).finally(()=>{u.current=!1})}};return a.jsxs("div",{style:{flex:1},children:[n&&h&&!i&&a.jsx("div",{ref:j,children:d||g}),n&&!h&&(k||m),R,r&&l&&!i&&a.jsx("div",{ref:p,children:g}),!l&&m]})}export{V as default}; +import{r as o,aA as a}from"./index-BBriuzNA.js";import{u as I,a as E}from"./index-NjHtWr7u.js";import{d as T,u as L}from"./MyApp-CmkiOnMb.js";function V({disabled:i,children:R,next:r,hasNext:l,prev:n,hasPrev:h,loader:g,endMessage:m,prevLoader:d,prevEndMessage:k}){const{message:t}=T(),{ti:c}=L(),{isIntersecting:v,ref:j}=I(),{isIntersecting:x,ref:p}=I();E(()=>{F(),y()},1e3),o.useLayoutEffect(()=>{F()},[x]),o.useLayoutEffect(()=>{y()},[v]);const f=o.useRef(!1),F=()=>{if(!i&&x&&!f.current){f.current=!0;const e="checkFetchNext";t.loading({key:e,content:c({en:"Fetching next...",vi:"Đang tải tiếp theo..."}),duration:0}),r==null||r().then(()=>{t.success({key:e,content:c({en:"Fetch success",vi:"Tải xong"})})}).catch(s=>{t.error({key:e,content:c({en:"Fetch failed: ",vi:"Tải lỗi: "})+s.message}),console.log(s)}).finally(()=>{f.current=!1})}},u=o.useRef(!1),y=()=>{if(!i&&v&&!u.current){u.current=!0;const e="checkFetchPrev";t.loading({key:e,content:c({en:"Fetching previous...",vi:"Đang tải trước đó..."}),duration:0}),n==null||n().then(()=>{t.success({key:e,content:c({en:"Fetch success",vi:"Tải xong"})})}).catch(s=>{t.error({key:e,content:c({en:"Fetch failed: ",vi:"Tải lỗi: "})+s.message}),console.log(s)}).finally(()=>{u.current=!1})}};return a.jsxs("div",{style:{flex:1},children:[n&&h&&!i&&a.jsx("div",{ref:j,children:d||g}),n&&!h&&(k||m),R,r&&l&&!i&&a.jsx("div",{ref:p,children:g}),!l&&m]})}export{V as default}; diff --git a/public/assets/JoinedGroups-rxqInn3t.js b/public/assets/JoinedGroups-Bc9669jg.js similarity index 79% rename from public/assets/JoinedGroups-rxqInn3t.js rename to public/assets/JoinedGroups-Bc9669jg.js index aed6e49..818c019 100644 --- a/public/assets/JoinedGroups-rxqInn3t.js +++ b/public/assets/JoinedGroups-Bc9669jg.js @@ -1,2 +1,2 @@ -import{ay as I,aI as B,r as y,aA as o,aB as j,aT as E}from"./index--trdnQFa.js";import{u as J,g as S,y as v,b as l,h as A,T as G,o as b}from"./MyApp-BHr373cy.js";import{u as L}from"./useForceStop-B53S8Rhf.js";import F from"./MyTable-BTHATUSD.js";import{E as M}from"./ExportButton-C-PwJSin.js";import{c as R}from"./groups-DwKzy7u6.js";import{I as O}from"./index-CB9InVBI.js";import{A as W}from"./index-fivsYW1W.js";import"./index-X7jfXLlB.js";import"./Table-GiCOcILW.js";import"./index-VHrAsB-Q.js";import"./addEventListener-KkFh1sjE.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";import"./index-DmA8T0X5.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./Pagination-CPGTHysj.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./row-DQoT4CfJ.js";import"./file-download-DYjmaN3D.js";function pe({target:e}){const{ti:a}=J(),{message:c}=I.useApp(),k=B(),C=L(),[m,p]=y.useState(!1),[d,u]=S("JoinedGroups.data."+(e==null?void 0:e.id),[]);y.useEffect(()=>{var i;e!=null&&e.id&&h(!((i=v("JoinedGroups.data."+(e==null?void 0:e.id)))!=null&&i.length))},[e==null?void 0:e.id]);const h=async(i=!1)=>{var f;if(!(e!=null&&e.id))return;const n=C.start();let t=[...i?[]:v("JoinedGroups.data."+(e==null?void 0:e.id))||[]],x=((f=t[t.length-1])==null?void 0:f.cursor)||"";p(!0);try{for(;!n.value();){const r=await R({uid:e.id,cursor:x});if(!(r!=null&&r.length))break;x=r[r.length-1].cursor,t=[...t,...r].map((T,D)=>({...T,recent:D})),u(t)}c.success({content:a({en:"Load groups success ",vi:"Tải nhóm xong "})+t.length})}catch(r){c.error({content:a({en:"Error: ",vi:"Lỗi: "})+r.message})}finally{u(t),p(!1)}},w=i=>{k("/bulk-downloader",{state:{targetId:i,platform:E.Facebook}})},_=i=>o.jsxs(l,{children:[o.jsx(j,{disabled:m,type:"primary",icon:m?o.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):o.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>h(!0),children:a({en:"Reload",vi:"Tải lại"})}),o.jsx(M,{data:i.length?i:d,options:[{key:"uid",label:".txt (groups id)",prepareData:n=>({fileName:(e==null?void 0:e.name)+"_joined_groups_id.txt",data:n.map(s=>s.id).join(` +import{ay as I,aI as B,r as y,aA as o,aB as j,aT as E}from"./index-BBriuzNA.js";import{u as J,g as S,y as v,b as l,h as A,T as G,o as b}from"./MyApp-CmkiOnMb.js";import{u as L}from"./useForceStop-DOwcs-PE.js";import F from"./MyTable-C-6hHnGo.js";import{E as M}from"./ExportButton-DABx3myg.js";import{c as R}from"./groups-DGwrOePX.js";import{I as O}from"./index-Dm20K0UU.js";import{A as W}from"./index-BhyNApA-.js";import"./index-NjHtWr7u.js";import"./Table-By6CV266.js";import"./index-Bumumc8Y.js";import"./addEventListener-w7NT04KM.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-tTPNrueW.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./Pagination-slfcHA-i.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./row-C0Wk6t4-.js";import"./file-download-Dys_FsHc.js";function pe({target:e}){const{ti:a}=J(),{message:c}=I.useApp(),k=B(),C=L(),[m,p]=y.useState(!1),[d,u]=S("JoinedGroups.data."+(e==null?void 0:e.id),[]);y.useEffect(()=>{var i;e!=null&&e.id&&h(!((i=v("JoinedGroups.data."+(e==null?void 0:e.id)))!=null&&i.length))},[e==null?void 0:e.id]);const h=async(i=!1)=>{var f;if(!(e!=null&&e.id))return;const n=C.start();let t=[...i?[]:v("JoinedGroups.data."+(e==null?void 0:e.id))||[]],x=((f=t[t.length-1])==null?void 0:f.cursor)||"";p(!0);try{for(;!n.value();){const r=await R({uid:e.id,cursor:x});if(!(r!=null&&r.length))break;x=r[r.length-1].cursor,t=[...t,...r].map((T,D)=>({...T,recent:D})),u(t)}c.success({content:a({en:"Load groups success ",vi:"Tải nhóm xong "})+t.length})}catch(r){c.error({content:a({en:"Error: ",vi:"Lỗi: "})+r.message})}finally{u(t),p(!1)}},w=i=>{k("/bulk-downloader",{state:{targetId:i,platform:E.Facebook}})},_=i=>o.jsxs(l,{children:[o.jsx(j,{disabled:m,type:"primary",icon:m?o.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):o.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>h(!0),children:a({en:"Reload",vi:"Tải lại"})}),o.jsx(M,{data:i.length?i:d,options:[{key:"uid",label:".txt (groups id)",prepareData:n=>({fileName:(e==null?void 0:e.name)+"_joined_groups_id.txt",data:n.map(s=>s.id).join(` `)})},{key:"id_name",label:".csv (group id+name)",prepareData:n=>({fileName:(e==null?void 0:e.name)+"_joined_groups_id_name.csv",data:b(n.map(s=>({uid:s.id,name:s.name})))})},{key:"json",label:".json",prepareData:n=>({fileName:(e==null?void 0:e.name)+"_joined_groups.json",data:JSON.stringify(n,null,4)})},{key:"csv",label:".csv",prepareData:n=>({fileName:(e==null?void 0:e.name)+"_joined_groups.csv",data:b(n)})}]})]}),N=[{title:"#",dataIndex:"recent",key:"recent",render:(i,n,s)=>(n.recent||0)+1,sorter:(i,n)=>i.recent-n.recent,width:60},{title:a({en:"Cover",vi:"Ảnh"}),key:"cover",dataIndex:"image",render:(i,n,s)=>o.jsx(O,{src:n.image,style:{width:150,height:100,objectFit:"contain"}}),width:150},{title:a({en:"Name",vi:"Tên"}),key:"name",dataIndex:"name",sorter:(i,n)=>i.name.localeCompare(n.name),render:(i,n,s)=>o.jsxs(l,{direction:"vertical",style:{maxWidth:250},children:[o.jsx("a",{href:n.url,target:"_blank",children:o.jsx("b",{children:n.name})}),o.jsx("span",{style:{opacity:.7},children:n.id})]})},{title:a({en:"Description",vi:"Mô tả"}),key:"description",dataIndex:"description",render:(i,n,s)=>o.jsx("p",{style:{width:250},children:i}),sorter:(i,n)=>(i.description||"").localeCompare(n.description||"")},{title:a({en:"Members",vi:"Thành viên"}),key:"membersCount",dataIndex:"membersCount",sorter:(i,n)=>i.membersCount-n.membersCount,render:(i,n,s)=>A(i),align:"end",width:120},{title:a({en:"Actions",vi:"Hành động"}),key:"actions",render:(i,n,s)=>o.jsx(l.Compact,{children:o.jsx(G,{title:a({en:"Bulk Downloader",vi:"Tải hàng loạt"}),children:o.jsx(j,{type:"default",onClick:()=>w(n.id),icon:o.jsx("i",{className:"fa-solid fa-download"})})})}),width:100,align:"end"}];return o.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[o.jsx(W,{type:"success",showIcon:!0,message:a({en:`Joined ${d.length} public groups`,vi:`Đã tham gia ${d.length} nhóm công khai`}),style:{alignSelf:"center",marginBottom:10}}),o.jsx(F,{columns:N,data:d,keyExtractor:i=>i==null?void 0:i.id,searchable:!0,selectable:!0,pageSize:5,renderTitle:_})]})}export{pe as default}; diff --git a/public/assets/LanguagePicker-CY95-mxk.js b/public/assets/LanguagePicker-DdOnah74.js similarity index 74% rename from public/assets/LanguagePicker-CY95-mxk.js rename to public/assets/LanguagePicker-DdOnah74.js index 9fc3ff6..8ad7327 100644 --- a/public/assets/LanguagePicker-CY95-mxk.js +++ b/public/assets/LanguagePicker-DdOnah74.js @@ -1 +1 @@ -import{r as l,aw as n,aA as t,aB as g}from"./index--trdnQFa.js";import{u as c,S as f,t as s}from"./MyApp-BHr373cy.js";import{D as m}from"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";const u={[n.vi]:"🇻🇳 Tiếng Việt",[n.en]:"🇬🇧 English"};function x(){const{language:a,setLanguage:i}=c();l.useEffect(()=>{a||f.fire({icon:"info",title:"Select language",input:"select",inputOptions:u,inputPlaceholder:"Chọn ngôn ngữ",inputValue:a||n.vi,allowOutsideClick:!1,allowEscapeKey:!1,inputValidator:e=>{if(!e)return"You need to choose something!"}}).then(e=>{e.isConfirmed&&(i(e.value),s("LanguagePicker:handleInitLanguage:"+e.value))})},[a]);const o=e=>{e.key!==a&&(s("LanguagePicker:handleChangeLanguage:"+e.key),i(e.key))};return t.jsx(m,{menu:{selectable:!0,items:Object.entries(u).map(([e,r])=>({key:e,label:r})),defaultSelectedKeys:[a||n.vi],onClick:o},arrow:!0,children:t.jsx(g,{icon:t.jsx("i",{className:"fa-solid fa-earth-americas"})})})}export{x as default}; +import{r as l,aw as n,aA as t,aB as g}from"./index-BBriuzNA.js";import{u as c,S as f,t as s}from"./MyApp-CmkiOnMb.js";import{D as m}from"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";const u={[n.vi]:"🇻🇳 Tiếng Việt",[n.en]:"🇬🇧 English"};function x(){const{language:a,setLanguage:i}=c();l.useEffect(()=>{a||f.fire({icon:"info",title:"Select language",input:"select",inputOptions:u,inputPlaceholder:"Chọn ngôn ngữ",inputValue:a||n.vi,allowOutsideClick:!1,allowEscapeKey:!1,inputValidator:e=>{if(!e)return"You need to choose something!"}}).then(e=>{e.isConfirmed&&(i(e.value),s("LanguagePicker:handleInitLanguage:"+e.value))})},[a]);const o=e=>{e.key!==a&&(s("LanguagePicker:handleChangeLanguage:"+e.key),i(e.key))};return t.jsx(m,{menu:{selectable:!0,items:Object.entries(u).map(([e,r])=>({key:e,label:r})),defaultSelectedKeys:[a||n.vi],onClick:o},arrow:!0,children:t.jsx(g,{icon:t.jsx("i",{className:"fa-solid fa-earth-americas"})})})}export{x as default}; diff --git a/public/assets/LikedPages-Dxytc2a9.js b/public/assets/LikedPages-Bsy9eM3i.js similarity index 67% rename from public/assets/LikedPages-Dxytc2a9.js rename to public/assets/LikedPages-Bsy9eM3i.js index 23c0ff6..e87f1f1 100644 --- a/public/assets/LikedPages-Dxytc2a9.js +++ b/public/assets/LikedPages-Bsy9eM3i.js @@ -1,2 +1,2 @@ -import{aA as o}from"./index--trdnQFa.js";import{u as d,L as h,o as p,b as u}from"./MyApp-BHr373cy.js";import{E as x}from"./ExportButton-C-PwJSin.js";import{C as f}from"./Collection-CPPE61tF.js";import{c as j}from"./pages-BoKNAMFY.js";import{A as k}from"./index-fivsYW1W.js";import{L as y}from"./index-BJNnFmyH.js";import{I as _}from"./index-CB9InVBI.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-X7jfXLlB.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";function G({target:i}){const{ti:a}=d(),t=async(e=[],s)=>{var r;return i!=null&&i.id?await j({uid:i.id,cursor:s||((r=e[e.length-1])==null?void 0:r.cursor)}):void 0},c=e=>o.jsx(y.Item,{children:o.jsxs(u,{direction:"vertical",style:{maxWidth:150},children:[o.jsx(_,{src:e.image,style:{width:150,height:150,objectFit:"contain",borderRadius:10}}),o.jsxs("span",{style:{margin:0},children:[o.jsx("span",{style:{opacity:.7},children:e.id}),o.jsx("br",{}),o.jsx("a",{href:e.url,target:"_blank",children:o.jsx("b",{children:e.name})})]})]})});return o.jsx(f,{collectionName:(i==null?void 0:i.name)+" - Liked Pages",fetchNext:t,renderItem:c,getItemCursor:e=>e.cursor,rowKey:e=>e.id,showPagination:!0,all:!0,searchPlaceholder:e=>a({en:`Search in ${e.length} liked pages`,vi:`Tìm trong ${e.length} trang được thích`}),onSearch:(e,s)=>h(e,s.name+s.id),header:e=>{var n,r,m,l;const s=((n=e[0])==null?void 0:n.total)&&((r=e[0])==null?void 0:r.total)!==e.length;return o.jsx(k,{type:"success",showIcon:!0,message:a({en:`Liked ${e.length} public pages`+(s?` (in total ${(m=e[0])==null?void 0:m.total} likes)`:""),vi:`Đã thích ${e.length} trang công khai`+(s?` (trong tổng ${(l=e[0])==null?void 0:l.total} lượt thích)`:"")})})},headerButtons:e=>o.jsx(x,{data:e,options:[{key:"uid",label:".txt (pages id)",prepareData:s=>({fileName:(i==null?void 0:i.name)+"_liked_pages_id.txt",data:s.map(n=>n.id).join(` +import{aA as o}from"./index-BBriuzNA.js";import{u as d,L as h,o as p,b as u}from"./MyApp-CmkiOnMb.js";import{E as x}from"./ExportButton-DABx3myg.js";import{C as f}from"./Collection-B9SxfYr4.js";import{c as j}from"./pages-BWB-tC3I.js";import{A as k}from"./index-BhyNApA-.js";import{L as y}from"./index-B7udrguy.js";import{I as _}from"./index-Dm20K0UU.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-NjHtWr7u.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";function G({target:i}){const{ti:a}=d(),t=async(e=[],s)=>{var r;return i!=null&&i.id?await j({uid:i.id,cursor:s||((r=e[e.length-1])==null?void 0:r.cursor)}):void 0},c=e=>o.jsx(y.Item,{children:o.jsxs(u,{direction:"vertical",style:{maxWidth:150},children:[o.jsx(_,{src:e.image,style:{width:150,height:150,objectFit:"contain",borderRadius:10}}),o.jsxs("span",{style:{margin:0},children:[o.jsx("span",{style:{opacity:.7},children:e.id}),o.jsx("br",{}),o.jsx("a",{href:e.url,target:"_blank",children:o.jsx("b",{children:e.name})})]})]})});return o.jsx(f,{collectionName:(i==null?void 0:i.name)+" - Liked Pages",fetchNext:t,renderItem:c,getItemCursor:e=>e.cursor,rowKey:e=>e.id,showPagination:!0,all:!0,searchPlaceholder:e=>a({en:`Search in ${e.length} liked pages`,vi:`Tìm trong ${e.length} trang được thích`}),onSearch:(e,s)=>h(e,s.name+s.id),header:e=>{var n,r,m,l;const s=((n=e[0])==null?void 0:n.total)&&((r=e[0])==null?void 0:r.total)!==e.length;return o.jsx(k,{type:"success",showIcon:!0,message:a({en:`Liked ${e.length} public pages`+(s?` (in total ${(m=e[0])==null?void 0:m.total} likes)`:""),vi:`Đã thích ${e.length} trang công khai`+(s?` (trong tổng ${(l=e[0])==null?void 0:l.total} lượt thích)`:"")})})},headerButtons:e=>o.jsx(x,{data:e,options:[{key:"uid",label:".txt (pages id)",prepareData:s=>({fileName:(i==null?void 0:i.name)+"_liked_pages_id.txt",data:s.map(n=>n.id).join(` `)})},{key:"id_name",label:".csv (page id+name)",prepareData:s=>({fileName:(i==null?void 0:i.name)+"_liked_pages_id_name.csv",data:p(s.map(n=>({id:n.id,name:n.name})))})},{key:"json",label:".json",prepareData:s=>({fileName:(i==null?void 0:i.name)+"_liked_pages.json",data:JSON.stringify(s,null,4)})},{key:"csv",label:".csv",prepareData:s=>({fileName:(i==null?void 0:i.name)+"_liked_pages.csv",data:p(s)})}]})})}export{G as default}; diff --git a/public/assets/MyApp-BHr373cy.js b/public/assets/MyApp-CmkiOnMb.js similarity index 95% rename from public/assets/MyApp-BHr373cy.js rename to public/assets/MyApp-CmkiOnMb.js index 62dca17..9d59bab 100644 --- a/public/assets/MyApp-BHr373cy.js +++ b/public/assets/MyApp-CmkiOnMb.js @@ -1,10 +1,10 @@ -const __vite__fileDeps=["./LanguagePicker-CY95-mxk.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./index-BI67OZir.js","./Dropdown-DUpNeMO8.js","./PurePanel-CSR2tSBX.js","./ProfileHeader-mRn5Bf5J.js","./index-DlkwBJMX.js","./index-VHrAsB-Q.js","./index-DTxLlwd8.js","./responsiveObserver-DiDk9dGL.js","./useBreakpoint-QbbjxHKX.js","./index-CU7pBSDU.js","./Notifications-DlEZtrBo.js","./index-BJNnFmyH.js","./Pagination-CPGTHysj.js","./index-CETJ8txP.js","./SearchOutlined-D247roQH.js","./row-DQoT4CfJ.js","./Dashboard-DvcWojWo.js","./index-fivsYW1W.js","./index-CJGqVaEE.js","./AllMessages-DP5QRpg6.js","./ExportButton-C-PwJSin.js","./file-download-DYjmaN3D.js","./messages-6ucXfJYj.js","./dayjs.min-DH5lmvCP.js","./index-CB9InVBI.js","./EyeOutlined-BALW2cms.js","./addEventListener-KkFh1sjE.js","./FirstMessages-D7fNfd4x.js","./VideoWithMuted-xvYRNY0l.js","./index-BCUBacY9.js","./AllFriends-Bvie5x2q.js","./MyTable-BTHATUSD.js","./index-X7jfXLlB.js","./Table-GiCOcILW.js","./index-DmA8T0X5.js","./useForceStop-B53S8Rhf.js","./index-CB2nR54F.js","./FriendRequests-MGmAsJvG.js","./index-CSZp6KTZ.js","./videos-CpxHGGu6.js","./index-DYW0YRm8.js","./index-BeFPDyjj.js","./index-l6SaavIj.js","./groups-DwKzy7u6.js","./index-DM74e2Au.js","./pages-BoKNAMFY.js","./VIP-BGGjeNIq.js","./index-BZhs6IWC.js","./Shortcuts-Twlqi1uQ.js","./VideoDownloader-CDm2n03r.js","./AutoRun-CPbitO3T.js","./Tip-CifF-Vmi.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{r as l,_ as Es,a as Os,b as _s,c as Ms,s as Ts,u as ko,d as de,f as Go,e as Bs,t as Kr,g as Ae,w as In,h as Wt,i as $a,j as ae,k as gn,l as Ia,K as Ot,m as As,n as Et,o as G,p as Rs,$ as Z,q as rn,C as yr,v as js,x as Xu,y as ti,z as Ns,A as ni,B as Yu,P as Ds,D as re,E as Gn,F as qn,G as Ls,H as Un,I as dt,J as Zu,N as zs,L as Qu,M as Fs,O as Ju,Q as nr,R as ed,S as td,T as Cr,U as nd,V as Vs,W as Bn,X as ut,Y as Hs,Z as An,a0 as rd,a1 as od,a2 as id,a3 as Pa,a4 as ri,a5 as ad,a6 as sd,a7 as Si,a8 as ld,a9 as cd,aa as ud,ab as dd,ac as Eo,ad as Ws,ae as fd,af as md,ag as qs,ah as Ks,ai as Gs,aj as gd,ak as pd,al as hd,am as vd,an as Us,ao as bd,ap as ka,aq as wd,ar as yd,as as Xs,at as tn,au as ot,av as it,aw as Ea,ax as Ve,ay as Cd,az as xd,aA as x,aB as go,aC as Sd,aD as $d,aE as Id,aF as _t,aG as Pd,aH as mr}from"./index--trdnQFa.js";var oi=l.createContext(null);function kd(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),i=l.useRef([]),s=l.useContext(oi),c=l.useCallback(function(m,f,g){r.current+=1;var p=r.current;i.current.push({size:m,element:f,data:g}),Promise.resolve().then(function(){p===r.current&&(n==null||n(i.current),i.current=[])}),s==null||s(m,f,g)},[n,s]);return l.createElement(oi.Provider,{value:c},t)}var Ys=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,s){return i[0]===n?(r=s,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,s=this.__entries__;i0},e.prototype.connect_=function(){!ii||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Bd?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ii||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=Td.some(function(s){return!!~r.indexOf(s)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Zs=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof wr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Vd(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof wr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Hd(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Js=typeof WeakMap<"u"?new WeakMap:new Ys,el=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ad.getInstance(),r=new Wd(t,n,this);Js.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){el.prototype[e]=function(){var t;return(t=Js.get(this))[e].apply(t,arguments)}});var qd=function(){return typeof po.ResizeObserver<"u"?po.ResizeObserver:el}(),Wn=new Map;function Kd(e){e.forEach(function(t){var n,r=t.target;(n=Wn.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var tl=new qd(Kd);function Gd(e,t){Wn.has(e)||(Wn.set(e,new Set),tl.observe(e)),Wn.get(e).add(t)}function Ud(e,t){Wn.has(e)&&(Wn.get(e).delete(t),Wn.get(e).size||(tl.unobserve(e),Wn.delete(e)))}var Xd=function(e){Es(n,e);var t=Os(n);function n(){return _s(this,n),t.apply(this,arguments)}return Ms(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function Yd(e,t){var n=e.children,r=e.disabled,i=l.useRef(null),s=l.useRef(null),c=l.useContext(oi),m=typeof n=="function",f=m?n(i):n,g=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!m&&l.isValidElement(f)&&Ts(f),h=p?f.ref:null,b=ko(h,i),w=function(){var I;return Go(i.current)||(i.current&&Bs(i.current)==="object"?Go((I=i.current)===null||I===void 0?void 0:I.nativeElement):null)||Go(s.current)};l.useImperativeHandle(t,function(){return w()});var S=l.useRef(e);S.current=e;var C=l.useCallback(function(y){var I=S.current,O=I.onResize,E=I.data,k=y.getBoundingClientRect(),R=k.width,T=k.height,j=y.offsetWidth,A=y.offsetHeight,D=Math.floor(R),W=Math.floor(T);if(g.current.width!==D||g.current.height!==W||g.current.offsetWidth!==j||g.current.offsetHeight!==A){var q={width:D,height:W,offsetWidth:j,offsetHeight:A};g.current=q;var N=j===Math.round(R)?R:j,M=A===Math.round(T)?T:A,z=de(de({},q),{},{offsetWidth:N,offsetHeight:M});c==null||c(z,y,E),O&&Promise.resolve().then(function(){O(z,y)})}},[]);return l.useEffect(function(){var y=w();return y&&!r&&Gd(y,C),function(){return Ud(y,C)}},[i.current,r]),l.createElement(Xd,{ref:s},p?l.cloneElement(f,{ref:b}):f)}var Zd=l.forwardRef(Yd),Qd="rc-observer-key";function Jd(e,t){var n=e.children,r=typeof n=="function"?[n]:Kr(n);return r.map(function(i,s){var c=(i==null?void 0:i.key)||"".concat(Qd,"-").concat(s);return l.createElement(Zd,Ae({},e,{key:c,ref:s===0?t:void 0}),i)})}var Gr=l.forwardRef(Jd);Gr.Collection=kd;function ef(e){let t;const n=i=>()=>{t=null,e.apply(void 0,Wt(i))},r=function(){if(t==null){for(var i=arguments.length,s=new Array(i),c=0;c{In.cancel(t),t=null},r}const vo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Uo(e){return e!==void 0}function br(e,t){var n=t||{},r=n.defaultValue,i=n.value,s=n.onChange,c=n.postState,m=$a(function(){return Uo(i)?i:Uo(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),f=ae(m,2),g=f[0],p=f[1],h=i!==void 0?i:g,b=c?c(h):h,w=gn(s),S=$a([h]),C=ae(S,2),y=C[0],I=C[1];Ia(function(){var E=y[0];g!==E&&w(g,E)},[y]),Ia(function(){Uo(i)||p(i)},[i]);var O=gn(function(E,k){p(E,k),I([h],k)});return[b,O]}function _o(e,t){return vo.reduce((n,r)=>{const i=e[`${r}1`],s=e[`${r}3`],c=e[`${r}6`],m=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:s,darkColor:c,textColor:m}))},{})}function ai(e){return e!=null&&e===e.window}function nl(e,t){var n,r;if(typeof window>"u")return 0;const i="scrollTop";let s=0;return ai(e)?s=e.pageYOffset:e instanceof Document?s=e.documentElement[i]:(e instanceof HTMLElement||e)&&(s=e[i]),e&&!ai(e)&&typeof s!="number"&&(s=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[i]),s}function tf(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function nf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,s=n(),c=nl(s),m=Date.now(),f=()=>{const p=Date.now()-m,h=tf(p>i?i:p,c,e,i);ai(s)?s.scrollTo(window.pageXOffset,h):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=h:s.scrollTop=h,p({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, +const __vite__fileDeps=["./LanguagePicker-DdOnah74.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./index-4qwk-lHW.js","./Dropdown-DxSI4NN9.js","./PurePanel-yY9muMEs.js","./ProfileHeader-Db4erSQn.js","./index-DhqkrVsj.js","./index-Bumumc8Y.js","./index-CbmP82sr.js","./responsiveObserver-Bb1LONna.js","./useBreakpoint-CDLrV-mr.js","./index-Dg6R6lHP.js","./Notifications-PTKdvrFF.js","./index-B7udrguy.js","./Pagination-slfcHA-i.js","./index-CKsES7YN.js","./SearchOutlined-DvnHgzkc.js","./row-C0Wk6t4-.js","./Dashboard-2LLzpdYA.js","./index-BhyNApA-.js","./index-uPrgDTc-.js","./AllMessages-DGHBx4Ei.js","./ExportButton-DABx3myg.js","./file-download-Dys_FsHc.js","./messages-BLu7ptC2.js","./dayjs.min-Qbr7UE_g.js","./index-Dm20K0UU.js","./EyeOutlined-Du2MtFRM.js","./addEventListener-w7NT04KM.js","./FirstMessages-BMRQW45D.js","./VideoWithMuted-CdYhYcjW.js","./index-BbXfI1Nu.js","./AllFriends-0QZBJ5aF.js","./MyTable-C-6hHnGo.js","./index-NjHtWr7u.js","./Table-By6CV266.js","./index-tTPNrueW.js","./useForceStop-DOwcs-PE.js","./index-BM7CeakW.js","./FriendRequests-Cjy_XoL8.js","./index-Cp3vfVbK.js","./videos-VQJKJ_Wq.js","./index-C9vPYMV7.js","./index-FqgPeFV_.js","./index-DJG2H-VC.js","./groups-DGwrOePX.js","./index-drlxkLo6.js","./pages-BWB-tC3I.js","./VIP-3r4NLbNh.js","./index-Bns8oKci.js","./Shortcuts-BrDAbgQB.js","./VideoDownloader-CGIr9UaI.js","./AutoRun-YEVjSwxH.js","./Tip-DwnoLHUc.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{r as l,_ as Es,a as Os,b as _s,c as Ms,s as Ts,u as ko,d as de,f as Go,e as Bs,t as Kr,g as Ae,w as In,h as Wt,i as $a,j as ae,k as gn,l as Ia,K as Ot,m as As,n as Et,o as G,p as Rs,$ as Z,q as rn,C as yr,v as js,x as Xu,y as ti,z as Ns,A as ni,B as Yu,P as Ds,D as re,E as Gn,F as qn,G as Ls,H as Un,I as dt,J as Zu,N as zs,L as Qu,M as Fs,O as Ju,Q as nr,R as ed,S as td,T as Cr,U as nd,V as Vs,W as Bn,X as ut,Y as Hs,Z as An,a0 as rd,a1 as od,a2 as id,a3 as Pa,a4 as ri,a5 as ad,a6 as sd,a7 as Si,a8 as ld,a9 as cd,aa as ud,ab as dd,ac as Eo,ad as Ws,ae as fd,af as md,ag as qs,ah as Ks,ai as Gs,aj as gd,ak as pd,al as hd,am as vd,an as Us,ao as bd,ap as ka,aq as wd,ar as yd,as as Xs,at as tn,au as ot,av as it,aw as Ea,ax as Ve,ay as Cd,az as xd,aA as x,aB as go,aC as Sd,aD as $d,aE as Id,aF as _t,aG as Pd,aH as mr}from"./index-BBriuzNA.js";var oi=l.createContext(null);function kd(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),i=l.useRef([]),s=l.useContext(oi),c=l.useCallback(function(m,f,g){r.current+=1;var p=r.current;i.current.push({size:m,element:f,data:g}),Promise.resolve().then(function(){p===r.current&&(n==null||n(i.current),i.current=[])}),s==null||s(m,f,g)},[n,s]);return l.createElement(oi.Provider,{value:c},t)}var Ys=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,s){return i[0]===n?(r=s,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,s=this.__entries__;i0},e.prototype.connect_=function(){!ii||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Bd?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ii||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=Td.some(function(s){return!!~r.indexOf(s)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Zs=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof wr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Vd(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof wr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Hd(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Js=typeof WeakMap<"u"?new WeakMap:new Ys,el=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ad.getInstance(),r=new Wd(t,n,this);Js.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){el.prototype[e]=function(){var t;return(t=Js.get(this))[e].apply(t,arguments)}});var qd=function(){return typeof po.ResizeObserver<"u"?po.ResizeObserver:el}(),Wn=new Map;function Kd(e){e.forEach(function(t){var n,r=t.target;(n=Wn.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var tl=new qd(Kd);function Gd(e,t){Wn.has(e)||(Wn.set(e,new Set),tl.observe(e)),Wn.get(e).add(t)}function Ud(e,t){Wn.has(e)&&(Wn.get(e).delete(t),Wn.get(e).size||(tl.unobserve(e),Wn.delete(e)))}var Xd=function(e){Es(n,e);var t=Os(n);function n(){return _s(this,n),t.apply(this,arguments)}return Ms(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function Yd(e,t){var n=e.children,r=e.disabled,i=l.useRef(null),s=l.useRef(null),c=l.useContext(oi),m=typeof n=="function",f=m?n(i):n,g=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!m&&l.isValidElement(f)&&Ts(f),h=p?f.ref:null,b=ko(h,i),w=function(){var I;return Go(i.current)||(i.current&&Bs(i.current)==="object"?Go((I=i.current)===null||I===void 0?void 0:I.nativeElement):null)||Go(s.current)};l.useImperativeHandle(t,function(){return w()});var S=l.useRef(e);S.current=e;var C=l.useCallback(function(y){var I=S.current,O=I.onResize,E=I.data,k=y.getBoundingClientRect(),R=k.width,T=k.height,j=y.offsetWidth,A=y.offsetHeight,D=Math.floor(R),W=Math.floor(T);if(g.current.width!==D||g.current.height!==W||g.current.offsetWidth!==j||g.current.offsetHeight!==A){var q={width:D,height:W,offsetWidth:j,offsetHeight:A};g.current=q;var N=j===Math.round(R)?R:j,M=A===Math.round(T)?T:A,z=de(de({},q),{},{offsetWidth:N,offsetHeight:M});c==null||c(z,y,E),O&&Promise.resolve().then(function(){O(z,y)})}},[]);return l.useEffect(function(){var y=w();return y&&!r&&Gd(y,C),function(){return Ud(y,C)}},[i.current,r]),l.createElement(Xd,{ref:s},p?l.cloneElement(f,{ref:b}):f)}var Zd=l.forwardRef(Yd),Qd="rc-observer-key";function Jd(e,t){var n=e.children,r=typeof n=="function"?[n]:Kr(n);return r.map(function(i,s){var c=(i==null?void 0:i.key)||"".concat(Qd,"-").concat(s);return l.createElement(Zd,Ae({},e,{key:c,ref:s===0?t:void 0}),i)})}var Gr=l.forwardRef(Jd);Gr.Collection=kd;function ef(e){let t;const n=i=>()=>{t=null,e.apply(void 0,Wt(i))},r=function(){if(t==null){for(var i=arguments.length,s=new Array(i),c=0;c{In.cancel(t),t=null},r}const vo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Uo(e){return e!==void 0}function br(e,t){var n=t||{},r=n.defaultValue,i=n.value,s=n.onChange,c=n.postState,m=$a(function(){return Uo(i)?i:Uo(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),f=ae(m,2),g=f[0],p=f[1],h=i!==void 0?i:g,b=c?c(h):h,w=gn(s),S=$a([h]),C=ae(S,2),y=C[0],I=C[1];Ia(function(){var E=y[0];g!==E&&w(g,E)},[y]),Ia(function(){Uo(i)||p(i)},[i]);var O=gn(function(E,k){p(E,k),I([h],k)});return[b,O]}function _o(e,t){return vo.reduce((n,r)=>{const i=e[`${r}1`],s=e[`${r}3`],c=e[`${r}6`],m=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:s,darkColor:c,textColor:m}))},{})}function ai(e){return e!=null&&e===e.window}function nl(e,t){var n,r;if(typeof window>"u")return 0;const i="scrollTop";let s=0;return ai(e)?s=e.pageYOffset:e instanceof Document?s=e.documentElement[i]:(e instanceof HTMLElement||e)&&(s=e[i]),e&&!ai(e)&&typeof s!="number"&&(s=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[i]),s}function tf(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function nf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,s=n(),c=nl(s),m=Date.now(),f=()=>{const p=Date.now()-m,h=tf(p>i?i:p,c,e,i);ai(s)?s.scrollTo(window.pageXOffset,h):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=h:s.scrollTop=h,p({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),of=new Ot("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),af=new Ot("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),sf=new Ot("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),lf=new Ot("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),cf=new Ot("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),uf=new Ot("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),df=new Ot("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ff=new Ot("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),mf={"slide-up":{inKeyframes:of,outKeyframes:af},"slide-down":{inKeyframes:sf,outKeyframes:lf},"slide-left":{inKeyframes:cf,outKeyframes:uf},"slide-right":{inKeyframes:df,outKeyframes:ff}},_a=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=mf[t];return[As(r,i,s,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},gf=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var pf=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],gr=void 0;function hf(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,s=e.renderItem,c=e.responsive,m=e.responsiveDisabled,f=e.registerSize,g=e.itemKey,p=e.className,h=e.style,b=e.children,w=e.display,S=e.order,C=e.component,y=C===void 0?"div":C,I=Et(e,pf),O=c&&!w;function E(A){f(g,A)}l.useEffect(function(){return function(){E(null)}},[]);var k=s&&i!==gr?s(i):b,R;r||(R={opacity:O?0:1,height:O?0:gr,overflowY:O?"hidden":gr,order:c?S:gr,pointerEvents:O?"none":gr,position:O?"absolute":gr});var T={};O&&(T["aria-hidden"]=!0);var j=l.createElement(y,Ae({className:G(!r&&n,p),style:de(de({},R),h)},T,I,{ref:t}),k);return c&&(j=l.createElement(Gr,{onResize:function(D){var W=D.offsetWidth;E(W)},disabled:m},j)),j}var Nr=l.forwardRef(hf);Nr.displayName="Item";function vf(e){if(typeof MessageChannel>"u")In(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function bf(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],vf(function(){Rs.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Mr(e,t){var n=l.useState(t),r=ae(n,2),i=r[0],s=r[1],c=gn(function(m){e(function(){s(m)})});return[i,c]}var bo=Z.createContext(null),wf=["component"],yf=["className"],Cf=["className"],xf=function(t,n){var r=l.useContext(bo);if(!r){var i=t.component,s=i===void 0?"div":i,c=Et(t,wf);return l.createElement(s,Ae({},c,{ref:n}))}var m=r.className,f=Et(r,yf),g=t.className,p=Et(t,Cf);return l.createElement(bo.Provider,{value:null},l.createElement(Nr,Ae({ref:n,className:G(m,g)},f,p)))},rl=l.forwardRef(xf);rl.displayName="RawItem";var Sf=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ol="responsive",il="invalidate";function $f(e){return"+ ".concat(e.length," ...")}function If(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,s=i===void 0?[]:i,c=e.renderItem,m=e.renderRawItem,f=e.itemKey,g=e.itemWidth,p=g===void 0?10:g,h=e.ssr,b=e.style,w=e.className,S=e.maxCount,C=e.renderRest,y=e.renderRawRest,I=e.suffix,O=e.component,E=O===void 0?"div":O,k=e.itemComponent,R=e.onVisibleChange,T=Et(e,Sf),j=h==="full",A=bf(),D=Mr(A,null),W=ae(D,2),q=W[0],N=W[1],M=q||0,z=Mr(A,new Map),Y=ae(z,2),H=Y[0],K=Y[1],F=Mr(A,0),L=ae(F,2),U=L[0],fe=L[1],J=Mr(A,0),we=ae(J,2),$=we[0],me=we[1],ke=Mr(A,0),Oe=ae(ke,2),ve=Oe[0],Q=Oe[1],Ce=l.useState(null),Me=ae(Ce,2),ft=Me[0],tt=Me[1],$e=l.useState(null),Ke=ae($e,2),De=Ke[0],xe=Ke[1],ge=l.useMemo(function(){return De===null&&j?Number.MAX_SAFE_INTEGER:De||0},[De,q]),ie=l.useState(!1),Ie=ae(ie,2),ee=Ie[0],nt=Ie[1],se="".concat(r,"-item"),Re=Math.max(U,$),rt=S===ol,Te=s.length&&rt,Rt=S===il,Bt=Te||typeof S=="number"&&s.length>S,ye=l.useMemo(function(){var te=s;return Te?q===null&&j?te=s:te=s.slice(0,Math.min(s.length,M/p)):typeof S=="number"&&(te=s.slice(0,S)),te},[s,p,q,S,Te]),Le=l.useMemo(function(){return Te?s.slice(ge+1):s.slice(ye.length)},[s,ye,Te,ge]),Ge=l.useCallback(function(te,le){var Se;return typeof f=="function"?f(te):(Se=f&&(te==null?void 0:te[f]))!==null&&Se!==void 0?Se:le},[f]),mt=l.useCallback(c||function(te){return te},[c]);function at(te,le,Se){De===te&&(le===void 0||le===ft)||(xe(te),Se||(nt(teM){at(ne-1,te-Ye-ve+$);break}}I&&Mt(0)+ve>M&&tt(null)}},[M,H,$,ve,Ge,ye]);var It=ee&&!!Le.length,lt={};ft!==null&&Te&&(lt={position:"absolute",left:ft,top:0});var wt={prefixCls:se,responsive:Te,component:k,invalidate:Rt},vn=m?function(te,le){var Se=Ge(te,le);return l.createElement(bo.Provider,{key:Se,value:de(de({},wt),{},{order:le,item:te,itemKey:Se,registerSize:st,display:le<=ge})},m(te,le))}:function(te,le){var Se=Ge(te,le);return l.createElement(Nr,Ae({},wt,{order:le,key:Se,item:te,renderItem:mt,itemKey:Se,registerSize:st,display:le<=ge}))},Fe,be={order:It?ge:Number.MAX_SAFE_INTEGER,className:"".concat(se,"-rest"),registerSize:$t,display:It};if(y)y&&(Fe=l.createElement(bo.Provider,{value:de(de({},wt),be)},y(Le)));else{var _e=C||$f;Fe=l.createElement(Nr,Ae({},wt,be),typeof _e=="function"?_e(Le):_e)}var ue=l.createElement(E,Ae({className:G(!Rt&&r,w),style:b,ref:t},T),ye.map(vn),Bt?Fe:null,I&&l.createElement(Nr,Ae({},wt,{responsive:rt,responsiveDisabled:!Te,order:ge,className:"".concat(se,"-suffix"),registerSize:bt,display:!0,style:lt}),I));return rt&&(ue=l.createElement(Gr,{onResize:ze,disabled:!Te},ue)),ue}var Tn=l.forwardRef(If);Tn.displayName="Overflow";Tn.Item=rl;Tn.RESPONSIVE=ol;Tn.INVALIDATE=il;function Pf(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,s=r||{},c=s.className,m=s.content,f=i.x,g=f===void 0?0:f,p=i.y,h=p===void 0?0:p,b=l.useRef();if(!n||!n.points)return null;var w={position:"absolute"};if(n.autoArrow!==!1){var S=n.points[0],C=n.points[1],y=S[0],I=S[1],O=C[0],E=C[1];y===O||!["t","b"].includes(y)?w.top=h:y==="t"?w.top=0:w.bottom=0,I===E||!["l","r"].includes(I)?w.left=g:I==="l"?w.left=0:w.right=0}return l.createElement("div",{ref:b,className:G("".concat(t,"-arrow"),c),style:w},m)}function kf(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,s=e.motion;return i?l.createElement(yr,Ae({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(c){var m=c.className;return l.createElement("div",{style:{zIndex:r},className:G("".concat(t,"-mask"),m)})}):null}var Ef=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Of=l.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,s=e.style,c=e.target,m=e.onVisibleChanged,f=e.open,g=e.keepDom,p=e.fresh,h=e.onClick,b=e.mask,w=e.arrow,S=e.arrowPos,C=e.align,y=e.motion,I=e.maskMotion,O=e.forceRender,E=e.getPopupContainer,k=e.autoDestroy,R=e.portal,T=e.zIndex,j=e.onMouseEnter,A=e.onMouseLeave,D=e.onPointerEnter,W=e.ready,q=e.offsetX,N=e.offsetY,M=e.offsetR,z=e.offsetB,Y=e.onAlign,H=e.onPrepare,K=e.stretch,F=e.targetWidth,L=e.targetHeight,U=typeof n=="function"?n():n,fe=f||g,J=(E==null?void 0:E.length)>0,we=l.useState(!E||!J),$=ae(we,2),me=$[0],ke=$[1];if(rn(function(){!me&&J&&c&&ke(!0)},[me,J,c]),!me)return null;var Oe="auto",ve={left:"-1000vw",top:"-1000vh",right:Oe,bottom:Oe};if(W||!f){var Q,Ce=C.points,Me=C.dynamicInset||((Q=C._experimental)===null||Q===void 0?void 0:Q.dynamicInset),ft=Me&&Ce[0][1]==="r",tt=Me&&Ce[0][0]==="b";ft?(ve.right=M,ve.left=Oe):(ve.left=q,ve.right=Oe),tt?(ve.bottom=z,ve.top=Oe):(ve.top=N,ve.bottom=Oe)}var $e={};return K&&(K.includes("height")&&L?$e.height=L:K.includes("minHeight")&&L&&($e.minHeight=L),K.includes("width")&&F?$e.width=F:K.includes("minWidth")&&F&&($e.minWidth=F)),f||($e.pointerEvents="none"),l.createElement(R,{open:O||fe,getContainer:E&&function(){return E(c)},autoDestroy:k},l.createElement(kf,{prefixCls:i,open:f,zIndex:T,mask:b,motion:I}),l.createElement(Gr,{onResize:Y,disabled:!f},function(Ke){return l.createElement(yr,Ae({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:H,onEnterPrepare:H,visible:f,onVisibleChanged:function(xe){var ge;y==null||(ge=y.onVisibleChanged)===null||ge===void 0||ge.call(y,xe),m(xe)}}),function(De,xe){var ge=De.className,ie=De.style,Ie=G(i,ge,r);return l.createElement("div",{ref:js(Ke,t,xe),className:Ie,style:de(de(de(de({"--arrow-x":"".concat(S.x||0,"px"),"--arrow-y":"".concat(S.y||0,"px")},ve),$e),ie),{},{boxSizing:"border-box",zIndex:T},s),onMouseEnter:j,onMouseLeave:A,onPointerEnter:D,onClick:h},w&&l.createElement(Pf,{prefixCls:i,arrow:w,arrowPos:S,align:C}),l.createElement(Ef,{cache:!f&&!p},U))})}))}),_f=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Ts(n),s=l.useCallback(function(m){Xu(t,r?r(m):m)},[r]),c=ko(s,n.ref);return i?l.cloneElement(n,{ref:c}):n}),Ma=l.createContext(null);function Ta(e){return e?Array.isArray(e)?e:[e]:[]}function Mf(e,t,n,r){return l.useMemo(function(){var i=Ta(n??t),s=Ta(r??t),c=new Set(i),m=new Set(s);return e&&(c.has("hover")&&(c.delete("hover"),c.add("click")),m.has("hover")&&(m.delete("hover"),m.add("click"))),[c,m]},[e,t,n,r])}function Tf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Bf(e,t,n,r){for(var i=n.points,s=Object.keys(e),c=0;c1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Tr(e){return Lr(parseFloat(e),0)}function Aa(e,t){var n=de({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Ur(r).getComputedStyle(r),s=i.overflow,c=i.overflowClipMargin,m=i.borderTopWidth,f=i.borderBottomWidth,g=i.borderLeftWidth,p=i.borderRightWidth,h=r.getBoundingClientRect(),b=r.offsetHeight,w=r.clientHeight,S=r.offsetWidth,C=r.clientWidth,y=Tr(m),I=Tr(f),O=Tr(g),E=Tr(p),k=Lr(Math.round(h.width/S*1e3)/1e3),R=Lr(Math.round(h.height/b*1e3)/1e3),T=(S-C-O-E)*k,j=(b-w-y-I)*R,A=y*R,D=I*R,W=O*k,q=E*k,N=0,M=0;if(s==="clip"){var z=Tr(c);N=z*k,M=z*R}var Y=h.x+W-N,H=h.y+A-M,K=Y+h.width+2*N-W-q-T,F=H+h.height+2*M-A-D-j;n.left=Math.max(n.left,Y),n.top=Math.max(n.top,H),n.right=Math.min(n.right,K),n.bottom=Math.min(n.bottom,F)}}),n}function Ra(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function ja(e,t){var n=t||[],r=ae(n,2),i=r[0],s=r[1];return[Ra(e.width,i),Ra(e.height,s)]}function Na(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function pr(e,t){var n=t[0],r=t[1],i,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:s}}function Vn(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function Af(e,t,n,r,i,s,c){var m=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),f=ae(m,2),g=f[0],p=f[1],h=l.useRef(0),b=l.useMemo(function(){return t?si(t):[]},[t]),w=l.useRef({}),S=function(){w.current={}};e||S();var C=gn(function(){if(t&&n&&e){let Pt=function(fn,Sn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ie,Ln=U.x+fn,Zn=U.y+Sn,zn=Ln+Q,rr=Zn+ve,or=Math.max(Ln,Dn.left),Pr=Math.max(Zn,Dn.top),kr=Math.min(zn,Dn.right),Er=Math.min(rr,Dn.bottom);return Math.max(0,(kr-or)*(Er-Pr))},Nn=function(){jt=U.y+_e,qe=jt+ve,Ct=U.x+be,Gt=Ct+Q};var O,E,k=t,R=k.ownerDocument,T=Ur(k),j=T.getComputedStyle(k),A=j.width,D=j.height,W=j.position,q=k.style.left,N=k.style.top,M=k.style.right,z=k.style.bottom,Y=k.style.overflow,H=de(de({},i[r]),s),K=R.createElement("div");(O=k.parentElement)===null||O===void 0||O.appendChild(K),K.style.left="".concat(k.offsetLeft,"px"),K.style.top="".concat(k.offsetTop,"px"),K.style.position=W,K.style.height="".concat(k.offsetHeight,"px"),K.style.width="".concat(k.offsetWidth,"px"),k.style.left="0",k.style.top="0",k.style.right="auto",k.style.bottom="auto",k.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var L=n.getBoundingClientRect();F={x:L.x,y:L.y,width:L.width,height:L.height}}var U=k.getBoundingClientRect(),fe=R.documentElement,J=fe.clientWidth,we=fe.clientHeight,$=fe.scrollWidth,me=fe.scrollHeight,ke=fe.scrollTop,Oe=fe.scrollLeft,ve=U.height,Q=U.width,Ce=F.height,Me=F.width,ft={left:0,top:0,right:J,bottom:we},tt={left:-Oe,top:-ke,right:$-Oe,bottom:me-ke},$e=H.htmlRegion,Ke="visible",De="visibleFirst";$e!=="scroll"&&$e!==De&&($e=Ke);var xe=$e===De,ge=Aa(tt,b),ie=Aa(ft,b),Ie=$e===Ke?ie:ge,ee=xe?ie:Ie;k.style.left="auto",k.style.top="auto",k.style.right="0",k.style.bottom="0";var nt=k.getBoundingClientRect();k.style.left=q,k.style.top=N,k.style.right=M,k.style.bottom=z,k.style.overflow=Y,(E=k.parentElement)===null||E===void 0||E.removeChild(K);var se=Lr(Math.round(Q/parseFloat(A)*1e3)/1e3),Re=Lr(Math.round(ve/parseFloat(D)*1e3)/1e3);if(se===0||Re===0||ti(n)&&!Ns(n))return;var rt=H.offset,Te=H.targetOffset,Rt=ja(U,rt),Bt=ae(Rt,2),ye=Bt[0],Le=Bt[1],Ge=ja(F,Te),mt=ae(Ge,2),at=mt[0],ze=mt[1];F.x-=at,F.y-=ze;var st=H.points||[],$t=ae(st,2),bt=$t[0],Mt=$t[1],It=Na(Mt),lt=Na(bt),wt=pr(F,It),vn=pr(U,lt),Fe=de({},H),be=wt.x-vn.x+ye,_e=wt.y-vn.y+Le,ue=Pt(be,_e),te=Pt(be,_e,ie),le=pr(F,["t","l"]),Se=pr(U,["t","l"]),ne=pr(F,["b","r"]),Ye=pr(U,["b","r"]),yt=H.overflow||{},gt=yt.adjustX,Ze=yt.adjustY,Qe=yt.shiftX,qt=yt.shiftY,Kt=function(Sn){return typeof Sn=="boolean"?Sn:Sn>=0},jt,qe,Ct,Gt;Nn();var bn=Kt(Ze),on=lt[0]===It[0];if(bn&<[0]==="t"&&(qe>ee.bottom||w.current.bt)){var Ut=_e;on?Ut-=ve-Ce:Ut=le.y-Ye.y-Le;var kn=Pt(be,Ut),an=Pt(be,Ut,ie);kn>ue||kn===ue&&(!xe||an>=te)?(w.current.bt=!0,_e=Ut,Le=-Le,Fe.points=[Vn(lt,0),Vn(It,0)]):w.current.bt=!1}if(bn&<[0]==="b"&&(jtue||Je===ue&&(!xe||Yn>=te)?(w.current.tb=!0,_e=sn,Le=-Le,Fe.points=[Vn(lt,0),Vn(It,0)]):w.current.tb=!1}var Rn=Kt(gt),En=lt[1]===It[1];if(Rn&<[1]==="l"&&(Gt>ee.right||w.current.rl)){var Nt=be;En?Nt-=Q-Me:Nt=le.x-Ye.x-ye;var wn=Pt(Nt,_e),On=Pt(Nt,_e,ie);wn>ue||wn===ue&&(!xe||On>=te)?(w.current.rl=!0,be=Nt,ye=-ye,Fe.points=[Vn(lt,1),Vn(It,1)]):w.current.rl=!1}if(Rn&<[1]==="r"&&(Ctue||jn===ue&&(!xe||zt>=te)?(w.current.lr=!0,be=ln,ye=-ye,Fe.points=[Vn(lt,1),Vn(It,1)]):w.current.lr=!1}Nn();var Tt=Qe===!0?0:Qe;typeof Tt=="number"&&(Ctie.right&&(be-=Gt-ie.right-ye,F.x>ie.right-Tt&&(be+=F.x-ie.right+Tt)));var Xt=qt===!0?0:qt;typeof Xt=="number"&&(jtie.bottom&&(_e-=qe-ie.bottom-Le,F.y>ie.bottom-Xt&&(_e+=F.y-ie.bottom+Xt)));var _n=U.x+be,yn=_n+Q,Yt=U.y+_e,cn=Yt+ve,Mn=F.x,Cn=Mn+Me,Zt=F.y,Be=Zt+Ce,He=Math.max(_n,Mn),Ee=Math.min(yn,Cn),je=(He+Ee)/2,xt=je-_n,St=Math.max(Yt,Zt),xn=Math.min(cn,Be),Jt=(St+xn)/2,un=Jt-Yt;c==null||c(t,Fe);var dn=nt.right-U.x-(be+U.width),Ft=nt.bottom-U.y-(_e+U.height);se===1&&(be=Math.round(be),dn=Math.round(dn)),Re===1&&(_e=Math.round(_e),Ft=Math.round(Ft));var Ne={ready:!0,offsetX:be/se,offsetY:_e/Re,offsetR:dn/se,offsetB:Ft/Re,arrowX:xt/se,arrowY:un/Re,scaleX:se,scaleY:Re,align:Fe};p(Ne)}}),y=function(){h.current+=1;var E=h.current;Promise.resolve().then(function(){h.current===E&&C()})},I=function(){p(function(E){return de(de({},E),{},{ready:!1})})};return rn(I,[r]),rn(function(){e||I()},[e]),[g.ready,g.offsetX,g.offsetY,g.offsetR,g.offsetB,g.arrowX,g.arrowY,g.scaleX,g.scaleY,g.align,y]}function Rf(e,t,n,r,i){rn(function(){if(e&&t&&n){let h=function(){r(),i()};var s=t,c=n,m=si(s),f=si(c),g=Ur(c),p=new Set([g].concat(Wt(m),Wt(f)));return p.forEach(function(b){b.addEventListener("scroll",h,{passive:!0})}),g.addEventListener("resize",h,{passive:!0}),r(),function(){p.forEach(function(b){b.removeEventListener("scroll",h),g.removeEventListener("resize",h)})}}},[e,t,n])}function jf(e,t,n,r,i,s,c,m){var f=l.useRef(e);f.current=e,l.useEffect(function(){if(t&&r&&(!i||s)){var g=function(w){var S=w.target;f.current&&!c(S)&&m(!1)},p=Ur(r);p.addEventListener("mousedown",g,!0),p.addEventListener("contextmenu",g,!0);var h=ni(n);return h&&(h.addEventListener("mousedown",g,!0),h.addEventListener("contextmenu",g,!0)),function(){p.removeEventListener("mousedown",g,!0),p.removeEventListener("contextmenu",g,!0),h&&(h.removeEventListener("mousedown",g,!0),h.removeEventListener("contextmenu",g,!0))}}},[t,n,r,i,s])}var Nf=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Df(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ds,t=l.forwardRef(function(n,r){var i=n.prefixCls,s=i===void 0?"rc-trigger-popup":i,c=n.children,m=n.action,f=m===void 0?"hover":m,g=n.showAction,p=n.hideAction,h=n.popupVisible,b=n.defaultPopupVisible,w=n.onPopupVisibleChange,S=n.afterPopupVisibleChange,C=n.mouseEnterDelay,y=n.mouseLeaveDelay,I=y===void 0?.1:y,O=n.focusDelay,E=n.blurDelay,k=n.mask,R=n.maskClosable,T=R===void 0?!0:R,j=n.getPopupContainer,A=n.forceRender,D=n.autoDestroy,W=n.destroyPopupOnHide,q=n.popup,N=n.popupClassName,M=n.popupStyle,z=n.popupPlacement,Y=n.builtinPlacements,H=Y===void 0?{}:Y,K=n.popupAlign,F=n.zIndex,L=n.stretch,U=n.getPopupClassNameFromAlign,fe=n.fresh,J=n.alignPoint,we=n.onPopupClick,$=n.onPopupAlign,me=n.arrow,ke=n.popupMotion,Oe=n.maskMotion,ve=n.popupTransitionName,Q=n.popupAnimation,Ce=n.maskTransitionName,Me=n.maskAnimation,ft=n.className,tt=n.getTriggerDOMNode,$e=Et(n,Nf),Ke=D||W||!1,De=l.useState(!1),xe=ae(De,2),ge=xe[0],ie=xe[1];rn(function(){ie(gf())},[]);var Ie=l.useRef({}),ee=l.useContext(Ma),nt=l.useMemo(function(){return{registerSubPopup:function(oe,et){Ie.current[oe]=et,ee==null||ee.registerSubPopup(oe,et)}}},[ee]),se=Yu(),Re=l.useState(null),rt=ae(Re,2),Te=rt[0],Rt=rt[1],Bt=l.useRef(null),ye=gn(function(X){Bt.current=X,ti(X)&&Te!==X&&Rt(X),ee==null||ee.registerSubPopup(se,X)}),Le=l.useState(null),Ge=ae(Le,2),mt=Ge[0],at=Ge[1],ze=l.useRef(null),st=gn(function(X){ti(X)&&mt!==X&&(at(X),ze.current=X)}),$t=l.Children.only(c),bt=($t==null?void 0:$t.props)||{},Mt={},It=gn(function(X){var oe,et,pt=mt;return(pt==null?void 0:pt.contains(X))||((oe=ni(pt))===null||oe===void 0?void 0:oe.host)===X||X===pt||(Te==null?void 0:Te.contains(X))||((et=ni(Te))===null||et===void 0?void 0:et.host)===X||X===Te||Object.values(Ie.current).some(function(Ue){return(Ue==null?void 0:Ue.contains(X))||X===Ue})}),lt=Ba(s,ke,Q,ve),wt=Ba(s,Oe,Me,Ce),vn=l.useState(b||!1),Fe=ae(vn,2),be=Fe[0],_e=Fe[1],ue=h??be,te=gn(function(X){h===void 0&&_e(X)});rn(function(){_e(h||!1)},[h]);var le=l.useRef(ue);le.current=ue;var Se=l.useRef([]);Se.current=[];var ne=gn(function(X){var oe;te(X),((oe=Se.current[Se.current.length-1])!==null&&oe!==void 0?oe:ue)!==X&&(Se.current.push(X),w==null||w(X))}),Ye=l.useRef(),yt=function(){clearTimeout(Ye.current)},gt=function(oe){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;yt(),et===0?ne(oe):Ye.current=setTimeout(function(){ne(oe)},et*1e3)};l.useEffect(function(){return yt},[]);var Ze=l.useState(!1),Qe=ae(Ze,2),qt=Qe[0],Kt=Qe[1];rn(function(X){(!X||ue)&&Kt(!0)},[ue]);var jt=l.useState(null),qe=ae(jt,2),Ct=qe[0],Gt=qe[1],bn=l.useState([0,0]),on=ae(bn,2),Ut=on[0],kn=on[1],an=function(oe){kn([oe.clientX,oe.clientY])},sn=Af(ue,Te,J?Ut:mt,z,H,K,$),Je=ae(sn,11),Yn=Je[0],Rn=Je[1],En=Je[2],Nt=Je[3],wn=Je[4],On=Je[5],ln=Je[6],jn=Je[7],zt=Je[8],Tt=Je[9],Xt=Je[10],_n=Mf(ge,f,g,p),yn=ae(_n,2),Yt=yn[0],cn=yn[1],Mn=Yt.has("click"),Cn=cn.has("click")||cn.has("contextMenu"),Zt=gn(function(){qt||Xt()}),Be=function(){le.current&&J&&Cn&>(!1)};Rf(ue,mt,Te,Zt,Be),rn(function(){Zt()},[Ut,z]),rn(function(){ue&&!(H!=null&&H[z])&&Zt()},[JSON.stringify(K)]);var He=l.useMemo(function(){var X=Bf(H,s,Tt,J);return G(X,U==null?void 0:U(Tt))},[Tt,U,H,s,J]);l.useImperativeHandle(r,function(){return{nativeElement:ze.current,popupElement:Bt.current,forceAlign:Zt}});var Ee=l.useState(0),je=ae(Ee,2),xt=je[0],St=je[1],xn=l.useState(0),Jt=ae(xn,2),un=Jt[0],dn=Jt[1],Ft=function(){if(L&&mt){var oe=mt.getBoundingClientRect();St(oe.width),dn(oe.height)}},Ne=function(){Ft(),Zt()},Pt=function(oe){Kt(!1),Xt(),S==null||S(oe)},Nn=function(){return new Promise(function(oe){Ft(),Gt(function(){return oe})})};rn(function(){Ct&&(Xt(),Ct(),Gt(null))},[Ct]);function fn(X,oe,et,pt){Mt[X]=function(Ue){var ir;pt==null||pt(Ue),gt(oe,et);for(var ar=arguments.length,Jr=new Array(ar>1?ar-1:0),sr=1;sr1?et-1:0),Ue=1;Ue1?et-1:0),Ue=1;Ue{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:s,arrowShadowWidth:c,borderRadiusXS:m,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,s]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${re(m)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},ll=8;function cl(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?ll:r}}function io(e,t){return e?t:{}}function qf(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:s,arrowOffsetHorizontal:c}=e,{arrowDistance:m=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Wf(e,t,i)),{"&:before":{background:t}})]},io(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:m,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}})),io(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:m,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}})),io(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:m},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s}})),io(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:m},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}}))}}function Kf(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const c=Object.assign(Object.assign({},s),i);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const Da={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Gf={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Uf=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Xf(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:s,visibleFirst:c}=e,m=t/2,f={};return Object.keys(Da).forEach(g=>{const p=r&&Gf[g]||Da[g],h=Object.assign(Object.assign({},p),{offset:[0,0],dynamicInset:!0});switch(f[g]=h,Uf.has(g)&&(h.autoArrow=!1),g){case"top":case"topLeft":case"topRight":h.offset[1]=-m-i;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=m+i;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-m-i;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=m+i;break}const b=cl({contentRadius:s,limitVerticalRadius:!0});if(r)switch(g){case"topLeft":case"bottomLeft":h.offset[0]=-b.arrowOffsetHorizontal-m;break;case"topRight":case"bottomRight":h.offset[0]=b.arrowOffsetHorizontal+m;break;case"leftTop":case"rightTop":h.offset[1]=-b.arrowOffsetHorizontal-m;break;case"leftBottom":case"rightBottom":h.offset[1]=b.arrowOffsetHorizontal+m;break}h.overflow=Kf(g,b,t,n),c&&(h.htmlRegion="visibleFirst")}),f}const Yf=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:s,zIndexPopup:c,controlHeight:m,boxShadowSecondary:f,paddingSM:g,paddingXS:p}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Un(e)),{position:"absolute",zIndex:c,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:m,padding:`${re(e.calc(g).div(2).equal())} ${re(p)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:s,boxShadow:f,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(s,ll)}},[`${t}-content`]:{position:"relative"}}),_o(e,(h,b)=>{let{darkColor:w}=b;return{[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:w},[`${t}-arrow`]:{"--antd-arrow-background-color":w}}}})),{"&-rtl":{direction:"rtl"}})},qf(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Zf=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},cl({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Hf(qn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ul=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Gn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:s,colorBgSpotlight:c}=r,m=qn(r,{tooltipMaxWidth:250,tooltipColor:s,tooltipBorderRadius:i,tooltipBg:c});return[Yf(m),Ls(r,"zoom-big-fast")]},Zf,{resetStyle:!1,injectStyle:t})(e)},Qf=vo.map(e=>`${e}-inverse`),Jf=["success","processing","error","default","warning"];function Mo(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Wt(Qf),Wt(vo)).includes(e):vo.includes(e)}function em(e){return Jf.includes(e)}function dl(e,t){const n=Mo(t),r=G({[`${e}-${t}`]:t&&n}),i={},s={};return t&&!n&&(i.background=t,s["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:s}}const tm=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:s,overlayInnerStyle:c}=e,{getPrefixCls:m}=l.useContext(dt),f=m("tooltip",t),[g,p,h]=ul(f),b=dl(f,s),w=b.arrowStyle,S=Object.assign(Object.assign({},c),b.overlayStyle),C=G(p,h,f,`${f}-pure`,`${f}-placement-${r}`,n,b.className);return g(l.createElement("div",{className:C,style:w},l.createElement("div",{className:`${f}-arrow`}),l.createElement(sl,Object.assign({},e,{className:p,prefixCls:f,overlayInnerStyle:S}),i)))};var nm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:s,getTooltipContainer:c,overlayClassName:m,color:f,overlayInnerStyle:g,children:p,afterOpenChange:h,afterVisibleChange:b,destroyTooltipOnHide:w,arrow:S=!0,title:C,overlay:y,builtinPlacements:I,arrowPointAtCenter:O=!1,autoAdjustOverflow:E=!0}=e,k=!!S,[,R]=Zu(),{getPopupContainer:T,getPrefixCls:j,direction:A}=l.useContext(dt),D=td(),W=l.useRef(null),q=()=>{var se;(se=W.current)===null||se===void 0||se.forceAlign()};l.useImperativeHandle(t,()=>{var se;return{forceAlign:q,forcePopupAlign:()=>{D.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(se=W.current)===null||se===void 0?void 0:se.nativeElement}});const[N,M]=br(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),z=!C&&!y&&C!==0,Y=se=>{var Re,rt;M(z?!1:se),z||((Re=e.onOpenChange)===null||Re===void 0||Re.call(e,se),(rt=e.onVisibleChange)===null||rt===void 0||rt.call(e,se))},H=l.useMemo(()=>{var se,Re;let rt=O;return typeof S=="object"&&(rt=(Re=(se=S.pointAtCenter)!==null&&se!==void 0?se:S.arrowPointAtCenter)!==null&&Re!==void 0?Re:O),I||Xf({arrowPointAtCenter:rt,autoAdjustOverflow:E,arrowWidth:k?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[O,S,I,R]),K=l.useMemo(()=>C===0?C:y||C||"",[y,C]),F=l.createElement(zs,null,typeof K=="function"?K():K),{getPopupContainer:L,placement:U="top",mouseEnterDelay:fe=.1,mouseLeaveDelay:J=.1,overlayStyle:we,rootClassName:$}=e,me=nm(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ke=j("tooltip",i),Oe=j(),ve=e["data-popover-inject"];let Q=N;!("open"in e)&&!("visible"in e)&&z&&(Q=!1);const Ce=l.isValidElement(p)&&!Qu(p)?p:l.createElement("span",null,p),Me=Ce.props,ft=!Me.className||typeof Me.className=="string"?G(Me.className,s||`${ke}-open`):Me.className,[tt,$e,Ke]=ul(ke,!ve),De=dl(ke,f),xe=De.arrowStyle,ge=Object.assign(Object.assign({},g),De.overlayStyle),ie=G(m,{[`${ke}-rtl`]:A==="rtl"},De.className,$,$e,Ke),[Ie,ee]=Fs("Tooltip",me.zIndex),nt=l.createElement(Vf,Object.assign({},me,{zIndex:Ie,showArrow:k,placement:U,mouseEnterDelay:fe,mouseLeaveDelay:J,prefixCls:ke,overlayClassName:ie,overlayStyle:Object.assign(Object.assign({},xe),we),getTooltipContainer:L||c||T,ref:W,builtinPlacements:H,overlay:F,visible:Q,onVisibleChange:Y,afterVisibleChange:h??b,overlayInnerStyle:ge,arrowContent:l.createElement("span",{className:`${ke}-arrow-content`}),motion:{motionName:Ju(Oe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!w}),Q?nr(Ce,{className:ft}):Ce);return tt(l.createElement(ed.Provider,{value:ee},nt))}),Xr=rm;Xr._InternalPanelDoNotUseOrYouWillBeFired=tm;var om={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},im=function(t,n){return l.createElement(Cr,Ae({},t,{ref:n,icon:om}))},am=l.forwardRef(im);const sm=new Ot("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),lm=new Ot("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),cm=new Ot("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),um=new Ot("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),dm=new Ot("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),fm=new Ot("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),mm=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,motionDurationSlow:s,textFontSize:c,textFontSizeSM:m,statusSize:f,dotSize:g,textFontWeight:p,indicatorHeight:h,indicatorHeightSM:b,marginXS:w,calc:S}=e,C=`${r}-scroll-number`,y=_o(e,(I,O)=>{let{darkColor:E}=O;return{[`&${t} ${t}-color-${I}`]:{background:E,[`&:not(${t}-count)`]:{color:E},"a:hover &":{background:E}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Un(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:h,height:h,color:e.badgeTextColor,fontWeight:p,fontSize:c,lineHeight:re(h),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:S(h).div(2).equal(),boxShadow:`0 0 0 ${re(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:b,height:b,fontSize:m,lineHeight:re(b),borderRadius:S(b).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${re(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:g,minWidth:g,height:g,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${re(i)} ${e.badgeShadowColor}`},[`${t}-dot${C}`]:{transition:`background ${s}`},[`${t}-count, ${t}-dot, ${C}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:fm,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:f,height:f,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:sm,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:w,color:e.colorText,fontSize:e.fontSize}}}),y),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:lm,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:cm,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:um,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:dm,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${C}-custom-component, ${t}-count`]:{transform:"none"},[`${C}-custom-component, ${C}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${C}`]:{overflow:"hidden",[`${C}-only`]:{position:"relative",display:"inline-block",height:h,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${C}-only-unit`]:{height:h,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${C}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${C}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},fl=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,s=t,c=n,m=e.colorBgContainer,f=e.colorError,g=e.colorErrorHover;return qn(e,{badgeFontHeight:s,badgeShadowSize:c,badgeTextColor:m,badgeColor:f,badgeColorHover:g,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},ml=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},gm=Gn("Badge",e=>{const t=fl(e);return mm(t)},ml),pm=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:s}=e,c=`${t}-ribbon`,m=`${t}-ribbon-wrapper`,f=_o(e,(g,p)=>{let{darkColor:h}=p;return{[`&${c}-color-${g}`]:{background:h,color:h}}});return{[`${m}`]:{position:"relative"},[`${c}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Un(e)),{position:"absolute",top:r,padding:`0 ${re(e.paddingXS)}`,color:e.colorPrimary,lineHeight:re(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-text`]:{color:e.colorTextLightSolid},[`${c}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${re(s(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),f),{[`&${c}-placement-end`]:{insetInlineEnd:s(i).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:s(i).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},hm=Gn(["Badge","Ribbon"],e=>{const t=fl(e);return pm(t)},ml),vm=e=>{const{className:t,prefixCls:n,style:r,color:i,children:s,text:c,placement:m="end",rootClassName:f}=e,{getPrefixCls:g,direction:p}=l.useContext(dt),h=g("ribbon",n),b=`${h}-wrapper`,[w,S,C]=hm(h,b),y=Mo(i,!1),I=G(h,`${h}-placement-${m}`,{[`${h}-rtl`]:p==="rtl",[`${h}-color-${i}`]:y},t),O={},E={};return i&&!y&&(O.background=i,E.color=i),w(l.createElement("div",{className:G(b,f,S,C)},s,l.createElement("div",{className:G(I,S),style:Object.assign(Object.assign({},O),r)},l.createElement("span",{className:`${h}-text`},c),l.createElement("div",{className:`${h}-corner`,style:E}))))};function La(e){let{prefixCls:t,value:n,current:r,offset:i=0}=e,s;return i&&(s={position:"absolute",top:`${i}00%`,left:0}),l.createElement("span",{style:s,className:G(`${t}-only-unit`,{current:r})},n)}function bm(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}function wm(e){const{prefixCls:t,count:n,value:r}=e,i=Number(r),s=Math.abs(n),[c,m]=l.useState(i),[f,g]=l.useState(s),p=()=>{m(i),g(s)};l.useEffect(()=>{const w=setTimeout(()=>{p()},1e3);return()=>{clearTimeout(w)}},[i]);let h,b;if(c===i||Number.isNaN(i)||Number.isNaN(c))h=[l.createElement(La,Object.assign({},e,{key:i,current:!0}))],b={transition:"none"};else{h=[];const w=i+10,S=[];for(let I=i;I<=w;I+=1)S.push(I);const C=S.findIndex(I=>I%10===c);h=S.map((I,O)=>{const E=I%10;return l.createElement(La,Object.assign({},e,{key:I,value:E,offset:O-C,current:O===C}))});const y=f{const{prefixCls:n,count:r,className:i,motionClassName:s,style:c,title:m,show:f,component:g="sup",children:p}=e,h=ym(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:b}=l.useContext(dt),w=b("scroll-number",n),S=Object.assign(Object.assign({},h),{"data-show":f,style:c,className:G(w,i,s),title:m});let C=r;if(r&&Number(r)%1===0){const y=String(r).split("");C=l.createElement("bdi",null,y.map((I,O)=>l.createElement(wm,{prefixCls:w,count:Number(r),value:I,key:y.length-O})))}return c&&c.borderColor&&(S.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),p?nr(p,y=>({className:G(`${w}-custom-component`,y==null?void 0:y.className,s)})):l.createElement(g,Object.assign({},S,{ref:t}),C)});var xm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,s,c;const{prefixCls:m,scrollNumberPrefixCls:f,children:g,status:p,text:h,color:b,count:w=null,overflowCount:S=99,dot:C=!1,size:y="default",title:I,offset:O,style:E,className:k,rootClassName:R,classNames:T,styles:j,showZero:A=!1}=e,D=xm(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:W,direction:q,badge:N}=l.useContext(dt),M=W("badge",m),[z,Y,H]=gm(M),K=w>S?`${S}+`:w,F=K==="0"||K===0,L=w===null||F&&!A,U=(p!=null||b!=null)&&L,fe=C&&!F,J=fe?"":K,we=l.useMemo(()=>(J==null||J===""||F&&!A)&&!fe,[J,F,A,fe]),$=l.useRef(w);we||($.current=w);const me=$.current,ke=l.useRef(J);we||(ke.current=J);const Oe=ke.current,ve=l.useRef(fe);we||(ve.current=fe);const Q=l.useMemo(()=>{if(!O)return Object.assign(Object.assign({},N==null?void 0:N.style),E);const xe={marginTop:O[1]};return q==="rtl"?xe.left=parseInt(O[0],10):xe.right=-parseInt(O[0],10),Object.assign(Object.assign(Object.assign({},xe),N==null?void 0:N.style),E)},[q,O,E,N==null?void 0:N.style]),Ce=I??(typeof me=="string"||typeof me=="number"?me:void 0),Me=we||!h?null:l.createElement("span",{className:`${M}-status-text`},h),ft=!me||typeof me!="object"?void 0:nr(me,xe=>({style:Object.assign(Object.assign({},Q),xe.style)})),tt=Mo(b,!1),$e=G(T==null?void 0:T.indicator,(n=N==null?void 0:N.classNames)===null||n===void 0?void 0:n.indicator,{[`${M}-status-dot`]:U,[`${M}-status-${p}`]:!!p,[`${M}-color-${b}`]:tt}),Ke={};b&&!tt&&(Ke.color=b,Ke.background=b);const De=G(M,{[`${M}-status`]:U,[`${M}-not-a-wrapper`]:!g,[`${M}-rtl`]:q==="rtl"},k,R,N==null?void 0:N.className,(r=N==null?void 0:N.classNames)===null||r===void 0?void 0:r.root,T==null?void 0:T.root,Y,H);if(!g&&U){const xe=Q.color;return z(l.createElement("span",Object.assign({},D,{className:De,style:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.root),(i=N==null?void 0:N.styles)===null||i===void 0?void 0:i.root),Q)}),l.createElement("span",{className:$e,style:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.indicator),(s=N==null?void 0:N.styles)===null||s===void 0?void 0:s.indicator),Ke)}),h&&l.createElement("span",{style:{color:xe},className:`${M}-status-text`},h)))}return z(l.createElement("span",Object.assign({ref:t},D,{className:De,style:Object.assign(Object.assign({},(c=N==null?void 0:N.styles)===null||c===void 0?void 0:c.root),j==null?void 0:j.root)}),g,l.createElement(yr,{visible:!we,motionName:`${M}-zoom`,motionAppear:!1,motionDeadline:1e3},xe=>{let{className:ge}=xe;var ie,Ie;const ee=W("scroll-number",f),nt=ve.current,se=G(T==null?void 0:T.indicator,(ie=N==null?void 0:N.classNames)===null||ie===void 0?void 0:ie.indicator,{[`${M}-dot`]:nt,[`${M}-count`]:!nt,[`${M}-count-sm`]:y==="small",[`${M}-multiple-words`]:!nt&&Oe&&Oe.toString().length>1,[`${M}-status-${p}`]:!!p,[`${M}-color-${b}`]:tt});let Re=Object.assign(Object.assign(Object.assign({},j==null?void 0:j.indicator),(Ie=N==null?void 0:N.styles)===null||Ie===void 0?void 0:Ie.indicator),Q);return b&&!tt&&(Re=Re||{},Re.background=b),l.createElement(Cm,{prefixCls:ee,show:!we,motionClassName:ge,className:se,count:Oe,title:Ce,style:Re,key:"scrollNumber"},ft)}),Me))}),zr=Sm;zr.Ribbon=vm;var $m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Im=function(t,n){return l.createElement(Cr,Ae({},t,{ref:n,icon:$m}))},za=l.forwardRef(Im),gl=l.createContext(null);function pl(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function hl(e){var t=l.useContext(gl);return pl(t,e)}var Pm=["children","locked"],hn=l.createContext(null);function km(e,t){var n=de({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function Fr(e){var t=e.children,n=e.locked,r=Et(e,Pm),i=l.useContext(hn),s=nd(function(){return km(i,r)},[i,r],function(c,m){return!n&&(c[0]!==m[0]||!Vs(c[1],m[1],!0))});return l.createElement(hn.Provider,{value:s},t)}var Em=[],vl=l.createContext(null);function To(){return l.useContext(vl)}var bl=l.createContext(Em);function xr(e){var t=l.useContext(bl);return l.useMemo(function(){return e!==void 0?[].concat(Wt(t),[e]):t},[t,e])}var wl=l.createContext(null),$i=l.createContext({});function Fa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ns(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),s=Number(i),c=null;return i&&!Number.isNaN(s)?c=s:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function Om(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Wt(e.querySelectorAll("*")).filter(function(r){return Fa(r,t)});return Fa(e,t)&&n.unshift(e),n}var li=Bn.LEFT,ci=Bn.RIGHT,ui=Bn.UP,lo=Bn.DOWN,co=Bn.ENTER,yl=Bn.ESC,Br=Bn.HOME,Ar=Bn.END,Va=[ui,lo,li,ci];function _m(e,t,n,r){var i,s="prev",c="next",m="children",f="parent";if(e==="inline"&&r===co)return{inlineTrigger:!0};var g=ut(ut({},ui,s),lo,c),p=ut(ut(ut(ut({},li,n?c:s),ci,n?s:c),lo,m),co,m),h=ut(ut(ut(ut(ut(ut({},ui,s),lo,c),co,m),yl,f),li,n?m:f),ci,n?f:m),b={inline:g,horizontal:p,vertical:h,inlineSub:g,horizontalSub:h,verticalSub:h},w=(i=b["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(w){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case m:return{offset:1,sibling:!1};default:return null}}function Mm(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Tm(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Ii(e,t){var n=Om(e,!0);return n.filter(function(r){return t.has(r)})}function Ha(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Ii(e,t),s=i.length,c=i.findIndex(function(m){return n===m});return r<0?c===-1?c=s-1:c-=1:r>0&&(c+=1),c=(c+s)%s,i[c]}var di=function(t,n){var r=new Set,i=new Map,s=new Map;return t.forEach(function(c){var m=document.querySelector("[data-menu-id='".concat(pl(n,c),"']"));m&&(r.add(m),s.set(m,c),i.set(c,m))}),{elements:r,key2element:i,element2key:s}};function Bm(e,t,n,r,i,s,c,m,f,g){var p=l.useRef(),h=l.useRef();h.current=t;var b=function(){In.cancel(p.current)};return l.useEffect(function(){return function(){b()}},[]),function(w){var S=w.which;if([].concat(Va,[co,yl,Br,Ar]).includes(S)){var C=s(),y=di(C,r),I=y,O=I.elements,E=I.key2element,k=I.element2key,R=E.get(t),T=Tm(R,O),j=k.get(T),A=_m(e,c(j,!0).length===1,n,S);if(!A&&S!==Br&&S!==Ar)return;(Va.includes(S)||[Br,Ar].includes(S))&&w.preventDefault();var D=function(K){if(K){var F=K,L=K.querySelector("a");L!=null&&L.getAttribute("href")&&(F=L);var U=k.get(K);m(U),b(),p.current=In(function(){h.current===U&&F.focus()})}};if([Br,Ar].includes(S)||A.sibling||!T){var W;!T||e==="inline"?W=i.current:W=Mm(T);var q,N=Ii(W,O);S===Br?q=N[0]:S===Ar?q=N[N.length-1]:q=Ha(W,O,T,A.offset),D(q)}else if(A.inlineTrigger)f(j);else if(A.offset>0)f(j,!0),b(),p.current=In(function(){y=di(C,r);var H=T.getAttribute("aria-controls"),K=document.getElementById(H),F=Ha(K,y.elements);D(F)},5);else if(A.offset<0){var M=c(j,!0),z=M[M.length-2],Y=E.get(z);f(z,!1),D(Y)}}g==null||g(w)}}function Am(e){Promise.resolve().then(e)}var Pi="__RC_UTIL_PATH_SPLIT__",Wa=function(t){return t.join(Pi)},Rm=function(t){return t.split(Pi)},fi="rc-menu-more";function jm(){var e=l.useState({}),t=ae(e,2),n=t[1],r=l.useRef(new Map),i=l.useRef(new Map),s=l.useState([]),c=ae(s,2),m=c[0],f=c[1],g=l.useRef(0),p=l.useRef(!1),h=function(){p.current||n({})},b=l.useCallback(function(E,k){var R=Wa(k);i.current.set(R,E),r.current.set(E,R),g.current+=1;var T=g.current;Am(function(){T===g.current&&h()})},[]),w=l.useCallback(function(E,k){var R=Wa(k);i.current.delete(R),r.current.delete(E)},[]),S=l.useCallback(function(E){f(E)},[]),C=l.useCallback(function(E,k){var R=r.current.get(E)||"",T=Rm(R);return k&&m.includes(T[0])&&T.unshift(fi),T},[m]),y=l.useCallback(function(E,k){return E.some(function(R){var T=C(R,!0);return T.includes(k)})},[C]),I=function(){var k=Wt(r.current.keys());return m.length&&k.push(fi),k},O=l.useCallback(function(E){var k="".concat(r.current.get(E)).concat(Pi),R=new Set;return Wt(i.current.keys()).forEach(function(T){T.startsWith(k)&&R.add(i.current.get(T))}),R},[]);return l.useEffect(function(){return function(){p.current=!0}},[]),{registerPath:b,unregisterPath:w,refreshOverflowKeys:S,isSubPathKey:y,getKeyPath:C,getKeys:I,getSubPathKeys:O}}function jr(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,i=arguments.length,s=new Array(i),c=0;c1&&(O.motionAppear=!1);var E=O.onVisibleChanged;return O.onVisibleChanged=function(k){return!b.current&&!k&&y(!0),E==null?void 0:E(k)},C?null:l.createElement(Fr,{mode:s,locked:!b.current},l.createElement(yr,Ae({visible:I},O,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(m,"-hidden")}),function(k){var R=k.className,T=k.style;return l.createElement(ki,{id:t,className:R,style:T},i)}))}var Jm=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eg=["active"],tg=l.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,s=e.eventKey;e.warnKey;var c=e.disabled,m=e.internalPopupClose,f=e.children,g=e.itemIcon,p=e.expandIcon,h=e.popupClassName,b=e.popupOffset,w=e.popupStyle,S=e.onClick,C=e.onMouseEnter,y=e.onMouseLeave,I=e.onTitleClick,O=e.onTitleMouseEnter,E=e.onTitleMouseLeave,k=Et(e,Jm),R=hl(s),T=l.useContext(hn),j=T.prefixCls,A=T.mode,D=T.openKeys,W=T.disabled,q=T.overflowDisabled,N=T.activeKey,M=T.selectedKeys,z=T.itemIcon,Y=T.expandIcon,H=T.onItemClick,K=T.onOpenChange,F=T.onActive,L=l.useContext($i),U=L._internalRenderSubMenuItem,fe=l.useContext(wl),J=fe.isSubPathKey,we=xr(),$="".concat(j,"-submenu"),me=W||c,ke=l.useRef(),Oe=l.useRef(),ve=g??z,Q=p??Y,Ce=D.includes(s),Me=!q&&Ce,ft=J(M,s),tt=Cl(s,me,O,E),$e=tt.active,Ke=Et(tt,eg),De=l.useState(!1),xe=ae(De,2),ge=xe[0],ie=xe[1],Ie=function(st){me||ie(st)},ee=function(st){Ie(!0),C==null||C({key:s,domEvent:st})},nt=function(st){Ie(!1),y==null||y({key:s,domEvent:st})},se=l.useMemo(function(){return $e||(A!=="inline"?ge||J([N],s):!1)},[A,$e,N,ge,s,J]),Re=xl(we.length),rt=function(st){me||(I==null||I({key:s,domEvent:st}),A==="inline"&&K(s,!Ce))},Te=jr(function(ze){S==null||S(wo(ze)),H(ze)}),Rt=function(st){A!=="inline"&&K(s,st)},Bt=function(){F(s)},ye=R&&"".concat(R,"-popup"),Le=l.createElement("div",Ae({role:"menuitem",style:Re,className:"".concat($,"-title"),tabIndex:me?null:-1,ref:ke,title:typeof i=="string"?i:null,"data-menu-id":q&&R?null:R,"aria-expanded":Me,"aria-haspopup":!0,"aria-controls":ye,"aria-disabled":me,onClick:rt,onFocus:Bt},Ke),i,l.createElement(Sl,{icon:A!=="horizontal"?Q:void 0,props:de(de({},e),{},{isOpen:Me,isSubMenu:!0})},l.createElement("i",{className:"".concat($,"-arrow")}))),Ge=l.useRef(A);if(A!=="inline"&&we.length>1?Ge.current="vertical":Ge.current=A,!q){var mt=Ge.current;Le=l.createElement(Zm,{mode:mt,prefixCls:$,visible:!m&&Me&&A!=="inline",popupClassName:h,popupOffset:b,popupStyle:w,popup:l.createElement(Fr,{mode:mt==="horizontal"?"vertical":mt},l.createElement(ki,{id:ye,ref:Oe},f)),disabled:me,onVisibleChange:Rt},Le)}var at=l.createElement(Tn.Item,Ae({ref:t,role:"none"},k,{component:"li",style:n,className:G($,"".concat($,"-").concat(A),r,ut(ut(ut(ut({},"".concat($,"-open"),Me),"".concat($,"-active"),se),"".concat($,"-selected"),ft),"".concat($,"-disabled"),me)),onMouseEnter:ee,onMouseLeave:nt}),Le,!q&&l.createElement(Qm,{id:ye,open:Me,keyPath:we},f));return U&&(at=U(at,e,{selected:ft,active:se,open:Me,disabled:me})),l.createElement(Fr,{onItemClick:Te,mode:A==="horizontal"?"vertical":A,itemIcon:ve,expandIcon:Q},at)}),Ao=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=xr(n),s=Ei(r,i),c=To();l.useEffect(function(){if(c)return c.registerPath(n,i),function(){c.unregisterPath(n,i)}},[i]);var m;return c?m=s:m=l.createElement(tg,Ae({ref:t},e),s),l.createElement(bl.Provider,{value:i},m)});function Oi(e){var t=e.className,n=e.style,r=l.useContext(hn),i=r.prefixCls,s=To();return s?null:l.createElement("li",{role:"separator",className:G("".concat(i,"-item-divider"),t),style:n})}var ng=["className","title","eventKey","children"],rg=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,s=Et(e,ng),c=l.useContext(hn),m=c.prefixCls,f="".concat(m,"-item-group");return l.createElement("li",Ae({ref:t,role:"presentation"},s,{onClick:function(p){return p.stopPropagation()},className:G(f,n)}),l.createElement("div",{role:"presentation",className:"".concat(f,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(f,"-list")},i))}),_i=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=xr(n),s=Ei(r,i),c=To();return c?s:l.createElement(rg,Ae({ref:t},An(e,["warnKey"])),s)}),og=["label","children","key","type"];function mi(e,t){var n=t.item,r=t.group,i=t.submenu,s=t.divider;return(e||[]).map(function(c,m){if(c&&Bs(c)==="object"){var f=c,g=f.label,p=f.children,h=f.key,b=f.type,w=Et(f,og),S=h??"tmp-".concat(m);return p||b==="group"?b==="group"?l.createElement(r,Ae({key:S},w,{title:g}),mi(p,t)):l.createElement(i,Ae({key:S},w,{title:g}),mi(p,t)):b==="divider"?l.createElement(s,Ae({key:S},w)):l.createElement(n,Ae({key:S},w),g)}return null}).filter(function(c){return c})}function Ka(e,t,n,r){var i=e,s=de({divider:Oi,item:Bo,group:_i,submenu:Ao},r);return t&&(i=mi(t,s)),Ei(i,n)}var ig=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Jn=[],ag=l.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,s=i===void 0?"rc-menu":i,c=r.rootClassName,m=r.style,f=r.className,g=r.tabIndex,p=g===void 0?0:g,h=r.items,b=r.children,w=r.direction,S=r.id,C=r.mode,y=C===void 0?"vertical":C,I=r.inlineCollapsed,O=r.disabled,E=r.disabledOverflow,k=r.subMenuOpenDelay,R=k===void 0?.1:k,T=r.subMenuCloseDelay,j=T===void 0?.1:T,A=r.forceSubMenuRender,D=r.defaultOpenKeys,W=r.openKeys,q=r.activeKey,N=r.defaultActiveFirst,M=r.selectable,z=M===void 0?!0:M,Y=r.multiple,H=Y===void 0?!1:Y,K=r.defaultSelectedKeys,F=r.selectedKeys,L=r.onSelect,U=r.onDeselect,fe=r.inlineIndent,J=fe===void 0?24:fe,we=r.motion,$=r.defaultMotions,me=r.triggerSubMenuAction,ke=me===void 0?"hover":me,Oe=r.builtinPlacements,ve=r.itemIcon,Q=r.expandIcon,Ce=r.overflowedIndicator,Me=Ce===void 0?"...":Ce,ft=r.overflowedIndicatorPopupClassName,tt=r.getPopupContainer,$e=r.onClick,Ke=r.onOpenChange,De=r.onKeyDown;r.openAnimation,r.openTransitionName;var xe=r._internalRenderMenuItem,ge=r._internalRenderSubMenuItem,ie=r._internalComponents,Ie=Et(r,ig),ee=l.useMemo(function(){return[Ka(b,h,Jn,ie),Ka(b,h,Jn,{})]},[b,h,ie]),nt=ae(ee,2),se=nt[0],Re=nt[1],rt=l.useState(!1),Te=ae(rt,2),Rt=Te[0],Bt=Te[1],ye=l.useRef(),Le=Dm(S),Ge=w==="rtl",mt=br(D,{value:W,postState:function(Ee){return Ee||Jn}}),at=ae(mt,2),ze=at[0],st=at[1],$t=function(Ee){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function xt(){st(Ee),Ke==null||Ke(Ee)}je?Rs.flushSync(xt):xt()},bt=l.useState(ze),Mt=ae(bt,2),It=Mt[0],lt=Mt[1],wt=l.useRef(!1),vn=l.useMemo(function(){return(y==="inline"||y==="vertical")&&I?["vertical",I]:[y,!1]},[y,I]),Fe=ae(vn,2),be=Fe[0],_e=Fe[1],ue=be==="inline",te=l.useState(be),le=ae(te,2),Se=le[0],ne=le[1],Ye=l.useState(_e),yt=ae(Ye,2),gt=yt[0],Ze=yt[1];l.useEffect(function(){ne(be),Ze(_e),wt.current&&(ue?st(It):$t(Jn))},[be,_e]);var Qe=l.useState(0),qt=ae(Qe,2),Kt=qt[0],jt=qt[1],qe=Kt>=se.length-1||Se!=="horizontal"||E;l.useEffect(function(){ue&<(ze)},[ze]),l.useEffect(function(){return wt.current=!0,function(){wt.current=!1}},[]);var Ct=jm(),Gt=Ct.registerPath,bn=Ct.unregisterPath,on=Ct.refreshOverflowKeys,Ut=Ct.isSubPathKey,kn=Ct.getKeyPath,an=Ct.getKeys,sn=Ct.getSubPathKeys,Je=l.useMemo(function(){return{registerPath:Gt,unregisterPath:bn}},[Gt,bn]),Yn=l.useMemo(function(){return{isSubPathKey:Ut}},[Ut]);l.useEffect(function(){on(qe?Jn:se.slice(Kt+1).map(function(He){return He.key}))},[Kt,qe]);var Rn=br(q||N&&((n=se[0])===null||n===void 0?void 0:n.key),{value:q}),En=ae(Rn,2),Nt=En[0],wn=En[1],On=jr(function(He){wn(He)}),ln=jr(function(){wn(void 0)});l.useImperativeHandle(t,function(){return{list:ye.current,focus:function(Ee){var je,xt=an(),St=di(xt,Le),xn=St.elements,Jt=St.key2element,un=St.element2key,dn=Ii(ye.current,xn),Ft=Nt??(dn[0]?un.get(dn[0]):(je=se.find(function(Nn){return!Nn.props.disabled}))===null||je===void 0?void 0:je.key),Ne=Jt.get(Ft);if(Ft&&Ne){var Pt;Ne==null||(Pt=Ne.focus)===null||Pt===void 0||Pt.call(Ne,Ee)}}}});var jn=br(K||[],{value:F,postState:function(Ee){return Array.isArray(Ee)?Ee:Ee==null?Jn:[Ee]}}),zt=ae(jn,2),Tt=zt[0],Xt=zt[1],_n=function(Ee){if(z){var je=Ee.key,xt=Tt.includes(je),St;H?xt?St=Tt.filter(function(Jt){return Jt!==je}):St=[].concat(Wt(Tt),[je]):St=[je],Xt(St);var xn=de(de({},Ee),{},{selectedKeys:St});xt?U==null||U(xn):L==null||L(xn)}!H&&ze.length&&Se!=="inline"&&$t(Jn)},yn=jr(function(He){$e==null||$e(wo(He)),_n(He)}),Yt=jr(function(He,Ee){var je=ze.filter(function(St){return St!==He});if(Ee)je.push(He);else if(Se!=="inline"){var xt=sn(He);je=je.filter(function(St){return!xt.has(St)})}Vs(ze,je,!0)||$t(je,!0)}),cn=function(Ee,je){var xt=je??!ze.includes(Ee);Yt(Ee,xt)},Mn=Bm(Se,Nt,Ge,Le,ye,an,kn,wn,cn,De);l.useEffect(function(){Bt(!0)},[]);var Cn=l.useMemo(function(){return{_internalRenderMenuItem:xe,_internalRenderSubMenuItem:ge}},[xe,ge]),Zt=Se!=="horizontal"||E?se:se.map(function(He,Ee){return l.createElement(Fr,{key:He.key,overflowDisabled:Ee>Kt},He)}),Be=l.createElement(Tn,Ae({id:S,ref:ye,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Bo,className:G(s,"".concat(s,"-root"),"".concat(s,"-").concat(Se),f,ut(ut({},"".concat(s,"-inline-collapsed"),gt),"".concat(s,"-rtl"),Ge),c),dir:w,style:m,role:"menu",tabIndex:p,data:Zt,renderRawItem:function(Ee){return Ee},renderRawRest:function(Ee){var je=Ee.length,xt=je?se.slice(-je):null;return l.createElement(Ao,{eventKey:fi,title:Me,disabled:qe,internalPopupClose:je===0,popupClassName:ft},xt)},maxCount:Se!=="horizontal"||E?Tn.INVALIDATE:Tn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ee){jt(Ee)},onKeyDown:Mn},Ie));return l.createElement($i.Provider,{value:Cn},l.createElement(gl.Provider,{value:Le},l.createElement(Fr,{prefixCls:s,rootClassName:c,mode:Se,openKeys:ze,rtl:Ge,disabled:O,motion:Rt?we:null,defaultMotions:Rt?$:null,activeKey:Nt,onActive:On,onInactive:ln,selectedKeys:Tt,inlineIndent:J,subMenuOpenDelay:R,subMenuCloseDelay:j,forceSubMenuRender:A,builtinPlacements:Oe,triggerSubMenuAction:ke,getPopupContainer:tt,itemIcon:ve,expandIcon:Q,onItemClick:yn,onOpenChange:Yt},l.createElement(wl.Provider,{value:Yn},Be),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(vl.Provider,{value:Je},Re)))))}),Yr=ag;Yr.Item=Bo;Yr.SubMenu=Ao;Yr.ItemGroup=_i;Yr.Divider=Oi;var sg={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},lg=function(t,n){return l.createElement(Cr,Ae({},t,{ref:n,icon:sg}))},cg=l.forwardRef(lg),ug={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},dg=function(t,n){return l.createElement(Cr,Ae({},t,{ref:n,icon:ug}))},Ga=l.forwardRef(dg);const fg=e=>!isNaN(parseFloat(e))&&isFinite(e),Il=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var mg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),pg=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:s,defaultCollapsed:c=!1,theme:m="dark",style:f={},collapsible:g=!1,reverseArrow:p=!1,width:h=200,collapsedWidth:b=80,zeroWidthTriggerStyle:w,breakpoint:S,onCollapse:C,onBreakpoint:y}=e,I=mg(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:O}=l.useContext(Il),[E,k]=l.useState("collapsed"in e?e.collapsed:c),[R,T]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&k(e.collapsed)},[e.collapsed]);const j=(M,z)=>{"collapsed"in e||k(M),C==null||C(M,z)},A=l.useRef();A.current=M=>{T(M.matches),y==null||y(M.matches),E!==M.matches&&j(M.matches,"responsive")},l.useEffect(()=>{function M(Y){return A.current(Y)}let z;if(typeof window<"u"){const{matchMedia:Y}=window;if(Y&&S&&S in Ua){z=Y(`screen and (max-width: ${Ua[S]})`);try{z.addEventListener("change",M)}catch{z.addListener(M)}M(z)}}return()=>{try{z==null||z.removeEventListener("change",M)}catch{z==null||z.removeListener(M)}}},[S]),l.useEffect(()=>{const M=gg("ant-sider-");return O.addSider(M),()=>O.removeSider(M)},[]);const D=()=>{j(!E,"clickTrigger")},{getPrefixCls:W}=l.useContext(dt),q=()=>{const M=W("layout-sider",n),z=An(I,["collapsed"]),Y=E?b:h,H=fg(Y)?`${Y}px`:String(Y),K=parseFloat(String(b||0))===0?l.createElement("span",{onClick:D,className:G(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${p?"right":"left"}`),style:w},i||l.createElement(cg,null)):null,U={expanded:p?l.createElement(za,null):l.createElement(Ga,null),collapsed:p?l.createElement(Ga,null):l.createElement(za,null)}[E?"collapsed":"expanded"],fe=i!==null?K||l.createElement("div",{className:`${M}-trigger`,onClick:D,style:{width:H}},i||U):null,J=Object.assign(Object.assign({},f),{flex:`0 0 ${H}`,maxWidth:H,minWidth:H,width:H}),we=G(M,`${M}-${m}`,{[`${M}-collapsed`]:!!E,[`${M}-has-trigger`]:g&&i!==null&&!K,[`${M}-below`]:!!R,[`${M}-zero-width`]:parseFloat(H)===0},r);return l.createElement("aside",Object.assign({className:we},z,{style:J,ref:t}),l.createElement("div",{className:`${M}-children`},s),g||R&&K?fe:null)},N=l.useMemo(()=>({siderCollapsed:E}),[E]);return l.createElement(Ro.Provider,{value:N},q())}),Pl=pg;var hg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},vg=function(t,n){return l.createElement(Cr,Ae({},t,{ref:n,icon:hg}))},bg=l.forwardRef(vg),wg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,dashed:r}=e,i=wg(e,["prefixCls","className","dashed"]),{getPrefixCls:s}=l.useContext(dt),c=s("menu",t),m=G({[`${c}-item-divider-dashed`]:!!r},n);return l.createElement(Oi,Object.assign({className:m},i))},yo=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),El=e=>{var t;const{className:n,children:r,icon:i,title:s,danger:c}=e,{prefixCls:m,firstLevel:f,direction:g,disableMenuItemTitleTooltip:p,inlineCollapsed:h}=l.useContext(yo),b=O=>{const E=l.createElement("span",{className:`${m}-title-content`},r);return(!i||l.isValidElement(r)&&r.type==="span")&&r&&O&&f&&typeof r=="string"?l.createElement("div",{className:`${m}-inline-collapsed-noicon`},r.charAt(0)):E},{siderCollapsed:w}=l.useContext(Ro);let S=s;typeof s>"u"?S=f?r:"":s===!1&&(S="");const C={title:S};!w&&!h&&(C.title=null,C.open=!1);const y=Kr(r).length;let I=l.createElement(Bo,Object.assign({},An(e,["title","icon","danger"]),{className:G({[`${m}-item-danger`]:c,[`${m}-item-only-child`]:(i?y+1:y)===1},n),title:typeof s=="string"?s:void 0}),nr(i,{className:G(l.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${m}-item-icon`)}),b(h));return p||(I=l.createElement(Xr,Object.assign({},C,{placement:g==="rtl"?"left":"right",overlayClassName:`${m}-inline-collapsed-tooltip`}),I)),I};var yg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{children:n}=e,r=yg(e,["children"]),i=l.useContext(Co),s=l.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=rd(n),m=ko(t,c?n.ref:null);return l.createElement(Co.Provider,{value:s},l.createElement(zs,null,c?l.cloneElement(n,{ref:m}):n))}),Cg=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:s,lineType:c,itemPaddingInline:m}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${re(s)} ${c} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:m},[`> ${t}-item:hover, + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},gf=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var pf=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],gr=void 0;function hf(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,s=e.renderItem,c=e.responsive,m=e.responsiveDisabled,f=e.registerSize,g=e.itemKey,p=e.className,h=e.style,b=e.children,w=e.display,S=e.order,C=e.component,y=C===void 0?"div":C,I=Et(e,pf),O=c&&!w;function E(A){f(g,A)}l.useEffect(function(){return function(){E(null)}},[]);var k=s&&i!==gr?s(i):b,R;r||(R={opacity:O?0:1,height:O?0:gr,overflowY:O?"hidden":gr,order:c?S:gr,pointerEvents:O?"none":gr,position:O?"absolute":gr});var T={};O&&(T["aria-hidden"]=!0);var j=l.createElement(y,Ae({className:G(!r&&n,p),style:de(de({},R),h)},T,I,{ref:t}),k);return c&&(j=l.createElement(Gr,{onResize:function(D){var W=D.offsetWidth;E(W)},disabled:m},j)),j}var Nr=l.forwardRef(hf);Nr.displayName="Item";function vf(e){if(typeof MessageChannel>"u")In(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function bf(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],vf(function(){Rs.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Mr(e,t){var n=l.useState(t),r=ae(n,2),i=r[0],s=r[1],c=gn(function(m){e(function(){s(m)})});return[i,c]}var bo=Z.createContext(null),wf=["component"],yf=["className"],Cf=["className"],xf=function(t,n){var r=l.useContext(bo);if(!r){var i=t.component,s=i===void 0?"div":i,c=Et(t,wf);return l.createElement(s,Ae({},c,{ref:n}))}var m=r.className,f=Et(r,yf),g=t.className,p=Et(t,Cf);return l.createElement(bo.Provider,{value:null},l.createElement(Nr,Ae({ref:n,className:G(m,g)},f,p)))},rl=l.forwardRef(xf);rl.displayName="RawItem";var Sf=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ol="responsive",il="invalidate";function $f(e){return"+ ".concat(e.length," ...")}function If(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,s=i===void 0?[]:i,c=e.renderItem,m=e.renderRawItem,f=e.itemKey,g=e.itemWidth,p=g===void 0?10:g,h=e.ssr,b=e.style,w=e.className,S=e.maxCount,C=e.renderRest,y=e.renderRawRest,I=e.suffix,O=e.component,E=O===void 0?"div":O,k=e.itemComponent,R=e.onVisibleChange,T=Et(e,Sf),j=h==="full",A=bf(),D=Mr(A,null),W=ae(D,2),q=W[0],N=W[1],M=q||0,z=Mr(A,new Map),Y=ae(z,2),H=Y[0],K=Y[1],F=Mr(A,0),L=ae(F,2),U=L[0],fe=L[1],J=Mr(A,0),we=ae(J,2),$=we[0],me=we[1],ke=Mr(A,0),Oe=ae(ke,2),ve=Oe[0],Q=Oe[1],Ce=l.useState(null),Me=ae(Ce,2),ft=Me[0],tt=Me[1],$e=l.useState(null),Ke=ae($e,2),De=Ke[0],xe=Ke[1],ge=l.useMemo(function(){return De===null&&j?Number.MAX_SAFE_INTEGER:De||0},[De,q]),ie=l.useState(!1),Ie=ae(ie,2),ee=Ie[0],nt=Ie[1],se="".concat(r,"-item"),Re=Math.max(U,$),rt=S===ol,Te=s.length&&rt,Rt=S===il,Bt=Te||typeof S=="number"&&s.length>S,ye=l.useMemo(function(){var te=s;return Te?q===null&&j?te=s:te=s.slice(0,Math.min(s.length,M/p)):typeof S=="number"&&(te=s.slice(0,S)),te},[s,p,q,S,Te]),Le=l.useMemo(function(){return Te?s.slice(ge+1):s.slice(ye.length)},[s,ye,Te,ge]),Ge=l.useCallback(function(te,le){var Se;return typeof f=="function"?f(te):(Se=f&&(te==null?void 0:te[f]))!==null&&Se!==void 0?Se:le},[f]),mt=l.useCallback(c||function(te){return te},[c]);function at(te,le,Se){De===te&&(le===void 0||le===ft)||(xe(te),Se||(nt(teM){at(ne-1,te-Ye-ve+$);break}}I&&Mt(0)+ve>M&&tt(null)}},[M,H,$,ve,Ge,ye]);var It=ee&&!!Le.length,lt={};ft!==null&&Te&&(lt={position:"absolute",left:ft,top:0});var wt={prefixCls:se,responsive:Te,component:k,invalidate:Rt},vn=m?function(te,le){var Se=Ge(te,le);return l.createElement(bo.Provider,{key:Se,value:de(de({},wt),{},{order:le,item:te,itemKey:Se,registerSize:st,display:le<=ge})},m(te,le))}:function(te,le){var Se=Ge(te,le);return l.createElement(Nr,Ae({},wt,{order:le,key:Se,item:te,renderItem:mt,itemKey:Se,registerSize:st,display:le<=ge}))},Fe,be={order:It?ge:Number.MAX_SAFE_INTEGER,className:"".concat(se,"-rest"),registerSize:$t,display:It};if(y)y&&(Fe=l.createElement(bo.Provider,{value:de(de({},wt),be)},y(Le)));else{var _e=C||$f;Fe=l.createElement(Nr,Ae({},wt,be),typeof _e=="function"?_e(Le):_e)}var ue=l.createElement(E,Ae({className:G(!Rt&&r,w),style:b,ref:t},T),ye.map(vn),Bt?Fe:null,I&&l.createElement(Nr,Ae({},wt,{responsive:rt,responsiveDisabled:!Te,order:ge,className:"".concat(se,"-suffix"),registerSize:bt,display:!0,style:lt}),I));return rt&&(ue=l.createElement(Gr,{onResize:ze,disabled:!Te},ue)),ue}var Tn=l.forwardRef(If);Tn.displayName="Overflow";Tn.Item=rl;Tn.RESPONSIVE=ol;Tn.INVALIDATE=il;function Pf(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,s=r||{},c=s.className,m=s.content,f=i.x,g=f===void 0?0:f,p=i.y,h=p===void 0?0:p,b=l.useRef();if(!n||!n.points)return null;var w={position:"absolute"};if(n.autoArrow!==!1){var S=n.points[0],C=n.points[1],y=S[0],I=S[1],O=C[0],E=C[1];y===O||!["t","b"].includes(y)?w.top=h:y==="t"?w.top=0:w.bottom=0,I===E||!["l","r"].includes(I)?w.left=g:I==="l"?w.left=0:w.right=0}return l.createElement("div",{ref:b,className:G("".concat(t,"-arrow"),c),style:w},m)}function kf(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,s=e.motion;return i?l.createElement(yr,Ae({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(c){var m=c.className;return l.createElement("div",{style:{zIndex:r},className:G("".concat(t,"-mask"),m)})}):null}var Ef=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Of=l.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,s=e.style,c=e.target,m=e.onVisibleChanged,f=e.open,g=e.keepDom,p=e.fresh,h=e.onClick,b=e.mask,w=e.arrow,S=e.arrowPos,C=e.align,y=e.motion,I=e.maskMotion,O=e.forceRender,E=e.getPopupContainer,k=e.autoDestroy,R=e.portal,T=e.zIndex,j=e.onMouseEnter,A=e.onMouseLeave,D=e.onPointerEnter,W=e.ready,q=e.offsetX,N=e.offsetY,M=e.offsetR,z=e.offsetB,Y=e.onAlign,H=e.onPrepare,K=e.stretch,F=e.targetWidth,L=e.targetHeight,U=typeof n=="function"?n():n,fe=f||g,J=(E==null?void 0:E.length)>0,we=l.useState(!E||!J),$=ae(we,2),me=$[0],ke=$[1];if(rn(function(){!me&&J&&c&&ke(!0)},[me,J,c]),!me)return null;var Oe="auto",ve={left:"-1000vw",top:"-1000vh",right:Oe,bottom:Oe};if(W||!f){var Q,Ce=C.points,Me=C.dynamicInset||((Q=C._experimental)===null||Q===void 0?void 0:Q.dynamicInset),ft=Me&&Ce[0][1]==="r",tt=Me&&Ce[0][0]==="b";ft?(ve.right=M,ve.left=Oe):(ve.left=q,ve.right=Oe),tt?(ve.bottom=z,ve.top=Oe):(ve.top=N,ve.bottom=Oe)}var $e={};return K&&(K.includes("height")&&L?$e.height=L:K.includes("minHeight")&&L&&($e.minHeight=L),K.includes("width")&&F?$e.width=F:K.includes("minWidth")&&F&&($e.minWidth=F)),f||($e.pointerEvents="none"),l.createElement(R,{open:O||fe,getContainer:E&&function(){return E(c)},autoDestroy:k},l.createElement(kf,{prefixCls:i,open:f,zIndex:T,mask:b,motion:I}),l.createElement(Gr,{onResize:Y,disabled:!f},function(Ke){return l.createElement(yr,Ae({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:H,onEnterPrepare:H,visible:f,onVisibleChanged:function(xe){var ge;y==null||(ge=y.onVisibleChanged)===null||ge===void 0||ge.call(y,xe),m(xe)}}),function(De,xe){var ge=De.className,ie=De.style,Ie=G(i,ge,r);return l.createElement("div",{ref:js(Ke,t,xe),className:Ie,style:de(de(de(de({"--arrow-x":"".concat(S.x||0,"px"),"--arrow-y":"".concat(S.y||0,"px")},ve),$e),ie),{},{boxSizing:"border-box",zIndex:T},s),onMouseEnter:j,onMouseLeave:A,onPointerEnter:D,onClick:h},w&&l.createElement(Pf,{prefixCls:i,arrow:w,arrowPos:S,align:C}),l.createElement(Ef,{cache:!f&&!p},U))})}))}),_f=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Ts(n),s=l.useCallback(function(m){Xu(t,r?r(m):m)},[r]),c=ko(s,n.ref);return i?l.cloneElement(n,{ref:c}):n}),Ma=l.createContext(null);function Ta(e){return e?Array.isArray(e)?e:[e]:[]}function Mf(e,t,n,r){return l.useMemo(function(){var i=Ta(n??t),s=Ta(r??t),c=new Set(i),m=new Set(s);return e&&(c.has("hover")&&(c.delete("hover"),c.add("click")),m.has("hover")&&(m.delete("hover"),m.add("click"))),[c,m]},[e,t,n,r])}function Tf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Bf(e,t,n,r){for(var i=n.points,s=Object.keys(e),c=0;c1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Tr(e){return Lr(parseFloat(e),0)}function Aa(e,t){var n=de({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Ur(r).getComputedStyle(r),s=i.overflow,c=i.overflowClipMargin,m=i.borderTopWidth,f=i.borderBottomWidth,g=i.borderLeftWidth,p=i.borderRightWidth,h=r.getBoundingClientRect(),b=r.offsetHeight,w=r.clientHeight,S=r.offsetWidth,C=r.clientWidth,y=Tr(m),I=Tr(f),O=Tr(g),E=Tr(p),k=Lr(Math.round(h.width/S*1e3)/1e3),R=Lr(Math.round(h.height/b*1e3)/1e3),T=(S-C-O-E)*k,j=(b-w-y-I)*R,A=y*R,D=I*R,W=O*k,q=E*k,N=0,M=0;if(s==="clip"){var z=Tr(c);N=z*k,M=z*R}var Y=h.x+W-N,H=h.y+A-M,K=Y+h.width+2*N-W-q-T,F=H+h.height+2*M-A-D-j;n.left=Math.max(n.left,Y),n.top=Math.max(n.top,H),n.right=Math.min(n.right,K),n.bottom=Math.min(n.bottom,F)}}),n}function Ra(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function ja(e,t){var n=t||[],r=ae(n,2),i=r[0],s=r[1];return[Ra(e.width,i),Ra(e.height,s)]}function Na(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function pr(e,t){var n=t[0],r=t[1],i,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:s}}function Vn(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function Af(e,t,n,r,i,s,c){var m=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),f=ae(m,2),g=f[0],p=f[1],h=l.useRef(0),b=l.useMemo(function(){return t?si(t):[]},[t]),w=l.useRef({}),S=function(){w.current={}};e||S();var C=gn(function(){if(t&&n&&e){let Pt=function(fn,Sn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ie,Ln=U.x+fn,Zn=U.y+Sn,zn=Ln+Q,rr=Zn+ve,or=Math.max(Ln,Dn.left),Pr=Math.max(Zn,Dn.top),kr=Math.min(zn,Dn.right),Er=Math.min(rr,Dn.bottom);return Math.max(0,(kr-or)*(Er-Pr))},Nn=function(){jt=U.y+_e,qe=jt+ve,Ct=U.x+be,Gt=Ct+Q};var O,E,k=t,R=k.ownerDocument,T=Ur(k),j=T.getComputedStyle(k),A=j.width,D=j.height,W=j.position,q=k.style.left,N=k.style.top,M=k.style.right,z=k.style.bottom,Y=k.style.overflow,H=de(de({},i[r]),s),K=R.createElement("div");(O=k.parentElement)===null||O===void 0||O.appendChild(K),K.style.left="".concat(k.offsetLeft,"px"),K.style.top="".concat(k.offsetTop,"px"),K.style.position=W,K.style.height="".concat(k.offsetHeight,"px"),K.style.width="".concat(k.offsetWidth,"px"),k.style.left="0",k.style.top="0",k.style.right="auto",k.style.bottom="auto",k.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var L=n.getBoundingClientRect();F={x:L.x,y:L.y,width:L.width,height:L.height}}var U=k.getBoundingClientRect(),fe=R.documentElement,J=fe.clientWidth,we=fe.clientHeight,$=fe.scrollWidth,me=fe.scrollHeight,ke=fe.scrollTop,Oe=fe.scrollLeft,ve=U.height,Q=U.width,Ce=F.height,Me=F.width,ft={left:0,top:0,right:J,bottom:we},tt={left:-Oe,top:-ke,right:$-Oe,bottom:me-ke},$e=H.htmlRegion,Ke="visible",De="visibleFirst";$e!=="scroll"&&$e!==De&&($e=Ke);var xe=$e===De,ge=Aa(tt,b),ie=Aa(ft,b),Ie=$e===Ke?ie:ge,ee=xe?ie:Ie;k.style.left="auto",k.style.top="auto",k.style.right="0",k.style.bottom="0";var nt=k.getBoundingClientRect();k.style.left=q,k.style.top=N,k.style.right=M,k.style.bottom=z,k.style.overflow=Y,(E=k.parentElement)===null||E===void 0||E.removeChild(K);var se=Lr(Math.round(Q/parseFloat(A)*1e3)/1e3),Re=Lr(Math.round(ve/parseFloat(D)*1e3)/1e3);if(se===0||Re===0||ti(n)&&!Ns(n))return;var rt=H.offset,Te=H.targetOffset,Rt=ja(U,rt),Bt=ae(Rt,2),ye=Bt[0],Le=Bt[1],Ge=ja(F,Te),mt=ae(Ge,2),at=mt[0],ze=mt[1];F.x-=at,F.y-=ze;var st=H.points||[],$t=ae(st,2),bt=$t[0],Mt=$t[1],It=Na(Mt),lt=Na(bt),wt=pr(F,It),vn=pr(U,lt),Fe=de({},H),be=wt.x-vn.x+ye,_e=wt.y-vn.y+Le,ue=Pt(be,_e),te=Pt(be,_e,ie),le=pr(F,["t","l"]),Se=pr(U,["t","l"]),ne=pr(F,["b","r"]),Ye=pr(U,["b","r"]),yt=H.overflow||{},gt=yt.adjustX,Ze=yt.adjustY,Qe=yt.shiftX,qt=yt.shiftY,Kt=function(Sn){return typeof Sn=="boolean"?Sn:Sn>=0},jt,qe,Ct,Gt;Nn();var bn=Kt(Ze),on=lt[0]===It[0];if(bn&<[0]==="t"&&(qe>ee.bottom||w.current.bt)){var Ut=_e;on?Ut-=ve-Ce:Ut=le.y-Ye.y-Le;var kn=Pt(be,Ut),an=Pt(be,Ut,ie);kn>ue||kn===ue&&(!xe||an>=te)?(w.current.bt=!0,_e=Ut,Le=-Le,Fe.points=[Vn(lt,0),Vn(It,0)]):w.current.bt=!1}if(bn&<[0]==="b"&&(jtue||Je===ue&&(!xe||Yn>=te)?(w.current.tb=!0,_e=sn,Le=-Le,Fe.points=[Vn(lt,0),Vn(It,0)]):w.current.tb=!1}var Rn=Kt(gt),En=lt[1]===It[1];if(Rn&<[1]==="l"&&(Gt>ee.right||w.current.rl)){var Nt=be;En?Nt-=Q-Me:Nt=le.x-Ye.x-ye;var wn=Pt(Nt,_e),On=Pt(Nt,_e,ie);wn>ue||wn===ue&&(!xe||On>=te)?(w.current.rl=!0,be=Nt,ye=-ye,Fe.points=[Vn(lt,1),Vn(It,1)]):w.current.rl=!1}if(Rn&<[1]==="r"&&(Ctue||jn===ue&&(!xe||zt>=te)?(w.current.lr=!0,be=ln,ye=-ye,Fe.points=[Vn(lt,1),Vn(It,1)]):w.current.lr=!1}Nn();var Tt=Qe===!0?0:Qe;typeof Tt=="number"&&(Ctie.right&&(be-=Gt-ie.right-ye,F.x>ie.right-Tt&&(be+=F.x-ie.right+Tt)));var Xt=qt===!0?0:qt;typeof Xt=="number"&&(jtie.bottom&&(_e-=qe-ie.bottom-Le,F.y>ie.bottom-Xt&&(_e+=F.y-ie.bottom+Xt)));var _n=U.x+be,yn=_n+Q,Yt=U.y+_e,cn=Yt+ve,Mn=F.x,Cn=Mn+Me,Zt=F.y,Be=Zt+Ce,He=Math.max(_n,Mn),Ee=Math.min(yn,Cn),je=(He+Ee)/2,xt=je-_n,St=Math.max(Yt,Zt),xn=Math.min(cn,Be),Jt=(St+xn)/2,un=Jt-Yt;c==null||c(t,Fe);var dn=nt.right-U.x-(be+U.width),Ft=nt.bottom-U.y-(_e+U.height);se===1&&(be=Math.round(be),dn=Math.round(dn)),Re===1&&(_e=Math.round(_e),Ft=Math.round(Ft));var Ne={ready:!0,offsetX:be/se,offsetY:_e/Re,offsetR:dn/se,offsetB:Ft/Re,arrowX:xt/se,arrowY:un/Re,scaleX:se,scaleY:Re,align:Fe};p(Ne)}}),y=function(){h.current+=1;var E=h.current;Promise.resolve().then(function(){h.current===E&&C()})},I=function(){p(function(E){return de(de({},E),{},{ready:!1})})};return rn(I,[r]),rn(function(){e||I()},[e]),[g.ready,g.offsetX,g.offsetY,g.offsetR,g.offsetB,g.arrowX,g.arrowY,g.scaleX,g.scaleY,g.align,y]}function Rf(e,t,n,r,i){rn(function(){if(e&&t&&n){let h=function(){r(),i()};var s=t,c=n,m=si(s),f=si(c),g=Ur(c),p=new Set([g].concat(Wt(m),Wt(f)));return p.forEach(function(b){b.addEventListener("scroll",h,{passive:!0})}),g.addEventListener("resize",h,{passive:!0}),r(),function(){p.forEach(function(b){b.removeEventListener("scroll",h),g.removeEventListener("resize",h)})}}},[e,t,n])}function jf(e,t,n,r,i,s,c,m){var f=l.useRef(e);f.current=e,l.useEffect(function(){if(t&&r&&(!i||s)){var g=function(w){var S=w.target;f.current&&!c(S)&&m(!1)},p=Ur(r);p.addEventListener("mousedown",g,!0),p.addEventListener("contextmenu",g,!0);var h=ni(n);return h&&(h.addEventListener("mousedown",g,!0),h.addEventListener("contextmenu",g,!0)),function(){p.removeEventListener("mousedown",g,!0),p.removeEventListener("contextmenu",g,!0),h&&(h.removeEventListener("mousedown",g,!0),h.removeEventListener("contextmenu",g,!0))}}},[t,n,r,i,s])}var Nf=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Df(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ds,t=l.forwardRef(function(n,r){var i=n.prefixCls,s=i===void 0?"rc-trigger-popup":i,c=n.children,m=n.action,f=m===void 0?"hover":m,g=n.showAction,p=n.hideAction,h=n.popupVisible,b=n.defaultPopupVisible,w=n.onPopupVisibleChange,S=n.afterPopupVisibleChange,C=n.mouseEnterDelay,y=n.mouseLeaveDelay,I=y===void 0?.1:y,O=n.focusDelay,E=n.blurDelay,k=n.mask,R=n.maskClosable,T=R===void 0?!0:R,j=n.getPopupContainer,A=n.forceRender,D=n.autoDestroy,W=n.destroyPopupOnHide,q=n.popup,N=n.popupClassName,M=n.popupStyle,z=n.popupPlacement,Y=n.builtinPlacements,H=Y===void 0?{}:Y,K=n.popupAlign,F=n.zIndex,L=n.stretch,U=n.getPopupClassNameFromAlign,fe=n.fresh,J=n.alignPoint,we=n.onPopupClick,$=n.onPopupAlign,me=n.arrow,ke=n.popupMotion,Oe=n.maskMotion,ve=n.popupTransitionName,Q=n.popupAnimation,Ce=n.maskTransitionName,Me=n.maskAnimation,ft=n.className,tt=n.getTriggerDOMNode,$e=Et(n,Nf),Ke=D||W||!1,De=l.useState(!1),xe=ae(De,2),ge=xe[0],ie=xe[1];rn(function(){ie(gf())},[]);var Ie=l.useRef({}),ee=l.useContext(Ma),nt=l.useMemo(function(){return{registerSubPopup:function(oe,et){Ie.current[oe]=et,ee==null||ee.registerSubPopup(oe,et)}}},[ee]),se=Yu(),Re=l.useState(null),rt=ae(Re,2),Te=rt[0],Rt=rt[1],Bt=l.useRef(null),ye=gn(function(X){Bt.current=X,ti(X)&&Te!==X&&Rt(X),ee==null||ee.registerSubPopup(se,X)}),Le=l.useState(null),Ge=ae(Le,2),mt=Ge[0],at=Ge[1],ze=l.useRef(null),st=gn(function(X){ti(X)&&mt!==X&&(at(X),ze.current=X)}),$t=l.Children.only(c),bt=($t==null?void 0:$t.props)||{},Mt={},It=gn(function(X){var oe,et,pt=mt;return(pt==null?void 0:pt.contains(X))||((oe=ni(pt))===null||oe===void 0?void 0:oe.host)===X||X===pt||(Te==null?void 0:Te.contains(X))||((et=ni(Te))===null||et===void 0?void 0:et.host)===X||X===Te||Object.values(Ie.current).some(function(Ue){return(Ue==null?void 0:Ue.contains(X))||X===Ue})}),lt=Ba(s,ke,Q,ve),wt=Ba(s,Oe,Me,Ce),vn=l.useState(b||!1),Fe=ae(vn,2),be=Fe[0],_e=Fe[1],ue=h??be,te=gn(function(X){h===void 0&&_e(X)});rn(function(){_e(h||!1)},[h]);var le=l.useRef(ue);le.current=ue;var Se=l.useRef([]);Se.current=[];var ne=gn(function(X){var oe;te(X),((oe=Se.current[Se.current.length-1])!==null&&oe!==void 0?oe:ue)!==X&&(Se.current.push(X),w==null||w(X))}),Ye=l.useRef(),yt=function(){clearTimeout(Ye.current)},gt=function(oe){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;yt(),et===0?ne(oe):Ye.current=setTimeout(function(){ne(oe)},et*1e3)};l.useEffect(function(){return yt},[]);var Ze=l.useState(!1),Qe=ae(Ze,2),qt=Qe[0],Kt=Qe[1];rn(function(X){(!X||ue)&&Kt(!0)},[ue]);var jt=l.useState(null),qe=ae(jt,2),Ct=qe[0],Gt=qe[1],bn=l.useState([0,0]),on=ae(bn,2),Ut=on[0],kn=on[1],an=function(oe){kn([oe.clientX,oe.clientY])},sn=Af(ue,Te,J?Ut:mt,z,H,K,$),Je=ae(sn,11),Yn=Je[0],Rn=Je[1],En=Je[2],Nt=Je[3],wn=Je[4],On=Je[5],ln=Je[6],jn=Je[7],zt=Je[8],Tt=Je[9],Xt=Je[10],_n=Mf(ge,f,g,p),yn=ae(_n,2),Yt=yn[0],cn=yn[1],Mn=Yt.has("click"),Cn=cn.has("click")||cn.has("contextMenu"),Zt=gn(function(){qt||Xt()}),Be=function(){le.current&&J&&Cn&>(!1)};Rf(ue,mt,Te,Zt,Be),rn(function(){Zt()},[Ut,z]),rn(function(){ue&&!(H!=null&&H[z])&&Zt()},[JSON.stringify(K)]);var He=l.useMemo(function(){var X=Bf(H,s,Tt,J);return G(X,U==null?void 0:U(Tt))},[Tt,U,H,s,J]);l.useImperativeHandle(r,function(){return{nativeElement:ze.current,popupElement:Bt.current,forceAlign:Zt}});var Ee=l.useState(0),je=ae(Ee,2),xt=je[0],St=je[1],xn=l.useState(0),Jt=ae(xn,2),un=Jt[0],dn=Jt[1],Ft=function(){if(L&&mt){var oe=mt.getBoundingClientRect();St(oe.width),dn(oe.height)}},Ne=function(){Ft(),Zt()},Pt=function(oe){Kt(!1),Xt(),S==null||S(oe)},Nn=function(){return new Promise(function(oe){Ft(),Gt(function(){return oe})})};rn(function(){Ct&&(Xt(),Ct(),Gt(null))},[Ct]);function fn(X,oe,et,pt){Mt[X]=function(Ue){var ir;pt==null||pt(Ue),gt(oe,et);for(var ar=arguments.length,Jr=new Array(ar>1?ar-1:0),sr=1;sr1?et-1:0),Ue=1;Ue1?et-1:0),Ue=1;Ue{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:s,arrowShadowWidth:c,borderRadiusXS:m,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,s]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${re(m)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},ll=8;function cl(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?ll:r}}function io(e,t){return e?t:{}}function qf(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:s,arrowOffsetHorizontal:c}=e,{arrowDistance:m=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Wf(e,t,i)),{"&:before":{background:t}})]},io(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:m,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}})),io(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:m,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}})),io(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:m},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s}})),io(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:m},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}}))}}function Kf(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const c=Object.assign(Object.assign({},s),i);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const Da={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Gf={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Uf=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Xf(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:s,visibleFirst:c}=e,m=t/2,f={};return Object.keys(Da).forEach(g=>{const p=r&&Gf[g]||Da[g],h=Object.assign(Object.assign({},p),{offset:[0,0],dynamicInset:!0});switch(f[g]=h,Uf.has(g)&&(h.autoArrow=!1),g){case"top":case"topLeft":case"topRight":h.offset[1]=-m-i;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=m+i;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-m-i;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=m+i;break}const b=cl({contentRadius:s,limitVerticalRadius:!0});if(r)switch(g){case"topLeft":case"bottomLeft":h.offset[0]=-b.arrowOffsetHorizontal-m;break;case"topRight":case"bottomRight":h.offset[0]=b.arrowOffsetHorizontal+m;break;case"leftTop":case"rightTop":h.offset[1]=-b.arrowOffsetHorizontal-m;break;case"leftBottom":case"rightBottom":h.offset[1]=b.arrowOffsetHorizontal+m;break}h.overflow=Kf(g,b,t,n),c&&(h.htmlRegion="visibleFirst")}),f}const Yf=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:s,zIndexPopup:c,controlHeight:m,boxShadowSecondary:f,paddingSM:g,paddingXS:p}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Un(e)),{position:"absolute",zIndex:c,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:m,padding:`${re(e.calc(g).div(2).equal())} ${re(p)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:s,boxShadow:f,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(s,ll)}},[`${t}-content`]:{position:"relative"}}),_o(e,(h,b)=>{let{darkColor:w}=b;return{[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:w},[`${t}-arrow`]:{"--antd-arrow-background-color":w}}}})),{"&-rtl":{direction:"rtl"}})},qf(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Zf=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},cl({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Hf(qn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ul=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Gn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:s,colorBgSpotlight:c}=r,m=qn(r,{tooltipMaxWidth:250,tooltipColor:s,tooltipBorderRadius:i,tooltipBg:c});return[Yf(m),Ls(r,"zoom-big-fast")]},Zf,{resetStyle:!1,injectStyle:t})(e)},Qf=vo.map(e=>`${e}-inverse`),Jf=["success","processing","error","default","warning"];function Mo(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Wt(Qf),Wt(vo)).includes(e):vo.includes(e)}function em(e){return Jf.includes(e)}function dl(e,t){const n=Mo(t),r=G({[`${e}-${t}`]:t&&n}),i={},s={};return t&&!n&&(i.background=t,s["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:s}}const tm=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:s,overlayInnerStyle:c}=e,{getPrefixCls:m}=l.useContext(dt),f=m("tooltip",t),[g,p,h]=ul(f),b=dl(f,s),w=b.arrowStyle,S=Object.assign(Object.assign({},c),b.overlayStyle),C=G(p,h,f,`${f}-pure`,`${f}-placement-${r}`,n,b.className);return g(l.createElement("div",{className:C,style:w},l.createElement("div",{className:`${f}-arrow`}),l.createElement(sl,Object.assign({},e,{className:p,prefixCls:f,overlayInnerStyle:S}),i)))};var nm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:s,getTooltipContainer:c,overlayClassName:m,color:f,overlayInnerStyle:g,children:p,afterOpenChange:h,afterVisibleChange:b,destroyTooltipOnHide:w,arrow:S=!0,title:C,overlay:y,builtinPlacements:I,arrowPointAtCenter:O=!1,autoAdjustOverflow:E=!0}=e,k=!!S,[,R]=Zu(),{getPopupContainer:T,getPrefixCls:j,direction:A}=l.useContext(dt),D=td(),W=l.useRef(null),q=()=>{var se;(se=W.current)===null||se===void 0||se.forceAlign()};l.useImperativeHandle(t,()=>{var se;return{forceAlign:q,forcePopupAlign:()=>{D.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(se=W.current)===null||se===void 0?void 0:se.nativeElement}});const[N,M]=br(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),z=!C&&!y&&C!==0,Y=se=>{var Re,rt;M(z?!1:se),z||((Re=e.onOpenChange)===null||Re===void 0||Re.call(e,se),(rt=e.onVisibleChange)===null||rt===void 0||rt.call(e,se))},H=l.useMemo(()=>{var se,Re;let rt=O;return typeof S=="object"&&(rt=(Re=(se=S.pointAtCenter)!==null&&se!==void 0?se:S.arrowPointAtCenter)!==null&&Re!==void 0?Re:O),I||Xf({arrowPointAtCenter:rt,autoAdjustOverflow:E,arrowWidth:k?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[O,S,I,R]),K=l.useMemo(()=>C===0?C:y||C||"",[y,C]),F=l.createElement(zs,null,typeof K=="function"?K():K),{getPopupContainer:L,placement:U="top",mouseEnterDelay:fe=.1,mouseLeaveDelay:J=.1,overlayStyle:we,rootClassName:$}=e,me=nm(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ke=j("tooltip",i),Oe=j(),ve=e["data-popover-inject"];let Q=N;!("open"in e)&&!("visible"in e)&&z&&(Q=!1);const Ce=l.isValidElement(p)&&!Qu(p)?p:l.createElement("span",null,p),Me=Ce.props,ft=!Me.className||typeof Me.className=="string"?G(Me.className,s||`${ke}-open`):Me.className,[tt,$e,Ke]=ul(ke,!ve),De=dl(ke,f),xe=De.arrowStyle,ge=Object.assign(Object.assign({},g),De.overlayStyle),ie=G(m,{[`${ke}-rtl`]:A==="rtl"},De.className,$,$e,Ke),[Ie,ee]=Fs("Tooltip",me.zIndex),nt=l.createElement(Vf,Object.assign({},me,{zIndex:Ie,showArrow:k,placement:U,mouseEnterDelay:fe,mouseLeaveDelay:J,prefixCls:ke,overlayClassName:ie,overlayStyle:Object.assign(Object.assign({},xe),we),getTooltipContainer:L||c||T,ref:W,builtinPlacements:H,overlay:F,visible:Q,onVisibleChange:Y,afterVisibleChange:h??b,overlayInnerStyle:ge,arrowContent:l.createElement("span",{className:`${ke}-arrow-content`}),motion:{motionName:Ju(Oe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!w}),Q?nr(Ce,{className:ft}):Ce);return tt(l.createElement(ed.Provider,{value:ee},nt))}),Xr=rm;Xr._InternalPanelDoNotUseOrYouWillBeFired=tm;var om={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},im=function(t,n){return l.createElement(Cr,Ae({},t,{ref:n,icon:om}))},am=l.forwardRef(im);const sm=new Ot("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),lm=new Ot("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),cm=new Ot("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),um=new Ot("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),dm=new Ot("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),fm=new Ot("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),mm=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,motionDurationSlow:s,textFontSize:c,textFontSizeSM:m,statusSize:f,dotSize:g,textFontWeight:p,indicatorHeight:h,indicatorHeightSM:b,marginXS:w,calc:S}=e,C=`${r}-scroll-number`,y=_o(e,(I,O)=>{let{darkColor:E}=O;return{[`&${t} ${t}-color-${I}`]:{background:E,[`&:not(${t}-count)`]:{color:E},"a:hover &":{background:E}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Un(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:h,height:h,color:e.badgeTextColor,fontWeight:p,fontSize:c,lineHeight:re(h),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:S(h).div(2).equal(),boxShadow:`0 0 0 ${re(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:b,height:b,fontSize:m,lineHeight:re(b),borderRadius:S(b).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${re(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:g,minWidth:g,height:g,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${re(i)} ${e.badgeShadowColor}`},[`${t}-dot${C}`]:{transition:`background ${s}`},[`${t}-count, ${t}-dot, ${C}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:fm,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:f,height:f,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:sm,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:w,color:e.colorText,fontSize:e.fontSize}}}),y),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:lm,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:cm,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:um,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:dm,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${C}-custom-component, ${t}-count`]:{transform:"none"},[`${C}-custom-component, ${C}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${C}`]:{overflow:"hidden",[`${C}-only`]:{position:"relative",display:"inline-block",height:h,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${C}-only-unit`]:{height:h,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${C}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${C}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},fl=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,s=t,c=n,m=e.colorBgContainer,f=e.colorError,g=e.colorErrorHover;return qn(e,{badgeFontHeight:s,badgeShadowSize:c,badgeTextColor:m,badgeColor:f,badgeColorHover:g,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},ml=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},gm=Gn("Badge",e=>{const t=fl(e);return mm(t)},ml),pm=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:s}=e,c=`${t}-ribbon`,m=`${t}-ribbon-wrapper`,f=_o(e,(g,p)=>{let{darkColor:h}=p;return{[`&${c}-color-${g}`]:{background:h,color:h}}});return{[`${m}`]:{position:"relative"},[`${c}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Un(e)),{position:"absolute",top:r,padding:`0 ${re(e.paddingXS)}`,color:e.colorPrimary,lineHeight:re(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-text`]:{color:e.colorTextLightSolid},[`${c}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${re(s(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),f),{[`&${c}-placement-end`]:{insetInlineEnd:s(i).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:s(i).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},hm=Gn(["Badge","Ribbon"],e=>{const t=fl(e);return pm(t)},ml),vm=e=>{const{className:t,prefixCls:n,style:r,color:i,children:s,text:c,placement:m="end",rootClassName:f}=e,{getPrefixCls:g,direction:p}=l.useContext(dt),h=g("ribbon",n),b=`${h}-wrapper`,[w,S,C]=hm(h,b),y=Mo(i,!1),I=G(h,`${h}-placement-${m}`,{[`${h}-rtl`]:p==="rtl",[`${h}-color-${i}`]:y},t),O={},E={};return i&&!y&&(O.background=i,E.color=i),w(l.createElement("div",{className:G(b,f,S,C)},s,l.createElement("div",{className:G(I,S),style:Object.assign(Object.assign({},O),r)},l.createElement("span",{className:`${h}-text`},c),l.createElement("div",{className:`${h}-corner`,style:E}))))};function La(e){let{prefixCls:t,value:n,current:r,offset:i=0}=e,s;return i&&(s={position:"absolute",top:`${i}00%`,left:0}),l.createElement("span",{style:s,className:G(`${t}-only-unit`,{current:r})},n)}function bm(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}function wm(e){const{prefixCls:t,count:n,value:r}=e,i=Number(r),s=Math.abs(n),[c,m]=l.useState(i),[f,g]=l.useState(s),p=()=>{m(i),g(s)};l.useEffect(()=>{const w=setTimeout(()=>{p()},1e3);return()=>{clearTimeout(w)}},[i]);let h,b;if(c===i||Number.isNaN(i)||Number.isNaN(c))h=[l.createElement(La,Object.assign({},e,{key:i,current:!0}))],b={transition:"none"};else{h=[];const w=i+10,S=[];for(let I=i;I<=w;I+=1)S.push(I);const C=S.findIndex(I=>I%10===c);h=S.map((I,O)=>{const E=I%10;return l.createElement(La,Object.assign({},e,{key:I,value:E,offset:O-C,current:O===C}))});const y=f{const{prefixCls:n,count:r,className:i,motionClassName:s,style:c,title:m,show:f,component:g="sup",children:p}=e,h=ym(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:b}=l.useContext(dt),w=b("scroll-number",n),S=Object.assign(Object.assign({},h),{"data-show":f,style:c,className:G(w,i,s),title:m});let C=r;if(r&&Number(r)%1===0){const y=String(r).split("");C=l.createElement("bdi",null,y.map((I,O)=>l.createElement(wm,{prefixCls:w,count:Number(r),value:I,key:y.length-O})))}return c&&c.borderColor&&(S.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),p?nr(p,y=>({className:G(`${w}-custom-component`,y==null?void 0:y.className,s)})):l.createElement(g,Object.assign({},S,{ref:t}),C)});var xm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,s,c;const{prefixCls:m,scrollNumberPrefixCls:f,children:g,status:p,text:h,color:b,count:w=null,overflowCount:S=99,dot:C=!1,size:y="default",title:I,offset:O,style:E,className:k,rootClassName:R,classNames:T,styles:j,showZero:A=!1}=e,D=xm(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:W,direction:q,badge:N}=l.useContext(dt),M=W("badge",m),[z,Y,H]=gm(M),K=w>S?`${S}+`:w,F=K==="0"||K===0,L=w===null||F&&!A,U=(p!=null||b!=null)&&L,fe=C&&!F,J=fe?"":K,we=l.useMemo(()=>(J==null||J===""||F&&!A)&&!fe,[J,F,A,fe]),$=l.useRef(w);we||($.current=w);const me=$.current,ke=l.useRef(J);we||(ke.current=J);const Oe=ke.current,ve=l.useRef(fe);we||(ve.current=fe);const Q=l.useMemo(()=>{if(!O)return Object.assign(Object.assign({},N==null?void 0:N.style),E);const xe={marginTop:O[1]};return q==="rtl"?xe.left=parseInt(O[0],10):xe.right=-parseInt(O[0],10),Object.assign(Object.assign(Object.assign({},xe),N==null?void 0:N.style),E)},[q,O,E,N==null?void 0:N.style]),Ce=I??(typeof me=="string"||typeof me=="number"?me:void 0),Me=we||!h?null:l.createElement("span",{className:`${M}-status-text`},h),ft=!me||typeof me!="object"?void 0:nr(me,xe=>({style:Object.assign(Object.assign({},Q),xe.style)})),tt=Mo(b,!1),$e=G(T==null?void 0:T.indicator,(n=N==null?void 0:N.classNames)===null||n===void 0?void 0:n.indicator,{[`${M}-status-dot`]:U,[`${M}-status-${p}`]:!!p,[`${M}-color-${b}`]:tt}),Ke={};b&&!tt&&(Ke.color=b,Ke.background=b);const De=G(M,{[`${M}-status`]:U,[`${M}-not-a-wrapper`]:!g,[`${M}-rtl`]:q==="rtl"},k,R,N==null?void 0:N.className,(r=N==null?void 0:N.classNames)===null||r===void 0?void 0:r.root,T==null?void 0:T.root,Y,H);if(!g&&U){const xe=Q.color;return z(l.createElement("span",Object.assign({},D,{className:De,style:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.root),(i=N==null?void 0:N.styles)===null||i===void 0?void 0:i.root),Q)}),l.createElement("span",{className:$e,style:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.indicator),(s=N==null?void 0:N.styles)===null||s===void 0?void 0:s.indicator),Ke)}),h&&l.createElement("span",{style:{color:xe},className:`${M}-status-text`},h)))}return z(l.createElement("span",Object.assign({ref:t},D,{className:De,style:Object.assign(Object.assign({},(c=N==null?void 0:N.styles)===null||c===void 0?void 0:c.root),j==null?void 0:j.root)}),g,l.createElement(yr,{visible:!we,motionName:`${M}-zoom`,motionAppear:!1,motionDeadline:1e3},xe=>{let{className:ge}=xe;var ie,Ie;const ee=W("scroll-number",f),nt=ve.current,se=G(T==null?void 0:T.indicator,(ie=N==null?void 0:N.classNames)===null||ie===void 0?void 0:ie.indicator,{[`${M}-dot`]:nt,[`${M}-count`]:!nt,[`${M}-count-sm`]:y==="small",[`${M}-multiple-words`]:!nt&&Oe&&Oe.toString().length>1,[`${M}-status-${p}`]:!!p,[`${M}-color-${b}`]:tt});let Re=Object.assign(Object.assign(Object.assign({},j==null?void 0:j.indicator),(Ie=N==null?void 0:N.styles)===null||Ie===void 0?void 0:Ie.indicator),Q);return b&&!tt&&(Re=Re||{},Re.background=b),l.createElement(Cm,{prefixCls:ee,show:!we,motionClassName:ge,className:se,count:Oe,title:Ce,style:Re,key:"scrollNumber"},ft)}),Me))}),zr=Sm;zr.Ribbon=vm;var $m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Im=function(t,n){return l.createElement(Cr,Ae({},t,{ref:n,icon:$m}))},za=l.forwardRef(Im),gl=l.createContext(null);function pl(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function hl(e){var t=l.useContext(gl);return pl(t,e)}var Pm=["children","locked"],hn=l.createContext(null);function km(e,t){var n=de({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function Fr(e){var t=e.children,n=e.locked,r=Et(e,Pm),i=l.useContext(hn),s=nd(function(){return km(i,r)},[i,r],function(c,m){return!n&&(c[0]!==m[0]||!Vs(c[1],m[1],!0))});return l.createElement(hn.Provider,{value:s},t)}var Em=[],vl=l.createContext(null);function To(){return l.useContext(vl)}var bl=l.createContext(Em);function xr(e){var t=l.useContext(bl);return l.useMemo(function(){return e!==void 0?[].concat(Wt(t),[e]):t},[t,e])}var wl=l.createContext(null),$i=l.createContext({});function Fa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ns(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),s=Number(i),c=null;return i&&!Number.isNaN(s)?c=s:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function Om(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Wt(e.querySelectorAll("*")).filter(function(r){return Fa(r,t)});return Fa(e,t)&&n.unshift(e),n}var li=Bn.LEFT,ci=Bn.RIGHT,ui=Bn.UP,lo=Bn.DOWN,co=Bn.ENTER,yl=Bn.ESC,Br=Bn.HOME,Ar=Bn.END,Va=[ui,lo,li,ci];function _m(e,t,n,r){var i,s="prev",c="next",m="children",f="parent";if(e==="inline"&&r===co)return{inlineTrigger:!0};var g=ut(ut({},ui,s),lo,c),p=ut(ut(ut(ut({},li,n?c:s),ci,n?s:c),lo,m),co,m),h=ut(ut(ut(ut(ut(ut({},ui,s),lo,c),co,m),yl,f),li,n?m:f),ci,n?f:m),b={inline:g,horizontal:p,vertical:h,inlineSub:g,horizontalSub:h,verticalSub:h},w=(i=b["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(w){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case m:return{offset:1,sibling:!1};default:return null}}function Mm(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Tm(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Ii(e,t){var n=Om(e,!0);return n.filter(function(r){return t.has(r)})}function Ha(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Ii(e,t),s=i.length,c=i.findIndex(function(m){return n===m});return r<0?c===-1?c=s-1:c-=1:r>0&&(c+=1),c=(c+s)%s,i[c]}var di=function(t,n){var r=new Set,i=new Map,s=new Map;return t.forEach(function(c){var m=document.querySelector("[data-menu-id='".concat(pl(n,c),"']"));m&&(r.add(m),s.set(m,c),i.set(c,m))}),{elements:r,key2element:i,element2key:s}};function Bm(e,t,n,r,i,s,c,m,f,g){var p=l.useRef(),h=l.useRef();h.current=t;var b=function(){In.cancel(p.current)};return l.useEffect(function(){return function(){b()}},[]),function(w){var S=w.which;if([].concat(Va,[co,yl,Br,Ar]).includes(S)){var C=s(),y=di(C,r),I=y,O=I.elements,E=I.key2element,k=I.element2key,R=E.get(t),T=Tm(R,O),j=k.get(T),A=_m(e,c(j,!0).length===1,n,S);if(!A&&S!==Br&&S!==Ar)return;(Va.includes(S)||[Br,Ar].includes(S))&&w.preventDefault();var D=function(K){if(K){var F=K,L=K.querySelector("a");L!=null&&L.getAttribute("href")&&(F=L);var U=k.get(K);m(U),b(),p.current=In(function(){h.current===U&&F.focus()})}};if([Br,Ar].includes(S)||A.sibling||!T){var W;!T||e==="inline"?W=i.current:W=Mm(T);var q,N=Ii(W,O);S===Br?q=N[0]:S===Ar?q=N[N.length-1]:q=Ha(W,O,T,A.offset),D(q)}else if(A.inlineTrigger)f(j);else if(A.offset>0)f(j,!0),b(),p.current=In(function(){y=di(C,r);var H=T.getAttribute("aria-controls"),K=document.getElementById(H),F=Ha(K,y.elements);D(F)},5);else if(A.offset<0){var M=c(j,!0),z=M[M.length-2],Y=E.get(z);f(z,!1),D(Y)}}g==null||g(w)}}function Am(e){Promise.resolve().then(e)}var Pi="__RC_UTIL_PATH_SPLIT__",Wa=function(t){return t.join(Pi)},Rm=function(t){return t.split(Pi)},fi="rc-menu-more";function jm(){var e=l.useState({}),t=ae(e,2),n=t[1],r=l.useRef(new Map),i=l.useRef(new Map),s=l.useState([]),c=ae(s,2),m=c[0],f=c[1],g=l.useRef(0),p=l.useRef(!1),h=function(){p.current||n({})},b=l.useCallback(function(E,k){var R=Wa(k);i.current.set(R,E),r.current.set(E,R),g.current+=1;var T=g.current;Am(function(){T===g.current&&h()})},[]),w=l.useCallback(function(E,k){var R=Wa(k);i.current.delete(R),r.current.delete(E)},[]),S=l.useCallback(function(E){f(E)},[]),C=l.useCallback(function(E,k){var R=r.current.get(E)||"",T=Rm(R);return k&&m.includes(T[0])&&T.unshift(fi),T},[m]),y=l.useCallback(function(E,k){return E.some(function(R){var T=C(R,!0);return T.includes(k)})},[C]),I=function(){var k=Wt(r.current.keys());return m.length&&k.push(fi),k},O=l.useCallback(function(E){var k="".concat(r.current.get(E)).concat(Pi),R=new Set;return Wt(i.current.keys()).forEach(function(T){T.startsWith(k)&&R.add(i.current.get(T))}),R},[]);return l.useEffect(function(){return function(){p.current=!0}},[]),{registerPath:b,unregisterPath:w,refreshOverflowKeys:S,isSubPathKey:y,getKeyPath:C,getKeys:I,getSubPathKeys:O}}function jr(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,i=arguments.length,s=new Array(i),c=0;c1&&(O.motionAppear=!1);var E=O.onVisibleChanged;return O.onVisibleChanged=function(k){return!b.current&&!k&&y(!0),E==null?void 0:E(k)},C?null:l.createElement(Fr,{mode:s,locked:!b.current},l.createElement(yr,Ae({visible:I},O,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(m,"-hidden")}),function(k){var R=k.className,T=k.style;return l.createElement(ki,{id:t,className:R,style:T},i)}))}var Jm=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eg=["active"],tg=l.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,s=e.eventKey;e.warnKey;var c=e.disabled,m=e.internalPopupClose,f=e.children,g=e.itemIcon,p=e.expandIcon,h=e.popupClassName,b=e.popupOffset,w=e.popupStyle,S=e.onClick,C=e.onMouseEnter,y=e.onMouseLeave,I=e.onTitleClick,O=e.onTitleMouseEnter,E=e.onTitleMouseLeave,k=Et(e,Jm),R=hl(s),T=l.useContext(hn),j=T.prefixCls,A=T.mode,D=T.openKeys,W=T.disabled,q=T.overflowDisabled,N=T.activeKey,M=T.selectedKeys,z=T.itemIcon,Y=T.expandIcon,H=T.onItemClick,K=T.onOpenChange,F=T.onActive,L=l.useContext($i),U=L._internalRenderSubMenuItem,fe=l.useContext(wl),J=fe.isSubPathKey,we=xr(),$="".concat(j,"-submenu"),me=W||c,ke=l.useRef(),Oe=l.useRef(),ve=g??z,Q=p??Y,Ce=D.includes(s),Me=!q&&Ce,ft=J(M,s),tt=Cl(s,me,O,E),$e=tt.active,Ke=Et(tt,eg),De=l.useState(!1),xe=ae(De,2),ge=xe[0],ie=xe[1],Ie=function(st){me||ie(st)},ee=function(st){Ie(!0),C==null||C({key:s,domEvent:st})},nt=function(st){Ie(!1),y==null||y({key:s,domEvent:st})},se=l.useMemo(function(){return $e||(A!=="inline"?ge||J([N],s):!1)},[A,$e,N,ge,s,J]),Re=xl(we.length),rt=function(st){me||(I==null||I({key:s,domEvent:st}),A==="inline"&&K(s,!Ce))},Te=jr(function(ze){S==null||S(wo(ze)),H(ze)}),Rt=function(st){A!=="inline"&&K(s,st)},Bt=function(){F(s)},ye=R&&"".concat(R,"-popup"),Le=l.createElement("div",Ae({role:"menuitem",style:Re,className:"".concat($,"-title"),tabIndex:me?null:-1,ref:ke,title:typeof i=="string"?i:null,"data-menu-id":q&&R?null:R,"aria-expanded":Me,"aria-haspopup":!0,"aria-controls":ye,"aria-disabled":me,onClick:rt,onFocus:Bt},Ke),i,l.createElement(Sl,{icon:A!=="horizontal"?Q:void 0,props:de(de({},e),{},{isOpen:Me,isSubMenu:!0})},l.createElement("i",{className:"".concat($,"-arrow")}))),Ge=l.useRef(A);if(A!=="inline"&&we.length>1?Ge.current="vertical":Ge.current=A,!q){var mt=Ge.current;Le=l.createElement(Zm,{mode:mt,prefixCls:$,visible:!m&&Me&&A!=="inline",popupClassName:h,popupOffset:b,popupStyle:w,popup:l.createElement(Fr,{mode:mt==="horizontal"?"vertical":mt},l.createElement(ki,{id:ye,ref:Oe},f)),disabled:me,onVisibleChange:Rt},Le)}var at=l.createElement(Tn.Item,Ae({ref:t,role:"none"},k,{component:"li",style:n,className:G($,"".concat($,"-").concat(A),r,ut(ut(ut(ut({},"".concat($,"-open"),Me),"".concat($,"-active"),se),"".concat($,"-selected"),ft),"".concat($,"-disabled"),me)),onMouseEnter:ee,onMouseLeave:nt}),Le,!q&&l.createElement(Qm,{id:ye,open:Me,keyPath:we},f));return U&&(at=U(at,e,{selected:ft,active:se,open:Me,disabled:me})),l.createElement(Fr,{onItemClick:Te,mode:A==="horizontal"?"vertical":A,itemIcon:ve,expandIcon:Q},at)}),Ao=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=xr(n),s=Ei(r,i),c=To();l.useEffect(function(){if(c)return c.registerPath(n,i),function(){c.unregisterPath(n,i)}},[i]);var m;return c?m=s:m=l.createElement(tg,Ae({ref:t},e),s),l.createElement(bl.Provider,{value:i},m)});function Oi(e){var t=e.className,n=e.style,r=l.useContext(hn),i=r.prefixCls,s=To();return s?null:l.createElement("li",{role:"separator",className:G("".concat(i,"-item-divider"),t),style:n})}var ng=["className","title","eventKey","children"],rg=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,s=Et(e,ng),c=l.useContext(hn),m=c.prefixCls,f="".concat(m,"-item-group");return l.createElement("li",Ae({ref:t,role:"presentation"},s,{onClick:function(p){return p.stopPropagation()},className:G(f,n)}),l.createElement("div",{role:"presentation",className:"".concat(f,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(f,"-list")},i))}),_i=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=xr(n),s=Ei(r,i),c=To();return c?s:l.createElement(rg,Ae({ref:t},An(e,["warnKey"])),s)}),og=["label","children","key","type"];function mi(e,t){var n=t.item,r=t.group,i=t.submenu,s=t.divider;return(e||[]).map(function(c,m){if(c&&Bs(c)==="object"){var f=c,g=f.label,p=f.children,h=f.key,b=f.type,w=Et(f,og),S=h??"tmp-".concat(m);return p||b==="group"?b==="group"?l.createElement(r,Ae({key:S},w,{title:g}),mi(p,t)):l.createElement(i,Ae({key:S},w,{title:g}),mi(p,t)):b==="divider"?l.createElement(s,Ae({key:S},w)):l.createElement(n,Ae({key:S},w),g)}return null}).filter(function(c){return c})}function Ka(e,t,n,r){var i=e,s=de({divider:Oi,item:Bo,group:_i,submenu:Ao},r);return t&&(i=mi(t,s)),Ei(i,n)}var ig=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Jn=[],ag=l.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,s=i===void 0?"rc-menu":i,c=r.rootClassName,m=r.style,f=r.className,g=r.tabIndex,p=g===void 0?0:g,h=r.items,b=r.children,w=r.direction,S=r.id,C=r.mode,y=C===void 0?"vertical":C,I=r.inlineCollapsed,O=r.disabled,E=r.disabledOverflow,k=r.subMenuOpenDelay,R=k===void 0?.1:k,T=r.subMenuCloseDelay,j=T===void 0?.1:T,A=r.forceSubMenuRender,D=r.defaultOpenKeys,W=r.openKeys,q=r.activeKey,N=r.defaultActiveFirst,M=r.selectable,z=M===void 0?!0:M,Y=r.multiple,H=Y===void 0?!1:Y,K=r.defaultSelectedKeys,F=r.selectedKeys,L=r.onSelect,U=r.onDeselect,fe=r.inlineIndent,J=fe===void 0?24:fe,we=r.motion,$=r.defaultMotions,me=r.triggerSubMenuAction,ke=me===void 0?"hover":me,Oe=r.builtinPlacements,ve=r.itemIcon,Q=r.expandIcon,Ce=r.overflowedIndicator,Me=Ce===void 0?"...":Ce,ft=r.overflowedIndicatorPopupClassName,tt=r.getPopupContainer,$e=r.onClick,Ke=r.onOpenChange,De=r.onKeyDown;r.openAnimation,r.openTransitionName;var xe=r._internalRenderMenuItem,ge=r._internalRenderSubMenuItem,ie=r._internalComponents,Ie=Et(r,ig),ee=l.useMemo(function(){return[Ka(b,h,Jn,ie),Ka(b,h,Jn,{})]},[b,h,ie]),nt=ae(ee,2),se=nt[0],Re=nt[1],rt=l.useState(!1),Te=ae(rt,2),Rt=Te[0],Bt=Te[1],ye=l.useRef(),Le=Dm(S),Ge=w==="rtl",mt=br(D,{value:W,postState:function(Ee){return Ee||Jn}}),at=ae(mt,2),ze=at[0],st=at[1],$t=function(Ee){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function xt(){st(Ee),Ke==null||Ke(Ee)}je?Rs.flushSync(xt):xt()},bt=l.useState(ze),Mt=ae(bt,2),It=Mt[0],lt=Mt[1],wt=l.useRef(!1),vn=l.useMemo(function(){return(y==="inline"||y==="vertical")&&I?["vertical",I]:[y,!1]},[y,I]),Fe=ae(vn,2),be=Fe[0],_e=Fe[1],ue=be==="inline",te=l.useState(be),le=ae(te,2),Se=le[0],ne=le[1],Ye=l.useState(_e),yt=ae(Ye,2),gt=yt[0],Ze=yt[1];l.useEffect(function(){ne(be),Ze(_e),wt.current&&(ue?st(It):$t(Jn))},[be,_e]);var Qe=l.useState(0),qt=ae(Qe,2),Kt=qt[0],jt=qt[1],qe=Kt>=se.length-1||Se!=="horizontal"||E;l.useEffect(function(){ue&<(ze)},[ze]),l.useEffect(function(){return wt.current=!0,function(){wt.current=!1}},[]);var Ct=jm(),Gt=Ct.registerPath,bn=Ct.unregisterPath,on=Ct.refreshOverflowKeys,Ut=Ct.isSubPathKey,kn=Ct.getKeyPath,an=Ct.getKeys,sn=Ct.getSubPathKeys,Je=l.useMemo(function(){return{registerPath:Gt,unregisterPath:bn}},[Gt,bn]),Yn=l.useMemo(function(){return{isSubPathKey:Ut}},[Ut]);l.useEffect(function(){on(qe?Jn:se.slice(Kt+1).map(function(He){return He.key}))},[Kt,qe]);var Rn=br(q||N&&((n=se[0])===null||n===void 0?void 0:n.key),{value:q}),En=ae(Rn,2),Nt=En[0],wn=En[1],On=jr(function(He){wn(He)}),ln=jr(function(){wn(void 0)});l.useImperativeHandle(t,function(){return{list:ye.current,focus:function(Ee){var je,xt=an(),St=di(xt,Le),xn=St.elements,Jt=St.key2element,un=St.element2key,dn=Ii(ye.current,xn),Ft=Nt??(dn[0]?un.get(dn[0]):(je=se.find(function(Nn){return!Nn.props.disabled}))===null||je===void 0?void 0:je.key),Ne=Jt.get(Ft);if(Ft&&Ne){var Pt;Ne==null||(Pt=Ne.focus)===null||Pt===void 0||Pt.call(Ne,Ee)}}}});var jn=br(K||[],{value:F,postState:function(Ee){return Array.isArray(Ee)?Ee:Ee==null?Jn:[Ee]}}),zt=ae(jn,2),Tt=zt[0],Xt=zt[1],_n=function(Ee){if(z){var je=Ee.key,xt=Tt.includes(je),St;H?xt?St=Tt.filter(function(Jt){return Jt!==je}):St=[].concat(Wt(Tt),[je]):St=[je],Xt(St);var xn=de(de({},Ee),{},{selectedKeys:St});xt?U==null||U(xn):L==null||L(xn)}!H&&ze.length&&Se!=="inline"&&$t(Jn)},yn=jr(function(He){$e==null||$e(wo(He)),_n(He)}),Yt=jr(function(He,Ee){var je=ze.filter(function(St){return St!==He});if(Ee)je.push(He);else if(Se!=="inline"){var xt=sn(He);je=je.filter(function(St){return!xt.has(St)})}Vs(ze,je,!0)||$t(je,!0)}),cn=function(Ee,je){var xt=je??!ze.includes(Ee);Yt(Ee,xt)},Mn=Bm(Se,Nt,Ge,Le,ye,an,kn,wn,cn,De);l.useEffect(function(){Bt(!0)},[]);var Cn=l.useMemo(function(){return{_internalRenderMenuItem:xe,_internalRenderSubMenuItem:ge}},[xe,ge]),Zt=Se!=="horizontal"||E?se:se.map(function(He,Ee){return l.createElement(Fr,{key:He.key,overflowDisabled:Ee>Kt},He)}),Be=l.createElement(Tn,Ae({id:S,ref:ye,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Bo,className:G(s,"".concat(s,"-root"),"".concat(s,"-").concat(Se),f,ut(ut({},"".concat(s,"-inline-collapsed"),gt),"".concat(s,"-rtl"),Ge),c),dir:w,style:m,role:"menu",tabIndex:p,data:Zt,renderRawItem:function(Ee){return Ee},renderRawRest:function(Ee){var je=Ee.length,xt=je?se.slice(-je):null;return l.createElement(Ao,{eventKey:fi,title:Me,disabled:qe,internalPopupClose:je===0,popupClassName:ft},xt)},maxCount:Se!=="horizontal"||E?Tn.INVALIDATE:Tn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ee){jt(Ee)},onKeyDown:Mn},Ie));return l.createElement($i.Provider,{value:Cn},l.createElement(gl.Provider,{value:Le},l.createElement(Fr,{prefixCls:s,rootClassName:c,mode:Se,openKeys:ze,rtl:Ge,disabled:O,motion:Rt?we:null,defaultMotions:Rt?$:null,activeKey:Nt,onActive:On,onInactive:ln,selectedKeys:Tt,inlineIndent:J,subMenuOpenDelay:R,subMenuCloseDelay:j,forceSubMenuRender:A,builtinPlacements:Oe,triggerSubMenuAction:ke,getPopupContainer:tt,itemIcon:ve,expandIcon:Q,onItemClick:yn,onOpenChange:Yt},l.createElement(wl.Provider,{value:Yn},Be),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(vl.Provider,{value:Je},Re)))))}),Yr=ag;Yr.Item=Bo;Yr.SubMenu=Ao;Yr.ItemGroup=_i;Yr.Divider=Oi;var sg={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},lg=function(t,n){return l.createElement(Cr,Ae({},t,{ref:n,icon:sg}))},cg=l.forwardRef(lg),ug={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},dg=function(t,n){return l.createElement(Cr,Ae({},t,{ref:n,icon:ug}))},Ga=l.forwardRef(dg);const fg=e=>!isNaN(parseFloat(e))&&isFinite(e),Il=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var mg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),pg=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:s,defaultCollapsed:c=!1,theme:m="dark",style:f={},collapsible:g=!1,reverseArrow:p=!1,width:h=200,collapsedWidth:b=80,zeroWidthTriggerStyle:w,breakpoint:S,onCollapse:C,onBreakpoint:y}=e,I=mg(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:O}=l.useContext(Il),[E,k]=l.useState("collapsed"in e?e.collapsed:c),[R,T]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&k(e.collapsed)},[e.collapsed]);const j=(M,z)=>{"collapsed"in e||k(M),C==null||C(M,z)},A=l.useRef();A.current=M=>{T(M.matches),y==null||y(M.matches),E!==M.matches&&j(M.matches,"responsive")},l.useEffect(()=>{function M(Y){return A.current(Y)}let z;if(typeof window<"u"){const{matchMedia:Y}=window;if(Y&&S&&S in Ua){z=Y(`screen and (max-width: ${Ua[S]})`);try{z.addEventListener("change",M)}catch{z.addListener(M)}M(z)}}return()=>{try{z==null||z.removeEventListener("change",M)}catch{z==null||z.removeListener(M)}}},[S]),l.useEffect(()=>{const M=gg("ant-sider-");return O.addSider(M),()=>O.removeSider(M)},[]);const D=()=>{j(!E,"clickTrigger")},{getPrefixCls:W}=l.useContext(dt),q=()=>{const M=W("layout-sider",n),z=An(I,["collapsed"]),Y=E?b:h,H=fg(Y)?`${Y}px`:String(Y),K=parseFloat(String(b||0))===0?l.createElement("span",{onClick:D,className:G(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${p?"right":"left"}`),style:w},i||l.createElement(cg,null)):null,U={expanded:p?l.createElement(za,null):l.createElement(Ga,null),collapsed:p?l.createElement(Ga,null):l.createElement(za,null)}[E?"collapsed":"expanded"],fe=i!==null?K||l.createElement("div",{className:`${M}-trigger`,onClick:D,style:{width:H}},i||U):null,J=Object.assign(Object.assign({},f),{flex:`0 0 ${H}`,maxWidth:H,minWidth:H,width:H}),we=G(M,`${M}-${m}`,{[`${M}-collapsed`]:!!E,[`${M}-has-trigger`]:g&&i!==null&&!K,[`${M}-below`]:!!R,[`${M}-zero-width`]:parseFloat(H)===0},r);return l.createElement("aside",Object.assign({className:we},z,{style:J,ref:t}),l.createElement("div",{className:`${M}-children`},s),g||R&&K?fe:null)},N=l.useMemo(()=>({siderCollapsed:E}),[E]);return l.createElement(Ro.Provider,{value:N},q())}),Pl=pg;var hg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},vg=function(t,n){return l.createElement(Cr,Ae({},t,{ref:n,icon:hg}))},bg=l.forwardRef(vg),wg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,dashed:r}=e,i=wg(e,["prefixCls","className","dashed"]),{getPrefixCls:s}=l.useContext(dt),c=s("menu",t),m=G({[`${c}-item-divider-dashed`]:!!r},n);return l.createElement(Oi,Object.assign({className:m},i))},yo=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),El=e=>{var t;const{className:n,children:r,icon:i,title:s,danger:c}=e,{prefixCls:m,firstLevel:f,direction:g,disableMenuItemTitleTooltip:p,inlineCollapsed:h}=l.useContext(yo),b=O=>{const E=l.createElement("span",{className:`${m}-title-content`},r);return(!i||l.isValidElement(r)&&r.type==="span")&&r&&O&&f&&typeof r=="string"?l.createElement("div",{className:`${m}-inline-collapsed-noicon`},r.charAt(0)):E},{siderCollapsed:w}=l.useContext(Ro);let S=s;typeof s>"u"?S=f?r:"":s===!1&&(S="");const C={title:S};!w&&!h&&(C.title=null,C.open=!1);const y=Kr(r).length;let I=l.createElement(Bo,Object.assign({},An(e,["title","icon","danger"]),{className:G({[`${m}-item-danger`]:c,[`${m}-item-only-child`]:(i?y+1:y)===1},n),title:typeof s=="string"?s:void 0}),nr(i,{className:G(l.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${m}-item-icon`)}),b(h));return p||(I=l.createElement(Xr,Object.assign({},C,{placement:g==="rtl"?"left":"right",overlayClassName:`${m}-inline-collapsed-tooltip`}),I)),I};var yg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{children:n}=e,r=yg(e,["children"]),i=l.useContext(Co),s=l.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=rd(n),m=ko(t,c?n.ref:null);return l.createElement(Co.Provider,{value:s},l.createElement(zs,null,c?l.cloneElement(n,{ref:m}):n))}),Cg=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:s,lineType:c,itemPaddingInline:m}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${re(s)} ${c} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:m},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},xg=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${re(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${re(n)})`}}}}},Xa=e=>Object.assign({},od(e)),Ya=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,groupTitleColor:s,itemBg:c,subMenuItemBg:m,itemSelectedBg:f,activeBarHeight:g,activeBarWidth:p,activeBarBorderWidth:h,motionDurationSlow:b,motionEaseInOut:w,motionEaseOut:S,itemPaddingInline:C,motionDurationMid:y,itemHoverColor:I,lineType:O,colorSplit:E,itemDisabledColor:k,dangerItemColor:R,dangerItemHoverColor:T,dangerItemSelectedColor:j,dangerItemActiveBg:A,dangerItemSelectedBg:D,popupBg:W,itemHoverBg:q,itemActiveBg:N,menuSubMenuBg:M,horizontalItemSelectedColor:z,horizontalItemSelectedBg:Y,horizontalItemBorderRadius:H,horizontalItemHoverBg:K}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:c,[`&${n}-root:focus-visible`]:Object.assign({},Xa(e)),[`${n}-item-group-title`]:{color:s},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Xa(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${k} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:I}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:q},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:q},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:R,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:T}},[`&${n}-item:active`]:{background:A}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:j},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:f,[`&${n}-item-danger`]:{backgroundColor:D}},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:W},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:W},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:H,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${re(g)} solid transparent`,transition:`border-color ${b} ${w}`,content:'""'},"&:hover, &-active, &-open":{background:K,"&::after":{borderBottomWidth:g,borderBottomColor:z}},"&-selected":{color:z,backgroundColor:Y,"&:hover":{backgroundColor:Y},"&::after":{borderBottomWidth:g,borderBottomColor:z}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${re(h)} ${O} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:m},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${re(p)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${S}`,`opacity ${y} ${S}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:j}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${w}`,`opacity ${y} ${w}`].join(",")}}}}}},Za=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:s,marginXS:c,itemMarginBlock:m,itemWidth:f}=e,g=e.calc(s).add(i).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:re(n),paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:m,width:f},[`> ${t}-item, @@ -91,13 +91,13 @@ https://sweetalert2.github.io/#ajax-request`),Lu(d),typeof d.title=="string"&&(d * https://github.com/lancedikson/bowser * MIT License | (c) Dustin Diaz 2012-2015 * MIT License | (c) Denis Demchenko 2015-2019 - */class Gp{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new ss(t,n)}static parse(t){return new ss(t).getResult()}static get BROWSER_MAP(){return Hl}static get ENGINE_MAP(){return Hn}static get OS_MAP(){return Dt}static get PLATFORMS_MAP(){return vt}}const Up=Gp;var Xp=Object.prototype;function Yp(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Xp;return e===n}var Wl=Yp;function Zp(e,t){return function(n){return e(t(n))}}var Qp=Zp,Jp=Qp,eh=Jp(Object.keys,Object),th=eh,nh=Wl,rh=th,oh=Object.prototype,ih=oh.hasOwnProperty;function ah(e){if(!nh(e))return rh(e);var t=[];for(var n in Object(e))ih.call(e,n)&&n!="constructor"&&t.push(n);return t}var sh=ah,lh=typeof tn=="object"&&tn&&tn.Object===Object&&tn,ql=lh,ch=ql,uh=typeof self=="object"&&self&&self.Object===Object&&self,dh=ch||uh||Function("return this")(),Xn=dh,fh=Xn,mh=fh.Symbol,Kl=mh,ls=Kl,Gl=Object.prototype,gh=Gl.hasOwnProperty,ph=Gl.toString,Rr=ls?ls.toStringTag:void 0;function hh(e){var t=gh.call(e,Rr),n=e[Rr];try{e[Rr]=void 0;var r=!0}catch{}var i=ph.call(e);return r&&(t?e[Rr]=n:delete e[Rr]),i}var vh=hh,bh=Object.prototype,wh=bh.toString;function yh(e){return wh.call(e)}var Ch=yh,cs=Kl,xh=vh,Sh=Ch,$h="[object Null]",Ih="[object Undefined]",us=cs?cs.toStringTag:void 0;function Ph(e){return e==null?e===void 0?Ih:$h:us&&us in Object(e)?xh(e):Sh(e)}var Lo=Ph;function kh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ul=kh,Eh=Lo,Oh=Ul,_h="[object AsyncFunction]",Mh="[object Function]",Th="[object GeneratorFunction]",Bh="[object Proxy]";function Ah(e){if(!Oh(e))return!1;var t=Eh(e);return t==Mh||t==Th||t==_h||t==Bh}var Xl=Ah,Rh=Xn,jh=Rh["__core-js_shared__"],Nh=jh,Yo=Nh,ds=function(){var e=/[^.]+$/.exec(Yo&&Yo.keys&&Yo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Dh(e){return!!ds&&ds in e}var Lh=Dh,zh=Function.prototype,Fh=zh.toString;function Vh(e){if(e!=null){try{return Fh.call(e)}catch{}try{return e+""}catch{}}return""}var Yl=Vh,Hh=Xl,Wh=Lh,qh=Ul,Kh=Yl,Gh=/[\\^$.*+?()[\]{}|]/g,Uh=/^\[object .+?Constructor\]$/,Xh=Function.prototype,Yh=Object.prototype,Zh=Xh.toString,Qh=Yh.hasOwnProperty,Jh=RegExp("^"+Zh.call(Qh).replace(Gh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ev(e){if(!qh(e)||Wh(e))return!1;var t=Hh(e)?Jh:Uh;return t.test(Kh(e))}var tv=ev;function nv(e,t){return e==null?void 0:e[t]}var rv=nv,ov=tv,iv=rv;function av(e,t){var n=iv(e,t);return ov(n)?n:void 0}var Qr=av,sv=Qr,lv=Xn,cv=sv(lv,"DataView"),uv=cv,dv=Qr,fv=Xn,mv=dv(fv,"Map"),gv=mv,pv=Qr,hv=Xn,vv=pv(hv,"Promise"),bv=vv,wv=Qr,yv=Xn,Cv=wv(yv,"Set"),xv=Cv,Sv=Qr,$v=Xn,Iv=Sv($v,"WeakMap"),Pv=Iv,pi=uv,hi=gv,vi=bv,bi=xv,wi=Pv,Zl=Lo,Sr=Yl,fs="[object Map]",kv="[object Object]",ms="[object Promise]",gs="[object Set]",ps="[object WeakMap]",hs="[object DataView]",Ev=Sr(pi),Ov=Sr(hi),_v=Sr(vi),Mv=Sr(bi),Tv=Sr(wi),er=Zl;(pi&&er(new pi(new ArrayBuffer(1)))!=hs||hi&&er(new hi)!=fs||vi&&er(vi.resolve())!=ms||bi&&er(new bi)!=gs||wi&&er(new wi)!=ps)&&(er=function(e){var t=Zl(e),n=t==kv?e.constructor:void 0,r=n?Sr(n):"";if(r)switch(r){case Ev:return hs;case Ov:return fs;case _v:return ms;case Mv:return gs;case Tv:return ps}return t});var Bv=er;function Av(e){return e!=null&&typeof e=="object"}var Ni=Av,Rv=Lo,jv=Ni,Nv="[object Arguments]";function Dv(e){return jv(e)&&Rv(e)==Nv}var Lv=Dv,vs=Lv,zv=Ni,Ql=Object.prototype,Fv=Ql.hasOwnProperty,Vv=Ql.propertyIsEnumerable,Hv=vs(function(){return arguments}())?vs:function(e){return zv(e)&&Fv.call(e,"callee")&&!Vv.call(e,"callee")},Wv=Hv,qv=Array.isArray,Kv=qv,Gv=9007199254740991;function Uv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Gv}var Jl=Uv,Xv=Xl,Yv=Jl;function Zv(e){return e!=null&&Yv(e.length)&&!Xv(e)}var Qv=Zv,$o={exports:{}};function Jv(){return!1}var eb=Jv;$o.exports;(function(e,t){var n=Xn,r=eb,i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,c=s&&s.exports===i,m=c?n.Buffer:void 0,f=m?m.isBuffer:void 0,g=f||r;e.exports=g})($o,$o.exports);var tb=$o.exports,nb=Lo,rb=Jl,ob=Ni,ib="[object Arguments]",ab="[object Array]",sb="[object Boolean]",lb="[object Date]",cb="[object Error]",ub="[object Function]",db="[object Map]",fb="[object Number]",mb="[object Object]",gb="[object RegExp]",pb="[object Set]",hb="[object String]",vb="[object WeakMap]",bb="[object ArrayBuffer]",wb="[object DataView]",yb="[object Float32Array]",Cb="[object Float64Array]",xb="[object Int8Array]",Sb="[object Int16Array]",$b="[object Int32Array]",Ib="[object Uint8Array]",Pb="[object Uint8ClampedArray]",kb="[object Uint16Array]",Eb="[object Uint32Array]",Xe={};Xe[yb]=Xe[Cb]=Xe[xb]=Xe[Sb]=Xe[$b]=Xe[Ib]=Xe[Pb]=Xe[kb]=Xe[Eb]=!0;Xe[ib]=Xe[ab]=Xe[bb]=Xe[sb]=Xe[wb]=Xe[lb]=Xe[cb]=Xe[ub]=Xe[db]=Xe[fb]=Xe[mb]=Xe[gb]=Xe[pb]=Xe[hb]=Xe[vb]=!1;function Ob(e){return ob(e)&&rb(e.length)&&!!Xe[nb(e)]}var _b=Ob;function Mb(e){return function(t){return e(t)}}var Tb=Mb,Io={exports:{}};Io.exports;(function(e,t){var n=ql,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,c=s&&n.process,m=function(){try{var f=i&&i.require&&i.require("util").types;return f||c&&c.binding&&c.binding("util")}catch{}}();e.exports=m})(Io,Io.exports);var Bb=Io.exports,Ab=_b,Rb=Tb,bs=Bb,ws=bs&&bs.isTypedArray,jb=ws?Rb(ws):Ab,Nb=jb,Db=sh,Lb=Bv,zb=Wv,Fb=Kv,Vb=Qv,Hb=tb,Wb=Wl,qb=Nb,Kb="[object Map]",Gb="[object Set]",Ub=Object.prototype,Xb=Ub.hasOwnProperty;function Yb(e){if(e==null)return!0;if(Vb(e)&&(Fb(e)||typeof e=="string"||typeof e.splice=="function"||Hb(e)||qb(e)||zb(e)))return!e.length;var t=Lb(e);if(t==Kb||t==Gb)return!e.size;if(Wb(e))return!Db(e).length;for(var n in e)if(Xb.call(e,n))return!1;return!0}var Zb=Yb;const Qb=Xs(Zb);function ec(){const e=ot(it.language),t=ot(it.setLanguage);return{language:e,setLanguage:t,ti:n=>_(n,e)}}const _=(e,t=it.language(ot.getState())||Ea.en)=>e==null?"":typeof e=="string"?e:e[t]||e[Ea.en]||"?";function ry(e){const t=[],n=Object.keys(e[0]);t.push(n.join(","));for(const r of e){const i=n.map(s=>{const c=r[s];return`"${(c==null?void 0:c.toString().replace(/"/g,'\\"'))||""}"`});t.push(i.join(","))}return t.join(` -`)}function oy(e,t=_({en:"en-US",vi:"vi-VN"}),n={}){if(!e)return"";const r=e instanceof Date?e:new Date(parseInt(e));return new Date(r).toLocaleString(t,{hour:"numeric",minute:"numeric",hour12:!1,day:"2-digit",month:"2-digit",year:"numeric",...n})}function ys(e){return e<10?`0${e}`:e}function Jb(e=new Date,t="-"){const n=e instanceof Date?e:new Date(parseInt(e)),r=n.getFullYear(),i=n.getMonth()+1,s=n.getDate();return[r,ys(i),ys(s)].join(t)}function Di(e){return new Promise(t=>setTimeout(t,e))}function Cs(e=""){return ew(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9]/g,"")}function ew(e){var t="àáãảạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệđùúủũụưừứửữựòóỏõọôồốổỗộơờớởỡợìíỉĩịäëïîöüûñçýỳỹỵỷ",n="aaaaaaaaaaaaaaaaaeeeeeeeeeeeduuuuuuuuuuuoooooooooooooooooiiiiiaeiiouuncyyyyy";e=e.toLowerCase();for(var r=0,i=t.length;r=1024&&r0&&(s+=`${t}:`),n>0&&(n<10?s+=`0${n}:`:s+=`${n}:`),r<10?s+=`0${r}:`:s+=`${r}:`,i<10?s+=`0${i}`:s+=`${i}`,s}function tc(e,t){if(e===t)return!0;if(typeof e=="object"&&e!=null&&typeof t=="object"&&t!=null){if(Object.keys(e).length!=Object.keys(t).length)return!1;for(let n in e)if(Object.hasOwn(t,n)){if(!tc(e[n],t[n]))return!1}else return!1;return!0}else return!1}const Zo={};function tw(e,t){var s,c,m,f;if(!t)if(document.documentElement.lang)t=document.documentElement.lang;else if(navigator.language)t=navigator.language;else try{t=(f=(m=new URL((c=(s=Array.from(document.querySelectorAll("head > link[rel='search']")))==null?void 0:s.find(g=>{var p;return(p=g==null?void 0:g.getAttribute("href"))==null?void 0:p.includes("?locale=")}))==null?void 0:c.getAttribute("href")))==null?void 0:m.searchParams)==null?void 0:f.get("locale")}catch{console.log("Cannot find browser locale. Use en as default for number formatting."),t="en"}let n,r;switch(e){case"compactLong":n="compact",r="long";break;case"standard":n="standard",r="short";break;case"compactShort":default:n="compact",r="short"}let i=t+n+r;if(!Zo[i]){const g=Intl.NumberFormat(t,{notation:n,compactDisplay:r});Zo[i]=g}return Zo[i]}function cy(e,t,n){return tw(t,n).format(e)}function uy(e=[],t=[],n=r=>r.id||r){const r=[];for(const i of t){const s=n(i);e.findIndex(m=>n(m)===s)===-1&&r.push(i)}return r}function dy({url:e,options:t={},checkAbortFn:n,intervalMs:r=500}){return new Promise((i,s)=>{const c=new AbortController,m=c.signal;fetch(e,{...t,signal:m}).then(i).catch(s);let f=setInterval(()=>{n()&&(c.abort(),clearInterval(f),s())},r)})}function nc(e,t=!0){if(!e)return{};if(e.edges&&(!t||e.page_info))return e;for(let n in e)if(typeof e[n]=="object"&&e[n]!==null){let r=nc(e[n],t);if(!Qb(r))return r}return{}}function rc(e,t,n=!0){if(!e||typeof e!="object")return null;if(t in e)return e[t];const r=[];for(let i in e){const s=rc(e[i],t,n);if(s){if(n)return s;r.push(s)}}return n?null:r.flat()}function so(e,t){const n=t.split("."),r=[e];for(;n.length&&r.length;){const i=n.shift(),s=[];let c=!0;for(let m of r){const f=c?rc(m,i,!1):m[i];c=!1,f&&s.push(...Array.isArray(f)?f:[f])}r.length=0,r.push(...s)}return r}function fy(e){const n=Date.now()-e;return oc(n)}function oc(e){return e<60*1e3?`${Math.floor(e/1e3)}${_({vi:" giây",en:" sec"})}`:e<60*60*1e3?`${Math.floor(e/(60*1e3))}${_({vi:" phút",en:" min"})}`:e<24*60*60*1e3?`${Math.floor(e/(60*60*1e3))}${_({vi:" giờ",en:" hour"})}`:e<30*24*60*60*1e3?`${Math.floor(e/(24*60*60*1e3))}${_({vi:" ngày",en:" day"})}`:e<365*24*60*60*1e3?`${Math.floor(e/(30*24*60*60*1e3))}${_({vi:" tháng",en:" month"})}`:`${Math.floor(e/(365*24*60*60*1e3))}${_({vi:" năm",en:" year"})}`}function my(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function gy(e="",t=""){return Cs(t).includes(Cs(e))}function nw(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function py(e){return!e||!Array.isArray(e)?[]:e.slice().reverse()}function rw(){let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}function hy(e){return!/^[\saAàÀảẢãÃáÁạẠăĂằẰẳẲẵẴắẮặẶâÂầẦẩẨẫẪấẤậẬbBcCdDđĐeEèÈẻẺẽẼéÉẹẸêÊềỀểỂễỄếẾệỆfFgGhHiIìÌỉỈĩĨíÍịỊjJkKlLmMnNoOòÒỏỎõÕóÓọỌôÔồỒổỔỗỖốỐộỘơƠờỜởỞỡỠớỚợỢpPqQrRsStTuUùÙủỦũŨúÚụỤưƯừỪửỬữỮứỨựỰvVwWxXyYỳỲỷỶỹỸýÝỵỴzZ]*$/u.test(e.normalize("NFC"))}function ic(e){try{return navigator.clipboard.writeText(e),!0}catch(t){return console.log(t),!1}}function yi(e){const t=e.split("").map(i=>parseInt(i)),n=t.reduce((i,s)=>i+s,0),r=Math.max(...t);return btoa(n*r)+"_"+e}function ow(e){try{if(!e)return!1;const[t,n]=e.trim().split("_");return e===yi(n)?n:!1}catch{return!1}}async function vy(e){var n;const t=await aw(e,{method:"HEAD"});return parseInt((n=t.headers)==null?void 0:n["content-length"])}const iw=[["","ncncagnhhigemlgiflfgdhcdpipadmmm"],["Dev","bcdciehmofoknodeodijhfgcacgignjc"]],Vt={id:null,name:null,version:null};function Lt(e,t,n=Vt==null?void 0:Vt.id){return uw({action:"fb_allInOne_runFunc",fnPath:e,params:t},n)}function Ht(e,t){return Promise.race([Di(3e4),Lt("fetch",[e,t])])}function aw(e,t){return Lt("customFetch",[e,t])}function by(e){return Lt("utils.Storage.get",[e])}function wy(e,t){return Lt("utils.Storage.set",[e,t])}function yy(){return Lt("getSupportedAutoRunFeatures")}async function Cy(){try{return await Lt("chrome.permissions.query",[{permissions:["downloads"]}])}catch{return!1}}function xy(e){return Lt("chrome.downloads.download",[e])}function Sy(){return Lt("chrome.downloads.showDefaultFolder",[])}const Qo={redirect:{}};async function Li(e){if(Qo.redirect[e])return Qo.redirect[e];try{let t=e,n=!1;for(;!n;){let r=await Lt("customFetch",[e,{method:"HEAD"}]);if(r!=null&&r.redirected&&r.url&&r.url!==e)console.log("redirected:",e,"->",r.url),e=r.url;else return n=!0,Qo.redirect[t]=e,e}}catch(t){return console.log("ERROR:",t),e}}async function sw(){const e=await Lt("chrome.declarativeNetRequest.getDynamicRules");console.log("currentRules",e);let t=[...["*://*.fna.fbcdn.net/*","*://*.cdninstagram.com/*"].map(s=>({priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.instagram.com/"},{header:"origin",operation:"set",value:"https://www.instagram.com"},{header:"sec-fetch-mode",operation:"set",value:"no-cors"},{header:"sec-fetch-site",operation:"set",value:"cross-site"},{header:"cross-origin-resource-policy",operation:"set",value:"cross-origin"}],responseHeaders:[{header:"access-control-allow-origin",operation:"set",value:"*"},{header:"X-Frame-Options",operation:"remove"},{header:"Content-Security-Policy",operation:"remove"}]},condition:{urlFilter:s,resourceTypes:["image","xmlhttprequest","media"]}})),{priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.instagram.com/"},{header:"origin",operation:"set",value:"https://www.instagram.com"},{header:"sec-fetch-mode",operation:"set",value:"no-cors"},{header:"sec-fetch-site",operation:"set",value:"cross-site"},{header:"cross-origin-resource-policy",operation:"set",value:"cross-origin"}]},condition:{requestDomains:["extension://*"],urlFilter:"https://www.instagram.com/*",resourceTypes:["xmlhttprequest"]}},{priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.threads.net/"},{header:"origin",operation:"set",value:"https://www.threads.net"}]},condition:{urlFilter:"https://www.threads.net/*",resourceTypes:["xmlhttprequest"]}}].map(s=>{var m;const c=(m=e.find(f=>{const g={...s,id:f.id};return tc(g,f)}))==null?void 0:m.id;return c&&(s.id=c),s});const n=t.filter(s=>!s.id).length,r=await lw(n,e);let i=0;t=t.map(s=>(s.id||(s.id=r[i],i++),s)),console.log("rules",n,r,i,t);try{await Lt("chrome.declarativeNetRequest.updateDynamicRules",[{addRules:t,removeRuleIds:t.map(s=>s.id)},"callback"])}catch(s){console.log("update rules error",s)}return!0}async function lw(e=1,t=[]){t.length||(t=await Lt("chrome.declarativeNetRequest.getDynamicRules"));const n=new Set(t.map(s=>s.id)),r=[];let i=1;for(;r.length{var i;if(!t||!window||!((i=window==null?void 0:window.chrome)!=null&&i.runtime))return r(new Error("Cannot connect to extension"));try{window.chrome.runtime.sendMessage(t,e,function(s){s!=null&&s.error?r((s==null?void 0:s.error)||new Error("Extension return empty")):n(s)})}catch(s){return r(s)}})}function Pn(e,t={}){try{return JSON.parse(e)}catch(n){return console.log("Cannot parse JSON",n,e),t}}var zi=(e=>(e.EAAG="EAAG",e.EAAB="EAAB",e.EAADo1="EAADo1",e))(zi||{});const kt={uid:null,fb_dtsg:null,urlToId:{},access_token:{},extVersion:void 0};function Dr(e,t){kt[e]=t}async function $r(e={},t="",n=!0,r={},i={}){var f;let s="";const c=await qr();if(!c)return So.error({message:"Missing fb_dtsg token",description:"Please reload the page and try again",duration:0}),null;typeof e=="string"?s="&q="+encodeURIComponent(e)+"&fb_dtsg="+c:s=dw({...n?{dpr:1,__a:1,__aaid:0,__ccg:"GOOD",server_timestamps:!0,fb_dtsg:c}:{},...r,...e});const m=await Ht(t||"https://www.facebook.com/api/graphql/",{body:s,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",...i},credentials:"include"});try{const g=JSON.parse(m),p=(f=g.errors)==null?void 0:f.find(h=>h.severity==="CRITICAL");if(p){const{summary:h="",message:b="",description_raw:w,debug_info:S="",description:C}=p;if(h){console.log(g);let y;if(w!=null&&w.__html){const I=document.createElement("div");I.innerHTML=(w==null?void 0:w.__html)||w,y=I.innerText,I.remove()}So.error({message:"Facebook response Error",description:`${h}. ${S}. ${b}. ${y||C}`,duration:0})}}}catch{}return m}function dw(e={}){const t=[];for(const n in e){const r=encodeURIComponent(n),i=typeof e[n]=="string"?e[n]:JSON.stringify(e[n]),s=encodeURIComponent(i);t.push(r+"="+s)}return t.join("&")}async function fw(){try{if(!kt.extVersion){const e=await Lt("chrome.runtime.getManifest"),t=e==null?void 0:e.version;t&&(kt.extVersion=t)}return kt.extVersion||"unknown"}catch(e){return console.log(e),"unknown"}}async function he(e){const t=await Ir();if(t==="100006164142110"||t==="100004848287494"){console.log("track event",t,e);return}return await Ht(Ve.UsefulScript.statistic+"/count",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({script:"fb_aio_"+e,version:await fw(),uid:t})})}async function qr(){if(kt.fb_dtsg)return kt.fb_dtsg;for(let e of[async()=>(await Ht("https://www.facebook.com/policies_center/")).match(/DTSGInitData",\[\],\{"token":"(.*?)"/)[1],async()=>{var r;let t=await Ht("https://mbasic.facebook.com/photos/upload/");return(r=RegExp(/name="fb_dtsg" value="(.*?)"/).exec(t))==null?void 0:r[1]},async()=>{var r,i;const t=await Ht("https://m.facebook.com/home.php",{headers:{Accept:"text/html"}});return((r=RegExp(/"dtsg":{"token":"([^"]+)"/).exec(t))==null?void 0:r[1])||((i=RegExp(/"name":"fb_dtsg","value":"([^"]+)/).exec(t))==null?void 0:i[1])}])try{const t=await e();if(t)return kt.fb_dtsg=t,kt.fb_dtsg}catch(t){console.error(t)}return null}async function zo(e){var t,n,r;if(kt.access_token[e])return kt.access_token[e];if(e==="EAADo1"){const i=await qr(),s=new URLSearchParams({fb_dtsg:i||""}).toString(),m=(t=(await Ht("https://www.facebook.com/dialog/oauth/business/cancel/?app_id=256002347743983&version=v19.0&logger_id=&user_scopes[0]=email&user_scopes[1]=read_insights&user_scopes[2]=read_page_mailboxes&user_scopes[3]=pages_show_list&redirect_uri=fbconnect%3A%2F%2Fsuccess&response_types[0]=token&response_types[1]=code&display=page&action=finish&return_scopes=false&return_format[0]=access_token&return_format[1]=code&tp=unspecified&sdk=&selected_business_id=&set_token_expires_in_60_days=false",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s})).match(new RegExp("(?<=access_token=)(.*?)(?=\\&)")))==null?void 0:t[0];return kt.access_token[e]=m||null,m}if(e==="EAAG"){const i=await Ht("https://business.facebook.com/business_locations"),s=(n=RegExp(/(EAAG\w+)/).exec(i))==null?void 0:n[1];return kt.access_token[e]=s||null,s}if(e==="EAAB"){const i=await $r({app_id:"124024574287414",redirect_uri:"fbconnect://success",display:"page",from_post:1,return_format:"access_token",_CONFIRM:1,fb_dtsg:await qr()},"https://www.facebook.com/v1.0/dialog/oauth/confirm",!1),s=(r=i==null?void 0:i.match(new RegExp("(?<=access_token=)(.*?)(?=&)")))==null?void 0:r[0];return kt.access_token[e]=s||null,s}}async function Ir(){if(!kt.uid)try{for(let e of["i_user","c_user"]){const t=await Lt("chrome.cookies.get",[{url:"https://www.facebook.com",name:e}]);if(kt.uid=t==null?void 0:t.value,kt.uid)break}}catch{const t="fb_aio_tmp_uid";let n=localStorage.getItem(t);return n||(n=new Date().getTime().toString(),localStorage.setItem(t,n)),n}return kt.uid}function mw(e,t=500){const n=kt.access_token.EAAB||"6628568379%7Cc1e620fa708a1d5696fb991c1bde5662";return`https://graph.facebook.com/${e}/picture?height=${t}&access_token=${n}`}var ac=(e=>(e.User="user",e.Page="page",e.Group="group",e.IGUser="ig_user",e.TikTokUser="tiktok_user",e.ThreadsUser="threads_user",e))(ac||{});async function mo(e,t="DEFAULT"){var f;let n=await $r({fb_api_req_friendly_name:"CometHovercardQueryRendererQuery",variables:{actionBarRenderLocation:"WWW_COMET_HOVERCARD",context:t,entityID:e,includeTdaInfo:!1,scale:1},doc_id:"7257793420991802"});const r=Pn(n),i=r.data.node;if(!i)throw new Error("Wrong ID / Entity not found");const s=i.__typename.toLowerCase();if(!Object.values(ac).includes(s))throw new Error("Not supported type: "+s);const c=i.comet_hovercard_renderer[s];return{type:s==="page"?"page":s!=="user"?"group":(f=c.profile_plus_transition_path)!=null&&f.startsWith("PAGE")||c.profile_plus_transition_path==="ADDITIONAL_PROFILE_CREATION"?"page":"user",id:i.id||c.id,name:c.name,avatar:c.profile_picture.uri,avatarBig:mw(c.id),url:c.profile_url||c.url,raw:r}}async function $y(e){var r,i;const t=await Ht("https://graph.facebook.com/v12.0/"+ +e+"?fields="+["gender","email","birthday","mobile_phone","events.limit(100){start_time,type,created_time,end_time,name,place}","about","quotes","tagged"].join(",")+"&access_token="+await zo("EAAB")),n=Pn(t);return console.log(n),(r=n.hometown)!=null&&r.id&&(n.hometown=await xs(n.hometown.id)),(i=n.location)!=null&&i.id&&(n.location=await xs(n.location.id)),console.log(n),n}async function xs(e){const t=await Ht("https://graph.facebook.com/v12.0/"+e+"?fields=location,name&access_token="+await zo("EAAB")),n=Pn(t);return console.log(n),n}async function Ci(e){var r,i,s,c,m,f,g,p,h,b,w,S,C,y,I,O,E,k,R,T,j,A,D,W,q,N,M,z,Y;const t=await $r({fb_api_req_friendly_name:"ProfileCometHeaderQuery",doc_id:"4159355184147969",variables:{userID:e,shouldDeferProfilePic:!1,useVNextHeader:!1,scale:1.5}}),n=Pn(((r=t==null?void 0:t.split(` -`))==null?void 0:r[0])||"{}");return{uid:e,gender:(s=(i=n==null?void 0:n.data)==null?void 0:i.user)==null?void 0:s.gender,name:(m=(c=n==null?void 0:n.data)==null?void 0:c.user)==null?void 0:m.name,alternateName:(g=(f=n==null?void 0:n.data)==null?void 0:f.user)==null?void 0:g.alternate_name,avatar:{id:(b=(h=(p=n==null?void 0:n.data)==null?void 0:p.user)==null?void 0:h.profile_photo)==null?void 0:b.id,link:(C=(S=(w=n==null?void 0:n.data)==null?void 0:w.user)==null?void 0:S.profile_photo)==null?void 0:C.url,uri:(O=(I=(y=n==null?void 0:n.data)==null?void 0:y.user)==null?void 0:I.profilePicLarge)==null?void 0:O.uri},cover:{id:(T=(R=(k=(E=n==null?void 0:n.data)==null?void 0:E.user)==null?void 0:k.cover_photo)==null?void 0:R.photo)==null?void 0:T.id,link:(W=(D=(A=(j=n==null?void 0:n.data)==null?void 0:j.user)==null?void 0:A.cover_photo)==null?void 0:D.photo)==null?void 0:W.url,uri:(Y=(z=(M=(N=(q=n==null?void 0:n.data)==null?void 0:q.user)==null?void 0:N.cover_photo)==null?void 0:M.photo)==null?void 0:z.image)==null?void 0:Y.uri},raw:n}}function gw(e){return`https://fb.com/${e}`}function Iy(e=""){return!e||e.includes("453178253_471506465671661_2781666950760530985_n")}const pn={};function Py(e,t){const[n,r]=l.useState(()=>(pn[e]===void 0&&(pn[e]=t),pn[e]));return l.useEffect(()=>{pn[e]=n},[n]),l.useEffect(()=>{r(pn[e]!==void 0?pn[e]:t)},[e]),[n,r]}function ky(e,t){return pn[e]!==void 0?pn[e]:t}function Ey(e,t){const n=pn[e];return pn[e]=t,{oldValue:n,newValue:t}}function pw(){console.log(pn)}function hw(){const{notification:e,message:t}=Cd.useApp(),n=ot(it.clearNotifications),r=ot(it.addNotification),i=ot(it.notifications);return{message:t,notification:{...e,open:s=>{r({id:nw(),time:Date.now(),type:s.type,message:Po(s.message),description:Po(s.description)}),e.open(s)}},notifications:i,clearNotifications:()=>{he("Notifications:clear"),n()}}}function Po(e){if(!e)return"";if(typeof e=="string")return e;const t=e.props&&e.props.children;return t instanceof Array?t.map(Po).join(` + */class Gp{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new ss(t,n)}static parse(t){return new ss(t).getResult()}static get BROWSER_MAP(){return Hl}static get ENGINE_MAP(){return Hn}static get OS_MAP(){return Dt}static get PLATFORMS_MAP(){return vt}}const Up=Gp;var Xp=Object.prototype;function Yp(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Xp;return e===n}var Wl=Yp;function Zp(e,t){return function(n){return e(t(n))}}var Qp=Zp,Jp=Qp,eh=Jp(Object.keys,Object),th=eh,nh=Wl,rh=th,oh=Object.prototype,ih=oh.hasOwnProperty;function ah(e){if(!nh(e))return rh(e);var t=[];for(var n in Object(e))ih.call(e,n)&&n!="constructor"&&t.push(n);return t}var sh=ah,lh=typeof tn=="object"&&tn&&tn.Object===Object&&tn,ql=lh,ch=ql,uh=typeof self=="object"&&self&&self.Object===Object&&self,dh=ch||uh||Function("return this")(),Xn=dh,fh=Xn,mh=fh.Symbol,Kl=mh,ls=Kl,Gl=Object.prototype,gh=Gl.hasOwnProperty,ph=Gl.toString,Rr=ls?ls.toStringTag:void 0;function hh(e){var t=gh.call(e,Rr),n=e[Rr];try{e[Rr]=void 0;var r=!0}catch{}var i=ph.call(e);return r&&(t?e[Rr]=n:delete e[Rr]),i}var vh=hh,bh=Object.prototype,wh=bh.toString;function yh(e){return wh.call(e)}var Ch=yh,cs=Kl,xh=vh,Sh=Ch,$h="[object Null]",Ih="[object Undefined]",us=cs?cs.toStringTag:void 0;function Ph(e){return e==null?e===void 0?Ih:$h:us&&us in Object(e)?xh(e):Sh(e)}var Lo=Ph;function kh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ul=kh,Eh=Lo,Oh=Ul,_h="[object AsyncFunction]",Mh="[object Function]",Th="[object GeneratorFunction]",Bh="[object Proxy]";function Ah(e){if(!Oh(e))return!1;var t=Eh(e);return t==Mh||t==Th||t==_h||t==Bh}var Xl=Ah,Rh=Xn,jh=Rh["__core-js_shared__"],Nh=jh,Yo=Nh,ds=function(){var e=/[^.]+$/.exec(Yo&&Yo.keys&&Yo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Dh(e){return!!ds&&ds in e}var Lh=Dh,zh=Function.prototype,Fh=zh.toString;function Vh(e){if(e!=null){try{return Fh.call(e)}catch{}try{return e+""}catch{}}return""}var Yl=Vh,Hh=Xl,Wh=Lh,qh=Ul,Kh=Yl,Gh=/[\\^$.*+?()[\]{}|]/g,Uh=/^\[object .+?Constructor\]$/,Xh=Function.prototype,Yh=Object.prototype,Zh=Xh.toString,Qh=Yh.hasOwnProperty,Jh=RegExp("^"+Zh.call(Qh).replace(Gh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ev(e){if(!qh(e)||Wh(e))return!1;var t=Hh(e)?Jh:Uh;return t.test(Kh(e))}var tv=ev;function nv(e,t){return e==null?void 0:e[t]}var rv=nv,ov=tv,iv=rv;function av(e,t){var n=iv(e,t);return ov(n)?n:void 0}var Qr=av,sv=Qr,lv=Xn,cv=sv(lv,"DataView"),uv=cv,dv=Qr,fv=Xn,mv=dv(fv,"Map"),gv=mv,pv=Qr,hv=Xn,vv=pv(hv,"Promise"),bv=vv,wv=Qr,yv=Xn,Cv=wv(yv,"Set"),xv=Cv,Sv=Qr,$v=Xn,Iv=Sv($v,"WeakMap"),Pv=Iv,pi=uv,hi=gv,vi=bv,bi=xv,wi=Pv,Zl=Lo,Sr=Yl,fs="[object Map]",kv="[object Object]",ms="[object Promise]",gs="[object Set]",ps="[object WeakMap]",hs="[object DataView]",Ev=Sr(pi),Ov=Sr(hi),_v=Sr(vi),Mv=Sr(bi),Tv=Sr(wi),er=Zl;(pi&&er(new pi(new ArrayBuffer(1)))!=hs||hi&&er(new hi)!=fs||vi&&er(vi.resolve())!=ms||bi&&er(new bi)!=gs||wi&&er(new wi)!=ps)&&(er=function(e){var t=Zl(e),n=t==kv?e.constructor:void 0,r=n?Sr(n):"";if(r)switch(r){case Ev:return hs;case Ov:return fs;case _v:return ms;case Mv:return gs;case Tv:return ps}return t});var Bv=er;function Av(e){return e!=null&&typeof e=="object"}var Ni=Av,Rv=Lo,jv=Ni,Nv="[object Arguments]";function Dv(e){return jv(e)&&Rv(e)==Nv}var Lv=Dv,vs=Lv,zv=Ni,Ql=Object.prototype,Fv=Ql.hasOwnProperty,Vv=Ql.propertyIsEnumerable,Hv=vs(function(){return arguments}())?vs:function(e){return zv(e)&&Fv.call(e,"callee")&&!Vv.call(e,"callee")},Wv=Hv,qv=Array.isArray,Kv=qv,Gv=9007199254740991;function Uv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Gv}var Jl=Uv,Xv=Xl,Yv=Jl;function Zv(e){return e!=null&&Yv(e.length)&&!Xv(e)}var Qv=Zv,$o={exports:{}};function Jv(){return!1}var eb=Jv;$o.exports;(function(e,t){var n=Xn,r=eb,i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,c=s&&s.exports===i,m=c?n.Buffer:void 0,f=m?m.isBuffer:void 0,g=f||r;e.exports=g})($o,$o.exports);var tb=$o.exports,nb=Lo,rb=Jl,ob=Ni,ib="[object Arguments]",ab="[object Array]",sb="[object Boolean]",lb="[object Date]",cb="[object Error]",ub="[object Function]",db="[object Map]",fb="[object Number]",mb="[object Object]",gb="[object RegExp]",pb="[object Set]",hb="[object String]",vb="[object WeakMap]",bb="[object ArrayBuffer]",wb="[object DataView]",yb="[object Float32Array]",Cb="[object Float64Array]",xb="[object Int8Array]",Sb="[object Int16Array]",$b="[object Int32Array]",Ib="[object Uint8Array]",Pb="[object Uint8ClampedArray]",kb="[object Uint16Array]",Eb="[object Uint32Array]",Xe={};Xe[yb]=Xe[Cb]=Xe[xb]=Xe[Sb]=Xe[$b]=Xe[Ib]=Xe[Pb]=Xe[kb]=Xe[Eb]=!0;Xe[ib]=Xe[ab]=Xe[bb]=Xe[sb]=Xe[wb]=Xe[lb]=Xe[cb]=Xe[ub]=Xe[db]=Xe[fb]=Xe[mb]=Xe[gb]=Xe[pb]=Xe[hb]=Xe[vb]=!1;function Ob(e){return ob(e)&&rb(e.length)&&!!Xe[nb(e)]}var _b=Ob;function Mb(e){return function(t){return e(t)}}var Tb=Mb,Io={exports:{}};Io.exports;(function(e,t){var n=ql,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,c=s&&n.process,m=function(){try{var f=i&&i.require&&i.require("util").types;return f||c&&c.binding&&c.binding("util")}catch{}}();e.exports=m})(Io,Io.exports);var Bb=Io.exports,Ab=_b,Rb=Tb,bs=Bb,ws=bs&&bs.isTypedArray,jb=ws?Rb(ws):Ab,Nb=jb,Db=sh,Lb=Bv,zb=Wv,Fb=Kv,Vb=Qv,Hb=tb,Wb=Wl,qb=Nb,Kb="[object Map]",Gb="[object Set]",Ub=Object.prototype,Xb=Ub.hasOwnProperty;function Yb(e){if(e==null)return!0;if(Vb(e)&&(Fb(e)||typeof e=="string"||typeof e.splice=="function"||Hb(e)||qb(e)||zb(e)))return!e.length;var t=Lb(e);if(t==Kb||t==Gb)return!e.size;if(Wb(e))return!Db(e).length;for(var n in e)if(Xb.call(e,n))return!1;return!0}var Zb=Yb;const Qb=Xs(Zb);function ec(){const e=ot(it.language),t=ot(it.setLanguage);return{language:e,setLanguage:t,ti:n=>_(n,e)}}const _=(e,t=it.language(ot.getState())||Ea.en)=>e==null?"":typeof e=="string"?e:e[t]||e[Ea.en]||"?";function oy(e){const t=[],n=Object.keys(e[0]);t.push(n.join(","));for(const r of e){const i=n.map(s=>{const c=r[s];return`"${(c==null?void 0:c.toString().replace(/"/g,'\\"'))||""}"`});t.push(i.join(","))}return t.join(` +`)}function iy(e,t=_({en:"en-US",vi:"vi-VN"}),n={}){if(!e)return"";const r=e instanceof Date?e:new Date(parseInt(e));return new Date(r).toLocaleString(t,{hour:"numeric",minute:"numeric",hour12:!1,day:"2-digit",month:"2-digit",year:"numeric",...n})}function ys(e){return e<10?`0${e}`:e}function Jb(e=new Date,t="-"){const n=e instanceof Date?e:new Date(parseInt(e)),r=n.getFullYear(),i=n.getMonth()+1,s=n.getDate();return[r,ys(i),ys(s)].join(t)}function Di(e){return new Promise(t=>setTimeout(t,e))}function Cs(e=""){return ew(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9]/g,"")}function ew(e){var t="àáãảạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệđùúủũụưừứửữựòóỏõọôồốổỗộơờớởỡợìíỉĩịäëïîöüûñçýỳỹỵỷ",n="aaaaaaaaaaaaaaaaaeeeeeeeeeeeduuuuuuuuuuuoooooooooooooooooiiiiiaeiiouuncyyyyy";e=e.toLowerCase();for(var r=0,i=t.length;r=1024&&r0&&(s+=`${t}:`),n>0&&(n<10?s+=`0${n}:`:s+=`${n}:`),r<10?s+=`0${r}:`:s+=`${r}:`,i<10?s+=`0${i}`:s+=`${i}`,s}function tc(e,t){if(e===t)return!0;if(typeof e=="object"&&e!=null&&typeof t=="object"&&t!=null){if(Object.keys(e).length!=Object.keys(t).length)return!1;for(let n in e)if(Object.hasOwn(t,n)){if(!tc(e[n],t[n]))return!1}else return!1;return!0}else return!1}const Zo={};function tw(e,t){var s,c,m,f;if(!t)if(document.documentElement.lang)t=document.documentElement.lang;else if(navigator.language)t=navigator.language;else try{t=(f=(m=new URL((c=(s=Array.from(document.querySelectorAll("head > link[rel='search']")))==null?void 0:s.find(g=>{var p;return(p=g==null?void 0:g.getAttribute("href"))==null?void 0:p.includes("?locale=")}))==null?void 0:c.getAttribute("href")))==null?void 0:m.searchParams)==null?void 0:f.get("locale")}catch{console.log("Cannot find browser locale. Use en as default for number formatting."),t="en"}let n,r;switch(e){case"compactLong":n="compact",r="long";break;case"standard":n="standard",r="short";break;case"compactShort":default:n="compact",r="short"}let i=t+n+r;if(!Zo[i]){const g=Intl.NumberFormat(t,{notation:n,compactDisplay:r});Zo[i]=g}return Zo[i]}function uy(e,t,n){return tw(t,n).format(e)}function dy(e=[],t=[],n=r=>r.id||r){const r=[];for(const i of t){const s=n(i);e.findIndex(m=>n(m)===s)===-1&&r.push(i)}return r}function fy({url:e,options:t={},checkAbortFn:n,intervalMs:r=500}){return new Promise((i,s)=>{const c=new AbortController,m=c.signal;fetch(e,{...t,signal:m}).then(i).catch(s);let f=setInterval(()=>{n()&&(c.abort(),clearInterval(f),s())},r)})}function nc(e,t=!0){if(!e)return{};if(e.edges&&(!t||e.page_info))return e;for(let n in e)if(typeof e[n]=="object"&&e[n]!==null){let r=nc(e[n],t);if(!Qb(r))return r}return{}}function rc(e,t,n=!0){if(!e||typeof e!="object")return null;if(t in e)return e[t];const r=[];for(let i in e){const s=rc(e[i],t,n);if(s){if(n)return s;r.push(s)}}return n?null:r.flat()}function so(e,t){const n=t.split("."),r=[e];for(;n.length&&r.length;){const i=n.shift(),s=[];let c=!0;for(let m of r){const f=c?rc(m,i,!1):m[i];c=!1,f&&s.push(...Array.isArray(f)?f:[f])}r.length=0,r.push(...s)}return r}function my(e){const n=Date.now()-e;return oc(n)}function oc(e){return e<60*1e3?`${Math.floor(e/1e3)}${_({vi:" giây",en:" sec"})}`:e<60*60*1e3?`${Math.floor(e/(60*1e3))}${_({vi:" phút",en:" min"})}`:e<24*60*60*1e3?`${Math.floor(e/(60*60*1e3))}${_({vi:" giờ",en:" hour"})}`:e<30*24*60*60*1e3?`${Math.floor(e/(24*60*60*1e3))}${_({vi:" ngày",en:" day"})}`:e<365*24*60*60*1e3?`${Math.floor(e/(30*24*60*60*1e3))}${_({vi:" tháng",en:" month"})}`:`${Math.floor(e/(365*24*60*60*1e3))}${_({vi:" năm",en:" year"})}`}function gy(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function py(e="",t=""){return Cs(t).includes(Cs(e))}function nw(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function hy(e){return!e||!Array.isArray(e)?[]:e.slice().reverse()}function rw(){let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}function vy(e){return!/^[\saAàÀảẢãÃáÁạẠăĂằẰẳẲẵẴắẮặẶâÂầẦẩẨẫẪấẤậẬbBcCdDđĐeEèÈẻẺẽẼéÉẹẸêÊềỀểỂễỄếẾệỆfFgGhHiIìÌỉỈĩĨíÍịỊjJkKlLmMnNoOòÒỏỎõÕóÓọỌôÔồỒổỔỗỖốỐộỘơƠờỜởỞỡỠớỚợỢpPqQrRsStTuUùÙủỦũŨúÚụỤưƯừỪửỬữỮứỨựỰvVwWxXyYỳỲỷỶỹỸýÝỵỴzZ]*$/u.test(e.normalize("NFC"))}function ic(e){try{return navigator.clipboard.writeText(e),!0}catch(t){return console.log(t),!1}}function yi(e){const t=e.split("").map(i=>parseInt(i)),n=t.reduce((i,s)=>i+s,0),r=Math.max(...t);return btoa(n*r)+"_"+e}function ow(e){try{if(!e)return!1;const[t,n]=e.trim().split("_");return e===yi(n)?n:!1}catch{return!1}}async function by(e){var n;const t=await aw(e,{method:"HEAD"});return parseInt((n=t.headers)==null?void 0:n["content-length"])}const iw=[["","ncncagnhhigemlgiflfgdhcdpipadmmm"],["Dev","bcdciehmofoknodeodijhfgcacgignjc"]],Vt={id:null,name:null,version:null};function Lt(e,t,n=Vt==null?void 0:Vt.id){return uw({action:"fb_allInOne_runFunc",fnPath:e,params:t},n)}function Ht(e,t){return Promise.race([Di(3e4),Lt("fetch",[e,t])])}function aw(e,t){return Lt("customFetch",[e,t])}function wy(e){return Lt("utils.Storage.get",[e])}function yy(e,t){return Lt("utils.Storage.set",[e,t])}function Cy(){return Lt("getSupportedAutoRunFeatures")}async function xy(){try{return await Lt("chrome.permissions.query",[{permissions:["downloads"]}])}catch{return!1}}function Sy(e){return Lt("chrome.downloads.download",[e])}function $y(){return Lt("chrome.downloads.showDefaultFolder",[])}const Qo={redirect:{}};async function Li(e){if(Qo.redirect[e])return Qo.redirect[e];try{let t=e,n=!1;for(;!n;){let r=await Lt("customFetch",[e,{method:"HEAD"}]);if(r!=null&&r.redirected&&r.url&&r.url!==e)console.log("redirected:",e,"->",r.url),e=r.url;else return n=!0,Qo.redirect[t]=e,e}}catch(t){return console.log("ERROR:",t),e}}async function sw(){const e=await Lt("chrome.declarativeNetRequest.getDynamicRules");console.log("currentRules",e);let t=[...["*://*.fna.fbcdn.net/*","*://*.cdninstagram.com/*"].map(s=>({priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.instagram.com/"},{header:"origin",operation:"set",value:"https://www.instagram.com"},{header:"sec-fetch-mode",operation:"set",value:"no-cors"},{header:"sec-fetch-site",operation:"set",value:"cross-site"},{header:"cross-origin-resource-policy",operation:"set",value:"cross-origin"}],responseHeaders:[{header:"access-control-allow-origin",operation:"set",value:"*"},{header:"X-Frame-Options",operation:"remove"},{header:"Content-Security-Policy",operation:"remove"}]},condition:{urlFilter:s,resourceTypes:["image","xmlhttprequest","media"]}})),{priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.instagram.com/"},{header:"origin",operation:"set",value:"https://www.instagram.com"},{header:"sec-fetch-mode",operation:"set",value:"no-cors"},{header:"sec-fetch-site",operation:"set",value:"cross-site"},{header:"cross-origin-resource-policy",operation:"set",value:"cross-origin"}]},condition:{requestDomains:["extension://*"],urlFilter:"https://www.instagram.com/*",resourceTypes:["xmlhttprequest"]}},{priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.threads.net/"},{header:"origin",operation:"set",value:"https://www.threads.net"}]},condition:{urlFilter:"https://www.threads.net/*",resourceTypes:["xmlhttprequest"]}}].map(s=>{var m;const c=(m=e.find(f=>{const g={...s,id:f.id};return tc(g,f)}))==null?void 0:m.id;return c&&(s.id=c),s});const n=t.filter(s=>!s.id).length,r=await lw(n,e);let i=0;t=t.map(s=>(s.id||(s.id=r[i],i++),s)),console.log("rules",n,r,i,t);try{await Lt("chrome.declarativeNetRequest.updateDynamicRules",[{addRules:t,removeRuleIds:t.map(s=>s.id)},"callback"])}catch(s){console.log("update rules error",s)}return!0}async function lw(e=1,t=[]){t.length||(t=await Lt("chrome.declarativeNetRequest.getDynamicRules"));const n=new Set(t.map(s=>s.id)),r=[];let i=1;for(;r.length{var i;if(!t||!window||!((i=window==null?void 0:window.chrome)!=null&&i.runtime))return r(new Error("Cannot connect to extension"));try{window.chrome.runtime.sendMessage(t,e,function(s){s!=null&&s.error?r((s==null?void 0:s.error)||new Error("Extension return empty")):n(s)})}catch(s){return r(s)}})}function Pn(e,t={}){try{return JSON.parse(e)}catch(n){return console.log("Cannot parse JSON",n,e),t}}var zi=(e=>(e.EAAG="EAAG",e.EAAB="EAAB",e.EAADo1="EAADo1",e))(zi||{});const kt={uid:null,fb_dtsg:null,urlToId:{},access_token:{},extVersion:void 0};function Dr(e,t){kt[e]=t}async function $r(e={},t="",n=!0,r={},i={}){var f;let s="";const c=await qr();if(!c)return So.error({message:"Missing fb_dtsg token",description:"Please reload the page and try again",duration:0}),null;typeof e=="string"?s="&q="+encodeURIComponent(e)+"&fb_dtsg="+c:s=dw({...n?{dpr:1,__a:1,__aaid:0,__ccg:"GOOD",server_timestamps:!0,fb_dtsg:c}:{},...r,...e});const m=await Ht(t||"https://www.facebook.com/api/graphql/",{body:s,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",...i},credentials:"include"});try{const g=JSON.parse(m),p=(f=g.errors)==null?void 0:f.find(h=>h.severity==="CRITICAL");if(p){const{summary:h="",message:b="",description_raw:w,debug_info:S="",description:C}=p;if(h){console.log(g);let y;if(w!=null&&w.__html){const I=document.createElement("div");I.innerHTML=(w==null?void 0:w.__html)||w,y=I.innerText,I.remove()}So.error({message:"Facebook response Error",description:`${h}. ${S}. ${b}. ${y||C}`,duration:0})}}}catch{}return m}function dw(e={}){const t=[];for(const n in e){const r=encodeURIComponent(n),i=typeof e[n]=="string"?e[n]:JSON.stringify(e[n]),s=encodeURIComponent(i);t.push(r+"="+s)}return t.join("&")}async function fw(){try{if(!kt.extVersion){const e=await Lt("chrome.runtime.getManifest"),t=e==null?void 0:e.version;t&&(kt.extVersion=t)}return kt.extVersion||"unknown"}catch(e){return console.log(e),"unknown"}}async function he(e){const t=await Ir();if(t==="100006164142110"||t==="100004848287494"){console.log("track event",t,e);return}return await Ht(Ve.UsefulScript.statistic+"/count",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({script:"fb_aio_"+e,version:await fw(),uid:t})})}async function qr(){if(kt.fb_dtsg)return kt.fb_dtsg;for(let e of[async()=>(await Ht("https://www.facebook.com/policies_center/")).match(/DTSGInitData",\[\],\{"token":"(.*?)"/)[1],async()=>{var r;let t=await Ht("https://mbasic.facebook.com/photos/upload/");return(r=RegExp(/name="fb_dtsg" value="(.*?)"/).exec(t))==null?void 0:r[1]},async()=>{var r,i;const t=await Ht("https://m.facebook.com/home.php",{headers:{Accept:"text/html"}});return((r=RegExp(/"dtsg":{"token":"([^"]+)"/).exec(t))==null?void 0:r[1])||((i=RegExp(/"name":"fb_dtsg","value":"([^"]+)/).exec(t))==null?void 0:i[1])}])try{const t=await e();if(t)return kt.fb_dtsg=t,kt.fb_dtsg}catch(t){console.error(t)}return null}async function zo(e){var t,n,r;if(kt.access_token[e])return kt.access_token[e];if(e==="EAADo1"){const i=await qr(),s=new URLSearchParams({fb_dtsg:i||""}).toString(),m=(t=(await Ht("https://www.facebook.com/dialog/oauth/business/cancel/?app_id=256002347743983&version=v19.0&logger_id=&user_scopes[0]=email&user_scopes[1]=read_insights&user_scopes[2]=read_page_mailboxes&user_scopes[3]=pages_show_list&redirect_uri=fbconnect%3A%2F%2Fsuccess&response_types[0]=token&response_types[1]=code&display=page&action=finish&return_scopes=false&return_format[0]=access_token&return_format[1]=code&tp=unspecified&sdk=&selected_business_id=&set_token_expires_in_60_days=false",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s})).match(new RegExp("(?<=access_token=)(.*?)(?=\\&)")))==null?void 0:t[0];return kt.access_token[e]=m||null,m}if(e==="EAAG"){const i=await Ht("https://business.facebook.com/business_locations"),s=(n=RegExp(/(EAAG\w+)/).exec(i))==null?void 0:n[1];return kt.access_token[e]=s||null,s}if(e==="EAAB"){const i=await $r({app_id:"124024574287414",redirect_uri:"fbconnect://success",display:"page",from_post:1,return_format:"access_token",_CONFIRM:1,fb_dtsg:await qr()},"https://www.facebook.com/v1.0/dialog/oauth/confirm",!1),s=(r=i==null?void 0:i.match(new RegExp("(?<=access_token=)(.*?)(?=&)")))==null?void 0:r[0];return kt.access_token[e]=s||null,s}}async function Ir(){if(!kt.uid)try{for(let e of["i_user","c_user"]){const t=await Lt("chrome.cookies.get",[{url:"https://www.facebook.com",name:e}]);if(kt.uid=t==null?void 0:t.value,kt.uid)break}}catch{const t="fb_aio_tmp_uid";let n=localStorage.getItem(t);return n||(n=new Date().getTime().toString(),localStorage.setItem(t,n)),n}return kt.uid}function mw(e,t=500){const n=kt.access_token.EAAB||"6628568379%7Cc1e620fa708a1d5696fb991c1bde5662";return`https://graph.facebook.com/${e}/picture?height=${t}&access_token=${n}`}var ac=(e=>(e.User="user",e.Page="page",e.Group="group",e.IGUser="ig_user",e.TikTokUser="tiktok_user",e.ThreadsUser="threads_user",e))(ac||{});async function mo(e,t="DEFAULT"){var f;let n=await $r({fb_api_req_friendly_name:"CometHovercardQueryRendererQuery",variables:{actionBarRenderLocation:"WWW_COMET_HOVERCARD",context:t,entityID:e,includeTdaInfo:!1,scale:1},doc_id:"7257793420991802"});const r=Pn(n),i=r.data.node;if(!i)throw new Error("Wrong ID / Entity not found");const s=i.__typename.toLowerCase();if(!Object.values(ac).includes(s))throw new Error("Not supported type: "+s);const c=i.comet_hovercard_renderer[s];return{type:s==="page"?"page":s!=="user"?"group":(f=c.profile_plus_transition_path)!=null&&f.startsWith("PAGE")||c.profile_plus_transition_path==="ADDITIONAL_PROFILE_CREATION"?"page":"user",id:i.id||c.id,name:c.name,avatar:c.profile_picture.uri,avatarBig:mw(c.id),url:c.profile_url||c.url,raw:r}}async function Iy(e){var r,i;const t=await Ht("https://graph.facebook.com/v12.0/"+ +e+"?fields="+["gender","email","birthday","mobile_phone","events.limit(100){start_time,type,created_time,end_time,name,place}","about","quotes","tagged"].join(",")+"&access_token="+await zo("EAAB")),n=Pn(t);return console.log(n),(r=n.hometown)!=null&&r.id&&(n.hometown=await xs(n.hometown.id)),(i=n.location)!=null&&i.id&&(n.location=await xs(n.location.id)),console.log(n),n}async function xs(e){const t=await Ht("https://graph.facebook.com/v12.0/"+e+"?fields=location,name&access_token="+await zo("EAAB")),n=Pn(t);return console.log(n),n}async function Ci(e){var r,i,s,c,m,f,g,p,h,b,w,S,C,y,I,O,E,k,R,T,j,A,D,W,q,N,M,z,Y;const t=await $r({fb_api_req_friendly_name:"ProfileCometHeaderQuery",doc_id:"4159355184147969",variables:{userID:e,shouldDeferProfilePic:!1,useVNextHeader:!1,scale:1.5}}),n=Pn(((r=t==null?void 0:t.split(` +`))==null?void 0:r[0])||"{}");return{uid:e,gender:(s=(i=n==null?void 0:n.data)==null?void 0:i.user)==null?void 0:s.gender,name:(m=(c=n==null?void 0:n.data)==null?void 0:c.user)==null?void 0:m.name,alternateName:(g=(f=n==null?void 0:n.data)==null?void 0:f.user)==null?void 0:g.alternate_name,avatar:{id:(b=(h=(p=n==null?void 0:n.data)==null?void 0:p.user)==null?void 0:h.profile_photo)==null?void 0:b.id,link:(C=(S=(w=n==null?void 0:n.data)==null?void 0:w.user)==null?void 0:S.profile_photo)==null?void 0:C.url,uri:(O=(I=(y=n==null?void 0:n.data)==null?void 0:y.user)==null?void 0:I.profilePicLarge)==null?void 0:O.uri},cover:{id:(T=(R=(k=(E=n==null?void 0:n.data)==null?void 0:E.user)==null?void 0:k.cover_photo)==null?void 0:R.photo)==null?void 0:T.id,link:(W=(D=(A=(j=n==null?void 0:n.data)==null?void 0:j.user)==null?void 0:A.cover_photo)==null?void 0:D.photo)==null?void 0:W.url,uri:(Y=(z=(M=(N=(q=n==null?void 0:n.data)==null?void 0:q.user)==null?void 0:N.cover_photo)==null?void 0:M.photo)==null?void 0:z.image)==null?void 0:Y.uri},raw:n}}function gw(e){return`https://fb.com/${e}`}function Py(e=""){return!e||e.includes("453178253_471506465671661_2781666950760530985_n")}const pn={};function ky(e,t){const[n,r]=l.useState(()=>(pn[e]===void 0&&(pn[e]=t),pn[e]));return l.useEffect(()=>{pn[e]=n},[n]),l.useEffect(()=>{r(pn[e]!==void 0?pn[e]:t)},[e]),[n,r]}function Ey(e,t){return pn[e]!==void 0?pn[e]:t}function Oy(e,t){const n=pn[e];return pn[e]=t,{oldValue:n,newValue:t}}function pw(){console.log(pn)}function hw(){const{notification:e,message:t}=Cd.useApp(),n=ot(it.clearNotifications),r=ot(it.addNotification),i=ot(it.notifications);return{message:t,notification:{...e,open:s=>{r({id:nw(),time:Date.now(),type:s.type,message:Po(s.message),description:Po(s.description)}),e.open(s)}},notifications:i,clearNotifications:()=>{he("Notifications:clear"),n()}}}function Po(e){if(!e)return"";if(typeof e=="string")return e;const t=e.props&&e.props.children;return t instanceof Array?t.map(Po).join(` `):Po(t)}async function Ss(e="",t=""){const n=await $r({fb_api_req_friendly_name:"CometSinglePostContentQuery",variables:{feedbackSource:2,feedLocation:"PERMALINK",focusCommentID:null,privacySelectorRenderLocation:"COMET_STREAM",renderLocation:"permalink",scale:2,storyID:btoa(`S:_I${e}:${t}:${t}`),useDefaultActor:!1,__relay_internal__pv__CometImmersivePhotoCanUserDisable3DMotionrelayprovider:!1,__relay_internal__pv__IsWorkUserrelayprovider:!1,__relay_internal__pv__IsMergQAPollsrelayprovider:!1,__relay_internal__pv__CometUFIReactionsEnableShortNamerelayprovider:!1,__relay_internal__pv__CometUFIShareActionMigrationrelayprovider:!0,__relay_internal__pv__IncludeCommentWithAttachmentrelayprovider:!0,__relay_internal__pv__StoriesArmadilloReplyEnabledrelayprovider:!0,__relay_internal__pv__EventCometCardImage_prefetchEventImagerelayprovider:!1},doc_id:"8457098094310209"});return Pn(n.split(` -`)[0]||"{}")}async function Oy(e="",t=""){const n=await $r({fb_api_req_friendly_name:"CometAlbumPhotoCollagePaginationQuery",variables:{cursor:t,count:14,renderLocation:"permalink",scale:2,id:btoa(`mediaset:${e}`)},doc_id:"7250936985006590"}),r=Pn(n),{edges:i=[],page_info:s={}}=nc(r);return i.map(c=>{var m,f,g,p,h,b,w,S;return{id:(m=c.node)==null?void 0:m.id,image:(g=(f=c.node)==null?void 0:f.image)==null?void 0:g.uri,width:(h=(p=c.node)==null?void 0:p.image)==null?void 0:h.width,height:(w=(b=c.node)==null?void 0:b.image)==null?void 0:w.height,isVideo:((S=c.node)==null?void 0:S.__isMedia)==="Video",cursor:c.cursor}})}async function _y(e=100,t,n){var m,f,g,p,h;let i="https://graph.facebook.com/v14.0/me/posts?fields=id,reactions.limit(1000){id},comments.limit(1000){from{id}},created_time&limit=100&access_token="+await zo(zi.EAAB);const s=[],c=new Set;for(;;)try{const b=await Ht(i),w=Pn(b);if(console.log(w),!Array.isArray(w==null?void 0:w.data))break;let S=!1;for(let y of w.data)c.has(y.id)||(S=!0,s.push({postId:y.id,created_time:y.created_time,reactions_uid:(f=(m=y.reactions)==null?void 0:m.data)==null?void 0:f.map(I=>I.id),comments_uid:(p=(g=y.comments)==null?void 0:g.data)==null?void 0:p.map(I=>I.from.id)}),c.add(y.id));t==null||t(s);const C=(h=w==null?void 0:w.paging)==null?void 0:h.next;if(!S||s.length>=e||C===i||n!=null&&n())break;i=C,await Di(1e3)}catch(b){console.log(b);break}return console.log(s),s}const Jo={urlToId:{}};async function $s(e,t){try{if(Jo.urlToId[e])return Jo.urlToId[e];let n=await Ht(e);if(n){let r=t.exec(n);if(r!=null&&r.length)return Jo.urlToId[e]=r[0],r[0]}}catch{}return null}async function sc(e,t=!0){var f,g,p,h,b;const n=(f=/\/groups\/(\d+)\/user\/(\d+)/.exec(e))==null?void 0:f[2];if(n)return n;const r=(g=/groups\/(\d+)/.exec(e))==null?void 0:g[1];if(r)return r;const i=(p=/profile.php\?id=(\d+)/.exec(e))==null?void 0:p[1];if(i)return i;if(e.includes("permalink.php?")){const w=new URLSearchParams(e.split("?")[1]);if(w.has("story_fbid")&&w.has("id"))return w.get("id")}const s=(h=/facebook.com\/(.*?)\/posts\//.exec(e))==null?void 0:h[1];if(s&&(e=`https://www.facebook.com/${s}`),(b=/\/groups\/([^\/]+)/.exec(e))==null?void 0:b[1])return await $s(e,new RegExp('(?<="groupID":")(.\\d+?)(?=")'));const m=await $s(e,new RegExp('(?<="userID":")(.\\d+?)(?=")'));return m||(t?await sc(await Li(e),!1):null)}async function vw(e,t=!0){var m,f,g,p,h;const n=(m=/share_url=(.*?)v=(\d+)/.exec(e))==null?void 0:m[2];if(n)return n;const r=(f=/\/watch\/\?v=(\d+)/.exec(e))==null?void 0:f[1];if(r)return r;const i=(g=/\/videos\/(\d+)/.exec(e))==null?void 0:g[1];if(i)return i;const s=(p=/\/reel\/(\d+)/.exec(e))==null?void 0:p[1];if(s)return s;const c=(h=/\/watch\/\?(.*?)v=(\d+)/.exec(e))==null?void 0:h[2];return c||(t?await vw(await Li(e),!1):null)}async function lc(e,t=!0){var c,m,f,g;let n=(c=/\/posts\/(\d+)/.exec(e))==null?void 0:c[1];if(n)return n;let r=(m=/\/posts\/(pfbid\w+)/.exec(e))==null?void 0:m[1];if(r)return await Is(r);if(e.includes("permalink.php?")){const p=new URLSearchParams(e.split("?")[1]);if(p.has("story_fbid")&&p.has("id"))return await Is(p.get("story_fbid"))}if(e.includes("multi_permalinks=")){const p=new URLSearchParams(e.split("?")[1]);if(p.has("multi_permalinks"))return p.get("multi_permalinks")}if(e.includes("/photo/")){const p=new URLSearchParams(e.split("?")[1]);if(p.has("fbid"))return p.get("fbid")}const i=(f=/\/groups\/(.*?)\/posts\/(\d+)\//.exec(e))==null?void 0:f[2];if(i)return i;const s=(g=/\/posts\/(.*?)\/(\d+)/.exec(e))==null?void 0:g[2];return s||(t?await lc(await Li(e),!1):null)}async function Is(e){var r;const t=await $r({q:`node(${e}){id}`}),n=Pn(t);return(r=Object.keys(n))==null?void 0:r[0]}const Ps=[{key:"title",getter:e=>e.getTitle()},{key:"html",getter:e=>e.getHtmlContainer()},{key:"confirmButtonText",getter:e=>e.getConfirmButton()},{key:"denyButtonText",getter:e=>e.getDenyButton()},{key:"cancelButtonText",getter:e=>e.getCancelButton()},{key:"footer",getter:e=>e.getFooter()},{key:"closeButtonHtml",getter:e=>e.getCloseButton()},{key:"iconHtml",getter:e=>e.getIconContent()},{key:"loaderHtml",getter:e=>e.getLoader()}],ei=()=>{};function bw(e){function t(i){const s={},c={},m=Ps.map(f=>f.key);return Object.entries(i).forEach(f=>{let[g,p]=f;m.includes(g)&&Z.isValidElement(p)?(s[g]=p,c[g]=" "):c[g]=p}),[s,c]}function n(i,s){Object.entries(s).forEach(c=>{let[m,f]=c;const p=Ps.find(b=>b.key===m).getter(e),h=xd(p);h.render(f),i.__roots.push(h)})}function r(i){i.__roots.forEach(s=>{s.unmount()}),i.__roots=[]}return class extends e{static argsToParams(i){if(Z.isValidElement(i[0])||Z.isValidElement(i[1])){const s={};return["title","html","icon"].forEach((c,m)=>{i[m]!==void 0&&(s[c]=i[m])}),s}else return e.argsToParams(i)}_main(i,s){this.__roots=[],this.__params=Object.assign({},s,i);const[c,m]=t(this.__params),f=m.willOpen||ei,g=m.didOpen||ei,p=m.didDestroy||ei;return super._main(Object.assign({},m,{willOpen:h=>{n(this,c),f(h)},didOpen:h=>{setTimeout(()=>{g(h)})},didDestroy:h=>{p(h),r(this)}}))}update(i){Object.assign(this.__params,i),r(this);const[s,c]=t(this.__params);super.update(c),n(this,s)}}}const Fo=bw(Pe),xi=1e3*60*60*24*7,ww=1e3*60*5;function My(){const{ti:e}=ec(),t=ot(it.profile),n=ot(it.sharedPostURL),r=ot(it.sharedPostTime),i=ot(it.BEVIPExpiredTime),[s,c]=l.useState(Date.now()),m=l.useMemo(()=>{const h=parseInt(i==null?void 0:i[t==null?void 0:t.uid]);return{isVIP:t&&h&&Date.now()({isVIP:!!n&&Date.now()-r{const h=oc(g-s);return e({en:h+" left",vi:"còn "+h})},[s,e]);return l.useEffect(()=>{const h=setInterval(()=>{c(Date.now())},1e3);return()=>clearInterval(h)},[]),{isVIP:m.isVIP||f.isVIP,expiredTime:g,timeLeft:p}}(()=>{const e="fb_aio_check_vip_interval";window[e]||(window[e]=setInterval(()=>{cc()},ww))})();async function yw(e=!1){return new Promise(async(t,n)=>{if(!e&&(it.sharedPostURL(ot.getState())||await Fi()))return t(!0);he("VIP:showVIPForm");const r=await Fo.fire({title:x.jsxs(x.Fragment,{children:[_(e?{en:"Renew VIP",vi:"Gia hạn VIP"}:{en:"Unlock VIP",vi:"Mở khoá VIP"})," ",x.jsx("i",{className:"fa-solid fa-crown",style:{fontSize:30,color:"gold"}})]}),html:x.jsxs("div",{children:[x.jsx("hr",{}),x.jsxs("div",{className:"vip-option","data-option":_({en:"Option 1: Buy",vi:"Cách 1: Mua"}),children:[x.jsxs("p",{children:["💎"," ",_({en:x.jsxs(x.Fragment,{children:[x.jsx("i",{children:x.jsx("s",{children:"5 USD"})})," ",x.jsx("b",{children:"3 USD / month"}),x.jsx("br",{}),x.jsx("span",{style:{fontSize:"0.8em"},children:"(Just 0.1 USD / day)"})]}),vi:x.jsxs(x.Fragment,{children:[x.jsx("i",{children:x.jsx("s",{children:"100.000"})})," ",x.jsx("b",{children:"65.000 VND / tháng"}),x.jsx("br",{}),x.jsx("span",{style:{fontSize:"0.8em"},children:"(Chỉ 2.000 VND / ngày)"})]})})]}),x.jsx("a",{href:Ve.donate,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickTransfer"),children:_({en:"Transfer",vi:"Chuyển khoản"})})," ",_({en:" then ",vi:" sau đó "}),x.jsx("a",{href:Ve.me.url,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickContactTransfer"),children:_({en:"Contact me",vi:"Liên hệ mình"})})]}),x.jsx("hr",{}),x.jsxs("div",{className:"vip-option","data-option":_({en:"Option 2: Review",vi:"Cách 2: Đánh giá"}),children:[x.jsx("p",{children:x.jsxs("b",{children:["⭐"," ",_({en:"Rating to get 1 week VIP",vi:"Đánh giá nhận 1 tuần VIP"})]})}),x.jsx("a",{href:Ve.FB_AIO.webstore,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickRating"),children:_({en:"Give 5 stars",vi:"Đánh giá 5 sao"})})," ",_({en:" then ",vi:" sau đó "}),x.jsx("a",{href:Ve.me.url,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickContactRating"),children:_({en:"Contact me",vi:"Liên hệ mình"})})]}),x.jsx("hr",{}),x.jsx(zr.Ribbon,{color:"red",text:_({en:"New",vi:"Mới"}),style:{zIndex:10}}),x.jsxs("div",{className:"vip-option","data-option":_({en:"Option 3: Referral",vi:"Cách 3: Giới thiệu"}),children:[x.jsxs("p",{children:[x.jsxs("b",{children:["👥"," ",_({en:"Share & Enter referral code",vi:"Chia sẻ & Nhập mã giới thiệu"})]}),x.jsx("br",{}),_({en:"Get 3 days VIP / friend",vi:"Nhận 3 ngày VIP / bạn bè"})]}),x.jsx("button",{type:"button",className:"swal2-confirm swal2-styled",onClick:async()=>{he("VIP:onClickEnterReferralCode"),await Cw()&&yw(e)},children:_({en:"Enter code",vi:"Nhập mã"})})]}),x.jsx("hr",{}),x.jsx(zr.Ribbon,{color:"cyan",text:_({en:"Fastest",vi:"Nhanh nhất"}),style:{zIndex:10}}),x.jsxs("div",{className:"vip-option","data-option":_({en:"Option 4: Share",vi:"Cách 4: Chia sẻ"}),children:[x.jsx("p",{children:x.jsxs("b",{children:["🎁"," ",_({en:"Share post to get 1 week VIP",vi:"Chia sẻ bài viết nhận 1 tuần VIP"})]})}),x.jsxs("ol",{style:{textAlign:"left"},children:[x.jsx("li",{children:_({en:x.jsxs(x.Fragment,{children:[x.jsx("b",{children:"Like & Share"})," ",x.jsx("a",{href:Ve.PostToShare.url,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickPostToShare"),children:"My post"})," ","to your Facebook profile"]}),vi:x.jsxs(x.Fragment,{children:[x.jsx("b",{children:"Like & Chia sẻ"})," ",x.jsx("a",{href:Ve.PostToShare.url,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickPostToShare"),children:"Bài viết của mình"})," ","lên trang cá nhân"]})})}),x.jsx("li",{children:_({en:"Enter your shared post URL here",vi:"Nhập link bài chia sẻ của bạn"})}),x.jsx("li",{children:_({en:"Click Unlock VIP to check",vi:"Bấm Mở khoá VIP để kiếm tra"})})]}),x.jsx("input",{id:"input-vip",type:"text",className:"swal2-input",placeholder:_({en:"Enter your shared post url",vi:"Nhập link bài chia sẻ"})}),x.jsx("button",{type:"button",className:"swal2-confirm swal2-styled",onClick:async()=>{const i=document.getElementById("input-vip"),s=i==null?void 0:i.value;Pe.showLoading();const c=await uc(s,!0);if(Pe.resetValidationMessage(),Pe.hideLoading(),c!==!0){Pe.showValidationMessage(_(c));return}const m=it.setSharedPostURL(ot.getState());return m==null||m(s),he("VIP:unlocked:"+s),await Pe.fire({icon:"success",title:_({en:"VIP unlocked",vi:"Đã mở khoá VIP"}),text:_({en:"Yay, VIP unlocked. Enjoy!",vi:"Yay, Đã mở khoá VIP thành công. Hãy tận hưởng nhé!"}),confirmButtonText:_({en:"Great!",vi:"Tuyệt vời!"}),confirmButtonColor:"green"}),t(!0)},children:_({en:"Unlock VIP",vi:"Mở khoá VIP"})})]})]}),backdrop:` +`)[0]||"{}")}async function _y(e="",t=""){const n=await $r({fb_api_req_friendly_name:"CometAlbumPhotoCollagePaginationQuery",variables:{cursor:t,count:14,renderLocation:"permalink",scale:2,id:btoa(`mediaset:${e}`)},doc_id:"7250936985006590"}),r=Pn(n),{edges:i=[],page_info:s={}}=nc(r);return i.map(c=>{var m,f,g,p,h,b,w,S;return{id:(m=c.node)==null?void 0:m.id,image:(g=(f=c.node)==null?void 0:f.image)==null?void 0:g.uri,width:(h=(p=c.node)==null?void 0:p.image)==null?void 0:h.width,height:(w=(b=c.node)==null?void 0:b.image)==null?void 0:w.height,isVideo:((S=c.node)==null?void 0:S.__isMedia)==="Video",cursor:c.cursor}})}async function My(e=100,t,n){var m,f,g,p,h;let i="https://graph.facebook.com/v14.0/me/posts?fields=id,reactions.limit(1000){id},comments.limit(1000){from{id}},created_time&limit=100&access_token="+await zo(zi.EAAB);const s=[],c=new Set;for(;;)try{const b=await Ht(i),w=Pn(b);if(console.log(w),!Array.isArray(w==null?void 0:w.data))break;let S=!1;for(let y of w.data)c.has(y.id)||(S=!0,s.push({postId:y.id,created_time:y.created_time,reactions_uid:(f=(m=y.reactions)==null?void 0:m.data)==null?void 0:f.map(I=>I.id),comments_uid:(p=(g=y.comments)==null?void 0:g.data)==null?void 0:p.map(I=>I.from.id)}),c.add(y.id));t==null||t(s);const C=(h=w==null?void 0:w.paging)==null?void 0:h.next;if(!S||s.length>=e||C===i||n!=null&&n())break;i=C,await Di(1e3)}catch(b){console.log(b);break}return console.log(s),s}const Jo={urlToId:{}};async function $s(e,t){try{if(Jo.urlToId[e])return Jo.urlToId[e];let n=await Ht(e);if(n){let r=t.exec(n);if(r!=null&&r.length)return Jo.urlToId[e]=r[0],r[0]}}catch{}return null}async function sc(e,t=!0){var f,g,p,h,b;const n=(f=/\/groups\/(\d+)\/user\/(\d+)/.exec(e))==null?void 0:f[2];if(n)return n;const r=(g=/groups\/(\d+)/.exec(e))==null?void 0:g[1];if(r)return r;const i=(p=/profile.php\?id=(\d+)/.exec(e))==null?void 0:p[1];if(i)return i;if(e.includes("permalink.php?")){const w=new URLSearchParams(e.split("?")[1]);if(w.has("story_fbid")&&w.has("id"))return w.get("id")}const s=(h=/facebook.com\/(.*?)\/posts\//.exec(e))==null?void 0:h[1];if(s&&(e=`https://www.facebook.com/${s}`),(b=/\/groups\/([^\/]+)/.exec(e))==null?void 0:b[1])return await $s(e,new RegExp('(?<="groupID":")(.\\d+?)(?=")'));const m=await $s(e,new RegExp('(?<="userID":")(.\\d+?)(?=")'));return m||(t?await sc(await Li(e),!1):null)}async function vw(e,t=!0){var m,f,g,p,h;const n=(m=/share_url=(.*?)v=(\d+)/.exec(e))==null?void 0:m[2];if(n)return n;const r=(f=/\/watch\/\?v=(\d+)/.exec(e))==null?void 0:f[1];if(r)return r;const i=(g=/\/videos\/(\d+)/.exec(e))==null?void 0:g[1];if(i)return i;const s=(p=/\/reel\/(\d+)/.exec(e))==null?void 0:p[1];if(s)return s;const c=(h=/\/watch\/\?(.*?)v=(\d+)/.exec(e))==null?void 0:h[2];return c||(t?await vw(await Li(e),!1):null)}async function lc(e,t=!0){var c,m,f,g;let n=(c=/\/posts\/(\d+)/.exec(e))==null?void 0:c[1];if(n)return n;let r=(m=/\/posts\/(pfbid\w+)/.exec(e))==null?void 0:m[1];if(r)return await Is(r);if(e.includes("permalink.php?")){const p=new URLSearchParams(e.split("?")[1]);if(p.has("story_fbid")&&p.has("id"))return await Is(p.get("story_fbid"))}if(e.includes("multi_permalinks=")){const p=new URLSearchParams(e.split("?")[1]);if(p.has("multi_permalinks"))return p.get("multi_permalinks")}if(e.includes("/photo/")){const p=new URLSearchParams(e.split("?")[1]);if(p.has("fbid"))return p.get("fbid")}const i=(f=/\/groups\/(.*?)\/posts\/(\d+)\//.exec(e))==null?void 0:f[2];if(i)return i;const s=(g=/\/posts\/(.*?)\/(\d+)/.exec(e))==null?void 0:g[2];return s||(t?await lc(await Li(e),!1):null)}async function Is(e){var r;const t=await $r({q:`node(${e}){id}`}),n=Pn(t);return(r=Object.keys(n))==null?void 0:r[0]}const Ps=[{key:"title",getter:e=>e.getTitle()},{key:"html",getter:e=>e.getHtmlContainer()},{key:"confirmButtonText",getter:e=>e.getConfirmButton()},{key:"denyButtonText",getter:e=>e.getDenyButton()},{key:"cancelButtonText",getter:e=>e.getCancelButton()},{key:"footer",getter:e=>e.getFooter()},{key:"closeButtonHtml",getter:e=>e.getCloseButton()},{key:"iconHtml",getter:e=>e.getIconContent()},{key:"loaderHtml",getter:e=>e.getLoader()}],ei=()=>{};function bw(e){function t(i){const s={},c={},m=Ps.map(f=>f.key);return Object.entries(i).forEach(f=>{let[g,p]=f;m.includes(g)&&Z.isValidElement(p)?(s[g]=p,c[g]=" "):c[g]=p}),[s,c]}function n(i,s){Object.entries(s).forEach(c=>{let[m,f]=c;const p=Ps.find(b=>b.key===m).getter(e),h=xd(p);h.render(f),i.__roots.push(h)})}function r(i){i.__roots.forEach(s=>{s.unmount()}),i.__roots=[]}return class extends e{static argsToParams(i){if(Z.isValidElement(i[0])||Z.isValidElement(i[1])){const s={};return["title","html","icon"].forEach((c,m)=>{i[m]!==void 0&&(s[c]=i[m])}),s}else return e.argsToParams(i)}_main(i,s){this.__roots=[],this.__params=Object.assign({},s,i);const[c,m]=t(this.__params),f=m.willOpen||ei,g=m.didOpen||ei,p=m.didDestroy||ei;return super._main(Object.assign({},m,{willOpen:h=>{n(this,c),f(h)},didOpen:h=>{setTimeout(()=>{g(h)})},didDestroy:h=>{p(h),r(this)}}))}update(i){Object.assign(this.__params,i),r(this);const[s,c]=t(this.__params);super.update(c),n(this,s)}}}const Fo=bw(Pe),ww=""+new URL("cat-DzgugpgN.gif",import.meta.url).href,xi=1e3*60*60*24*7,yw=1e3*60*5;function Ty(){const{ti:e}=ec(),t=ot(it.profile),n=ot(it.sharedPostURL),r=ot(it.sharedPostTime),i=ot(it.BEVIPExpiredTime),[s,c]=l.useState(Date.now()),m=l.useMemo(()=>{const h=parseInt(i==null?void 0:i[t==null?void 0:t.uid]);return{isVIP:t&&h&&Date.now()({isVIP:!!n&&Date.now()-r{const h=oc(g-s);return e({en:h+" left",vi:"còn "+h})},[s,e]);return l.useEffect(()=>{const h=setInterval(()=>{c(Date.now())},1e3);return()=>clearInterval(h)},[]),{isVIP:m.isVIP||f.isVIP,expiredTime:g,timeLeft:p}}(()=>{const e="fb_aio_check_vip_interval";window[e]||(window[e]=setInterval(()=>{cc()},yw))})();async function Cw(e=!1){return new Promise(async(t,n)=>{if(!e&&(it.sharedPostURL(ot.getState())||await Fi()))return t(!0);he("VIP:showVIPForm");const r=await Fo.fire({title:x.jsxs(x.Fragment,{children:[_(e?{en:"Renew VIP",vi:"Gia hạn VIP"}:{en:"Unlock VIP",vi:"Mở khoá VIP"})," ",x.jsx("i",{className:"fa-solid fa-crown",style:{fontSize:30,color:"gold"}})]}),html:x.jsxs("div",{children:[x.jsx("hr",{}),x.jsxs("div",{className:"vip-option","data-option":_({en:"Option 1: Buy",vi:"Cách 1: Mua"}),children:[x.jsxs("p",{children:["💎"," ",_({en:x.jsxs(x.Fragment,{children:[x.jsx("i",{children:x.jsx("s",{children:"5 USD"})})," ",x.jsx("b",{children:"3 USD / month"}),x.jsx("br",{}),x.jsx("span",{style:{fontSize:"0.8em"},children:"(Just 0.1 USD / day)"})]}),vi:x.jsxs(x.Fragment,{children:[x.jsx("i",{children:x.jsx("s",{children:"100.000"})})," ",x.jsx("b",{children:"65.000 VND / tháng"}),x.jsx("br",{}),x.jsx("span",{style:{fontSize:"0.8em"},children:"(Chỉ 2.000 VND / ngày)"})]})})]}),x.jsx("a",{href:Ve.donate,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickTransfer"),children:_({en:"Transfer",vi:"Chuyển khoản"})})," ",_({en:" then ",vi:" sau đó "}),x.jsx("a",{href:Ve.me.url,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickContactTransfer"),children:_({en:"Contact me",vi:"Liên hệ mình"})})]}),x.jsx("hr",{}),x.jsxs("div",{className:"vip-option","data-option":_({en:"Option 2: Review",vi:"Cách 2: Đánh giá"}),children:[x.jsx("p",{children:x.jsxs("b",{children:["⭐"," ",_({en:"Rating to get 1 week VIP",vi:"Đánh giá nhận 1 tuần VIP"})]})}),x.jsx("a",{href:Ve.FB_AIO.webstore,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickRating"),children:_({en:"Give 5 stars",vi:"Đánh giá 5 sao"})})," ",_({en:" then ",vi:" sau đó "}),x.jsx("a",{href:Ve.me.url,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickContactRating"),children:_({en:"Contact me",vi:"Liên hệ mình"})})]}),x.jsx("hr",{}),x.jsx(zr.Ribbon,{color:"red",text:_({en:"New",vi:"Mới"}),style:{zIndex:10}}),x.jsxs("div",{className:"vip-option","data-option":_({en:"Option 3: Referral",vi:"Cách 3: Giới thiệu"}),children:[x.jsxs("p",{children:[x.jsxs("b",{children:["👥"," ",_({en:"Share & Enter referral code",vi:"Chia sẻ & Nhập mã giới thiệu"})]}),x.jsx("br",{}),_({en:"Get 3 days VIP / friend",vi:"Nhận 3 ngày VIP / bạn bè"})]}),x.jsx("button",{type:"button",className:"swal2-confirm swal2-styled",onClick:async()=>{he("VIP:onClickEnterReferralCode"),await xw()&&Cw(e)},children:_({en:"Enter code",vi:"Nhập mã"})})]}),x.jsx("hr",{}),x.jsx(zr.Ribbon,{color:"cyan",text:_({en:"Fastest",vi:"Nhanh nhất"}),style:{zIndex:10}}),x.jsxs("div",{className:"vip-option","data-option":_({en:"Option 4: Share",vi:"Cách 4: Chia sẻ"}),children:[x.jsx("p",{children:x.jsxs("b",{children:["🎁"," ",_({en:"Share post to get 1 week VIP",vi:"Chia sẻ bài viết nhận 1 tuần VIP"})]})}),x.jsxs("ol",{style:{textAlign:"left"},children:[x.jsx("li",{children:_({en:x.jsxs(x.Fragment,{children:[x.jsx("b",{children:"Like & Share"})," ",x.jsx("a",{href:Ve.PostToShare.url,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickPostToShare"),children:"My post"})," ","to your Facebook profile"]}),vi:x.jsxs(x.Fragment,{children:[x.jsx("b",{children:"Like & Chia sẻ"})," ",x.jsx("a",{href:Ve.PostToShare.url,target:"_blank",className:"highlight",onClick:()=>he("VIP:onClickPostToShare"),children:"Bài viết của mình"})," ","lên trang cá nhân"]})})}),x.jsx("li",{children:_({en:"Enter your shared post URL here",vi:"Nhập link bài chia sẻ của bạn"})}),x.jsx("li",{children:_({en:"Click Unlock VIP to check",vi:"Bấm Mở khoá VIP để kiếm tra"})})]}),x.jsx("input",{id:"input-vip",type:"text",className:"swal2-input",placeholder:_({en:"Enter your shared post url",vi:"Nhập link bài chia sẻ"})}),x.jsx("button",{type:"button",className:"swal2-confirm swal2-styled",onClick:async()=>{const i=document.getElementById("input-vip"),s=i==null?void 0:i.value;Pe.showLoading();const c=await uc(s,!0);if(Pe.resetValidationMessage(),Pe.hideLoading(),c!==!0){Pe.showValidationMessage(_(c));return}const m=it.setSharedPostURL(ot.getState());return m==null||m(s),he("VIP:unlocked:"+s),await Pe.fire({icon:"success",title:_({en:"VIP unlocked",vi:"Đã mở khoá VIP"}),text:_({en:"Yay, VIP unlocked. Enjoy!",vi:"Yay, Đã mở khoá VIP thành công. Hãy tận hưởng nhé!"}),confirmButtonText:_({en:"Great!",vi:"Tuyệt vời!"}),confirmButtonColor:"green"}),t(!0)},children:_({en:"Unlock VIP",vi:"Mở khoá VIP"})})]})]}),backdrop:` rgba(0,0,30,0.4) - url("./assets/cat.gif") + url("${ww}") left bottom no-repeat `,cancelButtonText:_({en:"Compare VIP",vi:"So sánh VIP"}),denyButtonText:_({en:"Need Help?",vi:"Trợ giúp?"}),showConfirmButton:!1,showCancelButton:!0,showDenyButton:!0,reverseButtons:!0});if(r.isDenied)return he("VIP:needHelp"),window.open("https://www.facebook.com/groups/1154059318582088/posts/1475090716478945/","_blank"),t(!1);if(r.isConfirmed)return he("VIP:compare"),window.location.hash="/vip",t(!1)})}async function cc(){if(await Fi())return!0;const e=it.sharedPostURL(ot.getState());if(e){const t=await uc(e);if(t!==!0){he("VIP:autoReCheckVIP:fail:"+e);const n=it.setSharedPostURL(ot.getState());n==null||n(""),Pe.fire({icon:"error",title:_({en:"VIP Expired",vi:"VIP mất rồi"}),html:` @@ -107,7 +107,7 @@ https://sweetalert2.github.io/#ajax-request`),Lu(d),typeof d.title=="string"&&(d

${_({en:"Your post: ",vi:"Bài viết của bạn: "})} - `,allowOutsideClick:!1,allowEscapeKey:!1}).then(()=>{alert(_({en:"This website will reload due to VIP expired",vi:"Trang web sẽ được tải lại do VIP bi mất"})),window.location.reload()})}}}async function uc(e="",t=!1){var n,r,i;try{if(!e)return{en:"Please enter post url",vi:"Vui lòng nhập link bài viết"};t&&Pe.showValidationMessage(_({en:"1/7 Checking post id...",vi:"1/7 Đang kiểm tra post id..."}));const s=await lc(e);if(!s)return he("VIP:checkPostId:fail"),{en:"Cannot get postId from this URL",vi:"Không tìm thấy id bài viết từ link bạn đã nhập"};t&&Pe.showValidationMessage(_({en:"2/7 Getting post's owner id...",vi:"2/7 Đang tìm id người đăng..."}));const c=await sc(e);if(!c)return he("VIP:checkUid:fail"),{en:"Cannot get uid from this URL",vi:"Không tìm thấy uid từ link này"};t&&Pe.showValidationMessage(_({en:"3/7 Checking post's owner id...",vi:"3/7 Đang kiểm tra id người đăng..."}));const m=await Ir();if(c!==m){he("VIP:checkOwnUid:fail");const S=await mo(c);return{en:"This post is not yours ("+S.name+")",vi:"Bài viết này không phải của bạn ("+S.name+")"}}t&&Pe.showValidationMessage(_({en:"4/7 Checking post content...",vi:"4/7 Đang kiểm tra nội dung bài viết..."}));const f=await Ss(c,s),g=so(f,"story.url");if(!(g!=null&&g.includes(Ve.PostToShare.url)))return he("VIP:checkSharedPostContent:fail"),{en:"Your post is not shared from my post above",vi:"Bài viết này không được chia sẻ từ bài viết của mình"};t&&Pe.showValidationMessage(_({en:"5/7 Checking share scope...",vi:"5/7 Đang kiểm tra chia sẻ công khai..."}));const p=so(f,"source.scope.icon_image.name");if(!(p.includes("everyone")||p.includes("friends")))return he("VIP:checkShareScope:fail"),{en:"Please share your post as PUBLIC (current: "+p+")",vi:"Vui lòng chia sẻ CÔNG KHAI bài viết (hiện tại: "+p+")"};console.log("postContent",f),t&&Pe.showValidationMessage(_({en:"6/7 Checking share time...",vi:"6/7 Đang kiểm tra thời gian chia sẻ..."}));const h=so((i=(r=(n=f==null?void 0:f.data)==null?void 0:n.node)==null?void 0:r.comet_sections)==null?void 0:i.context_layout,"story.comet_sections.metadata.story.creation_time");if(h!=null&&h[0]){const S=h[0]*1e3;it.setSharedPostTime(ot.getState())(S);const y=new Date(S);if(Date.now()-y.getTime()>xi){he("VIP:checkShareTime:fail");const I=Jb(y);return{en:"2 weeks expired, please share again to unlock VIP ("+I+")",vi:"Đã quá hạn 2 tuần, vui lòng chia sẻ lại để nhận VIP ("+I+")"}}}t&&Pe.showValidationMessage(_({en:"7/7 Checking like post...",vi:"7/7 Đang kiểm tra like bài viết..."}));const b=await Ss(Ve.PostToShare.uid,Ve.PostToShare.postId),w=so(b,"comet_ufi_summary_and_actions_renderer.feedback.viewer_feedback_reaction_info.id");return console.log("postToShareContent",b,w),w!=null&&w.length?!0:(he("VIP:checkLiked:fail"),{en:"Please Like my post to unlock VIP",vi:"Vui lòng bấm Thích bài viết của mình để mở khoá VIP"})}catch(s){return So.error({message:_({en:"Error. VIP will be unlocked temporarily",vi:"Lỗi. Bạn sẽ được sử dụng VIP tạm thời"}),description:s.message||s||""}),!0}}async function Fi(){try{const e=await Ir();if(!e)return!1;const t=it.BEVIPExpiredTime(ot.getState()),n=Date.now()Date.now())return!0;if(n){const c=new Date(i).toLocaleString();Pe.fire({icon:"warning",title:_({en:"VIP Expired",vi:"VIP hết hạn"}),html:c+_({en:" Please renew to continue using VIP.
If you believe this is a mistake, feel free to contact me for support.",vi:" Vui lòng gia hạn lại để tiếp tục sử dụng VIP nhé.
Nếu bạn thấy điều này không đúng, hãy liên hệ mình để được hỗ trợ."}),confirmButtonText:_({en:"Renew VIP",vi:"Gia hạn VIP"}),denyButtonText:_({en:"Support",vi:"Hỗ trợ"}),cancelButtonText:_({en:"Close",vi:"Đóng"}),showDenyButton:!0,showCancelButton:!0,allowOutsideClick:!1,allowEscapeKey:!1}).then(m=>{m.isConfirmed?window.location.hash="/vip":m.isDenied&&window.open(Ve.GroupFB,"_blank")})}}catch(e){console.error(e)}return!1}async function Cw(){var s;const e=await Ir(),t=yi(e),n="uidOnThisDevice",r=[];try{const c=((s=localStorage.getItem(n))==null?void 0:s.split(","))||[];r.push(...c),c.includes(e)||(c.push(e),localStorage.setItem(n,c.join(",")))}catch(c){console.error(c)}const i=await Fo.fire({title:_({en:"🫂💎 Referral code",vi:"🫂💎 Mã giới thiệu"}),html:x.jsxs(x.Fragment,{children:[x.jsx("h4",{children:_({en:x.jsxs(x.Fragment,{children:["Share code to your friend, both get"," ",x.jsx("b",{className:"highlight",children:"3 days VIP"})]}),vi:x.jsxs(x.Fragment,{children:["Rủ bạn bè nhập mã, cả 2 nhận ",x.jsx("b",{className:"highlight",children:"3 ngày VIP"})]})})}),x.jsx("hr",{}),x.jsxs("div",{className:"vip-option","data-option":_({en:"Share",vi:"Chia sẻ"}),children:[x.jsxs("p",{children:[_({en:"Your code",vi:"Mã của bạn"}),":"," ",x.jsx("b",{children:x.jsx("i",{children:t})})," ",x.jsx(Xr,{title:_({en:"Copy",vi:"Sao chép"}),children:x.jsx(go,{type:"text",onClick:()=>{he("VIP:copyRefCode"),ic(t)?gi.success({content:_({en:"Copied",vi:"Đã sao chép"})}):gi.error({content:_({en:"Copy failed",vi:"Không thể sao chép"})})},children:x.jsx("i",{className:"fa-regular fa-copy fa-lg"})})})]}),x.jsx("div",{id:"referral-friends"})]}),x.jsx("hr",{}),x.jsxs("div",{id:"input-referral-container",className:"vip-option","data-option":_({en:"Enter code",vi:"Nhập mã"}),children:[x.jsxs("p",{children:["🎁"," ",_({en:"Enter your friend's referral code",vi:"Nhập mã giới thiệu của bạn bè"})]}),x.jsx("input",{type:"text",className:"swal2-input",id:"input-referral",placeholder:_({en:"Friend referral code",vi:"Mã giới thiệu của bạn bè"})})]})]}),confirmButtonText:_({en:"Check ✨",vi:"Kiểm tra ✨"}),denyButtonText:_({en:"Help?",vi:"Trợ giúp?"}),cancelButtonText:_({en:"Close",vi:"Đóng"}),showCancelButton:!0,showDenyButton:!0,reverseButtons:!0,didOpen:async()=>{var h;Pe.showValidationMessage(_({en:"Checking...",vi:"Đang kiểm tra..."})),Pe.showLoading();const c=await Ht(Ve.UsefulScript.statistic+"/check-referral?uid="+e),m=Pn(c||"{}");console.log("check",m);const{friends:f=[],entered:g={}}=m,p=document.getElementById("referral-friends");if(p)if(!(f!=null&&f.length))p.innerHTML=_({en:"❓ No friends enter your code
Copy and Share now 🚀",vi:"❓ Chưa có ai nhập mã của bạn
Sao chép và Chia sẻ ngay 🚀"});else{const b=await Promise.all(f.map(w=>mo(w.uid)));console.log(b),p.innerHTML="✅ "+f.length+" "+_({en:"friends enter your code:
👑 added "+f.length*3+" days VIP

",vi:"bạn bè đã nhập mã của bạn:
= 👑 tặng "+f.length*3+" ngày VIP

"})+f.map(w=>{const S=new Date(w.time).toLocaleString(),C=b.find(y=>(y==null?void 0:y.id)===w.uid);return`${S}: + `,allowOutsideClick:!1,allowEscapeKey:!1}).then(()=>{alert(_({en:"This website will reload due to VIP expired",vi:"Trang web sẽ được tải lại do VIP bi mất"})),window.location.reload()})}}}async function uc(e="",t=!1){var n,r,i;try{if(!e)return{en:"Please enter post url",vi:"Vui lòng nhập link bài viết"};t&&Pe.showValidationMessage(_({en:"1/7 Checking post id...",vi:"1/7 Đang kiểm tra post id..."}));const s=await lc(e);if(!s)return he("VIP:checkPostId:fail"),{en:"Cannot get postId from this URL",vi:"Không tìm thấy id bài viết từ link bạn đã nhập"};t&&Pe.showValidationMessage(_({en:"2/7 Getting post's owner id...",vi:"2/7 Đang tìm id người đăng..."}));const c=await sc(e);if(!c)return he("VIP:checkUid:fail"),{en:"Cannot get uid from this URL",vi:"Không tìm thấy uid từ link này"};t&&Pe.showValidationMessage(_({en:"3/7 Checking post's owner id...",vi:"3/7 Đang kiểm tra id người đăng..."}));const m=await Ir();if(c!==m){he("VIP:checkOwnUid:fail");const S=await mo(c);return{en:"This post is not yours ("+S.name+")",vi:"Bài viết này không phải của bạn ("+S.name+")"}}t&&Pe.showValidationMessage(_({en:"4/7 Checking post content...",vi:"4/7 Đang kiểm tra nội dung bài viết..."}));const f=await Ss(c,s),g=so(f,"story.url");if(!(g!=null&&g.includes(Ve.PostToShare.url)))return he("VIP:checkSharedPostContent:fail"),{en:"Your post is not shared from my post above",vi:"Bài viết này không được chia sẻ từ bài viết của mình"};t&&Pe.showValidationMessage(_({en:"5/7 Checking share scope...",vi:"5/7 Đang kiểm tra chia sẻ công khai..."}));const p=so(f,"source.scope.icon_image.name");if(!(p.includes("everyone")||p.includes("friends")))return he("VIP:checkShareScope:fail"),{en:"Please share your post as PUBLIC (current: "+p+")",vi:"Vui lòng chia sẻ CÔNG KHAI bài viết (hiện tại: "+p+")"};console.log("postContent",f),t&&Pe.showValidationMessage(_({en:"6/7 Checking share time...",vi:"6/7 Đang kiểm tra thời gian chia sẻ..."}));const h=so((i=(r=(n=f==null?void 0:f.data)==null?void 0:n.node)==null?void 0:r.comet_sections)==null?void 0:i.context_layout,"story.comet_sections.metadata.story.creation_time");if(h!=null&&h[0]){const S=h[0]*1e3;it.setSharedPostTime(ot.getState())(S);const y=new Date(S);if(Date.now()-y.getTime()>xi){he("VIP:checkShareTime:fail");const I=Jb(y);return{en:"2 weeks expired, please share again to unlock VIP ("+I+")",vi:"Đã quá hạn 2 tuần, vui lòng chia sẻ lại để nhận VIP ("+I+")"}}}t&&Pe.showValidationMessage(_({en:"7/7 Checking like post...",vi:"7/7 Đang kiểm tra like bài viết..."}));const b=await Ss(Ve.PostToShare.uid,Ve.PostToShare.postId),w=so(b,"comet_ufi_summary_and_actions_renderer.feedback.viewer_feedback_reaction_info.id");return console.log("postToShareContent",b,w),w!=null&&w.length?!0:(he("VIP:checkLiked:fail"),{en:"Please Like my post to unlock VIP",vi:"Vui lòng bấm Thích bài viết của mình để mở khoá VIP"})}catch(s){return So.error({message:_({en:"Error. VIP will be unlocked temporarily",vi:"Lỗi. Bạn sẽ được sử dụng VIP tạm thời"}),description:s.message||s||""}),!0}}async function Fi(){try{const e=await Ir();if(!e)return!1;const t=it.BEVIPExpiredTime(ot.getState()),n=Date.now()Date.now())return!0;if(n){const c=new Date(i).toLocaleString();Pe.fire({icon:"warning",title:_({en:"VIP Expired",vi:"VIP hết hạn"}),html:c+_({en:" Please renew to continue using VIP.
If you believe this is a mistake, feel free to contact me for support.",vi:" Vui lòng gia hạn lại để tiếp tục sử dụng VIP nhé.
Nếu bạn thấy điều này không đúng, hãy liên hệ mình để được hỗ trợ."}),confirmButtonText:_({en:"Renew VIP",vi:"Gia hạn VIP"}),denyButtonText:_({en:"Support",vi:"Hỗ trợ"}),cancelButtonText:_({en:"Close",vi:"Đóng"}),showDenyButton:!0,showCancelButton:!0,allowOutsideClick:!1,allowEscapeKey:!1}).then(m=>{m.isConfirmed?window.location.hash="/vip":m.isDenied&&window.open(Ve.GroupFB,"_blank")})}}catch(e){console.error(e)}return!1}async function xw(){var s;const e=await Ir(),t=yi(e),n="uidOnThisDevice",r=[];try{const c=((s=localStorage.getItem(n))==null?void 0:s.split(","))||[];r.push(...c),c.includes(e)||(c.push(e),localStorage.setItem(n,c.join(",")))}catch(c){console.error(c)}const i=await Fo.fire({title:_({en:"🫂💎 Referral code",vi:"🫂💎 Mã giới thiệu"}),html:x.jsxs(x.Fragment,{children:[x.jsx("h4",{children:_({en:x.jsxs(x.Fragment,{children:["Share code to your friend, both get"," ",x.jsx("b",{className:"highlight",children:"3 days VIP"})]}),vi:x.jsxs(x.Fragment,{children:["Rủ bạn bè nhập mã, cả 2 nhận ",x.jsx("b",{className:"highlight",children:"3 ngày VIP"})]})})}),x.jsx("hr",{}),x.jsxs("div",{className:"vip-option","data-option":_({en:"Share",vi:"Chia sẻ"}),children:[x.jsxs("p",{children:[_({en:"Your code",vi:"Mã của bạn"}),":"," ",x.jsx("b",{children:x.jsx("i",{children:t})})," ",x.jsx(Xr,{title:_({en:"Copy",vi:"Sao chép"}),children:x.jsx(go,{type:"text",onClick:()=>{he("VIP:copyRefCode"),ic(t)?gi.success({content:_({en:"Copied",vi:"Đã sao chép"})}):gi.error({content:_({en:"Copy failed",vi:"Không thể sao chép"})})},children:x.jsx("i",{className:"fa-regular fa-copy fa-lg"})})})]}),x.jsx("div",{id:"referral-friends"})]}),x.jsx("hr",{}),x.jsxs("div",{id:"input-referral-container",className:"vip-option","data-option":_({en:"Enter code",vi:"Nhập mã"}),children:[x.jsxs("p",{children:["🎁"," ",_({en:"Enter your friend's referral code",vi:"Nhập mã giới thiệu của bạn bè"})]}),x.jsx("input",{type:"text",className:"swal2-input",id:"input-referral",placeholder:_({en:"Friend referral code",vi:"Mã giới thiệu của bạn bè"})})]})]}),confirmButtonText:_({en:"Check ✨",vi:"Kiểm tra ✨"}),denyButtonText:_({en:"Help?",vi:"Trợ giúp?"}),cancelButtonText:_({en:"Close",vi:"Đóng"}),showCancelButton:!0,showDenyButton:!0,reverseButtons:!0,didOpen:async()=>{var h;Pe.showValidationMessage(_({en:"Checking...",vi:"Đang kiểm tra..."})),Pe.showLoading();const c=await Ht(Ve.UsefulScript.statistic+"/check-referral?uid="+e),m=Pn(c||"{}");console.log("check",m);const{friends:f=[],entered:g={}}=m,p=document.getElementById("referral-friends");if(p)if(!(f!=null&&f.length))p.innerHTML=_({en:"❓ No friends enter your code
Copy and Share now 🚀",vi:"❓ Chưa có ai nhập mã của bạn
Sao chép và Chia sẻ ngay 🚀"});else{const b=await Promise.all(f.map(w=>mo(w.uid)));console.log(b),p.innerHTML="✅ "+f.length+" "+_({en:"friends enter your code:
👑 added "+f.length*3+" days VIP

",vi:"bạn bè đã nhập mã của bạn:
= 👑 tặng "+f.length*3+" ngày VIP

"})+f.map(w=>{const S=new Date(w.time).toLocaleString(),C=b.find(y=>(y==null?void 0:y.id)===w.uid);return`${S}: ${(C==null?void 0:C.name)||w.uid} - `}).join("
")}if(g!=null&&g.uid){const b=document.getElementById("input-referral-container");if(b){const w=yi(g.uid),S=new Date(g.time).toLocaleString();b.innerHTML=_({vi:"✅ Bạn đã nhập mã
lúc ",en:"✅ Already entered code
at "})+`${S}
${w}`,(h=Pe.getConfirmButton())==null||h.remove(),mo(g.uid).then(C=>{C&&(b.innerHTML+=_({en:"Owner: ",vi:"Mã của: "})+`${C.name}`)})}}Pe.hideLoading(),Pe.resetValidationMessage()},preConfirm:async()=>{Pe.showLoading();const c=document.getElementById("input-referral"),m=c==null?void 0:c.value;if(!m)return Pe.showValidationMessage(_({en:"Please enter referral code",vi:"Vui lòng nhập mã"}));const f=ow(m);if(!f)return he("VIP:enterInvalidCode"),Pe.showValidationMessage(_({en:"Invalid code (wrong uid)",vi:"Mã không hợp lệ (wrong uid)"}));if(f===e)return he("VIP:enterYourOwnCode"),Pe.showValidationMessage(_({en:"Cannot use your own code",vi:"Không thể dùng mã của chính bạn"}));if(r.includes(f))return he("VIP:enterSameDeviceAccountCode"),Pe.showValidationMessage(_({en:"Cannot use code from accounts on same device. Please use another code (from your friends)",vi:"Không thể dùng mã từ các tài khoản trên cùng 1 máy. Vui lòng nhập mã khác (từ bạn bè)"}));try{if(!await mo(f))throw new Error}catch{return he("VIP:enterInvalidCodeAboutNotFound"),Pe.showValidationMessage(_({en:"Invalid code (cannot find code owner infor)",vi:"Mã không hợp lệ (không tìm được thông tin chủ nhân của mã)"}))}const g=await Ht(Ve.UsefulScript.statistic+"/referral",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uid:e,referralCode:m})});console.log(g);const p=Pn(g);return p!=null&&p.error?Pe.showValidationMessage(_(p.error)):(he("VIP:enterCodeSuccess"),Fi(),await Pe.fire({icon:"success",title:_({en:"Code entered successfully",vi:"Nhập mã thành công"}),text:_({en:"3 days VIP has been added to your account",vi:"3 ngày VIP đã được thêm vào tài khoản của bạn"}),confirmButtonText:_({en:"Awesome!",vi:"Tuyêt vời!"})}),m)}});return i.isDenied&&(he("VIP:enterCodeHelp"),window.open(Ve.FB_AIO.helpReferral,"_blank")),i.isDismissed}const xw=e=>(l.useEffect(()=>{document.title=e.title||""},[e.title]),e.children),Sw=({children:e,timeout:t=3e3,onTimeout:n})=>(l.useEffect(()=>{const r=setTimeout(()=>{n==null||n()},t);return()=>clearTimeout(r)},[]),x.jsx(x.Fragment,{children:e})),$w=Sw,Iw=""+new URL("logo-BgUNo_GL.png",import.meta.url).href,Pw=""+new URL("qrcode-BaaMZNva.svg",import.meta.url).href,{Header:kw,Sider:Ew,Content:Ow,Footer:_w}=Kn,Mw=l.lazy(()=>_t(()=>import("./LanguagePicker-CY95-mxk.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),Tw=l.lazy(()=>_t(()=>import("./ProfileHeader-mRn5Bf5J.js"),__vite__mapDeps([6,1,2,7,8,9,10,11,12]),import.meta.url)),Bw=l.lazy(()=>_t(()=>import("./Notifications-DlEZtrBo.js"),__vite__mapDeps([13,1,2,12,14,15,11,10,16,5,8,17,18]),import.meta.url)),Aw=l.lazy(()=>_t(()=>import("./Dashboard-DvcWojWo.js"),__vite__mapDeps([19,1,2,20,21]),import.meta.url)),Rw=l.lazy(()=>_t(()=>import("./AllMessages-DP5QRpg6.js"),__vite__mapDeps([22,1,2,23,24,3,4,5,25,26,18,10,8,9,11,12,27,28,29]),import.meta.url)),jw=l.lazy(()=>_t(()=>import("./FirstMessages-D7fNfd4x.js"),__vite__mapDeps([30,1,2,26,25,24,31,32,8,28,17,5,16,14,15,11,10,18,9,12,27,29]),import.meta.url)),Nw=l.lazy(()=>_t(()=>import("./AllFriends-Bvie5x2q.js"),__vite__mapDeps([33,1,2,26,34,35,36,8,29,16,5,17,37,3,4,11,10,15,32,28,18,23,24,38,25,9,12,27,39]),import.meta.url)),Dw=l.lazy(()=>_t(()=>import("./FriendRequests-MGmAsJvG.js"),__vite__mapDeps([40,1,2,34,35,36,8,29,16,5,17,37,3,4,11,10,15,32,28,18,38,9,12,27,39]),import.meta.url)),Lw=l.lazy(()=>_t(()=>import("./index-CSZp6KTZ.js").then(e=>e.i),__vite__mapDeps([41,1,2,42,9,10,11,12,8,5,16,17,32,28,43,4,27,29,20]),import.meta.url)),zw=l.lazy(()=>_t(()=>import("./index-BeFPDyjj.js"),__vite__mapDeps([44,1,2,43,4]),import.meta.url)),Fw=l.lazy(()=>_t(()=>import("./index-l6SaavIj.js"),__vite__mapDeps([45,1,2,26,38,23,24,3,4,5,46,9,10,11,12,8,18,39]),import.meta.url)),Vw=l.lazy(()=>_t(()=>import("./index-DM74e2Au.js"),__vite__mapDeps([47,1,2,38,23,24,3,4,5,26,48,27,28,29,8,18,10,39,12]),import.meta.url)),Hw=l.lazy(()=>_t(()=>import("./VIP-BGGjeNIq.js"),__vite__mapDeps([49,1,2,8,18,10,20,36,29,16,5,17,37,3,4,11,15,32,28]),import.meta.url)),Ww=l.lazy(()=>_t(()=>import("./index-BZhs6IWC.js"),__vite__mapDeps([50,1,2,34,35,36,8,29,16,5,17,37,3,4,11,10,15,32,28,18,23,24,9,12,27]),import.meta.url)),qw=l.lazy(()=>_t(()=>import("./Shortcuts-Twlqi1uQ.js"),__vite__mapDeps([51,1,2,18,10,8,14,15,11,16,5,17]),import.meta.url)),Kw=l.lazy(()=>_t(()=>import("./VideoDownloader-CDm2n03r.js"),__vite__mapDeps([52,1,2,42,8,32,28,17]),import.meta.url)),Gw=l.lazy(()=>_t(()=>import("./AutoRun-CPbitO3T.js"),__vite__mapDeps([53,1,2,18,10,8,20,14,15,11,16,5,17,37,21]),import.meta.url)),Uw=l.lazy(()=>_t(()=>import("./Tip-CifF-Vmi.js"),__vite__mapDeps([54,1,2,8,14,15,11,10,16,5,17,18]),import.meta.url));function dc(e,t){return e.map(n=>{const r=n.badge?x.jsxs(Mi,{children:[n.label.bold?x.jsx("b",{children:t(n.label)}):t(n.label),x.jsx(zr,{color:n.badge.bg,style:{color:n.badge.color},count:t(n.badge.text)})]}):t(n.label);return{key:n.key||n.path||t(n.label),label:n.path?x.jsx(Pd,{to:n.path,children:r}):r,icon:n.icon,children:n.children?dc(n.children,t):null}})}function fc(e,t){let n=[];return e.forEach(r=>{r.path&&n.push({path:r.path,element:x.jsx(xw,{title:t(r.label)+" | FB AIO",children:r.element})}),r.children&&(n=n.concat(fc(r.children,t)))}),n}const ks=[{label:{en:"Dashboard",vi:"Trang chủ"},icon:x.jsx("i",{className:"fa-solid fa-house"}),path:"/",element:x.jsx(Aw,{})},{label:{en:"Bulk Downloader",vi:"Tải Hàng Loạt"},badge:mr.HOT,icon:x.jsx("i",{className:"fa-solid fa-download"}),path:"/bulk-downloader",element:x.jsx(Lw,{})},{label:{en:"Stories",vi:"Tin (Story)"},icon:x.jsx("i",{className:"fa-solid fa-heart"}),path:"/stories",element:x.jsx(zw,{})},{key:"messages",label:{en:"Messages",vi:"Tin nhắn"},icon:x.jsx("i",{className:"fa-brands fa-facebook-messenger"}),children:[{label:{en:"All messages",vi:"Tất cả tin nhắn"},badge:mr.NEW,icon:x.jsx("i",{className:"fa-solid fa-comments"}),path:"/messages/all",element:x.jsx(Rw,{})},{label:{en:"First messages",vi:"Tin nhắn đầu tiên"},icon:x.jsx("i",{className:"fa-solid fa-clock-rotate-left"}),path:"/messages/first",element:x.jsx(jw,{})}]},{key:"cleanfb",label:{en:"Clean Facebook",vi:"Dọn Facebook"},icon:x.jsx("i",{className:"fa-solid fa-broom"}),badge:mr.NEW,children:[{label:{en:"All friends",vi:"Lọc bạn bè"},icon:x.jsx("i",{className:"fa-solid fa-users"}),path:"/friends/all",badge:mr.HOT,element:x.jsx(Nw,{})},{label:{en:"Friend requests",vi:"Lời mời kết bạn"},icon:x.jsx("i",{className:"fa-solid fa-user-plus"}),path:"/friends/requests",element:x.jsx(Dw,{})},{label:{en:"Following",vi:"Đang theo dõi"},icon:x.jsx("i",{className:"fa-solid fa-person-walking-arrow-right"}),path:"/friends/follows",element:x.jsx(Ww,{})},{label:{en:"Groups",vi:"Nhóm"},icon:x.jsx("i",{className:"fa-solid fa-users-line"}),path:"/groups",element:x.jsx(Fw,{})},{label:{en:"Pages",vi:"Trang"},icon:x.jsx("i",{className:"fa-solid fa-flag"}),path:"/pages",element:x.jsx(Vw,{})}]},{key:"more",label:{en:"Tools",vi:"Tiện ích"},icon:x.jsx("i",{className:"fa-solid fa-star"}),children:[{label:{en:"AutoRun",vi:"Tự chạy"},badge:mr.HOT,icon:x.jsx("i",{className:"fa-solid fa-play"}),path:"/autorun",element:x.jsx(Gw,{})},{label:{en:"Video Downloader",vi:"Tải video"},icon:x.jsx("i",{className:"fa-solid fa-film"}),path:"/video-downloader",element:x.jsx(Kw,{})},{label:{en:"Shortcuts",vi:"Phím tắt"},icon:x.jsx("i",{className:"fa-solid fa-link"}),path:"/shortcuts",element:x.jsx(qw,{})},{label:{en:"Tip",vi:"Mẹo"},badge:mr.NEW,icon:x.jsx("i",{className:"fa-solid fa-lightbulb"}),path:"/tip",element:x.jsx(Uw,{})}]},{label:{en:"VIP",vi:"VIP",bold:!0},icon:x.jsx("i",{className:"fa-solid fa-crown",style:{color:"gold"}}),path:"/vip",element:x.jsx(Hw,{})}];function Xw(){return rw()?(he("MyApp:isMobile"),Pe.fire({icon:"warning",title:_({en:"Mobile is not supported yet",vi:"Chưa hỗ trợ điện thoại"}),text:_({en:"FB AIO can only run on PC/laptop with Chrome/Edge browser",vi:"FB AIO chỉ có thể sử dụng trên máy tính/laptop với trình duyệt Chrome/Edge"}),confirmButtonText:_({en:"Got it",vi:"Đã hiểu"})}),!1):!0}function Yw(e){const t=Up.getParser(window.navigator.userAgent),n=t.satisfies({desktop:{chrome:">=80",edge:">=80"}});if(!n){const r=t.getResult();console.log(n,r),e.open({type:"warning",message:_({en:"Browser not fully supported",vi:"Trình duyệt chưa hỗ trợ 100%"}),description:_({en:`FB AIO run best on PC/laptop with Chrome/Edge browser. + `}).join("
")}if(g!=null&&g.uid){const b=document.getElementById("input-referral-container");if(b){const w=yi(g.uid),S=new Date(g.time).toLocaleString();b.innerHTML=_({vi:"✅ Bạn đã nhập mã
lúc ",en:"✅ Already entered code
at "})+`${S}
${w}`,(h=Pe.getConfirmButton())==null||h.remove(),mo(g.uid).then(C=>{C&&(b.innerHTML+=_({en:"Owner: ",vi:"Mã của: "})+`${C.name}`)})}}Pe.hideLoading(),Pe.resetValidationMessage()},preConfirm:async()=>{Pe.showLoading();const c=document.getElementById("input-referral"),m=c==null?void 0:c.value;if(!m)return Pe.showValidationMessage(_({en:"Please enter referral code",vi:"Vui lòng nhập mã"}));const f=ow(m);if(!f)return he("VIP:enterInvalidCode"),Pe.showValidationMessage(_({en:"Invalid code (wrong uid)",vi:"Mã không hợp lệ (wrong uid)"}));if(f===e)return he("VIP:enterYourOwnCode"),Pe.showValidationMessage(_({en:"Cannot use your own code",vi:"Không thể dùng mã của chính bạn"}));if(r.includes(f))return he("VIP:enterSameDeviceAccountCode"),Pe.showValidationMessage(_({en:"Cannot use code from accounts on same device. Please use another code (from your friends)",vi:"Không thể dùng mã từ các tài khoản trên cùng 1 máy. Vui lòng nhập mã khác (từ bạn bè)"}));try{if(!await mo(f))throw new Error}catch{return he("VIP:enterInvalidCodeAboutNotFound"),Pe.showValidationMessage(_({en:"Invalid code (cannot find code owner infor)",vi:"Mã không hợp lệ (không tìm được thông tin chủ nhân của mã)"}))}const g=await Ht(Ve.UsefulScript.statistic+"/referral",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uid:e,referralCode:m})});console.log(g);const p=Pn(g);return p!=null&&p.error?Pe.showValidationMessage(_(p.error)):(he("VIP:enterCodeSuccess"),Fi(),await Pe.fire({icon:"success",title:_({en:"Code entered successfully",vi:"Nhập mã thành công"}),text:_({en:"3 days VIP has been added to your account",vi:"3 ngày VIP đã được thêm vào tài khoản của bạn"}),confirmButtonText:_({en:"Awesome!",vi:"Tuyêt vời!"})}),m)}});return i.isDenied&&(he("VIP:enterCodeHelp"),window.open(Ve.FB_AIO.helpReferral,"_blank")),i.isDismissed}const Sw=e=>(l.useEffect(()=>{document.title=e.title||""},[e.title]),e.children),$w=({children:e,timeout:t=3e3,onTimeout:n})=>(l.useEffect(()=>{const r=setTimeout(()=>{n==null||n()},t);return()=>clearTimeout(r)},[]),x.jsx(x.Fragment,{children:e})),Iw=$w,Pw=""+new URL("logo-BgUNo_GL.png",import.meta.url).href,kw=""+new URL("qrcode-BaaMZNva.svg",import.meta.url).href,{Header:Ew,Sider:Ow,Content:_w,Footer:Mw}=Kn,Tw=l.lazy(()=>_t(()=>import("./LanguagePicker-DdOnah74.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),Bw=l.lazy(()=>_t(()=>import("./ProfileHeader-Db4erSQn.js"),__vite__mapDeps([6,1,2,7,8,9,10,11,12]),import.meta.url)),Aw=l.lazy(()=>_t(()=>import("./Notifications-PTKdvrFF.js"),__vite__mapDeps([13,1,2,12,14,15,11,10,16,5,8,17,18]),import.meta.url)),Rw=l.lazy(()=>_t(()=>import("./Dashboard-2LLzpdYA.js"),__vite__mapDeps([19,1,2,20,21]),import.meta.url)),jw=l.lazy(()=>_t(()=>import("./AllMessages-DGHBx4Ei.js"),__vite__mapDeps([22,1,2,23,24,3,4,5,25,26,18,10,8,9,11,12,27,28,29]),import.meta.url)),Nw=l.lazy(()=>_t(()=>import("./FirstMessages-BMRQW45D.js"),__vite__mapDeps([30,1,2,26,25,24,31,32,8,28,17,5,16,14,15,11,10,18,9,12,27,29]),import.meta.url)),Dw=l.lazy(()=>_t(()=>import("./AllFriends-0QZBJ5aF.js"),__vite__mapDeps([33,1,2,26,34,35,36,8,29,16,5,17,37,3,4,11,10,15,32,28,18,23,24,38,25,9,12,27,39]),import.meta.url)),Lw=l.lazy(()=>_t(()=>import("./FriendRequests-Cjy_XoL8.js"),__vite__mapDeps([40,1,2,34,35,36,8,29,16,5,17,37,3,4,11,10,15,32,28,18,38,9,12,27,39]),import.meta.url)),zw=l.lazy(()=>_t(()=>import("./index-Cp3vfVbK.js").then(e=>e.i),__vite__mapDeps([41,1,2,42,9,10,11,12,8,5,16,17,32,28,43,4,27,29,20]),import.meta.url)),Fw=l.lazy(()=>_t(()=>import("./index-FqgPeFV_.js"),__vite__mapDeps([44,1,2,43,4]),import.meta.url)),Vw=l.lazy(()=>_t(()=>import("./index-DJG2H-VC.js"),__vite__mapDeps([45,1,2,26,38,23,24,3,4,5,46,9,10,11,12,8,18,39]),import.meta.url)),Hw=l.lazy(()=>_t(()=>import("./index-drlxkLo6.js"),__vite__mapDeps([47,1,2,38,23,24,3,4,5,26,48,27,28,29,8,18,10,39,12]),import.meta.url)),Ww=l.lazy(()=>_t(()=>import("./VIP-3r4NLbNh.js"),__vite__mapDeps([49,1,2,8,18,10,20,36,29,16,5,17,37,3,4,11,15,32,28]),import.meta.url)),qw=l.lazy(()=>_t(()=>import("./index-Bns8oKci.js"),__vite__mapDeps([50,1,2,34,35,36,8,29,16,5,17,37,3,4,11,10,15,32,28,18,23,24,9,12,27]),import.meta.url)),Kw=l.lazy(()=>_t(()=>import("./Shortcuts-BrDAbgQB.js"),__vite__mapDeps([51,1,2,18,10,8,14,15,11,16,5,17]),import.meta.url)),Gw=l.lazy(()=>_t(()=>import("./VideoDownloader-CGIr9UaI.js"),__vite__mapDeps([52,1,2,42,8,32,28,17]),import.meta.url)),Uw=l.lazy(()=>_t(()=>import("./AutoRun-YEVjSwxH.js"),__vite__mapDeps([53,1,2,18,10,8,20,14,15,11,16,5,17,37,21]),import.meta.url)),Xw=l.lazy(()=>_t(()=>import("./Tip-DwnoLHUc.js"),__vite__mapDeps([54,1,2,8,14,15,11,10,16,5,17,18]),import.meta.url));function dc(e,t){return e.map(n=>{const r=n.badge?x.jsxs(Mi,{children:[n.label.bold?x.jsx("b",{children:t(n.label)}):t(n.label),x.jsx(zr,{color:n.badge.bg,style:{color:n.badge.color},count:t(n.badge.text)})]}):t(n.label);return{key:n.key||n.path||t(n.label),label:n.path?x.jsx(Pd,{to:n.path,children:r}):r,icon:n.icon,children:n.children?dc(n.children,t):null}})}function fc(e,t){let n=[];return e.forEach(r=>{r.path&&n.push({path:r.path,element:x.jsx(Sw,{title:t(r.label)+" | FB AIO",children:r.element})}),r.children&&(n=n.concat(fc(r.children,t)))}),n}const ks=[{label:{en:"Dashboard",vi:"Trang chủ"},icon:x.jsx("i",{className:"fa-solid fa-house"}),path:"/",element:x.jsx(Rw,{})},{label:{en:"Bulk Downloader",vi:"Tải Hàng Loạt"},badge:mr.HOT,icon:x.jsx("i",{className:"fa-solid fa-download"}),path:"/bulk-downloader",element:x.jsx(zw,{})},{label:{en:"Stories",vi:"Tin (Story)"},icon:x.jsx("i",{className:"fa-solid fa-heart"}),path:"/stories",element:x.jsx(Fw,{})},{key:"messages",label:{en:"Messages",vi:"Tin nhắn"},icon:x.jsx("i",{className:"fa-brands fa-facebook-messenger"}),children:[{label:{en:"All messages",vi:"Tất cả tin nhắn"},badge:mr.NEW,icon:x.jsx("i",{className:"fa-solid fa-comments"}),path:"/messages/all",element:x.jsx(jw,{})},{label:{en:"First messages",vi:"Tin nhắn đầu tiên"},icon:x.jsx("i",{className:"fa-solid fa-clock-rotate-left"}),path:"/messages/first",element:x.jsx(Nw,{})}]},{key:"cleanfb",label:{en:"Clean Facebook",vi:"Dọn Facebook"},icon:x.jsx("i",{className:"fa-solid fa-broom"}),badge:mr.NEW,children:[{label:{en:"All friends",vi:"Lọc bạn bè"},icon:x.jsx("i",{className:"fa-solid fa-users"}),path:"/friends/all",badge:mr.HOT,element:x.jsx(Dw,{})},{label:{en:"Friend requests",vi:"Lời mời kết bạn"},icon:x.jsx("i",{className:"fa-solid fa-user-plus"}),path:"/friends/requests",element:x.jsx(Lw,{})},{label:{en:"Following",vi:"Đang theo dõi"},icon:x.jsx("i",{className:"fa-solid fa-person-walking-arrow-right"}),path:"/friends/follows",element:x.jsx(qw,{})},{label:{en:"Groups",vi:"Nhóm"},icon:x.jsx("i",{className:"fa-solid fa-users-line"}),path:"/groups",element:x.jsx(Vw,{})},{label:{en:"Pages",vi:"Trang"},icon:x.jsx("i",{className:"fa-solid fa-flag"}),path:"/pages",element:x.jsx(Hw,{})}]},{key:"more",label:{en:"Tools",vi:"Tiện ích"},icon:x.jsx("i",{className:"fa-solid fa-star"}),children:[{label:{en:"AutoRun",vi:"Tự chạy"},badge:mr.HOT,icon:x.jsx("i",{className:"fa-solid fa-play"}),path:"/autorun",element:x.jsx(Uw,{})},{label:{en:"Video Downloader",vi:"Tải video"},icon:x.jsx("i",{className:"fa-solid fa-film"}),path:"/video-downloader",element:x.jsx(Gw,{})},{label:{en:"Shortcuts",vi:"Phím tắt"},icon:x.jsx("i",{className:"fa-solid fa-link"}),path:"/shortcuts",element:x.jsx(Kw,{})},{label:{en:"Tip",vi:"Mẹo"},badge:mr.NEW,icon:x.jsx("i",{className:"fa-solid fa-lightbulb"}),path:"/tip",element:x.jsx(Xw,{})}]},{label:{en:"VIP",vi:"VIP",bold:!0},icon:x.jsx("i",{className:"fa-solid fa-crown",style:{color:"gold"}}),path:"/vip",element:x.jsx(Ww,{})}];function Yw(){return rw()?(he("MyApp:isMobile"),Pe.fire({icon:"warning",title:_({en:"Mobile is not supported yet",vi:"Chưa hỗ trợ điện thoại"}),text:_({en:"FB AIO can only run on PC/laptop with Chrome/Edge browser",vi:"FB AIO chỉ có thể sử dụng trên máy tính/laptop với trình duyệt Chrome/Edge"}),confirmButtonText:_({en:"Got it",vi:"Đã hiểu"})}),!1):!0}function Zw(e){const t=Up.getParser(window.navigator.userAgent),n=t.satisfies({desktop:{chrome:">=80",edge:">=80"}});if(!n){const r=t.getResult();console.log(n,r),e.open({type:"warning",message:_({en:"Browser not fully supported",vi:"Trình duyệt chưa hỗ trợ 100%"}),description:_({en:`FB AIO run best on PC/laptop with Chrome/Edge browser. You are using ${r.browser.name} on ${r.platform.type} ${r.os.name}`,vi:`FB AIO chạy tốt nhất trên máy tính/laptop với trình duyệt Chrome/Edge. - Bạn đang dùng ${r.browser.name} trên ${r.platform.type} ${r.os.name}`}),duration:0})}}async function Zw(e){const t=await cw();return t?e.success({content:_({en:"Connected to extension ",vi:"Đã kết nối tới extension "})+t.name+" - v"+t.version}):(he("MyApp:cannotConnectExt"),Fo.fire({icon:"error",title:_({en:"Cannot connect to Extension",vi:"Không thể kết nối tới Extension"}),html:_({en:x.jsxs(x.Fragment,{children:["Please install Extension"," ",x.jsx("a",{href:Ve.FB_AIO.webstore,target:"_blank",children:"Facebook all-in-one"})," ","first",x.jsx("br",{}),"To use this website"]}),vi:x.jsxs(x.Fragment,{children:["Bạn cần cài đặt tiện ích"," ",x.jsx("a",{href:Ve.FB_AIO.webstore,target:"_blank",children:"Facebook all-in-one"})," ","trước",x.jsx("br",{}),"Để có thể sử dụng trang web này"]})}),confirmButtonText:_({en:"Install FB AIO",vi:"Cài FB AIO"}),cancelButtonText:_({en:"Close",vi:"Đóng"}),denyButtonText:_({en:"Support",vi:"Hỗ trợ"}),showCancelButton:!0,showDenyButton:!0,reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1}).then(n=>{n.isConfirmed?(he("MyApp:cannotConnectExt:openStore"),window.open(Ve.FB_AIO.webstore)):n.isDenied&&(he("MyApp:cannotConnectExt:support"),window.open(Ve.GroupFB,"_blank"))})),t}async function Qw(e){if(!e)return!1;Dr("fb_dtsg",e);let t;try{const n=await Ir();t=await Ci(n)}catch{}return console.log(t),t!=null&&t.name?!0:(Dr("fb_dtsg",null),!1)}async function Jw(e,t){const n="fb-aio-load-profile";try{t.loading({content:_({en:"Loading your uid...",vi:"Đang tìm uid..."}),duration:0,key:n});const r=await Ir();if(!r)e.open({type:"error",duration:0,message:_({en:"You are not logged in to Facebook",vi:"Bạn chưa đăng nhập vào Facebook"}),description:_({en:"Please login to Facebook first then Reload this website",vi:"Vui lòng đăng nhập Facebook trước rồi Mở lại trang web"}),btn:x.jsx(go,{type:"primary",icon:x.jsx("i",{className:"fa-brands fa-facebook"}),onClick:()=>window.open("https://fb.com","_blank"),children:_({en:"Open Facebook",vi:"Mở Facebook"})})}),he("MyApp:notLoggedIn");else{if(t.loading({content:_({en:"Getting fb_dtsg token...",vi:"Đang tìm fb_dtsg token..."}),duration:0,key:n}),!await qr()){const c="fb-aio-cached-fbdtsg",m=localStorage.getItem(c)||"";if(t.loading({content:_({en:"Checking cached fb_dtsg token...",vi:"Đang kiểm tra fb_dtsg token đã lưu..."}),duration:0,key:n}),!await Qw(m)){const g=await Fo.fire({icon:"error",title:_({en:"Missing fb_dtsg token",vi:"Không lấy được fb_dtsg token"}),html:x.jsxs(x.Fragment,{children:[_({en:"Need manual get and paste your fb_dtsg token here",vi:"Cần lấy token bằng tay và nhập vào đây"}),x.jsx("br",{}),x.jsx(Fl,{color:"blue",children:x.jsx("code",{children:'copy(require("DTSG").getToken())'})}),x.jsx(Xr,{title:_({en:"Copy code",vi:"Sao chép mã"}),children:x.jsx(go,{onClick:()=>{ic('copy(require("DTSG").getToken())')?t.success(_({en:"Copied",vi:"Đã sao chép"})):t.error(_({en:"Error. Please manually select and copy",vi:"Lỗi. Vui lòng tự bôi đen đoạn code và copy"}))},icon:x.jsx("i",{className:"fa-regular fa-copy"})})}),x.jsx("a",{className:"highlight",target:"_blank",href:Ve.FB_AIO.howToGetFbDtsg,style:{marginTop:10,display:"block"},children:_({en:"How to get token?",vi:"Cách lấy token?"})}),x.jsx("br",{}),x.jsx("input",{type:"text",id:"swal2-input",className:"swal2-input",placeholder:_({en:"Paste your fb_dtsg token here",vi:"Nhập fb_dtsg token vào đây"})})]}),preConfirm:async()=>{const p=document.getElementById("swal2-input").value;if(!p)return Pe.showValidationMessage(_({en:"Please enter your fb_dtsg token",vi:"Vui lòng nhập fb_dtsg token"}));Dr("fb_dtsg",p),Pe.showLoading();let h;try{h=await Ci(r)}catch{}return console.log(h),h!=null&&h.name?p:(Dr("fb_dtsg",null),Pe.hideLoading(),Pe.showValidationMessage(_({en:"Token invalid",vi:"Token không hợp lệ"})))},allowEscapeKey:!1,allowOutsideClick:!1});g.isConfirmed&&(Dr("fb_dtsg",g.value),localStorage.setItem(c,g.value),he("MyApp:manual_fb_dtsg"),t.success({content:_({en:"Add fb_dtsg token successfully",vi:"Thêm fb_dtsg thành công"})}))}}zo(zi.EAAB).then(console.log),t.loading({content:_({en:"Getting your profile data...",vi:"Đang tải thông tin của bạn..."}),duration:0,key:n});const s=await Ci(r);if(!s)throw new Error("Cannot get your facebook profile data");return s.fb_dtsg=await qr(),console.log(s),he("MyApp:loadProfile"),cc(),s}}catch(r){Pe.fire({icon:"error",title:_({en:"Failed to get your profile data",vi:"Không lấy được thông tin của bạn"}),text:r.message,confirmButtonText:_({en:"Retry",vi:"Thử lại"}),denyButtonText:_({en:"Support",vi:"Hỗ trợ"}),showDenyButton:!0,showCancelButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,reverseButtons:!0}).then(i=>{i.isConfirmed?window.location.reload():i.isDenied&&window.open(Ve.GroupFB,"_blank")})}finally{t.success({content:_({en:"All done. Welcome!",vi:"Tất cả đã xong. Chào mừng!"}),key:n})}return null}function ey(){const{notification:e,message:t}=hw(),{ti:n}=ec(),r=Sd(),i=ot(it.hydrated),s=ot(it.setProfile),c=ot(it.darkMode),m=ot(it.setDarkMode),f=ot(it.muted),g=ot(it.setMuted),p=l.useRef(null),[h,b]=l.useState(!1),w=l.useRef(!1);l.useEffect(()=>{(async()=>{if(w.current||!Xw())return;if(w.current=!0,b(!0),await Di(100),!await Zw(t))return b(!1);sw(),Yw(e),b(!1);const I=await Jw(e,t);I&&s(I),w.current=!1})()},[]);const S=dc(ks,n),C=fc(ks,n);return i?x.jsxs(Kn,{style:{height:"100vh",width:"100vw"},hasSider:!0,children:[x.jsxs(Ew,{collapsible:!0,breakpoint:"lg",width:250,theme:"dark",style:{overflow:"auto",height:"100vh",scrollbarWidth:"thin",scrollbarColor:"#999 #111"},children:[x.jsx("div",{style:{height:64,padding:10,display:"flex",justifyContent:"center",alignItems:"center"},children:x.jsx("a",{href:Ve.GroupFB,target:"_blank",style:{height:"100%",textAlign:"center",position:"relative"},children:x.jsx("img",{src:Iw,style:{height:"100%"},alt:"Facebook all in one logo"})})}),x.jsx(Zr,{theme:"dark",mode:"inline",items:S,selectedKeys:[r.pathname]}),x.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",paddingBottom:100},children:[x.jsx(go,{type:"text",icon:x.jsx("i",{className:"fa-solid fa-headset fa-lg"}),style:{marginTop:16,color:"#bbb"},onClick:()=>{he("onClickSupport"),window.open(Ve.GroupFB)},children:n({en:"Support",vi:"Trợ giúp"})}),x.jsx("img",{className:"qrcode",src:Pw,onClick:()=>{he("onClickDonate"),window.open(Ve.donate,"_blank")}})]})]}),x.jsxs(Kn,{children:[x.jsx(kw,{style:{display:"flex",width:"100%",paddingRight:16,justifyContent:"flex-end",alignItems:"center"},children:x.jsxs(Mi,{children:[x.jsx(Tw,{}),x.jsx(Mw,{}),x.jsx(Bw,{})]})}),x.jsxs(Ow,{ref:p,style:{flex:1,padding:"0 18px 18px",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#999 #111"},children:[x.jsx(l.Suspense,{fallback:x.jsx($w,{timeout:5e3,onTimeout:()=>{Pe.fire({icon:"question",title:n({en:"Loading too slow?",vi:"Tải trang chậm?"}),text:n({en:"Maybe there is an error. Reload website may help.",vi:"Có thể có lỗi nào đó. Hãy thử tải lại trang và thử lại."}),showCancelButton:!0,confirmButtonText:n({en:"Yes, Reload page",vi:"Có, Tải lại trang"}),cancelButtonText:n({en:"No, Wait for it",vi:"Không, Tôi sẽ chờ"}),reverseButtons:!0}).then(y=>{y.isConfirmed&&window.location.reload()})},children:x.jsx(uo,{fullscreen:!0,spinning:!0})}),children:h?x.jsx(uo,{fullscreen:!0,spinning:!0}):x.jsx($d,{children:C.map(y=>x.jsx(Id,{path:y.path,element:y.element},y.path))})}),x.jsx(Qt.BackTop,{target:()=>p.current,tooltip:n({en:"Back to top",vi:"Về đầu trang"}),style:{insetInlineEnd:70}}),x.jsxs(Qt.Group,{trigger:"hover",type:"default",icon:x.jsx("i",{className:"fa-solid fa-wand-magic-sparkles"}),badge:{dot:!0},children:[x.jsx(Qt,{href:Ve.GroupFB,target:"_blank",tooltip:n({en:"Support",vi:"Trợ giúp"}),icon:x.jsx("i",{className:"fa-solid fa-headset"}),onClick:()=>he("Floating:onClickSupport")}),x.jsx(Qt,{href:Ve.FB_AIO.webstore,target:"_blank",tooltip:n({en:"Rating Us",vi:"Đánh giá 5 sao"}),icon:x.jsx("i",{className:"fa-solid fa-star",style:{color:"gold"}}),onClick:()=>he("Floating:onClickRating")}),x.jsx(Qt,{href:Ve.FB_AIO.featureRequest,target:"_blank",tooltip:n({en:"Bug Report / Feature Request",vi:"Báo lỗi / Yêu cầu chức năng"}),icon:x.jsx("i",{className:"fa-solid fa-bug"}),badge:{dot:!0},onClick:()=>he("Floating:onClickBugReport_FeatureRequest")}),x.jsx(Qt,{type:c?"primary":"default",tooltip:n({en:"Dark Mode",vi:"Chế độ tối"}),icon:x.jsx("i",{className:"fa-regular fa-moon"}),onClick:()=>{he("ThemeChanger:setDarkMode:"+!c),m(!c)}}),x.jsx(Qt,{type:f?"primary":"default",tooltip:n({en:"Global Mute",vi:"Tắt tiếng"}),icon:f?x.jsx("i",{className:"fa-solid fa-volume-xmark"}):x.jsx("i",{className:"fa-solid fa-volume-high"}),onClick:()=>{he("ThemeChanger:setMuted:"+!f),g(!f)}})]})]}),x.jsxs(_w,{style:{textAlign:"center",padding:8},onClick:pw,children:["Facebook All In One ©",new Date().getFullYear()," - Cretead by"," ",x.jsx("a",{href:Ve.GroupFB,target:"_blank",children:"Hoang Tran"})," ","&"," ",x.jsx("a",{href:Ve.FaintiyoMedia,target:"_blank",children:"FaintiyoMedia"})]})]})]}):x.jsx(uo,{fullscreen:!0})}const Ty=Object.freeze(Object.defineProperty({__proto__:null,default:ey},Symbol.toStringTag,{value:"Module"}));export{gf as $,Ci as A,zr as B,Ey as C,$r as D,Pn as E,Tn as F,nc as G,Ht as H,rc as I,Iy as J,hy as K,gy as L,Di as M,_y as N,Jb as O,Ir as P,mo as Q,Gr as R,Pe as S,Xr as T,my as U,ac as V,_ as W,vw as X,lc as Y,Yr as Z,Bo as _,My as a,bg as a0,rf as a1,za as a2,yy as a3,Lt as a4,wy as a5,by as a6,zo as a7,zi as a8,fy as a9,Ty as aA,$y as aa,ly as ab,uo as ac,sy as ad,qf as ae,cl as af,Xf as ag,Zr as ah,ny as ai,vo as aj,sl as ak,Ga as al,nf as am,uy as an,Cy as ao,dy as ap,xy as aq,Sy as ar,Ss as as,Oy as at,cy as au,Cs as av,nw as aw,oc as ax,vy as ay,ay as az,Mi as b,Fl as c,hw as d,Vt as e,oy as f,Py as g,iy as h,gw as i,mw as j,yw as k,al as l,br as m,Hf as n,ry as o,of as p,lf as q,py as r,sf as s,he as t,ec as u,af as v,Wf as w,_a as x,ky as y,sc as z}; + Bạn đang dùng ${r.browser.name} trên ${r.platform.type} ${r.os.name}`}),duration:0})}}async function Qw(e){const t=await cw();return t?e.success({content:_({en:"Connected to extension ",vi:"Đã kết nối tới extension "})+t.name+" - v"+t.version}):(he("MyApp:cannotConnectExt"),Fo.fire({icon:"error",title:_({en:"Cannot connect to Extension",vi:"Không thể kết nối tới Extension"}),html:_({en:x.jsxs(x.Fragment,{children:["Please install Extension"," ",x.jsx("a",{href:Ve.FB_AIO.webstore,target:"_blank",children:"Facebook all-in-one"})," ","first",x.jsx("br",{}),"To use this website"]}),vi:x.jsxs(x.Fragment,{children:["Bạn cần cài đặt tiện ích"," ",x.jsx("a",{href:Ve.FB_AIO.webstore,target:"_blank",children:"Facebook all-in-one"})," ","trước",x.jsx("br",{}),"Để có thể sử dụng trang web này"]})}),confirmButtonText:_({en:"Install FB AIO",vi:"Cài FB AIO"}),cancelButtonText:_({en:"Close",vi:"Đóng"}),denyButtonText:_({en:"Support",vi:"Hỗ trợ"}),showCancelButton:!0,showDenyButton:!0,reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1}).then(n=>{n.isConfirmed?(he("MyApp:cannotConnectExt:openStore"),window.open(Ve.FB_AIO.webstore)):n.isDenied&&(he("MyApp:cannotConnectExt:support"),window.open(Ve.GroupFB,"_blank"))})),t}async function Jw(e){if(!e)return!1;Dr("fb_dtsg",e);let t;try{const n=await Ir();t=await Ci(n)}catch{}return console.log(t),t!=null&&t.name?!0:(Dr("fb_dtsg",null),!1)}async function ey(e,t){const n="fb-aio-load-profile";try{t.loading({content:_({en:"Loading your uid...",vi:"Đang tìm uid..."}),duration:0,key:n});const r=await Ir();if(!r)e.open({type:"error",duration:0,message:_({en:"You are not logged in to Facebook",vi:"Bạn chưa đăng nhập vào Facebook"}),description:_({en:"Please login to Facebook first then Reload this website",vi:"Vui lòng đăng nhập Facebook trước rồi Mở lại trang web"}),btn:x.jsx(go,{type:"primary",icon:x.jsx("i",{className:"fa-brands fa-facebook"}),onClick:()=>window.open("https://fb.com","_blank"),children:_({en:"Open Facebook",vi:"Mở Facebook"})})}),he("MyApp:notLoggedIn");else{if(t.loading({content:_({en:"Getting fb_dtsg token...",vi:"Đang tìm fb_dtsg token..."}),duration:0,key:n}),!await qr()){const c="fb-aio-cached-fbdtsg",m=localStorage.getItem(c)||"";if(t.loading({content:_({en:"Checking cached fb_dtsg token...",vi:"Đang kiểm tra fb_dtsg token đã lưu..."}),duration:0,key:n}),!await Jw(m)){const g=await Fo.fire({icon:"error",title:_({en:"Missing fb_dtsg token",vi:"Không lấy được fb_dtsg token"}),html:x.jsxs(x.Fragment,{children:[_({en:"Need manual get and paste your fb_dtsg token here",vi:"Cần lấy token bằng tay và nhập vào đây"}),x.jsx("br",{}),x.jsx(Fl,{color:"blue",children:x.jsx("code",{children:'copy(require("DTSG").getToken())'})}),x.jsx(Xr,{title:_({en:"Copy code",vi:"Sao chép mã"}),children:x.jsx(go,{onClick:()=>{ic('copy(require("DTSG").getToken())')?t.success(_({en:"Copied",vi:"Đã sao chép"})):t.error(_({en:"Error. Please manually select and copy",vi:"Lỗi. Vui lòng tự bôi đen đoạn code và copy"}))},icon:x.jsx("i",{className:"fa-regular fa-copy"})})}),x.jsx("a",{className:"highlight",target:"_blank",href:Ve.FB_AIO.howToGetFbDtsg,style:{marginTop:10,display:"block"},children:_({en:"How to get token?",vi:"Cách lấy token?"})}),x.jsx("br",{}),x.jsx("input",{type:"text",id:"swal2-input",className:"swal2-input",placeholder:_({en:"Paste your fb_dtsg token here",vi:"Nhập fb_dtsg token vào đây"})})]}),preConfirm:async()=>{const p=document.getElementById("swal2-input").value;if(!p)return Pe.showValidationMessage(_({en:"Please enter your fb_dtsg token",vi:"Vui lòng nhập fb_dtsg token"}));Dr("fb_dtsg",p),Pe.showLoading();let h;try{h=await Ci(r)}catch{}return console.log(h),h!=null&&h.name?p:(Dr("fb_dtsg",null),Pe.hideLoading(),Pe.showValidationMessage(_({en:"Token invalid",vi:"Token không hợp lệ"})))},allowEscapeKey:!1,allowOutsideClick:!1});g.isConfirmed&&(Dr("fb_dtsg",g.value),localStorage.setItem(c,g.value),he("MyApp:manual_fb_dtsg"),t.success({content:_({en:"Add fb_dtsg token successfully",vi:"Thêm fb_dtsg thành công"})}))}}zo(zi.EAAB).then(console.log),t.loading({content:_({en:"Getting your profile data...",vi:"Đang tải thông tin của bạn..."}),duration:0,key:n});const s=await Ci(r);if(!s)throw new Error("Cannot get your facebook profile data");return s.fb_dtsg=await qr(),console.log(s),he("MyApp:loadProfile"),cc(),s}}catch(r){Pe.fire({icon:"error",title:_({en:"Failed to get your profile data",vi:"Không lấy được thông tin của bạn"}),text:r.message,confirmButtonText:_({en:"Retry",vi:"Thử lại"}),denyButtonText:_({en:"Support",vi:"Hỗ trợ"}),showDenyButton:!0,showCancelButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,reverseButtons:!0}).then(i=>{i.isConfirmed?window.location.reload():i.isDenied&&window.open(Ve.GroupFB,"_blank")})}finally{t.success({content:_({en:"All done. Welcome!",vi:"Tất cả đã xong. Chào mừng!"}),key:n})}return null}function ty(){const{notification:e,message:t}=hw(),{ti:n}=ec(),r=Sd(),i=ot(it.hydrated),s=ot(it.setProfile),c=ot(it.darkMode),m=ot(it.setDarkMode),f=ot(it.muted),g=ot(it.setMuted),p=l.useRef(null),[h,b]=l.useState(!1),w=l.useRef(!1);l.useEffect(()=>{(async()=>{if(w.current||!Yw())return;if(w.current=!0,b(!0),await Di(100),!await Qw(t))return b(!1);sw(),Zw(e),b(!1);const I=await ey(e,t);I&&s(I),w.current=!1})()},[]);const S=dc(ks,n),C=fc(ks,n);return i?x.jsxs(Kn,{style:{height:"100vh",width:"100vw"},hasSider:!0,children:[x.jsxs(Ow,{collapsible:!0,breakpoint:"lg",width:250,theme:"dark",style:{overflow:"auto",height:"100vh",scrollbarWidth:"thin",scrollbarColor:"#999 #111"},children:[x.jsx("div",{style:{height:64,padding:10,display:"flex",justifyContent:"center",alignItems:"center"},children:x.jsx("a",{href:Ve.GroupFB,target:"_blank",style:{height:"100%",textAlign:"center",position:"relative"},children:x.jsx("img",{src:Pw,style:{height:"100%"},alt:"Facebook all in one logo"})})}),x.jsx(Zr,{theme:"dark",mode:"inline",items:S,selectedKeys:[r.pathname]}),x.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",paddingBottom:100},children:[x.jsx(go,{type:"text",icon:x.jsx("i",{className:"fa-solid fa-headset fa-lg"}),style:{marginTop:16,color:"#bbb"},onClick:()=>{he("onClickSupport"),window.open(Ve.GroupFB)},children:n({en:"Support",vi:"Trợ giúp"})}),x.jsx("img",{className:"qrcode",src:kw,onClick:()=>{he("onClickDonate"),window.open(Ve.donate,"_blank")}})]})]}),x.jsxs(Kn,{children:[x.jsx(Ew,{style:{display:"flex",width:"100%",paddingRight:16,justifyContent:"flex-end",alignItems:"center"},children:x.jsxs(Mi,{children:[x.jsx(Bw,{}),x.jsx(Tw,{}),x.jsx(Aw,{})]})}),x.jsxs(_w,{ref:p,style:{flex:1,padding:"0 18px 18px",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#999 #111"},children:[x.jsx(l.Suspense,{fallback:x.jsx(Iw,{timeout:5e3,onTimeout:()=>{Pe.fire({icon:"question",title:n({en:"Loading too slow?",vi:"Tải trang chậm?"}),text:n({en:"Maybe there is an error. Reload website may help.",vi:"Có thể có lỗi nào đó. Hãy thử tải lại trang và thử lại."}),showCancelButton:!0,confirmButtonText:n({en:"Yes, Reload page",vi:"Có, Tải lại trang"}),cancelButtonText:n({en:"No, Wait for it",vi:"Không, Tôi sẽ chờ"}),reverseButtons:!0}).then(y=>{y.isConfirmed&&window.location.reload()})},children:x.jsx(uo,{fullscreen:!0,spinning:!0})}),children:h?x.jsx(uo,{fullscreen:!0,spinning:!0}):x.jsx($d,{children:C.map(y=>x.jsx(Id,{path:y.path,element:y.element},y.path))})}),x.jsx(Qt.BackTop,{target:()=>p.current,tooltip:n({en:"Back to top",vi:"Về đầu trang"}),style:{insetInlineEnd:70}}),x.jsxs(Qt.Group,{trigger:"hover",type:"default",icon:x.jsx("i",{className:"fa-solid fa-wand-magic-sparkles"}),badge:{dot:!0},children:[x.jsx(Qt,{href:Ve.GroupFB,target:"_blank",tooltip:n({en:"Support",vi:"Trợ giúp"}),icon:x.jsx("i",{className:"fa-solid fa-headset"}),onClick:()=>he("Floating:onClickSupport")}),x.jsx(Qt,{href:Ve.FB_AIO.webstore,target:"_blank",tooltip:n({en:"Rating Us",vi:"Đánh giá 5 sao"}),icon:x.jsx("i",{className:"fa-solid fa-star",style:{color:"gold"}}),onClick:()=>he("Floating:onClickRating")}),x.jsx(Qt,{href:Ve.FB_AIO.featureRequest,target:"_blank",tooltip:n({en:"Bug Report / Feature Request",vi:"Báo lỗi / Yêu cầu chức năng"}),icon:x.jsx("i",{className:"fa-solid fa-bug"}),badge:{dot:!0},onClick:()=>he("Floating:onClickBugReport_FeatureRequest")}),x.jsx(Qt,{type:c?"primary":"default",tooltip:n({en:"Dark Mode",vi:"Chế độ tối"}),icon:x.jsx("i",{className:"fa-regular fa-moon"}),onClick:()=>{he("ThemeChanger:setDarkMode:"+!c),m(!c)}}),x.jsx(Qt,{type:f?"primary":"default",tooltip:n({en:"Global Mute",vi:"Tắt tiếng"}),icon:f?x.jsx("i",{className:"fa-solid fa-volume-xmark"}):x.jsx("i",{className:"fa-solid fa-volume-high"}),onClick:()=>{he("ThemeChanger:setMuted:"+!f),g(!f)}})]})]}),x.jsxs(Mw,{style:{textAlign:"center",padding:8},onClick:pw,children:["Facebook All In One ©",new Date().getFullYear()," - Cretead by"," ",x.jsx("a",{href:Ve.GroupFB,target:"_blank",children:"Hoang Tran"})," ","&"," ",x.jsx("a",{href:Ve.FaintiyoMedia,target:"_blank",children:"FaintiyoMedia"})]})]})]}):x.jsx(uo,{fullscreen:!0})}const By=Object.freeze(Object.defineProperty({__proto__:null,default:ty},Symbol.toStringTag,{value:"Module"}));export{gf as $,Ci as A,zr as B,Oy as C,$r as D,Pn as E,Tn as F,nc as G,Ht as H,rc as I,Py as J,vy as K,py as L,Di as M,My as N,Jb as O,Ir as P,mo as Q,Gr as R,Pe as S,Xr as T,gy as U,ac as V,_ as W,vw as X,lc as Y,Yr as Z,Bo as _,Ty as a,bg as a0,rf as a1,za as a2,Cy as a3,Lt as a4,yy as a5,wy as a6,zo as a7,zi as a8,my as a9,By as aA,Iy as aa,cy as ab,uo as ac,ly as ad,qf as ae,cl as af,Xf as ag,Zr as ah,ry as ai,vo as aj,sl as ak,Ga as al,nf as am,dy as an,xy as ao,fy as ap,Sy as aq,$y as ar,Ss as as,_y as at,uy as au,Cs as av,nw as aw,oc as ax,by as ay,sy as az,Mi as b,Fl as c,hw as d,Vt as e,iy as f,ky as g,ay as h,gw as i,mw as j,Cw as k,al as l,br as m,Hf as n,oy as o,of as p,lf as q,hy as r,sf as s,he as t,ec as u,af as v,Wf as w,_a as x,Ey as y,sc as z}; diff --git a/public/assets/MyTable-BTHATUSD.js b/public/assets/MyTable-C-6hHnGo.js similarity index 85% rename from public/assets/MyTable-BTHATUSD.js rename to public/assets/MyTable-C-6hHnGo.js index acd5b43..6e19137 100644 --- a/public/assets/MyTable-BTHATUSD.js +++ b/public/assets/MyTable-C-6hHnGo.js @@ -1 +1 @@ -import{r as l,aA as x}from"./index--trdnQFa.js";import{u as Q,L as V,b as X}from"./MyApp-BHr373cy.js";import{b as Y}from"./index-X7jfXLlB.js";import{F as Z}from"./Table-GiCOcILW.js";import{R as I}from"./row-DQoT4CfJ.js";import{I as ee}from"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./addEventListener-KkFh1sjE.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";import"./index-DmA8T0X5.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./Pagination-CPGTHysj.js";import"./EyeOutlined-BALW2cms.js";const te=l.forwardRef((z,B)=>{const{data:a=[],columns:p=[],size:H="middle",selectable:K=!1,searchable:M=!1,loading:q=!1,pageSize:T=0,keyExtractor:r=(s,n)=>n+"",onSearchRow:b,renderTitle:_,style:L}=z,{ti:i,language:O}=Q(),[h,U]=l.useState(""),[F,$]=l.useState(""),[e,o]=l.useState([]),[m,S]=l.useState(!1),A=Y(U,500),P=l.useRef(!1),k=s=>{$(s),A(s),P.current=!0};l.useImperativeHandle(B,()=>({getDataSelected:()=>e,setDataSelected:s=>{o(s)},hasDataSelected:()=>!!(e!=null&&e.length),setShowSelectedOnly:S,setSearch:k,clearFilter:({search:s=!0,dataSelected:n=!0,showSelectedOnly:t=!0}={})=>{s&&k(""),n&&o([]),t&&S(!1)}}));const y=l.useMemo(()=>{if(!h)return a;const s=new Map(p.map((t,c)=>[t.key,c])),n=a.filter(t=>b?b(h,t):Object.entries(t).some(([c,f],D)=>{var v,R;let g=s.get(c)||-1;return g<0||(v=p[g])!=null&&v.disableSearch?!1:(R=p[g])!=null&&R.onSearch?p[g].onSearch(h,f,t):typeof f=="string"&&V(h,f)})).map((t,c)=>({...t,key:r(t,c)}));if(m&&(e!=null&&e.length)){const t=new Set(e.map(r));return n.filter((c,f)=>t.has(r(c,f)))}return n},[a,h,m,e,p,r,b]);l.useEffect(()=>{if(!(e!=null&&e.length))return;let s=new Set(a.map(r)),n=e.filter((t,c)=>s.has(r(t,c)));(n==null?void 0:n.length)!==(e==null?void 0:e.length)&&o(n)},[a,e]),l.useEffect(()=>{!(e!=null&&e.length)&&m&&S(!1)},[e.length,m]);const E=l.useRef([]),d=l.useRef([]),C=l.useRef(!1);l.useEffect(()=>{!C.current&&(e!=null&&e.length)&&d.current.push(e),C.current=!1,console.log(d.current),E.current=e},[e]);const w=l.useRef(y);l.useEffect(()=>{w.current=y},[y]);const j=(s,n)=>{const t=new Set(a.map(r)),c=new Set(y.map(r)),f=new Set(E.current.map(r)),D=new Set(s),g=new Set([...t].filter(u=>!c.has(u))),v=new Set([...s].filter(u=>!f.has(u))),R=new Set([...f].filter(u=>!D.has(u)&&!g.has(u))),J=[...f,...v].filter(u=>!R.has(u)).map(u=>a.find(N=>r(N)===u)).filter(Boolean);o(J)},W=l.useMemo(()=>{if(!K)return;const s=[{key:"undo",text:i({en:"Undo selected",vi:"Hoàn tác lựa chọn"}),onSelect:()=>{C.current=!0;const n=d.current.pop();console.log(n),o(d.current[d.current.length-1]||[])}},{key:"select_all",text:i({en:"Select all",vi:"Chọn tất cả"}),onSelect:()=>o([...a])},{key:"invert_selection",text:i({en:"Invert selection",vi:"Đảo ngược lựa chọn"}),onSelect:()=>o(a.filter(n=>!e.find(t=>r(t)===r(n))))},{key:"unselect_all",text:i({en:"Unselect all",vi:"Bỏ chọn tất cả"}),onSelect:()=>{S(!1);const n=new Set(a.map(r));o(e.filter(t=>!n.has(r(t))))}},{key:"show_selected_only",text:(m?"✅ ":"❌ ")+i({en:"Show selected only",vi:"Chỉ hiển thị đã chọn"})+" ("+e.length+")",onSelect:()=>{k(""),S(!m)}}].filter(Boolean);return h&&s.push({key:"select_all_insearch",text:i({en:"Select all - search results",vi:"Chọn tất cả - kết quả tìm kiếm"}),onSelect:()=>o([...w.current])},{key:"invert_selection_insearch",text:i({en:"Invert selection - search results",vi:"Đảo ngược lựa chọn - kết quả tìm kiếm"}),onSelect:()=>o(w.current.filter(n=>!e.find(t=>r(t)===r(n))))},{key:"unselect_all_insearch",text:i({en:"Unselect all - search results",vi:"Bỏ chọn tất cả - kết quả tìm kiếm"}),onSelect:()=>{S(!1);const n=new Set(w.current.map(r));o(e.filter(t=>!n.has(r(t))))}}),{selectedRowKeys:e.map(r),onChange:j,selections:s}},[e,m,K,O,h,j]),G=()=>x.jsxs(I,{justify:"space-between",style:{margin:"5px"},children:[x.jsx(I,{align:"middle",children:x.jsx(X,{wrap:!0,children:typeof _=="function"&&_(e)})}),M&&x.jsx(ee.Search,{placeholder:i({en:"Search",vi:"Tìm kiếm"}),value:F,onChange:s=>k(s.target.value),style:{marginRight:16,marginLeft:16,maxWidth:300}})]});return x.jsx(Z,{sticky:{offsetHeader:0},fixedHeader:!0,size:H,loading:q,scroll:{x:"max-content"},tableLayout:"auto",dataSource:y,columns:p,showSorterTooltip:!1,rowKey:r,onChange:(s,n,t,c)=>{w.current=c.currentDataSource??[]},rowSelection:W,title:G,pagination:T==-1?!1:{position:["bottomCenter"],showSizeChanger:!0,showTotal:(s,n)=>i({en:`Total ${s} items`,vi:`Tổng ${s} dòng`}),size:"default",defaultPageSize:T||10,style:{alignItems:"center"}},style:L})}),xe=te;export{xe as default}; +import{r as l,aA as x}from"./index-BBriuzNA.js";import{u as Q,L as V,b as X}from"./MyApp-CmkiOnMb.js";import{b as Y}from"./index-NjHtWr7u.js";import{F as Z}from"./Table-By6CV266.js";import{R as I}from"./row-C0Wk6t4-.js";import{I as ee}from"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./addEventListener-w7NT04KM.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-tTPNrueW.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./Pagination-slfcHA-i.js";import"./EyeOutlined-Du2MtFRM.js";const te=l.forwardRef((z,B)=>{const{data:a=[],columns:p=[],size:H="middle",selectable:K=!1,searchable:M=!1,loading:q=!1,pageSize:T=0,keyExtractor:r=(s,n)=>n+"",onSearchRow:b,renderTitle:_,style:L}=z,{ti:i,language:O}=Q(),[h,U]=l.useState(""),[F,$]=l.useState(""),[e,o]=l.useState([]),[m,S]=l.useState(!1),A=Y(U,500),P=l.useRef(!1),k=s=>{$(s),A(s),P.current=!0};l.useImperativeHandle(B,()=>({getDataSelected:()=>e,setDataSelected:s=>{o(s)},hasDataSelected:()=>!!(e!=null&&e.length),setShowSelectedOnly:S,setSearch:k,clearFilter:({search:s=!0,dataSelected:n=!0,showSelectedOnly:t=!0}={})=>{s&&k(""),n&&o([]),t&&S(!1)}}));const y=l.useMemo(()=>{if(!h)return a;const s=new Map(p.map((t,c)=>[t.key,c])),n=a.filter(t=>b?b(h,t):Object.entries(t).some(([c,f],D)=>{var v,R;let g=s.get(c)||-1;return g<0||(v=p[g])!=null&&v.disableSearch?!1:(R=p[g])!=null&&R.onSearch?p[g].onSearch(h,f,t):typeof f=="string"&&V(h,f)})).map((t,c)=>({...t,key:r(t,c)}));if(m&&(e!=null&&e.length)){const t=new Set(e.map(r));return n.filter((c,f)=>t.has(r(c,f)))}return n},[a,h,m,e,p,r,b]);l.useEffect(()=>{if(!(e!=null&&e.length))return;let s=new Set(a.map(r)),n=e.filter((t,c)=>s.has(r(t,c)));(n==null?void 0:n.length)!==(e==null?void 0:e.length)&&o(n)},[a,e]),l.useEffect(()=>{!(e!=null&&e.length)&&m&&S(!1)},[e.length,m]);const E=l.useRef([]),d=l.useRef([]),C=l.useRef(!1);l.useEffect(()=>{!C.current&&(e!=null&&e.length)&&d.current.push(e),C.current=!1,console.log(d.current),E.current=e},[e]);const w=l.useRef(y);l.useEffect(()=>{w.current=y},[y]);const j=(s,n)=>{const t=new Set(a.map(r)),c=new Set(y.map(r)),f=new Set(E.current.map(r)),D=new Set(s),g=new Set([...t].filter(u=>!c.has(u))),v=new Set([...s].filter(u=>!f.has(u))),R=new Set([...f].filter(u=>!D.has(u)&&!g.has(u))),J=[...f,...v].filter(u=>!R.has(u)).map(u=>a.find(N=>r(N)===u)).filter(Boolean);o(J)},W=l.useMemo(()=>{if(!K)return;const s=[{key:"undo",text:i({en:"Undo selected",vi:"Hoàn tác lựa chọn"}),onSelect:()=>{C.current=!0;const n=d.current.pop();console.log(n),o(d.current[d.current.length-1]||[])}},{key:"select_all",text:i({en:"Select all",vi:"Chọn tất cả"}),onSelect:()=>o([...a])},{key:"invert_selection",text:i({en:"Invert selection",vi:"Đảo ngược lựa chọn"}),onSelect:()=>o(a.filter(n=>!e.find(t=>r(t)===r(n))))},{key:"unselect_all",text:i({en:"Unselect all",vi:"Bỏ chọn tất cả"}),onSelect:()=>{S(!1);const n=new Set(a.map(r));o(e.filter(t=>!n.has(r(t))))}},{key:"show_selected_only",text:(m?"✅ ":"❌ ")+i({en:"Show selected only",vi:"Chỉ hiển thị đã chọn"})+" ("+e.length+")",onSelect:()=>{k(""),S(!m)}}].filter(Boolean);return h&&s.push({key:"select_all_insearch",text:i({en:"Select all - search results",vi:"Chọn tất cả - kết quả tìm kiếm"}),onSelect:()=>o([...w.current])},{key:"invert_selection_insearch",text:i({en:"Invert selection - search results",vi:"Đảo ngược lựa chọn - kết quả tìm kiếm"}),onSelect:()=>o(w.current.filter(n=>!e.find(t=>r(t)===r(n))))},{key:"unselect_all_insearch",text:i({en:"Unselect all - search results",vi:"Bỏ chọn tất cả - kết quả tìm kiếm"}),onSelect:()=>{S(!1);const n=new Set(w.current.map(r));o(e.filter(t=>!n.has(r(t))))}}),{selectedRowKeys:e.map(r),onChange:j,selections:s}},[e,m,K,O,h,j]),G=()=>x.jsxs(I,{justify:"space-between",style:{margin:"5px"},children:[x.jsx(I,{align:"middle",children:x.jsx(X,{wrap:!0,children:typeof _=="function"&&_(e)})}),M&&x.jsx(ee.Search,{placeholder:i({en:"Search",vi:"Tìm kiếm"}),value:F,onChange:s=>k(s.target.value),style:{marginRight:16,marginLeft:16,maxWidth:300}})]});return x.jsx(Z,{sticky:{offsetHeader:0},fixedHeader:!0,size:H,loading:q,scroll:{x:"max-content"},tableLayout:"auto",dataSource:y,columns:p,showSorterTooltip:!1,rowKey:r,onChange:(s,n,t,c)=>{w.current=c.currentDataSource??[]},rowSelection:W,title:G,pagination:T==-1?!1:{position:["bottomCenter"],showSizeChanger:!0,showTotal:(s,n)=>i({en:`Total ${s} items`,vi:`Tổng ${s} dòng`}),size:"default",defaultPageSize:T||10,style:{alignItems:"center"}},style:L})}),xe=te;export{xe as default}; diff --git a/public/assets/Notifications-DlEZtrBo.js b/public/assets/Notifications-PTKdvrFF.js similarity index 77% rename from public/assets/Notifications-DlEZtrBo.js rename to public/assets/Notifications-PTKdvrFF.js index 93fe2c8..446e008 100644 --- a/public/assets/Notifications-DlEZtrBo.js +++ b/public/assets/Notifications-PTKdvrFF.js @@ -1,2 +1,2 @@ -import{r as f,aA as e,aB as o}from"./index--trdnQFa.js";import{d as p,u as x,r as u,t as j,b as a,B as y,f as N}from"./MyApp-BHr373cy.js";import{P as v}from"./index-CU7pBSDU.js";import{L as T}from"./index-BJNnFmyH.js";import{T as l}from"./index-VHrAsB-Q.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";import"./row-DQoT4CfJ.js";function b(t){switch(t){case"success":return e.jsx("i",{className:"fa-solid fa-circle-check fa-lg",style:{color:"lightgreen"}});case"info":return e.jsx("i",{className:"fa-solid fa-circle-info fa-lg",style:{color:"lightblue"}});case"warning":return e.jsx("i",{className:"fa-solid fa-circle-exclamation fa-lg",style:{color:"orange"}});case"error":return e.jsx("i",{className:"fa-solid fa-circle-xmark fa-lg",style:{color:"red"}});default:return null}}function S(){const{notifications:t,clearNotifications:n}=p(),{ti:r}=x(),c=f.useMemo(()=>u(t),[t]),m=(s,d)=>{var i;return e.jsxs(a,{align:"start",style:{paddingTop:10,paddingRight:10},children:[b(s.type),N(s.time),e.jsxs(a,{direction:"vertical",size:0,style:{maxWidth:400},children:[e.jsx(l.Text,{style:{fontWeight:"bold"},children:s.message}),(i=s.description)==null?void 0:i.split(` +import{r as f,aA as e,aB as o}from"./index-BBriuzNA.js";import{d as p,u as x,r as u,t as j,b as a,B as y,f as N}from"./MyApp-CmkiOnMb.js";import{P as v}from"./index-Dg6R6lHP.js";import{L as T}from"./index-B7udrguy.js";import{T as l}from"./index-Bumumc8Y.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";import"./row-C0Wk6t4-.js";function b(t){switch(t){case"success":return e.jsx("i",{className:"fa-solid fa-circle-check fa-lg",style:{color:"lightgreen"}});case"info":return e.jsx("i",{className:"fa-solid fa-circle-info fa-lg",style:{color:"lightblue"}});case"warning":return e.jsx("i",{className:"fa-solid fa-circle-exclamation fa-lg",style:{color:"orange"}});case"error":return e.jsx("i",{className:"fa-solid fa-circle-xmark fa-lg",style:{color:"red"}});default:return null}}function S(){const{notifications:t,clearNotifications:n}=p(),{ti:r}=x(),c=f.useMemo(()=>u(t),[t]),m=(s,d)=>{var i;return e.jsxs(a,{align:"start",style:{paddingTop:10,paddingRight:10},children:[b(s.type),N(s.time),e.jsxs(a,{direction:"vertical",size:0,style:{maxWidth:400},children:[e.jsx(l.Text,{style:{fontWeight:"bold"},children:s.message}),(i=s.description)==null?void 0:i.split(` `).map((g,h)=>e.jsx(l.Text,{type:"secondary",children:g},d+"_"+h))]})]})};return e.jsx(v,{trigger:"click",placement:"bottomRight",title:t!=null&&t.length?null:r({en:"Notification History",vi:"Lich sử Thông báo"}),onOpenChange:s=>s&&j("Notifications:open"),content:e.jsxs(e.Fragment,{children:[t!=null&&t.length?e.jsxs(a,{align:"end",style:{width:"100%",justifyContent:"space-between",alignItems:"center",marginBottom:10},children:[e.jsx("h3",{style:{margin:0},children:(t==null?void 0:t.length)+r({en:" Notifications",vi:" Thông báo"})}),e.jsx(o,{icon:e.jsx("i",{className:"fa-solid fa-eraser"}),onClick:n,children:r({en:"Clear",vi:"Xóa"})})]}):null,e.jsx("div",{style:{maxHeight:"70vh",overflowY:"auto"},children:e.jsx(T,{dataSource:c,renderItem:m,rowKey:s=>s.id,style:{maxWidth:500,minWidth:250}})})]}),children:e.jsx(y,{count:(t==null?void 0:t.length)||0,overflowCount:9,style:{color:"white"},children:e.jsx(o,{icon:e.jsx("i",{className:"fa-solid fa-bell"})})})})}export{S as default}; diff --git a/public/assets/Pagination-CPGTHysj.js b/public/assets/Pagination-slfcHA-i.js similarity index 98% rename from public/assets/Pagination-CPGTHysj.js rename to public/assets/Pagination-slfcHA-i.js index f0b87a1..c0abdc8 100644 --- a/public/assets/Pagination-CPGTHysj.js +++ b/public/assets/Pagination-slfcHA-i.js @@ -1,4 +1,4 @@ -import{r as s,T as ei,g as W,$ as a,j as he,W as _,o as D,X as V,aK as wi,d as Mi,E as Ti,H as _i,D as p,aX as Di,a1 as Fe,F as Hi,an as Ai,J as Ri,I as Li,aQ as Ki,aN as Xi,br as Wi}from"./index--trdnQFa.js";import{m as Je,a2 as Ue,al as Ge}from"./MyApp-BHr373cy.js";import{a as Vi}from"./useBreakpoint-QbbjxHKX.js";import{S as fe}from"./index-CETJ8txP.js";import{i as qi,c as Fi,h as Ji,j as Ui,k as Gi,l as Qi}from"./index-VHrAsB-Q.js";const xt=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let i=1;i{const t=l[c];t!==void 0&&(e[c]=t)})}return e};var Yi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Zi=function(i,l){return s.createElement(ei,W({},i,{ref:l,icon:Yi}))},Qe=s.forwardRef(Zi),ki={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},et=function(i,l){return s.createElement(ei,W({},i,{ref:l,icon:ki}))},Ye=s.forwardRef(et),it={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},tt=["10","20","50","100"],nt=function(i){var l=i.pageSizeOptions,c=l===void 0?tt:l,t=i.locale,E=i.changeSize,M=i.pageSize,O=i.goButton,f=i.quickGo,j=i.rootPrefixCls,z=i.selectComponentClass,B=i.selectPrefixCls,w=i.disabled,m=i.buildOptionText,H=a.useState(""),S=he(H,2),v=S[0],u=S[1],N=function(){return!v||Number.isNaN(v)?void 0:Number(v)},Y=typeof m=="function"?m:function(h){return"".concat(h," ").concat(t.items_per_page)},U=function(d){E==null||E(Number(d))},Z=function(d){u(d.target.value)},q=function(d){O||v===""||(u(""),!(d.relatedTarget&&(d.relatedTarget.className.indexOf("".concat(j,"-item-link"))>=0||d.relatedTarget.className.indexOf("".concat(j,"-item"))>=0))&&(f==null||f(N())))},y=function(d){v!==""&&(d.keyCode===_.ENTER||d.type==="click")&&(u(""),f==null||f(N()))},G=function(){return c.some(function(d){return d.toString()===M.toString()})?c:c.concat([M.toString()]).sort(function(d,Q){var L=Number.isNaN(Number(d))?0:Number(d),K=Number.isNaN(Number(Q))?0:Number(Q);return L-K})},$="".concat(j,"-options");if(!E&&!f)return null;var A=null,R=null,F=null;if(E&&z){var P=G().map(function(h,d){return a.createElement(z.Option,{key:d,value:h.toString()},Y(h))});A=a.createElement(z,{disabled:w,prefixCls:B,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(M||c[0]).toString(),onChange:U,getPopupContainer:function(d){return d.parentNode},"aria-label":t.page_size,defaultOpen:!1},P)}return f&&(O&&(F=typeof O=="boolean"?a.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:w,className:"".concat($,"-quick-jumper-button")},t.jump_to_confirm):a.createElement("span",{onClick:y,onKeyUp:y},O)),R=a.createElement("div",{className:"".concat($,"-quick-jumper")},t.jump_to,a.createElement("input",{disabled:w,type:"text",value:v,onChange:Z,onKeyUp:y,onBlur:q,"aria-label":t.page}),t.page,F)),a.createElement("li",{className:$},A,R)},le=function(i){var l,c=i.rootPrefixCls,t=i.page,E=i.active,M=i.className,O=i.showTitle,f=i.onClick,j=i.onKeyPress,z=i.itemRender,B="".concat(c,"-item"),w=D(B,"".concat(B,"-").concat(t),(l={},V(l,"".concat(B,"-active"),E),V(l,"".concat(B,"-disabled"),!t),l),M),m=function(){f(t)},H=function(u){j(u,f,t)},S=z(t,"page",a.createElement("a",{rel:"nofollow"},t));return S?a.createElement("li",{title:O?String(t):null,className:w,onClick:m,onKeyDown:H,tabIndex:0},S):null},at=function(i,l,c){return c};function Ze(){}function ke(e){var i=Number(e);return typeof i=="number"&&!Number.isNaN(i)&&isFinite(i)&&Math.floor(i)===i}function J(e,i,l){var c=typeof e>"u"?i:e;return Math.floor((l-1)/c)+1}var rt=function(i){var l,c=i.prefixCls,t=c===void 0?"rc-pagination":c,E=i.selectPrefixCls,M=E===void 0?"rc-select":E,O=i.className,f=i.selectComponentClass,j=i.current,z=i.defaultCurrent,B=z===void 0?1:z,w=i.total,m=w===void 0?0:w,H=i.pageSize,S=i.defaultPageSize,v=S===void 0?10:S,u=i.onChange,N=u===void 0?Ze:u,Y=i.hideOnSinglePage,U=i.showPrevNextJumpers,Z=U===void 0?!0:U,q=i.showQuickJumper,y=i.showLessItems,G=i.showTitle,$=G===void 0?!0:G,A=i.onShowSizeChange,R=A===void 0?Ze:A,F=i.locale,P=F===void 0?it:F,h=i.style,d=i.totalBoundaryShowSizeChanger,Q=d===void 0?50:d,L=i.disabled,K=i.simple,Pe=i.showTotal,Se=i.showSizeChanger,ri=i.pageSizeOptions,Ee=i.itemRender,k=Ee===void 0?at:Ee,ze=i.jumpPrevIcon,Ne=i.jumpNextIcon,oi=i.prevIcon,li=i.nextIcon,ci=a.useRef(null),si=Je(10,{value:H,defaultValue:v}),Ie=he(si,2),x=Ie[0],ui=Ie[1],mi=Je(1,{value:j,defaultValue:B,postState:function(o){return Math.max(1,Math.min(o,J(void 0,x,m)))}}),Oe=he(mi,2),r=Oe[0],je=Oe[1],di=a.useState(r),Be=he(di,2),ee=Be[0],ce=Be[1];s.useEffect(function(){ce(r)},[r]);var we=Math.max(1,r-(y?3:5)),Me=Math.min(J(void 0,x,m),r+(y?3:5));function se(n,o){var g=n||a.createElement("button",{type:"button","aria-label":o,className:"".concat(t,"-item-link")});return typeof n=="function"&&(g=a.createElement(n,Mi({},i))),g}function Te(n){var o=n.target.value,g=J(void 0,x,m),X;return o===""?X=o:Number.isNaN(Number(o))?X=ee:o>=g?X=g:X=Number(o),X}function gi(n){return ke(n)&&n!==r&&ke(m)&&m>0}var pi=m>x?q:!1;function vi(n){(n.keyCode===_.UP||n.keyCode===_.DOWN)&&n.preventDefault()}function _e(n){var o=Te(n);switch(o!==ee&&ce(o),n.keyCode){case _.ENTER:I(o);break;case _.UP:I(o-1);break;case _.DOWN:I(o+1);break}}function bi(n){I(Te(n))}function hi(n){var o=J(n,x,m),g=r>o&&o!==0?o:r;ui(n),ce(g),R==null||R(r,n),je(g),N==null||N(g,n)}function I(n){if(gi(n)&&!L){var o=J(void 0,x,m),g=n;return n>o?g=o:n<1&&(g=1),g!==ee&&ce(g),je(g),N==null||N(g,x),g}return r}var ue=r>1,me=rQ;function De(){ue&&I(r-1)}function He(){me&&I(r+1)}function Ae(){I(we)}function Re(){I(Me)}function ie(n,o){if(n.key==="Enter"||n.charCode===_.ENTER||n.keyCode===_.ENTER){for(var g=arguments.length,X=new Array(g>2?g-2:0),be=2;bem?m:r*x])),Ke=null,b=J(void 0,x,m);if(Y&&m<=x)return null;var C=[],te={rootPrefixCls:t,onClick:I,onKeyPress:ie,showTitle:$,itemRender:k,page:-1},Ni=r-1>0?r-1:0,Ii=r+1=T*2&&r!==3&&(C[0]=a.cloneElement(C[0],{className:D("".concat(t,"-item-after-jump-prev"),C[0].props.className)}),C.unshift(Le)),b-r>=T*2&&r!==b-2){var qe=C[C.length-1];C[C.length-1]=a.cloneElement(qe,{className:D("".concat(t,"-item-before-jump-next"),qe.props.className)}),C.push(Ke)}$e!==1&&C.unshift(a.createElement(le,W({},te,{key:1,page:1}))),Ce!==b&&C.push(a.createElement(le,W({},te,{key:b,page:b})))}var pe=yi(Ni);if(pe){var xe=!ue||!b;pe=a.createElement("li",{title:$?P.prev_page:null,onClick:De,tabIndex:xe?null:0,onKeyDown:Si,className:D("".concat(t,"-prev"),V({},"".concat(t,"-disabled"),xe)),"aria-disabled":xe},pe)}var ve=Pi(Ii);if(ve){var oe,ye;K?(oe=!me,ye=ue?0:null):(oe=!me||!b,ye=oe?null:0),ve=a.createElement("li",{title:$?P.next_page:null,onClick:He,tabIndex:ye,onKeyDown:$i,className:D("".concat(t,"-next"),V({},"".concat(t,"-disabled"),oe)),"aria-disabled":oe},ve)}var Bi=D(t,O,(l={},V(l,"".concat(t,"-simple"),K),V(l,"".concat(t,"-disabled"),L),l));return a.createElement("ul",W({className:Bi,style:h,ref:ci},Ei),zi,pe,K?Xe:C,ve,a.createElement(nt,{locale:P,rootPrefixCls:t,disabled:L,selectComponentClass:f,selectPrefixCls:M,changeSize:fi?hi:null,pageSize:x,pageSizeOptions:ri,quickGo:pi?I:null,goButton:ne}))};const ii=e=>s.createElement(fe,Object.assign({},e,{showSearch:!0,size:"small"})),ti=e=>s.createElement(fe,Object.assign({},e,{showSearch:!0,size:"middle"}));ii.Option=fe.Option;ti.Option=fe.Option;const ot=e=>{const{componentCls:i}=e;return{[`${i}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${i}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${i}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${i}-disabled`]:{cursor:"not-allowed",[`${i}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${i}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${i}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${i}-simple-pager`]:{color:e.colorTextDisabled},[`${i}-jump-prev, ${i}-jump-next`]:{[`${i}-item-link-icon`]:{opacity:0},[`${i}-item-ellipsis`]:{opacity:1}}},[`&${i}-simple`]:{[`${i}-prev, ${i}-next`]:{[`&${i}-disabled ${i}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},lt=e=>{const{componentCls:i}=e;return{[`&${i}-mini ${i}-total-text, &${i}-mini ${i}-simple-pager`]:{height:e.itemSizeSM,lineHeight:p(e.itemSizeSM)},[`&${i}-mini ${i}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:p(e.calc(e.itemSizeSM).sub(2).equal())},[`&${i}-mini:not(${i}-disabled) ${i}-item:not(${i}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${i}-mini ${i}-prev, &${i}-mini ${i}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:p(e.itemSizeSM)},[`&${i}-mini:not(${i}-disabled)`]:{[`${i}-prev, ${i}-next`]:{[`&:hover ${i}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${i}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${i}-disabled:hover ${i}-item-link`]:{backgroundColor:"transparent"}}},[` +import{r as s,T as ei,g as W,$ as a,j as he,W as _,o as D,X as V,aK as wi,d as Mi,E as Ti,H as _i,D as p,aX as Di,a1 as Fe,F as Hi,an as Ai,J as Ri,I as Li,aQ as Ki,aN as Xi,br as Wi}from"./index-BBriuzNA.js";import{m as Je,a2 as Ue,al as Ge}from"./MyApp-CmkiOnMb.js";import{a as Vi}from"./useBreakpoint-CDLrV-mr.js";import{S as fe}from"./index-CKsES7YN.js";import{i as qi,c as Fi,h as Ji,j as Ui,k as Gi,l as Qi}from"./index-Bumumc8Y.js";const xt=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let i=1;i{const t=l[c];t!==void 0&&(e[c]=t)})}return e};var Yi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Zi=function(i,l){return s.createElement(ei,W({},i,{ref:l,icon:Yi}))},Qe=s.forwardRef(Zi),ki={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},et=function(i,l){return s.createElement(ei,W({},i,{ref:l,icon:ki}))},Ye=s.forwardRef(et),it={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},tt=["10","20","50","100"],nt=function(i){var l=i.pageSizeOptions,c=l===void 0?tt:l,t=i.locale,E=i.changeSize,M=i.pageSize,O=i.goButton,f=i.quickGo,j=i.rootPrefixCls,z=i.selectComponentClass,B=i.selectPrefixCls,w=i.disabled,m=i.buildOptionText,H=a.useState(""),S=he(H,2),v=S[0],u=S[1],N=function(){return!v||Number.isNaN(v)?void 0:Number(v)},Y=typeof m=="function"?m:function(h){return"".concat(h," ").concat(t.items_per_page)},U=function(d){E==null||E(Number(d))},Z=function(d){u(d.target.value)},q=function(d){O||v===""||(u(""),!(d.relatedTarget&&(d.relatedTarget.className.indexOf("".concat(j,"-item-link"))>=0||d.relatedTarget.className.indexOf("".concat(j,"-item"))>=0))&&(f==null||f(N())))},y=function(d){v!==""&&(d.keyCode===_.ENTER||d.type==="click")&&(u(""),f==null||f(N()))},G=function(){return c.some(function(d){return d.toString()===M.toString()})?c:c.concat([M.toString()]).sort(function(d,Q){var L=Number.isNaN(Number(d))?0:Number(d),K=Number.isNaN(Number(Q))?0:Number(Q);return L-K})},$="".concat(j,"-options");if(!E&&!f)return null;var A=null,R=null,F=null;if(E&&z){var P=G().map(function(h,d){return a.createElement(z.Option,{key:d,value:h.toString()},Y(h))});A=a.createElement(z,{disabled:w,prefixCls:B,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(M||c[0]).toString(),onChange:U,getPopupContainer:function(d){return d.parentNode},"aria-label":t.page_size,defaultOpen:!1},P)}return f&&(O&&(F=typeof O=="boolean"?a.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:w,className:"".concat($,"-quick-jumper-button")},t.jump_to_confirm):a.createElement("span",{onClick:y,onKeyUp:y},O)),R=a.createElement("div",{className:"".concat($,"-quick-jumper")},t.jump_to,a.createElement("input",{disabled:w,type:"text",value:v,onChange:Z,onKeyUp:y,onBlur:q,"aria-label":t.page}),t.page,F)),a.createElement("li",{className:$},A,R)},le=function(i){var l,c=i.rootPrefixCls,t=i.page,E=i.active,M=i.className,O=i.showTitle,f=i.onClick,j=i.onKeyPress,z=i.itemRender,B="".concat(c,"-item"),w=D(B,"".concat(B,"-").concat(t),(l={},V(l,"".concat(B,"-active"),E),V(l,"".concat(B,"-disabled"),!t),l),M),m=function(){f(t)},H=function(u){j(u,f,t)},S=z(t,"page",a.createElement("a",{rel:"nofollow"},t));return S?a.createElement("li",{title:O?String(t):null,className:w,onClick:m,onKeyDown:H,tabIndex:0},S):null},at=function(i,l,c){return c};function Ze(){}function ke(e){var i=Number(e);return typeof i=="number"&&!Number.isNaN(i)&&isFinite(i)&&Math.floor(i)===i}function J(e,i,l){var c=typeof e>"u"?i:e;return Math.floor((l-1)/c)+1}var rt=function(i){var l,c=i.prefixCls,t=c===void 0?"rc-pagination":c,E=i.selectPrefixCls,M=E===void 0?"rc-select":E,O=i.className,f=i.selectComponentClass,j=i.current,z=i.defaultCurrent,B=z===void 0?1:z,w=i.total,m=w===void 0?0:w,H=i.pageSize,S=i.defaultPageSize,v=S===void 0?10:S,u=i.onChange,N=u===void 0?Ze:u,Y=i.hideOnSinglePage,U=i.showPrevNextJumpers,Z=U===void 0?!0:U,q=i.showQuickJumper,y=i.showLessItems,G=i.showTitle,$=G===void 0?!0:G,A=i.onShowSizeChange,R=A===void 0?Ze:A,F=i.locale,P=F===void 0?it:F,h=i.style,d=i.totalBoundaryShowSizeChanger,Q=d===void 0?50:d,L=i.disabled,K=i.simple,Pe=i.showTotal,Se=i.showSizeChanger,ri=i.pageSizeOptions,Ee=i.itemRender,k=Ee===void 0?at:Ee,ze=i.jumpPrevIcon,Ne=i.jumpNextIcon,oi=i.prevIcon,li=i.nextIcon,ci=a.useRef(null),si=Je(10,{value:H,defaultValue:v}),Ie=he(si,2),x=Ie[0],ui=Ie[1],mi=Je(1,{value:j,defaultValue:B,postState:function(o){return Math.max(1,Math.min(o,J(void 0,x,m)))}}),Oe=he(mi,2),r=Oe[0],je=Oe[1],di=a.useState(r),Be=he(di,2),ee=Be[0],ce=Be[1];s.useEffect(function(){ce(r)},[r]);var we=Math.max(1,r-(y?3:5)),Me=Math.min(J(void 0,x,m),r+(y?3:5));function se(n,o){var g=n||a.createElement("button",{type:"button","aria-label":o,className:"".concat(t,"-item-link")});return typeof n=="function"&&(g=a.createElement(n,Mi({},i))),g}function Te(n){var o=n.target.value,g=J(void 0,x,m),X;return o===""?X=o:Number.isNaN(Number(o))?X=ee:o>=g?X=g:X=Number(o),X}function gi(n){return ke(n)&&n!==r&&ke(m)&&m>0}var pi=m>x?q:!1;function vi(n){(n.keyCode===_.UP||n.keyCode===_.DOWN)&&n.preventDefault()}function _e(n){var o=Te(n);switch(o!==ee&&ce(o),n.keyCode){case _.ENTER:I(o);break;case _.UP:I(o-1);break;case _.DOWN:I(o+1);break}}function bi(n){I(Te(n))}function hi(n){var o=J(n,x,m),g=r>o&&o!==0?o:r;ui(n),ce(g),R==null||R(r,n),je(g),N==null||N(g,n)}function I(n){if(gi(n)&&!L){var o=J(void 0,x,m),g=n;return n>o?g=o:n<1&&(g=1),g!==ee&&ce(g),je(g),N==null||N(g,x),g}return r}var ue=r>1,me=rQ;function De(){ue&&I(r-1)}function He(){me&&I(r+1)}function Ae(){I(we)}function Re(){I(Me)}function ie(n,o){if(n.key==="Enter"||n.charCode===_.ENTER||n.keyCode===_.ENTER){for(var g=arguments.length,X=new Array(g>2?g-2:0),be=2;bem?m:r*x])),Ke=null,b=J(void 0,x,m);if(Y&&m<=x)return null;var C=[],te={rootPrefixCls:t,onClick:I,onKeyPress:ie,showTitle:$,itemRender:k,page:-1},Ni=r-1>0?r-1:0,Ii=r+1=T*2&&r!==3&&(C[0]=a.cloneElement(C[0],{className:D("".concat(t,"-item-after-jump-prev"),C[0].props.className)}),C.unshift(Le)),b-r>=T*2&&r!==b-2){var qe=C[C.length-1];C[C.length-1]=a.cloneElement(qe,{className:D("".concat(t,"-item-before-jump-next"),qe.props.className)}),C.push(Ke)}$e!==1&&C.unshift(a.createElement(le,W({},te,{key:1,page:1}))),Ce!==b&&C.push(a.createElement(le,W({},te,{key:b,page:b})))}var pe=yi(Ni);if(pe){var xe=!ue||!b;pe=a.createElement("li",{title:$?P.prev_page:null,onClick:De,tabIndex:xe?null:0,onKeyDown:Si,className:D("".concat(t,"-prev"),V({},"".concat(t,"-disabled"),xe)),"aria-disabled":xe},pe)}var ve=Pi(Ii);if(ve){var oe,ye;K?(oe=!me,ye=ue?0:null):(oe=!me||!b,ye=oe?null:0),ve=a.createElement("li",{title:$?P.next_page:null,onClick:He,tabIndex:ye,onKeyDown:$i,className:D("".concat(t,"-next"),V({},"".concat(t,"-disabled"),oe)),"aria-disabled":oe},ve)}var Bi=D(t,O,(l={},V(l,"".concat(t,"-simple"),K),V(l,"".concat(t,"-disabled"),L),l));return a.createElement("ul",W({className:Bi,style:h,ref:ci},Ei),zi,pe,K?Xe:C,ve,a.createElement(nt,{locale:P,rootPrefixCls:t,disabled:L,selectComponentClass:f,selectPrefixCls:M,changeSize:fi?hi:null,pageSize:x,pageSizeOptions:ri,quickGo:pi?I:null,goButton:ne}))};const ii=e=>s.createElement(fe,Object.assign({},e,{showSearch:!0,size:"small"})),ti=e=>s.createElement(fe,Object.assign({},e,{showSearch:!0,size:"middle"}));ii.Option=fe.Option;ti.Option=fe.Option;const ot=e=>{const{componentCls:i}=e;return{[`${i}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${i}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${i}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${i}-disabled`]:{cursor:"not-allowed",[`${i}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${i}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${i}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${i}-simple-pager`]:{color:e.colorTextDisabled},[`${i}-jump-prev, ${i}-jump-next`]:{[`${i}-item-link-icon`]:{opacity:0},[`${i}-item-ellipsis`]:{opacity:1}}},[`&${i}-simple`]:{[`${i}-prev, ${i}-next`]:{[`&${i}-disabled ${i}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},lt=e=>{const{componentCls:i}=e;return{[`&${i}-mini ${i}-total-text, &${i}-mini ${i}-simple-pager`]:{height:e.itemSizeSM,lineHeight:p(e.itemSizeSM)},[`&${i}-mini ${i}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:p(e.calc(e.itemSizeSM).sub(2).equal())},[`&${i}-mini:not(${i}-disabled) ${i}-item:not(${i}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${i}-mini ${i}-prev, &${i}-mini ${i}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:p(e.itemSizeSM)},[`&${i}-mini:not(${i}-disabled)`]:{[`${i}-prev, ${i}-next`]:{[`&:hover ${i}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${i}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${i}-disabled:hover ${i}-item-link`]:{backgroundColor:"transparent"}}},[` &${i}-mini ${i}-prev ${i}-item-link, &${i}-mini ${i}-next ${i}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:p(e.itemSizeSM)}},[`&${i}-mini ${i}-jump-prev, &${i}-mini ${i}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:p(e.itemSizeSM)},[`&${i}-mini ${i}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:p(e.itemSizeSM),input:Object.assign(Object.assign({},Ji(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ct=e=>{const{componentCls:i}=e;return{[` diff --git a/public/assets/Photos-BePgNF2g.js b/public/assets/Photos-B_eAw90j.js similarity index 82% rename from public/assets/Photos-BePgNF2g.js rename to public/assets/Photos-B_eAw90j.js index 2cf65da..a2f2706 100644 --- a/public/assets/Photos-BePgNF2g.js +++ b/public/assets/Photos-B_eAw90j.js @@ -1,3 +1,3 @@ -const __vite__fileDeps=["./ImageLazyPreview-CSLUs9MG.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./MyApp-BHr373cy.js","./index-CB9InVBI.js","./EyeOutlined-BALW2cms.js","./addEventListener-KkFh1sjE.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{r as y,aA as _,aB as O,aF as L}from"./index--trdnQFa.js";import{C as F}from"./Collection-CPPE61tF.js";import{D as R,E as S,G as k,u as T,V as P,B as U,i as B}from"./MyApp-BHr373cy.js";import{S as M}from"./index-CETJ8txP.js";import{L as W}from"./index-BJNnFmyH.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./row-DQoT4CfJ.js";var b=(i=>(i.OWNER="5",i.TAGGED="4",i))(b||{});async function Q({id:i,count:t=8,cursor:n="",type:a="5"}){const c=await R({doc_id:"4820192058049838",fb_api_caller_class:"RelayModern",fb_api_req_friendly_name:"ProfileCometAppCollectionPhotosRendererPaginationQuery",variables:{count:t,cursor:n,scale:1,id:btoa(`app_collection:${i}:2305272732:${a}`)}});let m=S(c),{edges:u=[],page_info:d}=k(m)||{};return u.map(o=>{var l,s,e,r,p,f,h,C,v,w,E,x,I,j,G;return{id:atob((l=o==null?void 0:o.node)==null?void 0:l.id).split(":").pop(),url:(s=o==null?void 0:o.node)==null?void 0:s.url,thumbnail:(r=(e=o==null?void 0:o.node)==null?void 0:e.image)==null?void 0:r.uri,image:(h=(f=(p=o==null?void 0:o.node)==null?void 0:p.node)==null?void 0:f.viewer_image)==null?void 0:h.uri,width:(w=(v=(C=o==null?void 0:o.node)==null?void 0:C.node)==null?void 0:v.viewer_image)==null?void 0:w.width,height:(I=(x=(E=o==null?void 0:o.node)==null?void 0:E.node)==null?void 0:x.viewer_image)==null?void 0:I.height,accessibility_caption:(G=(j=o==null?void 0:o.node)==null?void 0:j.node)==null?void 0:G.accessibility_caption,cursor:o==null?void 0:o.cursor,photo_type:a}})}async function q({id:i,count:t=8,cursor:n=""}){var d,o,l;const a=await R({doc_id:"6022153214500431",fb_api_caller_class:"RelayModern",fb_api_req_friendly_name:"GroupsCometMediaPhotosTabGridQuery",variables:{count:t,cursor:n,scale:1,id:i}}),c=S(a);console.log(c);const{edges:m=[],page_info:u}=((l=(o=(d=c==null?void 0:c.data)==null?void 0:d.node)==null?void 0:o.group_mediaset)==null?void 0:l.media)||{};return m.map(s=>{var e,r,p,f,h,C,v,w,E,x,I;return{id:(e=s==null?void 0:s.node)==null?void 0:e.id,url:(r=s==null?void 0:s.node)==null?void 0:r.url,thumbnail:(f=(p=s==null?void 0:s.node)==null?void 0:p.image)==null?void 0:f.uri,image:(C=(h=s==null?void 0:s.node)==null?void 0:h.viewer_image)==null?void 0:C.uri,width:(w=(v=s==null?void 0:s.node)==null?void 0:v.viewer_image)==null?void 0:w.width,height:(x=(E=s==null?void 0:s.node)==null?void 0:E.viewer_image)==null?void 0:x.height,accessibility_caption:(I=s==null?void 0:s.node)==null?void 0:I.accessibility_caption,cursor:s==null?void 0:s.cursor}})}async function N(i){var c,m,u;const t=await R({fb_api_req_friendly_name:"CometPhotoRootContentQuery",variables:{UFI2CommentsProvider_commentsKey:"CometPhotoRootQuery",feedbackSource:65,feedLocation:"COMET_MEDIA_VIEWER",isMediaset:!1,nodeID:i,privacySelectorRenderLocation:"COMET_MEDIA_VIEWER",renderLocation:"permalink",scale:2,useDefaultActor:!1,useHScroll:!1,focusCommentID:null,displayCommentsContextEnableComment:null,displayCommentsContextIsAdPreview:null,displayCommentsContextIsAggregatedShare:null,displayCommentsContextIsStorySet:null,displayCommentsFeedbackContext:null,__relay_internal__pv__CometUFIReactionEnableShortNamerelayprovider:!0,__relay_internal__pv__CometUFIShareActionMigrationrelayprovider:!1,__relay_internal__pv__CometUFIReactionsEnableShortNamerelayprovider:!1,__relay_internal__pv__CometImmersivePhotoCanUserDisable3DMotionrelayprovider:!1},doc_id:"7830475950340566"}),n=S(((c=t==null?void 0:t.split(` -`))==null?void 0:c[0])||"{}"),a=((m=n==null?void 0:n.data)==null?void 0:m.currMedia)||{};return{id:i,url:(u=a.creation_story)==null?void 0:u.url,accessibility_caption:a.accessibility_caption,image:a.image.uri,width:a.image.width,height:a.image.height,thumbnail:a.image.uri}}const V=y.lazy(()=>L(()=>import("./ImageLazyPreview-CSLUs9MG.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),A={[b.OWNER]:{en:"👤 Owner",vi:"👤 Chính chủ"},[b.TAGGED]:{en:"📌 Tagged",vi:"📌 Được tag"}};function mo({target:i}){const{ti:t}=T(),[n,a]=y.useState(b.OWNER);y.useEffect(()=>{i!=null&&i.id&&a(b.OWNER)},[i==null?void 0:i.id]);const c=y.useCallback(async(o,l)=>{var s,e;if(!(!(i!=null&&i.id)||!(i!=null&&i.type)))if(i.type===P.Group){const r=l||((s=o==null?void 0:o[(o==null?void 0:o.length)-1])==null?void 0:s.cursor)||"";return await q({id:i.id,cursor:r})}else{const r=o==null?void 0:o.filter(h=>h.photo_type===n),p=l||((e=r==null?void 0:r[(r==null?void 0:r.length)-1])==null?void 0:e.cursor)||"";return await Q({id:i.id,cursor:p,type:n})}},[i,n]),m=y.useCallback((o,l)=>(i==null?void 0:i.type)!==P.Group&&_.jsx(U,{count:t({en:"New",vi:"Mới"}),color:"purple",style:{color:"white"},children:_.jsx(M,{disabled:l,value:n,onChange:a,style:{width:"150px"},children:Object.entries(b).map(([s,e])=>_.jsx(M.Option,{value:e,children:t(A[e])},s))})}),[n,t]),u=y.useCallback(o=>_.jsxs(W.Item,{className:"show-on-hover-trigger",children:[_.jsx(V,{src:o.thumbnail,alt:o.accessibility_caption,width:150,height:150,style:{objectFit:"cover",borderRadius:"10px"},cacheId:"photos."+o.id,getPreview:()=>o.image||N(o.id).then(l=>l.image)}),_.jsx(O,{type:"default",icon:_.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:B(o.id)})]}),[]),d=y.useCallback(async(o,l)=>{if(!o.image&&(i==null?void 0:i.type)===P.Group){const s=await N(o.id);o.image=s.image||s.thumbnail||o.thumbnail}return{url:o.image,name:o.id+".jpg"}},[i==null?void 0:i.id]);return _.jsx(F,{collectionName:(i==null?void 0:i.name)+" - Photos - "+t(A[n]),fetchNext:c,renderItem:u,downloadItem:d,headerButtons:m,getItemCursor:o=>o.cursor||"",rowKey:o=>o.id})}export{mo as default}; +const __vite__fileDeps=["./ImageLazyPreview-DbcS5lXO.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./MyApp-CmkiOnMb.js","./index-Dm20K0UU.js","./EyeOutlined-Du2MtFRM.js","./addEventListener-w7NT04KM.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{r as y,aA as _,aB as O,aF as L}from"./index-BBriuzNA.js";import{C as F}from"./Collection-B9SxfYr4.js";import{D as R,E as S,G as k,u as T,V as P,B as U,i as B}from"./MyApp-CmkiOnMb.js";import{S as M}from"./index-CKsES7YN.js";import{L as W}from"./index-B7udrguy.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./row-C0Wk6t4-.js";var b=(i=>(i.OWNER="5",i.TAGGED="4",i))(b||{});async function Q({id:i,count:t=8,cursor:n="",type:a="5"}){const c=await R({doc_id:"4820192058049838",fb_api_caller_class:"RelayModern",fb_api_req_friendly_name:"ProfileCometAppCollectionPhotosRendererPaginationQuery",variables:{count:t,cursor:n,scale:1,id:btoa(`app_collection:${i}:2305272732:${a}`)}});let m=S(c),{edges:u=[],page_info:d}=k(m)||{};return u.map(o=>{var l,s,e,r,p,f,h,C,v,w,E,x,I,j,G;return{id:atob((l=o==null?void 0:o.node)==null?void 0:l.id).split(":").pop(),url:(s=o==null?void 0:o.node)==null?void 0:s.url,thumbnail:(r=(e=o==null?void 0:o.node)==null?void 0:e.image)==null?void 0:r.uri,image:(h=(f=(p=o==null?void 0:o.node)==null?void 0:p.node)==null?void 0:f.viewer_image)==null?void 0:h.uri,width:(w=(v=(C=o==null?void 0:o.node)==null?void 0:C.node)==null?void 0:v.viewer_image)==null?void 0:w.width,height:(I=(x=(E=o==null?void 0:o.node)==null?void 0:E.node)==null?void 0:x.viewer_image)==null?void 0:I.height,accessibility_caption:(G=(j=o==null?void 0:o.node)==null?void 0:j.node)==null?void 0:G.accessibility_caption,cursor:o==null?void 0:o.cursor,photo_type:a}})}async function q({id:i,count:t=8,cursor:n=""}){var d,o,l;const a=await R({doc_id:"6022153214500431",fb_api_caller_class:"RelayModern",fb_api_req_friendly_name:"GroupsCometMediaPhotosTabGridQuery",variables:{count:t,cursor:n,scale:1,id:i}}),c=S(a);console.log(c);const{edges:m=[],page_info:u}=((l=(o=(d=c==null?void 0:c.data)==null?void 0:d.node)==null?void 0:o.group_mediaset)==null?void 0:l.media)||{};return m.map(s=>{var e,r,p,f,h,C,v,w,E,x,I;return{id:(e=s==null?void 0:s.node)==null?void 0:e.id,url:(r=s==null?void 0:s.node)==null?void 0:r.url,thumbnail:(f=(p=s==null?void 0:s.node)==null?void 0:p.image)==null?void 0:f.uri,image:(C=(h=s==null?void 0:s.node)==null?void 0:h.viewer_image)==null?void 0:C.uri,width:(w=(v=s==null?void 0:s.node)==null?void 0:v.viewer_image)==null?void 0:w.width,height:(x=(E=s==null?void 0:s.node)==null?void 0:E.viewer_image)==null?void 0:x.height,accessibility_caption:(I=s==null?void 0:s.node)==null?void 0:I.accessibility_caption,cursor:s==null?void 0:s.cursor}})}async function N(i){var c,m,u;const t=await R({fb_api_req_friendly_name:"CometPhotoRootContentQuery",variables:{UFI2CommentsProvider_commentsKey:"CometPhotoRootQuery",feedbackSource:65,feedLocation:"COMET_MEDIA_VIEWER",isMediaset:!1,nodeID:i,privacySelectorRenderLocation:"COMET_MEDIA_VIEWER",renderLocation:"permalink",scale:2,useDefaultActor:!1,useHScroll:!1,focusCommentID:null,displayCommentsContextEnableComment:null,displayCommentsContextIsAdPreview:null,displayCommentsContextIsAggregatedShare:null,displayCommentsContextIsStorySet:null,displayCommentsFeedbackContext:null,__relay_internal__pv__CometUFIReactionEnableShortNamerelayprovider:!0,__relay_internal__pv__CometUFIShareActionMigrationrelayprovider:!1,__relay_internal__pv__CometUFIReactionsEnableShortNamerelayprovider:!1,__relay_internal__pv__CometImmersivePhotoCanUserDisable3DMotionrelayprovider:!1},doc_id:"7830475950340566"}),n=S(((c=t==null?void 0:t.split(` +`))==null?void 0:c[0])||"{}"),a=((m=n==null?void 0:n.data)==null?void 0:m.currMedia)||{};return{id:i,url:(u=a.creation_story)==null?void 0:u.url,accessibility_caption:a.accessibility_caption,image:a.image.uri,width:a.image.width,height:a.image.height,thumbnail:a.image.uri}}const V=y.lazy(()=>L(()=>import("./ImageLazyPreview-DbcS5lXO.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),A={[b.OWNER]:{en:"👤 Owner",vi:"👤 Chính chủ"},[b.TAGGED]:{en:"📌 Tagged",vi:"📌 Được tag"}};function mo({target:i}){const{ti:t}=T(),[n,a]=y.useState(b.OWNER);y.useEffect(()=>{i!=null&&i.id&&a(b.OWNER)},[i==null?void 0:i.id]);const c=y.useCallback(async(o,l)=>{var s,e;if(!(!(i!=null&&i.id)||!(i!=null&&i.type)))if(i.type===P.Group){const r=l||((s=o==null?void 0:o[(o==null?void 0:o.length)-1])==null?void 0:s.cursor)||"";return await q({id:i.id,cursor:r})}else{const r=o==null?void 0:o.filter(h=>h.photo_type===n),p=l||((e=r==null?void 0:r[(r==null?void 0:r.length)-1])==null?void 0:e.cursor)||"";return await Q({id:i.id,cursor:p,type:n})}},[i,n]),m=y.useCallback((o,l)=>(i==null?void 0:i.type)!==P.Group&&_.jsx(U,{count:t({en:"New",vi:"Mới"}),color:"purple",style:{color:"white"},children:_.jsx(M,{disabled:l,value:n,onChange:a,style:{width:"150px"},children:Object.entries(b).map(([s,e])=>_.jsx(M.Option,{value:e,children:t(A[e])},s))})}),[n,t]),u=y.useCallback(o=>_.jsxs(W.Item,{className:"show-on-hover-trigger",children:[_.jsx(V,{src:o.thumbnail,alt:o.accessibility_caption,width:150,height:150,style:{objectFit:"cover",borderRadius:"10px"},cacheId:"photos."+o.id,getPreview:()=>o.image||N(o.id).then(l=>l.image)}),_.jsx(O,{type:"default",icon:_.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:B(o.id)})]}),[]),d=y.useCallback(async(o,l)=>{if(!o.image&&(i==null?void 0:i.type)===P.Group){const s=await N(o.id);o.image=s.image||s.thumbnail||o.thumbnail}return{url:o.image,name:o.id+".jpg"}},[i==null?void 0:i.id]);return _.jsx(F,{collectionName:(i==null?void 0:i.name)+" - Photos - "+t(A[n]),fetchNext:c,renderItem:u,downloadItem:d,headerButtons:m,getItemCursor:o=>o.cursor||"",rowKey:o=>o.id})}export{mo as default}; diff --git a/public/assets/PostMediaset-DztbuulE.js b/public/assets/PostMediaset-DKgg-CiD.js similarity index 60% rename from public/assets/PostMediaset-DztbuulE.js rename to public/assets/PostMediaset-DKgg-CiD.js index 75d566b..c50b18e 100644 --- a/public/assets/PostMediaset-DztbuulE.js +++ b/public/assets/PostMediaset-DKgg-CiD.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./ImageLazyPreview-CSLUs9MG.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./MyApp-BHr373cy.js","./index-CB9InVBI.js","./EyeOutlined-BALW2cms.js","./addEventListener-KkFh1sjE.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{r as u,aA as o,aB as j,aF as y}from"./index--trdnQFa.js";import{C as b}from"./Collection-CPPE61tF.js";import{g as c}from"./videos-CpxHGGu6.js";import{u as g,d as P,g as l,as as V,I as _,i as k,b as I,at as L,ac as C}from"./MyApp-BHr373cy.js";import{i as E}from"./icons-BAGZq2AS.js";import{V as F}from"./VideoWithMuted-xvYRNY0l.js";import{A as M}from"./index-fivsYW1W.js";import{L as N}from"./index-BJNnFmyH.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";const R=u.lazy(()=>y(()=>import("./ImageLazyPreview-CSLUs9MG.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url));function ti({target:e,postId:n}){const{ti:r}=g(),{message:p}=P(),[t,h]=l("PostMediaset."+n+".mediaset_token",null),[f,d]=l("PostMediaset."+n+".loading",!1);u.useEffect(()=>{e!=null&&e.id&&n&&(d(!0),V(e==null?void 0:e.id,n).then(i=>{console.log(i);const s=_(i,"mediaset_token");if(!s)throw new Error("No mediaset token found");h(s)}).catch(i=>{p.error({content:r({en:"Fail to load post content ",vi:"Lỗi tải dữ liệu bài post "})+i.message})}).finally(()=>{d(!1)}))},[n]);const v=async(i=[],s)=>{var m;if(!(e!=null&&e.id)||!t)return;const a=s||((m=i[i.length-1])==null?void 0:m.cursor);return await L(t,a)},x=i=>o.jsxs(N.Item,{style:{position:"relative"},children:[o.jsx(R,{src:i.image,width:200/i.height*i.width,height:200,style:{objectFit:"cover",borderRadius:10},cacheId:"mediaset."+i.id,getPreview:async()=>i.isVideo?(await c(i.id)).source:i.image,renderPreview:i.isVideo?(s,a)=>({destroyOnClose:!0,imageRender:()=>o.jsx(C,{spinning:a,children:o.jsx(F,{src:s,style:{maxWidth:"90vw",maxHeight:"90vh"}})}),toolbarRender:()=>null}):void 0}),i.isVideo&&o.jsx("div",{style:{position:"absolute",top:10,right:10},children:E.IGVideo})]}),w=async i=>{if(i.isVideo){const s=await c(i.id);return{name:i.id+".mp4",url:s.source}}return{name:i.id+".jpg",url:i.image}};return o.jsx(b,{collectionName:(e==null?void 0:e.name)+" - Post media - "+n,fetchNext:v,renderItem:x,downloadItem:w,getItemCursor:i=>i.cursor,rowKey:i=>i.id,stop:!(e!=null&&e.id)||!t,headerButtons:()=>o.jsx(j,{href:k(n),target:"_blank",icon:o.jsx("i",{className:"fa-solid fa-arrow-up-right-from-square"}),children:r({en:"View post",vi:"Xem bài viết"})}),header:()=>f?o.jsxs(I,{children:[o.jsx("i",{className:"fa-solid fa-spinner fa-spin"})," ",r({en:"Loading post content...",vi:"Đang tải nội dung bài viết..."})]}):t?null:o.jsx(M,{type:"error",showIcon:!0,message:r({en:"This post not contain multiple medias",vi:"Bài viết này không chứa nhiều ảnh/video"})})})}export{ti as default}; +const __vite__fileDeps=["./ImageLazyPreview-DbcS5lXO.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./MyApp-CmkiOnMb.js","./index-Dm20K0UU.js","./EyeOutlined-Du2MtFRM.js","./addEventListener-w7NT04KM.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{r as u,aA as o,aB as j,aF as y}from"./index-BBriuzNA.js";import{C as b}from"./Collection-B9SxfYr4.js";import{g as c}from"./videos-VQJKJ_Wq.js";import{u as g,d as P,g as l,as as V,I as _,i as k,b as I,at as L,ac as C}from"./MyApp-CmkiOnMb.js";import{i as E}from"./icons-CG0UnJU2.js";import{V as F}from"./VideoWithMuted-CdYhYcjW.js";import{A as M}from"./index-BhyNApA-.js";import{L as N}from"./index-B7udrguy.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";const R=u.lazy(()=>y(()=>import("./ImageLazyPreview-DbcS5lXO.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url));function ti({target:e,postId:n}){const{ti:r}=g(),{message:p}=P(),[t,h]=l("PostMediaset."+n+".mediaset_token",null),[f,d]=l("PostMediaset."+n+".loading",!1);u.useEffect(()=>{e!=null&&e.id&&n&&(d(!0),V(e==null?void 0:e.id,n).then(i=>{console.log(i);const s=_(i,"mediaset_token");if(!s)throw new Error("No mediaset token found");h(s)}).catch(i=>{p.error({content:r({en:"Fail to load post content ",vi:"Lỗi tải dữ liệu bài post "})+i.message})}).finally(()=>{d(!1)}))},[n]);const v=async(i=[],s)=>{var m;if(!(e!=null&&e.id)||!t)return;const a=s||((m=i[i.length-1])==null?void 0:m.cursor);return await L(t,a)},x=i=>o.jsxs(N.Item,{style:{position:"relative"},children:[o.jsx(R,{src:i.image,width:200/i.height*i.width,height:200,style:{objectFit:"cover",borderRadius:10},cacheId:"mediaset."+i.id,getPreview:async()=>i.isVideo?(await c(i.id)).source:i.image,renderPreview:i.isVideo?(s,a)=>({destroyOnClose:!0,imageRender:()=>o.jsx(C,{spinning:a,children:o.jsx(F,{src:s,style:{maxWidth:"90vw",maxHeight:"90vh"}})}),toolbarRender:()=>null}):void 0}),i.isVideo&&o.jsx("div",{style:{position:"absolute",top:10,right:10},children:E.IGVideo})]}),w=async i=>{if(i.isVideo){const s=await c(i.id);return{name:i.id+".mp4",url:s.source}}return{name:i.id+".jpg",url:i.image}};return o.jsx(b,{collectionName:(e==null?void 0:e.name)+" - Post media - "+n,fetchNext:v,renderItem:x,downloadItem:w,getItemCursor:i=>i.cursor,rowKey:i=>i.id,stop:!(e!=null&&e.id)||!t,headerButtons:()=>o.jsx(j,{href:k(n),target:"_blank",icon:o.jsx("i",{className:"fa-solid fa-arrow-up-right-from-square"}),children:r({en:"View post",vi:"Xem bài viết"})}),header:()=>f?o.jsxs(I,{children:[o.jsx("i",{className:"fa-solid fa-spinner fa-spin"})," ",r({en:"Loading post content...",vi:"Đang tải nội dung bài viết..."})]}):t?null:o.jsx(M,{type:"error",showIcon:!0,message:r({en:"This post not contain multiple medias",vi:"Bài viết này không chứa nhiều ảnh/video"})})})}export{ti as default}; diff --git a/public/assets/ProfileHeader-mRn5Bf5J.js b/public/assets/ProfileHeader-Db4erSQn.js similarity index 77% rename from public/assets/ProfileHeader-mRn5Bf5J.js rename to public/assets/ProfileHeader-Db4erSQn.js index 037bbba..63ad913 100644 --- a/public/assets/ProfileHeader-mRn5Bf5J.js +++ b/public/assets/ProfileHeader-Db4erSQn.js @@ -1 +1 @@ -import{au as u,av as f,aA as t}from"./index--trdnQFa.js";import{P as s}from"./index-DlkwBJMX.js";import{u as j,a as y,b as v,T,c as b}from"./MyApp-BHr373cy.js";import{T as n}from"./index-VHrAsB-Q.js";import{A as P}from"./index-DTxLlwd8.js";import"./responsiveObserver-DiDk9dGL.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";const{Title:w,Text:A}=n;function I({showName:i=!0,showAvatar:l=!0,avatarSize:c=50,titleColor:m="white",textColor:h="#eee",style:x={}}){var a,o;const{ti:d}=j(),e=u(f.profile),{isVIP:p,timeLeft:g}=y();return t.jsxs("div",{style:{...r.container,...x},children:[i&&t.jsxs(v,{children:[p?t.jsx(T,{title:d({en:"VIP User",vi:"Thành viên VIP"})+` (${g})`,children:t.jsx(b,{onClick:()=>window.location.hash="/vip",icon:t.jsx("i",{className:"fa-solid fa-crown"}),color:"gold",style:{cursor:"pointer"},children:t.jsxs(n.Text,{style:{fontWeight:"bold"},children:[" ","VIP"]})})}):null,t.jsxs("div",{style:r.info,children:[t.jsx("a",{href:"https:/fb.com/me",target:"_blank",children:t.jsx(w,{level:4,style:r.name(m),children:(e==null?void 0:e.name)||"..."})}),t.jsx(A,{style:r.id(h),children:(e==null?void 0:e.uid)||"..."})]})]}),l&&t.jsx("a",{href:(a=e==null?void 0:e.avatar)==null?void 0:a.link,target:"_blank",children:t.jsx(P,{src:(o=e==null?void 0:e.avatar)==null?void 0:o.uri,size:c})})]})}I.propTypes={showName:s.bool,showAvatar:s.bool,avatarSize:s.number,titleColor:s.string,textColor:s.string,style:s.object};const r={container:{display:"flex",alignItems:"center"},info:{display:"flex",flexDirection:"column",marginRight:"16px"},name:i=>({margin:0,textAlign:"right",color:i}),id:i=>({color:i,fontSize:"0.9em",textAlign:"right"})};export{I as default}; +import{au as u,av as f,aA as t}from"./index-BBriuzNA.js";import{P as s}from"./index-DhqkrVsj.js";import{u as j,a as y,b as v,T,c as b}from"./MyApp-CmkiOnMb.js";import{T as n}from"./index-Bumumc8Y.js";import{A as P}from"./index-CbmP82sr.js";import"./responsiveObserver-Bb1LONna.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";const{Title:w,Text:A}=n;function I({showName:i=!0,showAvatar:l=!0,avatarSize:c=50,titleColor:m="white",textColor:h="#eee",style:x={}}){var a,o;const{ti:d}=j(),e=u(f.profile),{isVIP:p,timeLeft:g}=y();return t.jsxs("div",{style:{...r.container,...x},children:[i&&t.jsxs(v,{children:[p?t.jsx(T,{title:d({en:"VIP User",vi:"Thành viên VIP"})+` (${g})`,children:t.jsx(b,{onClick:()=>window.location.hash="/vip",icon:t.jsx("i",{className:"fa-solid fa-crown"}),color:"gold",style:{cursor:"pointer"},children:t.jsxs(n.Text,{style:{fontWeight:"bold"},children:[" ","VIP"]})})}):null,t.jsxs("div",{style:r.info,children:[t.jsx("a",{href:"https:/fb.com/me",target:"_blank",children:t.jsx(w,{level:4,style:r.name(m),children:(e==null?void 0:e.name)||"..."})}),t.jsx(A,{style:r.id(h),children:(e==null?void 0:e.uid)||"..."})]})]}),l&&t.jsx("a",{href:(a=e==null?void 0:e.avatar)==null?void 0:a.link,target:"_blank",children:t.jsx(P,{src:(o=e==null?void 0:e.avatar)==null?void 0:o.uri,size:c})})]})}I.propTypes={showName:s.bool,showAvatar:s.bool,avatarSize:s.number,titleColor:s.string,textColor:s.string,style:s.object};const r={container:{display:"flex",alignItems:"center"},info:{display:"flex",flexDirection:"column",marginRight:"16px"},name:i=>({margin:0,textAlign:"right",color:i}),id:i=>({color:i,fontSize:"0.9em",textAlign:"right"})};export{I as default}; diff --git a/public/assets/PurePanel-CSR2tSBX.js b/public/assets/PurePanel-yY9muMEs.js similarity index 95% rename from public/assets/PurePanel-CSR2tSBX.js rename to public/assets/PurePanel-yY9muMEs.js index b5c8fc0..3538a1d 100644 --- a/public/assets/PurePanel-CSR2tSBX.js +++ b/public/assets/PurePanel-yY9muMEs.js @@ -1,4 +1,4 @@ -import{K as n,m as b,r as t,ah as x,I as R}from"./index--trdnQFa.js";import{m as E}from"./MyApp-BHr373cy.js";const $=new n("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),j=new n("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),z=new n("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),S=new n("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),D=new n("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L=new n("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),U=new n("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W=new n("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),H={"move-up":{inKeyframes:U,outKeyframes:W},"move-down":{inKeyframes:$,outKeyframes:j},"move-left":{inKeyframes:z,outKeyframes:S},"move-right":{inKeyframes:D,outKeyframes:L}},q=(e,o)=>{const{antCls:i}=e,r=`${i}-${o}`,{inKeyframes:l,outKeyframes:a}=H[o];return[b(r,l,a,e.motionDurationMid),{[` +import{K as n,m as b,r as t,ah as x,I as R}from"./index-BBriuzNA.js";import{m as E}from"./MyApp-CmkiOnMb.js";const $=new n("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),j=new n("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),z=new n("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),S=new n("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),D=new n("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L=new n("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),U=new n("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W=new n("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),H={"move-up":{inKeyframes:U,outKeyframes:W},"move-down":{inKeyframes:$,outKeyframes:j},"move-left":{inKeyframes:z,outKeyframes:S},"move-right":{inKeyframes:D,outKeyframes:L}},q=(e,o)=>{const{antCls:i}=e,r=`${i}-${o}`,{inKeyframes:l,outKeyframes:a}=H[o];return[b(r,l,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function T(e){return o=>t.createElement(x,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(e,Object.assign({},o)))}const _=(e,o,i,r)=>T(a=>{const{prefixCls:O,style:y}=a,f=t.useRef(null),[h,w]=t.useState(0),[I,M]=t.useState(0),[u,P]=E(!1,{value:a.open}),{getPrefixCls:C}=t.useContext(R),p=C(o||"select",O);t.useEffect(()=>{if(P(!0),typeof ResizeObserver<"u"){const g=new ResizeObserver(s=>{const m=s[0].target;w(m.offsetHeight+8),M(m.offsetWidth)}),d=setInterval(()=>{var s;const m=i?`.${i(p)}`:`.${p}-dropdown`,v=(s=f.current)===null||s===void 0?void 0:s.querySelector(m);v&&(clearInterval(d),g.observe(v))},10);return()=>{clearInterval(d),g.disconnect()}}},[]);let c=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},y),{margin:0}),open:u,visible:u,getPopupContainer:()=>f.current});r&&(c=r(c));const K={paddingBottom:h,position:"relative",minWidth:I};return t.createElement("div",{ref:f,style:K},t.createElement(e,Object.assign({},c)))});export{_ as g,q as i,T as w}; diff --git a/public/assets/RecentStories-B9-ahsMF.js b/public/assets/RecentStories-Bs7uYjS2.js similarity index 71% rename from public/assets/RecentStories-B9-ahsMF.js rename to public/assets/RecentStories-Bs7uYjS2.js index a57b70f..dd81e23 100644 --- a/public/assets/RecentStories-B9-ahsMF.js +++ b/public/assets/RecentStories-Bs7uYjS2.js @@ -1 +1 @@ -import{aI as x,r as f,aA as e,aB as n,aT as g}from"./index--trdnQFa.js";import{u,t as l,O as b,L as y,T as i,B as j,b as w,av as k}from"./MyApp-BHr373cy.js";import{C as v}from"./Collection-CPPE61tF.js";import S from"./RecentStoryViewer-DG9zNPDV.js";import{b as F,a as R}from"./stories-DtwI_s_2.js";import{A as T}from"./index-fivsYW1W.js";import{L as B}from"./index-BJNnFmyH.js";import{I as N}from"./index-CB9InVBI.js";import{P as C}from"./index-CU7pBSDU.js";import{A as I}from"./index-DTxLlwd8.js";import{T as E}from"./index-VHrAsB-Q.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./StoryViewers-Bp82Fv1t.js";import"./VideoWithMuted-xvYRNY0l.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";function le(){const{ti:t}=u(),c=x();f.useEffect(()=>{l("RecentStories:onLoad")},[]);const m=o=>{c("/bulk-downloader",{state:{targetId:o,platform:g.Facebook}})},d=async(o,s)=>{var a;return await F(s||((a=o==null?void 0:o[o.length-1])==null?void 0:a.cursor)||"")},p=(o,s)=>e.jsx(B.Item,{children:e.jsxs(j.Ribbon,{text:o.stories.length,style:{opacity:o.stories.length>1?1:0},children:[e.jsx(N,{src:o.thumbnail,style:{width:160,height:270,borderRadius:10,objectFit:"cover"},preview:{destroyOnClose:!0,toolbarRender:()=>null,imageRender:()=>e.jsx(S,{story:o})}}),e.jsx("div",{style:{position:"absolute",top:10,left:10},children:e.jsxs(C,{title:o.seen?e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa-solid fa-eye"})," ",o.owner.name," ",t({en:" KNOW you saw",vi:" BIẾT bạn đã xem"})]}):o.owner.name,content:e.jsxs(w.Compact,{children:[e.jsx(i,{title:t({en:"Bulk downloader",vi:"Tải hàng loạt"}),placement:"bottom",children:e.jsx(n,{icon:e.jsx("i",{className:"fa-solid fa-download"}),onClick:()=>m(o.owner.id)})}),e.jsx(i,{title:t({en:"Open Facebook",vi:"Mở Facebook"}),placement:"bottom",children:e.jsx(n,{icon:e.jsx("i",{className:"fa-solid fa-external-link"}),onClick:()=>{window.open("https://fb.com/"+o.owner.id)}})})]}),children:[e.jsx(I,{src:o.owner.avatar,size:40,style:{borderWidth:4,borderColor:"#0866FF"}}),o.seen?e.jsx("i",{className:"fa-solid fa-eye fa-lg",style:{position:"absolute",bottom:0,right:0}}):null]})}),e.jsx("div",{style:{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)",position:"absolute",bottom:0,left:0,padding:"5px 10px",width:"100%",paddingTop:"50px",pointerEvents:"none"},children:e.jsx(E.Text,{style:{color:"#eee"},children:o.owner.name})})]})}),h=async o=>(await R(o.bucket_id)).map((r,a)=>({name:k(o.owner.name)+(r.video?".mp4":".jpg"),url:r.video||r.image||r.thumbnail}));return e.jsx(v,{collectionName:"Recent Stories "+b(),fetchNext:d,renderItem:p,downloadItem:h,getItemCursor:o=>o==null?void 0:o.cursor,rowKey:o=>o.bucket_id,all:!0,onSearch:(o,s)=>y(o,s.owner.name),header:()=>e.jsx(T,{type:"info",message:e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa fa-eye-slash",style:{color:"gray"}})," ",t({en:"View stories anonymously - Friends won't know you've viewed their stories",vi:"Xem tin ẩn danh - Bạn bè sẽ không biết bạn đã xem tin của họ"})]})}),headerButtons:()=>e.jsx(e.Fragment,{children:e.jsx(i,{title:e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa fa-history"})," ",t({en:"Story feedback history",vi:"Lịch sử hoạt động trên Tin"})]}),children:e.jsx(n,{icon:e.jsx("i",{className:"fa-solid fa-up-right-from-square"}),onClick:()=>{l("RecentStories:clickHistory"),window.open("https://www.facebook.com/me/allactivity/?category_key=STORIESFEEDBACK","_blank")},children:t({en:"History",vi:"Lịch sử"})})})})})}export{le as default}; +import{aI as x,r as f,aA as e,aB as n,aT as g}from"./index-BBriuzNA.js";import{u,t as l,O as b,L as y,T as i,B as j,b as w,av as k}from"./MyApp-CmkiOnMb.js";import{C as v}from"./Collection-B9SxfYr4.js";import S from"./RecentStoryViewer-DiqVKsiv.js";import{b as F,a as R}from"./stories-B17I0-Ef.js";import{A as T}from"./index-BhyNApA-.js";import{L as B}from"./index-B7udrguy.js";import{I as N}from"./index-Dm20K0UU.js";import{P as C}from"./index-Dg6R6lHP.js";import{A as I}from"./index-CbmP82sr.js";import{T as E}from"./index-Bumumc8Y.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./StoryViewers-suc5mL0p.js";import"./VideoWithMuted-CdYhYcjW.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";function le(){const{ti:t}=u(),c=x();f.useEffect(()=>{l("RecentStories:onLoad")},[]);const m=o=>{c("/bulk-downloader",{state:{targetId:o,platform:g.Facebook}})},d=async(o,s)=>{var a;return await F(s||((a=o==null?void 0:o[o.length-1])==null?void 0:a.cursor)||"")},p=(o,s)=>e.jsx(B.Item,{children:e.jsxs(j.Ribbon,{text:o.stories.length,style:{opacity:o.stories.length>1?1:0},children:[e.jsx(N,{src:o.thumbnail,style:{width:160,height:270,borderRadius:10,objectFit:"cover"},preview:{destroyOnClose:!0,toolbarRender:()=>null,imageRender:()=>e.jsx(S,{story:o})}}),e.jsx("div",{style:{position:"absolute",top:10,left:10},children:e.jsxs(C,{title:o.seen?e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa-solid fa-eye"})," ",o.owner.name," ",t({en:" KNOW you saw",vi:" BIẾT bạn đã xem"})]}):o.owner.name,content:e.jsxs(w.Compact,{children:[e.jsx(i,{title:t({en:"Bulk downloader",vi:"Tải hàng loạt"}),placement:"bottom",children:e.jsx(n,{icon:e.jsx("i",{className:"fa-solid fa-download"}),onClick:()=>m(o.owner.id)})}),e.jsx(i,{title:t({en:"Open Facebook",vi:"Mở Facebook"}),placement:"bottom",children:e.jsx(n,{icon:e.jsx("i",{className:"fa-solid fa-external-link"}),onClick:()=>{window.open("https://fb.com/"+o.owner.id)}})})]}),children:[e.jsx(I,{src:o.owner.avatar,size:40,style:{borderWidth:4,borderColor:"#0866FF"}}),o.seen?e.jsx("i",{className:"fa-solid fa-eye fa-lg",style:{position:"absolute",bottom:0,right:0}}):null]})}),e.jsx("div",{style:{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)",position:"absolute",bottom:0,left:0,padding:"5px 10px",width:"100%",paddingTop:"50px",pointerEvents:"none"},children:e.jsx(E.Text,{style:{color:"#eee"},children:o.owner.name})})]})}),h=async o=>(await R(o.bucket_id)).map((r,a)=>({name:k(o.owner.name)+(r.video?".mp4":".jpg"),url:r.video||r.image||r.thumbnail}));return e.jsx(v,{collectionName:"Recent Stories "+b(),fetchNext:d,renderItem:p,downloadItem:h,getItemCursor:o=>o==null?void 0:o.cursor,rowKey:o=>o.bucket_id,all:!0,onSearch:(o,s)=>y(o,s.owner.name),header:()=>e.jsx(T,{type:"info",message:e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa fa-eye-slash",style:{color:"gray"}})," ",t({en:"View stories anonymously - Friends won't know you've viewed their stories",vi:"Xem tin ẩn danh - Bạn bè sẽ không biết bạn đã xem tin của họ"})]})}),headerButtons:()=>e.jsx(e.Fragment,{children:e.jsx(i,{title:e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"fa fa-history"})," ",t({en:"Story feedback history",vi:"Lịch sử hoạt động trên Tin"})]}),children:e.jsx(n,{icon:e.jsx("i",{className:"fa-solid fa-up-right-from-square"}),onClick:()=>{l("RecentStories:clickHistory"),window.open("https://www.facebook.com/me/allactivity/?category_key=STORIESFEEDBACK","_blank")},children:t({en:"History",vi:"Lịch sử"})})})})})}export{le as default}; diff --git a/public/assets/RecentStoryViewer-DG9zNPDV.js b/public/assets/RecentStoryViewer-DiqVKsiv.js similarity index 98% rename from public/assets/RecentStoryViewer-DG9zNPDV.js rename to public/assets/RecentStoryViewer-DiqVKsiv.js index 69bce8a..8246d97 100644 --- a/public/assets/RecentStoryViewer-DG9zNPDV.js +++ b/public/assets/RecentStoryViewer-DiqVKsiv.js @@ -1,4 +1,4 @@ -import{r as E,$ as $t,ay as xt,au as xe,av as ye,aA as m,aB as F,aS as yt}from"./index--trdnQFa.js";import{a as Ct,r as St}from"./stories-DtwI_s_2.js";import{S as jt}from"./StoryViewers-Bp82Fv1t.js";import{u as zt,g as Mt,t as Ce,b as B,T as Et,a9 as Rt,i as Lt,k as Dt,aw as Bt}from"./MyApp-BHr373cy.js";import{V as Pt}from"./VideoWithMuted-xvYRNY0l.js";import{T as N}from"./index-VHrAsB-Q.js";import{I as Tt}from"./index-CB9InVBI.js";import{A as Ht}from"./index-DTxLlwd8.js";import"./Collection-CPPE61tF.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-BJNnFmyH.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";import"./index-CJGqVaEE.js";import"./addEventListener-KkFh1sjE.js";import"./index-CU7pBSDU.js";function Ge(t){return t&&t.__esModule?t.default:t}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var te,g,Xe,U,Ye,Se,X={},Je=[],At=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function L(t,e){for(var n in e)t[n]=e[n];return t}function Ze(t){var e=t.parentNode;e&&e.removeChild(t)}function de(t,e,n){var r,o,i,a={};for(i in e)i=="key"?r=e[i]:i=="ref"?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?te.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)a[i]===void 0&&(a[i]=t.defaultProps[i]);return K(t,a,r,o,null)}function K(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Xe};return o==null&&g.vnode!=null&&g.vnode(i),i}function M(){return{current:null}}function I(t){return t.children}function z(t,e){this.props=t,this.context=e}function V(t,e){if(e==null)return t.__?V(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e0?K(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(h=$[s])===null||h&&p.key==h.key&&p.type===h.type)$[s]=void 0;else for(v=0;v{let t=null;try{navigator.userAgent.includes("jsdom")||(t=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!t)return()=>!1;const e=25,n=20,r=Math.floor(e/2);return t.font=r+"px Arial, Sans-Serif",t.textBaseline="top",t.canvas.width=n*2,t.canvas.height=e,o=>{t.clearRect(0,0,n*2,e),t.fillStyle="#FF0000",t.fillText(o,0,22),t.fillStyle="#0000FF",t.fillText(o,n,22);const i=t.getImageData(0,0,n,e).data,a=i.length;let l=0;for(;l=a)return!1;const c=n+l/4%n,u=Math.floor(l/4/n),s=t.getImageData(c,u,1,1).data;return!(i[l]!==s[0]||i[l+2]!==s[2]||t.measureText(o).width>=n)}})();var Re={latestVersion:qt,noCountryFlags:Kt};const ue=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let x=null;function Xt(t){x||(x=D.get("frequently")||{});const e=t.id||t;e&&(x[e]||(x[e]=0),x[e]+=1,D.set("last",e),D.set("frequently",x))}function Yt({maxFrequentRows:t,perLine:e}){if(!t)return[];x||(x=D.get("frequently"));let n=[];if(!x){x={};for(let i in ue.slice(0,e)){const a=ue[i];x[a]=e-i,n.push(a)}return n}const r=t*e,o=D.get("last");for(let i in x)n.push(i);if(n.sort((i,a)=>{const l=x[a],c=x[i];return l==c?i.localeCompare(a):l-c}),n.length>r){const i=n.slice(r);n=n.slice(0,r);for(let a of i)a!=o&&delete x[a];o&&n.indexOf(o)==-1&&(delete x[n[n.length-1]],n.splice(-1,1,o)),D.set("frequently",x)}return n}var ct={add:Xt,get:Yt,DEFAULTS:ue},lt={};lt=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var R={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let y=null,b=null;const ae={};async function Le(t){if(ae[t])return ae[t];const n=await(await fetch(t)).json();return ae[t]=n,n}let ce=null,dt=null,ut=!1;function ne(t,{caller:e}={}){return ce||(ce=new Promise(n=>{dt=n})),t?Jt(t):e&&!ut&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),ce}async function Jt(t){ut=!0;let{emojiVersion:e,set:n,locale:r}=t;if(e||(e=R.emojiVersion.value),n||(n=R.set.value),r||(r=R.locale.value),b)b.categories=b.categories.filter(c=>!c.name);else{b=(typeof t.data=="function"?await t.data():t.data)||await Le(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`),b.emoticons={},b.natives={},b.categories.unshift({id:"frequent",emojis:[]});for(const c in b.aliases){const u=b.aliases[c],s=b.emojis[u];s&&(s.aliases||(s.aliases=[]),s.aliases.push(c))}b.originalCategories=b.categories}if(y=(typeof t.i18n=="function"?await t.i18n():t.i18n)||(r=="en"?Ge(lt):await Le(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)),t.custom)for(let c in t.custom){c=parseInt(c);const u=t.custom[c],s=t.custom[c-1];if(!(!u.emojis||!u.emojis.length)){u.id||(u.id=`custom_${c+1}`),u.name||(u.name=y.categories.custom),s&&!u.icon&&(u.target=s.target||s),b.categories.push(u);for(const v of u.emojis)b.emojis[v.id]=v}}t.categories&&(b.categories=b.originalCategories.filter(c=>t.categories.indexOf(c.id)!=-1).sort((c,u)=>{const s=t.categories.indexOf(c.id),v=t.categories.indexOf(u.id);return s-v}));let o=null,i=null;n=="native"&&(o=Re.latestVersion(),i=t.noCountryFlags||Re.noCountryFlags());let a=b.categories.length,l=!1;for(;a--;){const c=b.categories[a];if(c.id=="frequent"){let{maxFrequentRows:v,perLine:h}=t;v=v>=0?v:R.maxFrequentRows.value,h||(h=R.perLine.value),c.emojis=ct.get({maxFrequentRows:v,perLine:h})}if(!c.emojis||!c.emojis.length){b.categories.splice(a,1);continue}const{categoryIcons:u}=t;if(u){const v=u[c.id];v&&!c.icon&&(c.icon=v)}let s=c.emojis.length;for(;s--;){const v=c.emojis[s],h=v.id?v:b.emojis[v],p=()=>{c.emojis.splice(s,1)};if(!h||t.exceptEmojis&&t.exceptEmojis.includes(h.id)){p();continue}if(o&&h.version>o){p();continue}if(i&&c.id=="flags"&&!nn.includes(h.id)){p();continue}if(!h.search){if(l=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([w,k])=>{if(w)return(Array.isArray(w)?w:[w]).map($=>(k?$.split(/[-|_|\s]+/):[$]).map(f=>f.toLowerCase())).flat()}).flat().filter(w=>w&&w.trim()).join(","),h.emoticons)for(const w of h.emoticons)b.emoticons[w]||(b.emoticons[w]=h.id);let _=0;for(const w of h.skins){if(!w)continue;_++;const{native:k}=w;k&&(b.natives[k]=h.id,h.search+=`,${k}`);const $=_==1?"":`:skin-tone-${_}:`;w.shortcodes=`:${h.id}:${$}`}}}}l&&A.reset(),dt()}function ht(t,e,n){t||(t={});const r={};for(let o in e)r[o]=ft(o,t,e,n);return r}function ft(t,e,n,r){const o=n[t];let i=r&&r.getAttribute(t)||(e[t]!=null&&e[t]!=null?e[t]:null);return o&&(i!=null&&o.value&&typeof o.value!=typeof i&&(typeof o.value=="boolean"?i=i!="false":i=o.value.constructor(i)),o.transform&&i&&(i=o.transform(i)),(i==null||o.choices&&o.choices.indexOf(i)==-1)&&(i=o.value)),i}const Zt=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let he=null;function Qt(t){return t.id?t:b.emojis[t]||b.emojis[b.aliases[t]]||b.emojis[b.natives[t]]}function en(){he=null}async function tn(t,{maxResults:e,caller:n}={}){if(!t||!t.trim().length)return null;e||(e=90),await ne(null,{caller:n||"SearchIndex.search"});const r=t.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((l,c,u)=>l.trim()&&u.indexOf(l)==c);if(!r.length)return;let o=he||(he=Object.values(b.emojis)),i,a;for(const l of r){if(!o.length)break;i=[],a={};for(const c of o){if(!c.search)continue;const u=c.search.indexOf(`,${l}`);u!=-1&&(i.push(c),a[c.id]||(a[c.id]=0),a[c.id]+=c.id==l?0:u+1)}o=i}return i.length<2||(i.sort((l,c)=>{const u=a[l.id],s=a[c.id];return u==s?l.id.localeCompare(c.id):u-s}),i.length>e&&(i=i.slice(0,e))),i}var A={search:tn,get:Qt,reset:en,SHORTCODES_REGEX:Zt};const nn=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function rn(t,e){return Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((n,r)=>n==e[r])}async function on(t=1){for(let e in[...Array(t).keys()])await new Promise(requestAnimationFrame)}function sn(t,{skinIndex:e=0}={}){const n=t.skins[e]||(e=0,t.skins[e]),r={id:t.id,name:t.name,native:n.native,unified:n.unified,keywords:t.keywords,shortcodes:n.shortcodes||t.shortcodes};return t.skins.length>1&&(r.skin=e+1),n.src&&(r.src=n.src),t.aliases&&t.aliases.length&&(r.aliases=t.aliases),t.emoticons&&t.emoticons.length&&(r.emoticons=t.emoticons),r}const an={activity:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:d("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),d("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),d("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:d("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),d("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:d("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),d("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),d("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},cn={loupe:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:d("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:d("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var Q={categories:an,search:cn};function fe(t){let{id:e,skin:n,emoji:r}=t;if(t.shortcodes){const l=t.shortcodes.match(A.SHORTCODES_REGEX);l&&(e=l[1],l[2]&&(n=l[2]))}if(r||(r=A.get(e||t.native)),!r)return t.fallback;const o=r.skins[n-1]||r.skins[0],i=o.src||(t.set!="native"&&!t.spritesheet?typeof t.getImageURL=="function"?t.getImageURL(t.set,o.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/64/${o.unified}.png`:void 0),a=typeof t.getSpritesheetURL=="function"?t.getSpritesheetURL(t.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/sheets-256/64.png`;return d("span",{class:"emoji-mart-emoji","data-emoji-set":t.set,children:i?d("img",{style:{maxWidth:t.size||"1em",maxHeight:t.size||"1em",display:"inline-block"},alt:o.native||o.shortcodes,src:i}):t.set=="native"?d("span",{style:{fontSize:t.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:o.native}):d("span",{style:{display:"block",width:t.size,height:t.size,backgroundImage:`url(${a})`,backgroundSize:`${100*b.sheet.cols}% ${100*b.sheet.rows}%`,backgroundPosition:`${100/(b.sheet.cols-1)*o.x}% ${100/(b.sheet.rows-1)*o.y}%`}})})}const ln=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class pt extends ln{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let n in e)this.attributeChangedCallback(n,null,e[n])}attributeChangedCallback(e,n,r){if(!this.component)return;const o=ft(e,{[e]:r},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:o}):(this.component.props[e]=o,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let n=null;const r=e.parent||(n=e.ref&&e.ref.current);n&&(n.innerHTML=""),r&&r.appendChild(this)}}}class dn extends pt{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const n=document.createElement("style");n.textContent=e,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(e,{styles:n}={}){super(e),this.setShadow(),this.injectStyles(n)}}var vt={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:t=>/\D/.test(t)?t:`${t}px`},set:R.set,skin:R.skin};class gt extends pt{async connectedCallback(){const e=ht(this.props,vt,this);e.element=this,e.ref=n=>{this.component=n},await ne(),!this.disconnected&&st(d(fe,{...e}),this)}constructor(e){super(e)}}S(gt,"Props",vt);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",gt);var De,pe=[],Be=g.__b,Pe=g.__r,Te=g.diffed,He=g.__c,Ae=g.unmount;function un(){var t;for(pe.sort(function(e,n){return e.__v.__b-n.__v.__b});t=pe.pop();)if(t.__P)try{t.__H.__h.forEach(G),t.__H.__h.forEach(ve),t.__H.__h=[]}catch(e){t.__H.__h=[],g.__e(e,t.__v)}}g.__b=function(t){Be&&Be(t)},g.__r=function(t){Pe&&Pe(t);var e=t.__c.__H;e&&(e.__h.forEach(G),e.__h.forEach(ve),e.__h=[])},g.diffed=function(t){Te&&Te(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(pe.push(e)!==1&&De===g.requestAnimationFrame||((De=g.requestAnimationFrame)||function(n){var r,o=function(){clearTimeout(i),Ie&&cancelAnimationFrame(r),setTimeout(n)},i=setTimeout(o,100);Ie&&(r=requestAnimationFrame(o))})(un))},g.__c=function(t,e){e.some(function(n){try{n.__h.forEach(G),n.__h=n.__h.filter(function(r){return!r.__||ve(r)})}catch(r){e.some(function(o){o.__h&&(o.__h=[])}),e=[],g.__e(r,n.__v)}}),He&&He(t,e)},g.unmount=function(t){Ae&&Ae(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{G(r)}catch(o){e=o}}),e&&g.__e(e,n.__v))};var Ie=typeof requestAnimationFrame=="function";function G(t){var e=t.__c;typeof e=="function"&&(t.__c=void 0,e())}function ve(t){t.__c=t.__()}function hn(t,e){for(var n in e)t[n]=e[n];return t}function Ve(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function ee(t){this.props=t}(ee.prototype=new z).isPureReactComponent=!0,ee.prototype.shouldComponentUpdate=function(t,e){return Ve(this.props,t)||Ve(this.state,e)};var Oe=g.__b;g.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Oe&&Oe(t)};var fn=g.__e;g.__e=function(t,e,n){if(t.then){for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}fn(t,e,n)};var Fe=g.unmount;function le(){this.__u=0,this.t=null,this.__b=null}function _t(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function W(){this.u=null,this.o=null}g.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Fe&&Fe(t)},(le.prototype=new z).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=_t(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(!--r.__u){if(r.state.__e){var u=r.state.__e;r.__v.__k[0]=function v(h,p,_){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(w){return v(w,p,_)}),h.__c&&h.__c.__P===p&&(h.__e&&_.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=_)),h}(u,u.__c.__P,u.__c.__O)}var s;for(r.setState({__e:r.__b=null});s=r.t.pop();)s.forceUpdate()}},c=e.__h===!0;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},le.prototype.componentWillUnmount=function(){this.t=[]},le.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function i(a,l,c){return a&&(a.__c&&a.__c.__H&&(a.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),a.__c.__H=null),(a=hn({},a)).__c!=null&&(a.__c.__P===c&&(a.__c.__P=l),a.__c=null),a.__k=a.__k&&a.__k.map(function(u){return i(u,l,c)})),a}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__e&&de(I,null,t.fallback);return o&&(o.__h=null),[de(I,null,e.__e?null:t.children),o]};var Ne=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]{const o=n.name||y.categories[n.id],i=!this.props.unfocused&&n.id==this.state.categoryId;return i&&(e=r),d("button",{"aria-label":o,"aria-selected":i||void 0,title:o,type:"button",class:"flex flex-grow flex-center",onMouseDown:a=>a.preventDefault(),onClick:()=>{this.props.onClick({category:n,i:r})},children:this.renderIcon(n)})}),d("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=b.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class xn extends ee{shouldComponentUpdate(e){for(let n in e)if(n!="children"&&e[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const q={rowsPerRender:10};class yn extends z{getInitialState(e=this.props){return{skin:D.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=y.rtl?"rtl":"ltr",this.refs={menu:M(),navigation:M(),scroll:M(),search:M(),searchInput:M(),skinToneButton:M(),skinToneRadio:M()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const n in e)this.nextState[n]=e[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const o in this.nextState)this.props[o]=this.nextState[o],(o==="custom"||o==="categories")&&(n=!0);delete this.nextState;const r=this.getInitialState();if(n)return this.reset(r);this.setState(r)})}componentWillUnmount(){this.unregister()}async reset(e={}){await ne(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var e;document.removeEventListener("click",this.handleClickOutside),(e=this.darkMedia)==null||e.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const n of this.observers)e.includes(n)||n.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=b;this.refs.categories=new Map;const n=b.categories.map(o=>o.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const r=(o,i)=>{const a=[];a.__categoryId=i.id,a.__index=o.length,this.grid.push(a);const l=this.grid.length-1,c=l%q.rowsPerRender?{}:M();return c.index=l,c.posinset=this.grid.setsize+1,o.push(c),a};for(let o of e){const i=[];let a=r(i,o);for(let l of o.emojis)a.length==this.getPerLine()&&(a=r(i,o)),this.grid.setsize+=1,a.push(l);this.refs.categories.set(o.id,{root:M(),rows:i})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:n,emojiButtonSize:r}=e,o=()=>{const{width:a}=n.getBoundingClientRect();return Math.floor(a/r)},i=new ResizeObserver(()=>{this.unobserve({except:i}),this.setState({perLine:o()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return i.observe(n),this.observers.push(i),o()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,n]){const r=this.state.searchResults||this.grid,o=r[e]&&r[e][n];if(o)return A.get(o)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const n=new Map,r=a=>{a!=e.state.categoryId&&e.setState({categoryId:a})},o={root:this.refs.scroll.current,threshold:[0,1]},i=new IntersectionObserver(a=>{for(const c of a){const u=c.target.dataset.id;n.set(u,c.intersectionRatio)}const l=[...n];for(const[c,u]of l)if(u){r(c);break}},o);for(const{root:a}of this.refs.categories.values())i.observe(a.current);this.observers.push(i)}observeRows(){const e={...this.state.visibleRows},n=new IntersectionObserver(r=>{for(const o of r){const i=parseInt(o.target.dataset.index);o.isIntersecting?e[i]=!0:delete e[i]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(q.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*q.rowsPerRender}px`});for(const{rows:r}of this.refs.categories.values())for(const o of r)o.current&&n.observe(o.current);this.observers.push(n)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:n,left:r,right:o,up:i,down:a}){const l=this.state.searchResults||this.grid;if(!l.length)return;let[c,u]=this.state.pos;const s=(()=>{if(c==0&&u==0&&!e.repeat&&(r||i))return null;if(c==-1)return!e.repeat&&(o||a)&&n.selectionStart==n.value.length?[0,0]:null;if(r||o){let v=l[c];const h=r?-1:1;if(u+=h,!v[u]){if(c+=h,v=l[c],!v)return c=r?0:l.length-1,u=r?0:l[c].length-1,[c,u];u=r?v.length-1:0}return[c,u]}if(i||a){c+=i?-1:1;const v=l[c];return v?(v[u]||(u=v.length-1),[c,u]):(c=i?0:l.length-1,u=i?0:l[c].length-1,[c,u])}})();if(s)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:s,keyboard:!0},()=>{this.scrollTo({row:s[0]})})}scrollTo({categoryId:e,row:n}){const r=this.state.searchResults||this.grid;if(!r.length)return;const o=this.refs.scroll.current,i=o.getBoundingClientRect();let a=0;if(n>=0&&(e=r[n].__categoryId),e&&(a=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(i.top-o.scrollTop)+1),n>=0)if(!n)a=0;else{const l=r[n].__index,c=a+l*this.props.emojiButtonSize,u=c+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(co.scrollTop+i.height)a=u-i.height;else return}this.ignoreMouse(),o.scrollTop=a}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:n,pos:r}){if(this.props.onEmojiSelect&&(!n&&r&&(n=this.getEmojiByPos(r)),n)){const o=sn(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&ct.add(o,this.props),this.props.onEmojiSelect(o,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),D.set("skin",e)}renderNav(){return d($n,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return d("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[d("div",{class:"flex flex-middle flex-grow",children:[d("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:d(fe,{emoji:e,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),d("div",{class:`margin-${this.dir[0]}`,children:e||n?d("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[d("div",{class:"preview-title ellipsis",children:e?e.name:y.search_no_results_1}),d("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:y.search_no_results_2})]}):d("div",{class:"preview-placeholder color-c",children:y.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:n,posinset:r,grid:o}){const i=this.props.emojiButtonSize,a=this.state.tempSkin||this.state.skin,c=(e.skins[a-1]||e.skins[0]).native,u=rn(this.state.pos,n),s=n.concat(e.id).join("");return d(xn,{selected:u,skin:a,size:i,children:d("button",{"aria-label":c,"aria-selected":u||void 0,"aria-posinset":r,"aria-setsize":o.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:v=>this.handleEmojiClick({e:v,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[d("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(r-1)%this.props.emojiButtonColors.length]:void 0}}),d(fe,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:a,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},s)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return d("div",{children:[d("div",{class:"spacer"}),d("div",{class:"flex flex-middle",children:[d("div",{class:"search relative flex-grow",children:[d("input",{type:"search",ref:this.refs.searchInput,placeholder:y.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),d("span",{class:"icon loupe flex",children:Q.search.loupe}),this.state.searchResults&&d("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Q.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?d("div",{class:"category",ref:this.refs.search,children:[d("div",{class:`sticky padding-small align-${this.dir[0]}`,children:y.categories.search}),d("div",{children:e.length?e.map((n,r)=>d("div",{class:"flex",children:n.map((o,i)=>this.renderEmojiButton(o,{pos:[r,i],posinset:r*this.props.perLine+i+1,grid:e}))})):d("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&d("a",{onClick:this.props.onAddCustomEmoji,children:y.add_custom})})})]}):null}renderCategories(){const{categories:e}=b,n=!!this.state.searchResults,r=this.getPerLine();return d("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:e.map(o=>{const{root:i,rows:a}=this.refs.categories.get(o.id);return d("div",{"data-id":o.target?o.target.id:o.id,class:"category",ref:i,children:[d("div",{class:`sticky padding-small align-${this.dir[0]}`,children:o.name||y.categories[o.id]}),d("div",{class:"relative",style:{height:a.length*this.props.emojiButtonSize},children:a.map((l,c)=>{const u=l.index-l.index%q.rowsPerRender,s=this.state.visibleRows[u],v="current"in l?l:void 0;if(!s&&!v)return null;const h=c*r,p=h+r,_=o.emojis.slice(h,p);return _.length{if(!w)return d("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const $=A.get(w);return this.renderEmojiButton($,{pos:[l.index,k],posinset:l.posinset+k,grid:this.grid})})},l.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:d("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:d("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":y.skins.choose,title:y.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:d("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),n=e?e.name:"";return d("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),r=this.base.getBoundingClientRect(),o={};return this.dir=="ltr"?o.right=r.right-n.right-3:o.left=n.left-r.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?o.bottom=r.bottom-n.top+6:(o.top=n.bottom-r.top+3,o.bottom="auto"),d("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":y.skins.choose,class:"menu hidden","data-position":o.top?"top":"bottom",style:o,children:[...Array(6).keys()].map(i=>{const a=i+1,l=this.state.skin==a;return d("div",{children:[d("input",{type:"radio",name:"skin-tone",value:a,"aria-label":y.skins[a],ref:l?this.refs.skinToneRadio:null,defaultChecked:l,onChange:()=>this.handleSkinMouseOver(a),onKeyDown:c=>{(c.code=="Enter"||c.code=="Space"||c.code=="Tab")&&(c.preventDefault(),this.handleSkinClick(a))}}),d("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(a),onMouseEnter:()=>this.handleSkinMouseOver(a),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[d("span",{class:`skin-tone skin-tone-${a}`}),d("span",{class:"margin-small-lr",children:y.skins[a]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return d("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&d("div",{class:"padding-lr",children:this.renderSearch()}),d("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:d("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),S(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),S(this,"handleClickOutside",n=>{const{element:r}=this.props;n.target!=r&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),S(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),S(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),S(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),S(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:r}=n,o=await A.search(r),i=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!o)return this.setState({searchResults:o,pos:[-1,-1]},i);const a=n.selectionStart==n.value.length?[0,0]:[-1,-1],l=[];l.setsize=o.length;let c=null;for(let u of o)(!l.length||c.length==this.getPerLine())&&(c=[],c.__categoryId="search",c.__index=l.length,l.push(c)),c.push(u);this.ignoreMouse(),this.setState({searchResults:l,pos:a},i)}),S(this,"handleSearchKeyDown",n=>{const r=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:r,left:!0});break;case"ArrowRight":this.navigate({e:n,input:r,right:!0});break;case"ArrowUp":this.navigate({e:n,input:r,up:!0});break;case"ArrowDown":this.navigate({e:n,input:r,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),S(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),S(this,"handleCategoryClick",({category:n,i:r})=>{this.scrollTo(r==0?{row:-1}:{categoryId:n.id})}),S(this,"openSkins",n=>{const{currentTarget:r}=n,o=r.getBoundingClientRect();this.setState({showSkins:o},async()=>{await on(2);const i=this.refs.menu.current;i&&(i.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class re extends dn{async connectedCallback(){const e=ht(this.props,R,this);e.element=this,e.ref=n=>{this.component=n},await ne(e),!this.disconnected&&st(d(yn,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:Ge(mt)})}}S(re,"Props",R);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",re);var mt={};mt=`:host { +import{r as E,$ as $t,ay as xt,au as xe,av as ye,aA as m,aB as F,aS as yt}from"./index-BBriuzNA.js";import{a as Ct,r as St}from"./stories-B17I0-Ef.js";import{S as jt}from"./StoryViewers-suc5mL0p.js";import{u as zt,g as Mt,t as Ce,b as B,T as Et,a9 as Rt,i as Lt,k as Dt,aw as Bt}from"./MyApp-CmkiOnMb.js";import{V as Pt}from"./VideoWithMuted-CdYhYcjW.js";import{T as N}from"./index-Bumumc8Y.js";import{I as Tt}from"./index-Dm20K0UU.js";import{A as Ht}from"./index-CbmP82sr.js";import"./Collection-B9SxfYr4.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-B7udrguy.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";import"./index-uPrgDTc-.js";import"./addEventListener-w7NT04KM.js";import"./index-Dg6R6lHP.js";function Ge(t){return t&&t.__esModule?t.default:t}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var te,g,Xe,U,Ye,Se,X={},Je=[],At=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function L(t,e){for(var n in e)t[n]=e[n];return t}function Ze(t){var e=t.parentNode;e&&e.removeChild(t)}function de(t,e,n){var r,o,i,a={};for(i in e)i=="key"?r=e[i]:i=="ref"?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?te.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)a[i]===void 0&&(a[i]=t.defaultProps[i]);return K(t,a,r,o,null)}function K(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Xe};return o==null&&g.vnode!=null&&g.vnode(i),i}function M(){return{current:null}}function I(t){return t.children}function z(t,e){this.props=t,this.context=e}function V(t,e){if(e==null)return t.__?V(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e0?K(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(h=$[s])===null||h&&p.key==h.key&&p.type===h.type)$[s]=void 0;else for(v=0;v{let t=null;try{navigator.userAgent.includes("jsdom")||(t=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!t)return()=>!1;const e=25,n=20,r=Math.floor(e/2);return t.font=r+"px Arial, Sans-Serif",t.textBaseline="top",t.canvas.width=n*2,t.canvas.height=e,o=>{t.clearRect(0,0,n*2,e),t.fillStyle="#FF0000",t.fillText(o,0,22),t.fillStyle="#0000FF",t.fillText(o,n,22);const i=t.getImageData(0,0,n,e).data,a=i.length;let l=0;for(;l=a)return!1;const c=n+l/4%n,u=Math.floor(l/4/n),s=t.getImageData(c,u,1,1).data;return!(i[l]!==s[0]||i[l+2]!==s[2]||t.measureText(o).width>=n)}})();var Re={latestVersion:qt,noCountryFlags:Kt};const ue=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let x=null;function Xt(t){x||(x=D.get("frequently")||{});const e=t.id||t;e&&(x[e]||(x[e]=0),x[e]+=1,D.set("last",e),D.set("frequently",x))}function Yt({maxFrequentRows:t,perLine:e}){if(!t)return[];x||(x=D.get("frequently"));let n=[];if(!x){x={};for(let i in ue.slice(0,e)){const a=ue[i];x[a]=e-i,n.push(a)}return n}const r=t*e,o=D.get("last");for(let i in x)n.push(i);if(n.sort((i,a)=>{const l=x[a],c=x[i];return l==c?i.localeCompare(a):l-c}),n.length>r){const i=n.slice(r);n=n.slice(0,r);for(let a of i)a!=o&&delete x[a];o&&n.indexOf(o)==-1&&(delete x[n[n.length-1]],n.splice(-1,1,o)),D.set("frequently",x)}return n}var ct={add:Xt,get:Yt,DEFAULTS:ue},lt={};lt=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var R={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let y=null,b=null;const ae={};async function Le(t){if(ae[t])return ae[t];const n=await(await fetch(t)).json();return ae[t]=n,n}let ce=null,dt=null,ut=!1;function ne(t,{caller:e}={}){return ce||(ce=new Promise(n=>{dt=n})),t?Jt(t):e&&!ut&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),ce}async function Jt(t){ut=!0;let{emojiVersion:e,set:n,locale:r}=t;if(e||(e=R.emojiVersion.value),n||(n=R.set.value),r||(r=R.locale.value),b)b.categories=b.categories.filter(c=>!c.name);else{b=(typeof t.data=="function"?await t.data():t.data)||await Le(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`),b.emoticons={},b.natives={},b.categories.unshift({id:"frequent",emojis:[]});for(const c in b.aliases){const u=b.aliases[c],s=b.emojis[u];s&&(s.aliases||(s.aliases=[]),s.aliases.push(c))}b.originalCategories=b.categories}if(y=(typeof t.i18n=="function"?await t.i18n():t.i18n)||(r=="en"?Ge(lt):await Le(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)),t.custom)for(let c in t.custom){c=parseInt(c);const u=t.custom[c],s=t.custom[c-1];if(!(!u.emojis||!u.emojis.length)){u.id||(u.id=`custom_${c+1}`),u.name||(u.name=y.categories.custom),s&&!u.icon&&(u.target=s.target||s),b.categories.push(u);for(const v of u.emojis)b.emojis[v.id]=v}}t.categories&&(b.categories=b.originalCategories.filter(c=>t.categories.indexOf(c.id)!=-1).sort((c,u)=>{const s=t.categories.indexOf(c.id),v=t.categories.indexOf(u.id);return s-v}));let o=null,i=null;n=="native"&&(o=Re.latestVersion(),i=t.noCountryFlags||Re.noCountryFlags());let a=b.categories.length,l=!1;for(;a--;){const c=b.categories[a];if(c.id=="frequent"){let{maxFrequentRows:v,perLine:h}=t;v=v>=0?v:R.maxFrequentRows.value,h||(h=R.perLine.value),c.emojis=ct.get({maxFrequentRows:v,perLine:h})}if(!c.emojis||!c.emojis.length){b.categories.splice(a,1);continue}const{categoryIcons:u}=t;if(u){const v=u[c.id];v&&!c.icon&&(c.icon=v)}let s=c.emojis.length;for(;s--;){const v=c.emojis[s],h=v.id?v:b.emojis[v],p=()=>{c.emojis.splice(s,1)};if(!h||t.exceptEmojis&&t.exceptEmojis.includes(h.id)){p();continue}if(o&&h.version>o){p();continue}if(i&&c.id=="flags"&&!nn.includes(h.id)){p();continue}if(!h.search){if(l=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([w,k])=>{if(w)return(Array.isArray(w)?w:[w]).map($=>(k?$.split(/[-|_|\s]+/):[$]).map(f=>f.toLowerCase())).flat()}).flat().filter(w=>w&&w.trim()).join(","),h.emoticons)for(const w of h.emoticons)b.emoticons[w]||(b.emoticons[w]=h.id);let _=0;for(const w of h.skins){if(!w)continue;_++;const{native:k}=w;k&&(b.natives[k]=h.id,h.search+=`,${k}`);const $=_==1?"":`:skin-tone-${_}:`;w.shortcodes=`:${h.id}:${$}`}}}}l&&A.reset(),dt()}function ht(t,e,n){t||(t={});const r={};for(let o in e)r[o]=ft(o,t,e,n);return r}function ft(t,e,n,r){const o=n[t];let i=r&&r.getAttribute(t)||(e[t]!=null&&e[t]!=null?e[t]:null);return o&&(i!=null&&o.value&&typeof o.value!=typeof i&&(typeof o.value=="boolean"?i=i!="false":i=o.value.constructor(i)),o.transform&&i&&(i=o.transform(i)),(i==null||o.choices&&o.choices.indexOf(i)==-1)&&(i=o.value)),i}const Zt=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let he=null;function Qt(t){return t.id?t:b.emojis[t]||b.emojis[b.aliases[t]]||b.emojis[b.natives[t]]}function en(){he=null}async function tn(t,{maxResults:e,caller:n}={}){if(!t||!t.trim().length)return null;e||(e=90),await ne(null,{caller:n||"SearchIndex.search"});const r=t.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((l,c,u)=>l.trim()&&u.indexOf(l)==c);if(!r.length)return;let o=he||(he=Object.values(b.emojis)),i,a;for(const l of r){if(!o.length)break;i=[],a={};for(const c of o){if(!c.search)continue;const u=c.search.indexOf(`,${l}`);u!=-1&&(i.push(c),a[c.id]||(a[c.id]=0),a[c.id]+=c.id==l?0:u+1)}o=i}return i.length<2||(i.sort((l,c)=>{const u=a[l.id],s=a[c.id];return u==s?l.id.localeCompare(c.id):u-s}),i.length>e&&(i=i.slice(0,e))),i}var A={search:tn,get:Qt,reset:en,SHORTCODES_REGEX:Zt};const nn=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function rn(t,e){return Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((n,r)=>n==e[r])}async function on(t=1){for(let e in[...Array(t).keys()])await new Promise(requestAnimationFrame)}function sn(t,{skinIndex:e=0}={}){const n=t.skins[e]||(e=0,t.skins[e]),r={id:t.id,name:t.name,native:n.native,unified:n.unified,keywords:t.keywords,shortcodes:n.shortcodes||t.shortcodes};return t.skins.length>1&&(r.skin=e+1),n.src&&(r.src=n.src),t.aliases&&t.aliases.length&&(r.aliases=t.aliases),t.emoticons&&t.emoticons.length&&(r.emoticons=t.emoticons),r}const an={activity:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:d("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),d("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),d("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:d("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),d("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:d("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),d("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),d("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},cn={loupe:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:d("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:d("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var Q={categories:an,search:cn};function fe(t){let{id:e,skin:n,emoji:r}=t;if(t.shortcodes){const l=t.shortcodes.match(A.SHORTCODES_REGEX);l&&(e=l[1],l[2]&&(n=l[2]))}if(r||(r=A.get(e||t.native)),!r)return t.fallback;const o=r.skins[n-1]||r.skins[0],i=o.src||(t.set!="native"&&!t.spritesheet?typeof t.getImageURL=="function"?t.getImageURL(t.set,o.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/64/${o.unified}.png`:void 0),a=typeof t.getSpritesheetURL=="function"?t.getSpritesheetURL(t.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/sheets-256/64.png`;return d("span",{class:"emoji-mart-emoji","data-emoji-set":t.set,children:i?d("img",{style:{maxWidth:t.size||"1em",maxHeight:t.size||"1em",display:"inline-block"},alt:o.native||o.shortcodes,src:i}):t.set=="native"?d("span",{style:{fontSize:t.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:o.native}):d("span",{style:{display:"block",width:t.size,height:t.size,backgroundImage:`url(${a})`,backgroundSize:`${100*b.sheet.cols}% ${100*b.sheet.rows}%`,backgroundPosition:`${100/(b.sheet.cols-1)*o.x}% ${100/(b.sheet.rows-1)*o.y}%`}})})}const ln=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class pt extends ln{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let n in e)this.attributeChangedCallback(n,null,e[n])}attributeChangedCallback(e,n,r){if(!this.component)return;const o=ft(e,{[e]:r},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:o}):(this.component.props[e]=o,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let n=null;const r=e.parent||(n=e.ref&&e.ref.current);n&&(n.innerHTML=""),r&&r.appendChild(this)}}}class dn extends pt{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const n=document.createElement("style");n.textContent=e,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(e,{styles:n}={}){super(e),this.setShadow(),this.injectStyles(n)}}var vt={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:t=>/\D/.test(t)?t:`${t}px`},set:R.set,skin:R.skin};class gt extends pt{async connectedCallback(){const e=ht(this.props,vt,this);e.element=this,e.ref=n=>{this.component=n},await ne(),!this.disconnected&&st(d(fe,{...e}),this)}constructor(e){super(e)}}S(gt,"Props",vt);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",gt);var De,pe=[],Be=g.__b,Pe=g.__r,Te=g.diffed,He=g.__c,Ae=g.unmount;function un(){var t;for(pe.sort(function(e,n){return e.__v.__b-n.__v.__b});t=pe.pop();)if(t.__P)try{t.__H.__h.forEach(G),t.__H.__h.forEach(ve),t.__H.__h=[]}catch(e){t.__H.__h=[],g.__e(e,t.__v)}}g.__b=function(t){Be&&Be(t)},g.__r=function(t){Pe&&Pe(t);var e=t.__c.__H;e&&(e.__h.forEach(G),e.__h.forEach(ve),e.__h=[])},g.diffed=function(t){Te&&Te(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(pe.push(e)!==1&&De===g.requestAnimationFrame||((De=g.requestAnimationFrame)||function(n){var r,o=function(){clearTimeout(i),Ie&&cancelAnimationFrame(r),setTimeout(n)},i=setTimeout(o,100);Ie&&(r=requestAnimationFrame(o))})(un))},g.__c=function(t,e){e.some(function(n){try{n.__h.forEach(G),n.__h=n.__h.filter(function(r){return!r.__||ve(r)})}catch(r){e.some(function(o){o.__h&&(o.__h=[])}),e=[],g.__e(r,n.__v)}}),He&&He(t,e)},g.unmount=function(t){Ae&&Ae(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{G(r)}catch(o){e=o}}),e&&g.__e(e,n.__v))};var Ie=typeof requestAnimationFrame=="function";function G(t){var e=t.__c;typeof e=="function"&&(t.__c=void 0,e())}function ve(t){t.__c=t.__()}function hn(t,e){for(var n in e)t[n]=e[n];return t}function Ve(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function ee(t){this.props=t}(ee.prototype=new z).isPureReactComponent=!0,ee.prototype.shouldComponentUpdate=function(t,e){return Ve(this.props,t)||Ve(this.state,e)};var Oe=g.__b;g.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Oe&&Oe(t)};var fn=g.__e;g.__e=function(t,e,n){if(t.then){for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}fn(t,e,n)};var Fe=g.unmount;function le(){this.__u=0,this.t=null,this.__b=null}function _t(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function W(){this.u=null,this.o=null}g.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Fe&&Fe(t)},(le.prototype=new z).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=_t(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(!--r.__u){if(r.state.__e){var u=r.state.__e;r.__v.__k[0]=function v(h,p,_){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(w){return v(w,p,_)}),h.__c&&h.__c.__P===p&&(h.__e&&_.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=_)),h}(u,u.__c.__P,u.__c.__O)}var s;for(r.setState({__e:r.__b=null});s=r.t.pop();)s.forceUpdate()}},c=e.__h===!0;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},le.prototype.componentWillUnmount=function(){this.t=[]},le.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function i(a,l,c){return a&&(a.__c&&a.__c.__H&&(a.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),a.__c.__H=null),(a=hn({},a)).__c!=null&&(a.__c.__P===c&&(a.__c.__P=l),a.__c=null),a.__k=a.__k&&a.__k.map(function(u){return i(u,l,c)})),a}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__e&&de(I,null,t.fallback);return o&&(o.__h=null),[de(I,null,e.__e?null:t.children),o]};var Ne=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]{const o=n.name||y.categories[n.id],i=!this.props.unfocused&&n.id==this.state.categoryId;return i&&(e=r),d("button",{"aria-label":o,"aria-selected":i||void 0,title:o,type:"button",class:"flex flex-grow flex-center",onMouseDown:a=>a.preventDefault(),onClick:()=>{this.props.onClick({category:n,i:r})},children:this.renderIcon(n)})}),d("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=b.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class xn extends ee{shouldComponentUpdate(e){for(let n in e)if(n!="children"&&e[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const q={rowsPerRender:10};class yn extends z{getInitialState(e=this.props){return{skin:D.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=y.rtl?"rtl":"ltr",this.refs={menu:M(),navigation:M(),scroll:M(),search:M(),searchInput:M(),skinToneButton:M(),skinToneRadio:M()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const n in e)this.nextState[n]=e[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const o in this.nextState)this.props[o]=this.nextState[o],(o==="custom"||o==="categories")&&(n=!0);delete this.nextState;const r=this.getInitialState();if(n)return this.reset(r);this.setState(r)})}componentWillUnmount(){this.unregister()}async reset(e={}){await ne(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var e;document.removeEventListener("click",this.handleClickOutside),(e=this.darkMedia)==null||e.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const n of this.observers)e.includes(n)||n.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=b;this.refs.categories=new Map;const n=b.categories.map(o=>o.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const r=(o,i)=>{const a=[];a.__categoryId=i.id,a.__index=o.length,this.grid.push(a);const l=this.grid.length-1,c=l%q.rowsPerRender?{}:M();return c.index=l,c.posinset=this.grid.setsize+1,o.push(c),a};for(let o of e){const i=[];let a=r(i,o);for(let l of o.emojis)a.length==this.getPerLine()&&(a=r(i,o)),this.grid.setsize+=1,a.push(l);this.refs.categories.set(o.id,{root:M(),rows:i})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:n,emojiButtonSize:r}=e,o=()=>{const{width:a}=n.getBoundingClientRect();return Math.floor(a/r)},i=new ResizeObserver(()=>{this.unobserve({except:i}),this.setState({perLine:o()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return i.observe(n),this.observers.push(i),o()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,n]){const r=this.state.searchResults||this.grid,o=r[e]&&r[e][n];if(o)return A.get(o)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const n=new Map,r=a=>{a!=e.state.categoryId&&e.setState({categoryId:a})},o={root:this.refs.scroll.current,threshold:[0,1]},i=new IntersectionObserver(a=>{for(const c of a){const u=c.target.dataset.id;n.set(u,c.intersectionRatio)}const l=[...n];for(const[c,u]of l)if(u){r(c);break}},o);for(const{root:a}of this.refs.categories.values())i.observe(a.current);this.observers.push(i)}observeRows(){const e={...this.state.visibleRows},n=new IntersectionObserver(r=>{for(const o of r){const i=parseInt(o.target.dataset.index);o.isIntersecting?e[i]=!0:delete e[i]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(q.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*q.rowsPerRender}px`});for(const{rows:r}of this.refs.categories.values())for(const o of r)o.current&&n.observe(o.current);this.observers.push(n)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:n,left:r,right:o,up:i,down:a}){const l=this.state.searchResults||this.grid;if(!l.length)return;let[c,u]=this.state.pos;const s=(()=>{if(c==0&&u==0&&!e.repeat&&(r||i))return null;if(c==-1)return!e.repeat&&(o||a)&&n.selectionStart==n.value.length?[0,0]:null;if(r||o){let v=l[c];const h=r?-1:1;if(u+=h,!v[u]){if(c+=h,v=l[c],!v)return c=r?0:l.length-1,u=r?0:l[c].length-1,[c,u];u=r?v.length-1:0}return[c,u]}if(i||a){c+=i?-1:1;const v=l[c];return v?(v[u]||(u=v.length-1),[c,u]):(c=i?0:l.length-1,u=i?0:l[c].length-1,[c,u])}})();if(s)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:s,keyboard:!0},()=>{this.scrollTo({row:s[0]})})}scrollTo({categoryId:e,row:n}){const r=this.state.searchResults||this.grid;if(!r.length)return;const o=this.refs.scroll.current,i=o.getBoundingClientRect();let a=0;if(n>=0&&(e=r[n].__categoryId),e&&(a=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(i.top-o.scrollTop)+1),n>=0)if(!n)a=0;else{const l=r[n].__index,c=a+l*this.props.emojiButtonSize,u=c+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(co.scrollTop+i.height)a=u-i.height;else return}this.ignoreMouse(),o.scrollTop=a}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:n,pos:r}){if(this.props.onEmojiSelect&&(!n&&r&&(n=this.getEmojiByPos(r)),n)){const o=sn(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&ct.add(o,this.props),this.props.onEmojiSelect(o,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),D.set("skin",e)}renderNav(){return d($n,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return d("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[d("div",{class:"flex flex-middle flex-grow",children:[d("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:d(fe,{emoji:e,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),d("div",{class:`margin-${this.dir[0]}`,children:e||n?d("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[d("div",{class:"preview-title ellipsis",children:e?e.name:y.search_no_results_1}),d("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:y.search_no_results_2})]}):d("div",{class:"preview-placeholder color-c",children:y.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:n,posinset:r,grid:o}){const i=this.props.emojiButtonSize,a=this.state.tempSkin||this.state.skin,c=(e.skins[a-1]||e.skins[0]).native,u=rn(this.state.pos,n),s=n.concat(e.id).join("");return d(xn,{selected:u,skin:a,size:i,children:d("button",{"aria-label":c,"aria-selected":u||void 0,"aria-posinset":r,"aria-setsize":o.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:v=>this.handleEmojiClick({e:v,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[d("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(r-1)%this.props.emojiButtonColors.length]:void 0}}),d(fe,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:a,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},s)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return d("div",{children:[d("div",{class:"spacer"}),d("div",{class:"flex flex-middle",children:[d("div",{class:"search relative flex-grow",children:[d("input",{type:"search",ref:this.refs.searchInput,placeholder:y.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),d("span",{class:"icon loupe flex",children:Q.search.loupe}),this.state.searchResults&&d("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Q.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?d("div",{class:"category",ref:this.refs.search,children:[d("div",{class:`sticky padding-small align-${this.dir[0]}`,children:y.categories.search}),d("div",{children:e.length?e.map((n,r)=>d("div",{class:"flex",children:n.map((o,i)=>this.renderEmojiButton(o,{pos:[r,i],posinset:r*this.props.perLine+i+1,grid:e}))})):d("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&d("a",{onClick:this.props.onAddCustomEmoji,children:y.add_custom})})})]}):null}renderCategories(){const{categories:e}=b,n=!!this.state.searchResults,r=this.getPerLine();return d("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:e.map(o=>{const{root:i,rows:a}=this.refs.categories.get(o.id);return d("div",{"data-id":o.target?o.target.id:o.id,class:"category",ref:i,children:[d("div",{class:`sticky padding-small align-${this.dir[0]}`,children:o.name||y.categories[o.id]}),d("div",{class:"relative",style:{height:a.length*this.props.emojiButtonSize},children:a.map((l,c)=>{const u=l.index-l.index%q.rowsPerRender,s=this.state.visibleRows[u],v="current"in l?l:void 0;if(!s&&!v)return null;const h=c*r,p=h+r,_=o.emojis.slice(h,p);return _.length{if(!w)return d("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const $=A.get(w);return this.renderEmojiButton($,{pos:[l.index,k],posinset:l.posinset+k,grid:this.grid})})},l.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:d("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:d("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":y.skins.choose,title:y.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:d("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),n=e?e.name:"";return d("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),r=this.base.getBoundingClientRect(),o={};return this.dir=="ltr"?o.right=r.right-n.right-3:o.left=n.left-r.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?o.bottom=r.bottom-n.top+6:(o.top=n.bottom-r.top+3,o.bottom="auto"),d("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":y.skins.choose,class:"menu hidden","data-position":o.top?"top":"bottom",style:o,children:[...Array(6).keys()].map(i=>{const a=i+1,l=this.state.skin==a;return d("div",{children:[d("input",{type:"radio",name:"skin-tone",value:a,"aria-label":y.skins[a],ref:l?this.refs.skinToneRadio:null,defaultChecked:l,onChange:()=>this.handleSkinMouseOver(a),onKeyDown:c=>{(c.code=="Enter"||c.code=="Space"||c.code=="Tab")&&(c.preventDefault(),this.handleSkinClick(a))}}),d("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(a),onMouseEnter:()=>this.handleSkinMouseOver(a),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[d("span",{class:`skin-tone skin-tone-${a}`}),d("span",{class:"margin-small-lr",children:y.skins[a]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return d("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&d("div",{class:"padding-lr",children:this.renderSearch()}),d("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:d("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),S(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),S(this,"handleClickOutside",n=>{const{element:r}=this.props;n.target!=r&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),S(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),S(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),S(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),S(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:r}=n,o=await A.search(r),i=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!o)return this.setState({searchResults:o,pos:[-1,-1]},i);const a=n.selectionStart==n.value.length?[0,0]:[-1,-1],l=[];l.setsize=o.length;let c=null;for(let u of o)(!l.length||c.length==this.getPerLine())&&(c=[],c.__categoryId="search",c.__index=l.length,l.push(c)),c.push(u);this.ignoreMouse(),this.setState({searchResults:l,pos:a},i)}),S(this,"handleSearchKeyDown",n=>{const r=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:r,left:!0});break;case"ArrowRight":this.navigate({e:n,input:r,right:!0});break;case"ArrowUp":this.navigate({e:n,input:r,up:!0});break;case"ArrowDown":this.navigate({e:n,input:r,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),S(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),S(this,"handleCategoryClick",({category:n,i:r})=>{this.scrollTo(r==0?{row:-1}:{categoryId:n.id})}),S(this,"openSkins",n=>{const{currentTarget:r}=n,o=r.getBoundingClientRect();this.setState({showSkins:o},async()=>{await on(2);const i=this.refs.menu.current;i&&(i.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class re extends dn{async connectedCallback(){const e=ht(this.props,R,this);e.element=this,e.ref=n=>{this.component=n},await ne(e),!this.disconnected&&st(d(yn,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:Ge(mt)})}}S(re,"Props",R);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",re);var mt={};mt=`:host { width: min-content; height: 435px; min-height: 230px; diff --git a/public/assets/Reels-tf46zqUU.js b/public/assets/Reels-lb_FCiY2.js similarity index 75% rename from public/assets/Reels-tf46zqUU.js rename to public/assets/Reels-lb_FCiY2.js index 4ec76f9..d5309d8 100644 --- a/public/assets/Reels-tf46zqUU.js +++ b/public/assets/Reels-lb_FCiY2.js @@ -1,3 +1,3 @@ -const __vite__fileDeps=["./VideoViewer-BZdLHYsJ.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./VideoWithMuted-xvYRNY0l.js","./MyApp-BHr373cy.js","./ImageLazyPreview-CSLUs9MG.js","./index-CB9InVBI.js","./EyeOutlined-BALW2cms.js","./addEventListener-KkFh1sjE.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{r as u,aA as o,aB as N,aF as E}from"./index--trdnQFa.js";import{D as S,E as P,u as L,b as a,ac as V,i as T,ad as A,ab as z,f as k,L as g}from"./MyApp-BHr373cy.js";import{C as F}from"./Collection-CPPE61tF.js";import{e as O,g as U}from"./videos-CpxHGGu6.js";import{L as W}from"./index-BJNnFmyH.js";import{T as q}from"./index-VHrAsB-Q.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";async function B({id:l="",cursor:c=""}){var r,p,m;const t=await S({fb_api_req_friendly_name:"ProfileCometAppCollectionReelsRendererPaginationQuery",variables:{count:10,cursor:c,feedLocation:"COMET_MEDIA_VIEWER",feedbackSource:65,focusCommentID:null,renderLocation:null,scale:1,useDefaultActor:!0,id:btoa("app_collection:"+l+":168684841768375:260")},doc_id:"7821270511254925"}),n=P(((r=t==null?void 0:t.split(` -`))==null?void 0:r[0])||"{}");console.log(n);const{edges:d=[],page_info:i={}}=((m=(p=n==null?void 0:n.data)==null?void 0:p.node)==null?void 0:m.aggregated_fb_shorts)||{};return d.map(s=>{var f,h,b,y,x,_,j,w,v,C,I,R;const e=((h=(f=s==null?void 0:s.profile_reel_node)==null?void 0:f.node)==null?void 0:h.short_form_video_context)||{};return{...O(e==null?void 0:e.playback_video),id:((x=(y=(b=s==null?void 0:s.profile_reel_node)==null?void 0:b.node)==null?void 0:y.video)==null?void 0:x.id)||atob((_=s==null?void 0:s.profile_reel_node)==null?void 0:_.id).split(":").pop(),description:(v=(w=(j=s==null?void 0:s.profile_reel_node)==null?void 0:j.node)==null?void 0:w.message)==null?void 0:v.text,viewCount:e==null?void 0:e.play_count_reduced,created_time:(((I=(C=s==null?void 0:s.profile_reel_node)==null?void 0:C.node)==null?void 0:I.creation_time)||0)*1e3+"",url:e==null?void 0:e.shareable_url,cursor:(s==null?void 0:s.cursor)||i.end_cursor,music:e==null?void 0:e.track_title,length:(R=e==null?void 0:e.playback_video)==null?void 0:R.length_in_second}})}const M=u.lazy(()=>E(()=>import("./VideoViewer-BZdLHYsJ.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),Q=u.lazy(()=>E(()=>import("./ImageLazyPreview-CSLUs9MG.js"),__vite__mapDeps([5,1,2,4,6,7,8]),import.meta.url));function ui({target:l}){const{ti:c}=L(),t=u.useCallback(async(i=[],r)=>{var m;return!(l!=null&&l.id)||!(l!=null&&l.type)?void 0:(r=r||((m=i==null?void 0:i[(i==null?void 0:i.length)-1])==null?void 0:m.cursor)||"",await B({id:l.id,cursor:r}))},[l]),n=u.useCallback(async i=>({url:i.source,name:i.id+".mp4"}),[]),d=u.useCallback(i=>o.jsx(W.Item,{children:o.jsxs(a,{direction:"vertical",children:[o.jsxs("div",{className:"show-on-hover-trigger",children:[o.jsx(Q,{src:i.thumbnail,width:200,height:300,style:{objectFit:"cover",borderRadius:10},cacheId:"reels."+i.id,getPreview:()=>i.source||U(i.id).then(r=>(console.log(r),r.source)),renderPreview:(r,p)=>({destroyOnClose:!0,imageRender:()=>o.jsx(V,{spinning:p,children:o.jsx(M,{info:i,style:{maxWidth:"90vw",maxHeight:"90vh"}})}),toolbarRender:()=>null})}),o.jsx(N,{type:"default",icon:o.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:T(i.id)})]}),o.jsx(q.Paragraph,{style:{maxWidth:"150px",wordWrap:"break-word"},onClick:()=>window.open(i.url),children:A(i.description,100)}),o.jsxs(a,{direction:"vertical",size:1,style:{position:"absolute",top:0,left:0,padding:10,paddingBottom:50,width:"100%",background:"linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)",pointerEvents:"none"},children:[o.jsxs(a,{children:[o.jsx("i",{className:"fa-regular fa-eye"}),i.viewCount]}),o.jsxs(a,{children:[o.jsx("i",{className:"fa-solid fa-film"}),i.length?z(i.length):null]}),o.jsxs(a,{children:[o.jsx("i",{className:"fa-regular fa-clock"}),k(i.created_time,c({en:"en-US",vi:"vi-VN"}))]}),i.music?o.jsxs(a,{align:"start",size:4,children:[o.jsx("i",{className:"fa-solid fa-music"})," ",i.music]}):null]})]})}),[]);return o.jsx(F,{collectionName:(l==null?void 0:l.name)+" - Reels",fetchNext:t,renderItem:d,downloadItem:n,getItemCursor:i=>i.cursor,rowKey:i=>i.id,searchPlaceholder:i=>c({en:`Seach in ${i==null?void 0:i.length} Reels`,vi:`Tìm kiếm trong ${i==null?void 0:i.length} Reels`}),onSearch:(i,r)=>g(i,r.description+r.music+k(r.created_time,c({en:"en-US",vi:"vi-VN"})))})}export{ui as default}; +const __vite__fileDeps=["./VideoViewer-cT2XlKrM.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./VideoWithMuted-CdYhYcjW.js","./MyApp-CmkiOnMb.js","./ImageLazyPreview-DbcS5lXO.js","./index-Dm20K0UU.js","./EyeOutlined-Du2MtFRM.js","./addEventListener-w7NT04KM.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{r as u,aA as o,aB as N,aF as E}from"./index-BBriuzNA.js";import{D as S,E as P,u as L,b as a,ac as V,i as T,ad as A,ab as z,f as k,L as g}from"./MyApp-CmkiOnMb.js";import{C as F}from"./Collection-B9SxfYr4.js";import{e as O,g as U}from"./videos-VQJKJ_Wq.js";import{L as W}from"./index-B7udrguy.js";import{T as q}from"./index-Bumumc8Y.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";async function B({id:l="",cursor:c=""}){var r,p,m;const t=await S({fb_api_req_friendly_name:"ProfileCometAppCollectionReelsRendererPaginationQuery",variables:{count:10,cursor:c,feedLocation:"COMET_MEDIA_VIEWER",feedbackSource:65,focusCommentID:null,renderLocation:null,scale:1,useDefaultActor:!0,id:btoa("app_collection:"+l+":168684841768375:260")},doc_id:"7821270511254925"}),n=P(((r=t==null?void 0:t.split(` +`))==null?void 0:r[0])||"{}");console.log(n);const{edges:d=[],page_info:i={}}=((m=(p=n==null?void 0:n.data)==null?void 0:p.node)==null?void 0:m.aggregated_fb_shorts)||{};return d.map(s=>{var f,h,b,y,x,_,j,w,v,C,I,R;const e=((h=(f=s==null?void 0:s.profile_reel_node)==null?void 0:f.node)==null?void 0:h.short_form_video_context)||{};return{...O(e==null?void 0:e.playback_video),id:((x=(y=(b=s==null?void 0:s.profile_reel_node)==null?void 0:b.node)==null?void 0:y.video)==null?void 0:x.id)||atob((_=s==null?void 0:s.profile_reel_node)==null?void 0:_.id).split(":").pop(),description:(v=(w=(j=s==null?void 0:s.profile_reel_node)==null?void 0:j.node)==null?void 0:w.message)==null?void 0:v.text,viewCount:e==null?void 0:e.play_count_reduced,created_time:(((I=(C=s==null?void 0:s.profile_reel_node)==null?void 0:C.node)==null?void 0:I.creation_time)||0)*1e3+"",url:e==null?void 0:e.shareable_url,cursor:(s==null?void 0:s.cursor)||i.end_cursor,music:e==null?void 0:e.track_title,length:(R=e==null?void 0:e.playback_video)==null?void 0:R.length_in_second}})}const M=u.lazy(()=>E(()=>import("./VideoViewer-cT2XlKrM.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),Q=u.lazy(()=>E(()=>import("./ImageLazyPreview-DbcS5lXO.js"),__vite__mapDeps([5,1,2,4,6,7,8]),import.meta.url));function ui({target:l}){const{ti:c}=L(),t=u.useCallback(async(i=[],r)=>{var m;return!(l!=null&&l.id)||!(l!=null&&l.type)?void 0:(r=r||((m=i==null?void 0:i[(i==null?void 0:i.length)-1])==null?void 0:m.cursor)||"",await B({id:l.id,cursor:r}))},[l]),n=u.useCallback(async i=>({url:i.source,name:i.id+".mp4"}),[]),d=u.useCallback(i=>o.jsx(W.Item,{children:o.jsxs(a,{direction:"vertical",children:[o.jsxs("div",{className:"show-on-hover-trigger",children:[o.jsx(Q,{src:i.thumbnail,width:200,height:300,style:{objectFit:"cover",borderRadius:10},cacheId:"reels."+i.id,getPreview:()=>i.source||U(i.id).then(r=>(console.log(r),r.source)),renderPreview:(r,p)=>({destroyOnClose:!0,imageRender:()=>o.jsx(V,{spinning:p,children:o.jsx(M,{info:i,style:{maxWidth:"90vw",maxHeight:"90vh"}})}),toolbarRender:()=>null})}),o.jsx(N,{type:"default",icon:o.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:T(i.id)})]}),o.jsx(q.Paragraph,{style:{maxWidth:"150px",wordWrap:"break-word"},onClick:()=>window.open(i.url),children:A(i.description,100)}),o.jsxs(a,{direction:"vertical",size:1,style:{position:"absolute",top:0,left:0,padding:10,paddingBottom:50,width:"100%",background:"linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)",pointerEvents:"none"},children:[o.jsxs(a,{children:[o.jsx("i",{className:"fa-regular fa-eye"}),i.viewCount]}),o.jsxs(a,{children:[o.jsx("i",{className:"fa-solid fa-film"}),i.length?z(i.length):null]}),o.jsxs(a,{children:[o.jsx("i",{className:"fa-regular fa-clock"}),k(i.created_time,c({en:"en-US",vi:"vi-VN"}))]}),i.music?o.jsxs(a,{align:"start",size:4,children:[o.jsx("i",{className:"fa-solid fa-music"})," ",i.music]}):null]})]})}),[]);return o.jsx(F,{collectionName:(l==null?void 0:l.name)+" - Reels",fetchNext:t,renderItem:d,downloadItem:n,getItemCursor:i=>i.cursor,rowKey:i=>i.id,searchPlaceholder:i=>c({en:`Seach in ${i==null?void 0:i.length} Reels`,vi:`Tìm kiếm trong ${i==null?void 0:i.length} Reels`}),onSearch:(i,r)=>g(i,r.description+r.music+k(r.created_time,c({en:"en-US",vi:"vi-VN"})))})}export{ui as default}; diff --git a/public/assets/SearchOutlined-D247roQH.js b/public/assets/SearchOutlined-DvnHgzkc.js similarity index 92% rename from public/assets/SearchOutlined-D247roQH.js rename to public/assets/SearchOutlined-DvnHgzkc.js index 09a3b42..4064f9a 100644 --- a/public/assets/SearchOutlined-D247roQH.js +++ b/public/assets/SearchOutlined-DvnHgzkc.js @@ -1 +1 @@ -import{r as e,T as t,g as s}from"./index--trdnQFa.js";var c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},n=function(a,r){return e.createElement(t,s({},a,{ref:r,icon:c}))},l=e.forwardRef(n);export{l as R}; +import{r as e,T as t,g as s}from"./index-BBriuzNA.js";var c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},n=function(a,r){return e.createElement(t,s({},a,{ref:r,icon:c}))},l=e.forwardRef(n);export{l as R}; diff --git a/public/assets/Shortcuts-Twlqi1uQ.js b/public/assets/Shortcuts-BrDAbgQB.js similarity index 95% rename from public/assets/Shortcuts-Twlqi1uQ.js rename to public/assets/Shortcuts-BrDAbgQB.js index 6c361f9..9fc34fc 100644 --- a/public/assets/Shortcuts-Twlqi1uQ.js +++ b/public/assets/Shortcuts-BrDAbgQB.js @@ -1 +1 @@ -import{r as l,aA as o,aH as a}from"./index--trdnQFa.js";import{u as r,t as s,B as f,P as d}from"./MyApp-BHr373cy.js";import{R as h}from"./row-DQoT4CfJ.js";import{T as m}from"./index-VHrAsB-Q.js";import{L as i}from"./index-BJNnFmyH.js";import"./responsiveObserver-DiDk9dGL.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";const k=[{devider:!0,name:{en:"Friends",vi:"Bạn bè"}},{icon:o.jsx("i",{className:"fa-solid fa-user-plus fa-xl"}),name:{en:"Add friends history",vi:"Lịch sử kết bạn"},description:{en:"Friends that you have added on facebook",vi:"Bạn bè bạn đã thêm trên facebook"},link:"https://www.facebook.com/me/allactivity?category_key=FRIENDS"},{icon:o.jsx("i",{className:"fa-solid fa-user-minus fa-xl"}),name:{en:"Remove friends history",vi:"Lịch sử huỷ kết bạn"},description:{en:"People you have unfriended from facebook",vi:"Danh sách những người bạn đã huỷ kết bạn"},link:"https://www.facebook.com/me/allactivity?category_key=REMOVEDFRIENDS"},{icon:o.jsx("i",{className:"fa-solid fa-hand-point-up fa-xl"}),name:{en:"Poke friends history",vi:"Lịch sử chọc"},description:{en:"Friends that you poked on facebook",vi:"Bạn đã chọc ai trên facebook"},link:"https://www.facebook.com/me/allactivity?category_key=POKECLUSTER"},{icon:o.jsx("i",{className:"fa-solid fa-user fa-xl"}),name:{en:"Friend requests",vi:"Yêu cầu kết bạn"},description:{en:"Manage your incoming/outgoing friend requests",vi:"Quản lý lời mời kết bạn đã nhận/đã gửi"},link:"https://www.facebook.com/friends/requests"},{icon:o.jsx("i",{className:"fa-solid fa-cake-candles fa-xl"}),name:{en:"Friend's Birthdays",vi:"Sinh nhật bạn bè"},description:{en:"View your friend's birthdays each month on facebook",vi:"Xem từng tháng có những sinh nhật nào của bạn bè trên facebook."},link:"https://www.facebook.com/friends/birthdays"},{icon:o.jsx("i",{className:"fa-solid fa-person-walking-arrow-right fa-xl"}),name:{en:"Following",vi:"Đang theo dõi"},description:{en:"Friends/Page/Group that you are following on facebook",vi:"Bạn bè/Trang/Nhóm bạn đang theo dõi trên facebook"},link:"https://www.facebook.com/me/following"},{icon:o.jsx("i",{className:"fa-solid fa-person-walking-arrow-right fa-xl"}),name:{en:"Followers",vi:"Người theo dõi"},description:{en:"See who are following you on facebook",vi:"Xem ai đang theo dõi bạn trên facebook"},link:"https://www.facebook.com/me/followers"},{icon:o.jsx("i",{className:"fa-solid fa-ban fa-xl"}),name:{en:"Blocking list",vi:"Quản lý chặn"},description:{en:"Block anything on facebook that you don't want to see",vi:"Chặn bất kỳ thứ gì trên facebook mà bạn không thích"},badge:a.HOT,link:"https://www.facebook.com/settings/?tab=blocking"},{devider:!0,name:{en:"Activities",vi:"Hoạt động"}},{icon:o.jsx("i",{className:"fa-solid fa-film fa-xl"}),name:{en:"Recently watched videos",vi:"Video vừa xem"},description:{en:"View all videos you watched on facebook",vi:"Xem lại những video bạn đã xem trên facebook"},badge:a.HOT,link:"https://www.facebook.com/me/allactivity?activity_history=false&category_key=VIDEOWATCH&manage_mode=false&should_load_landing_page=false"},{icon:o.jsx("i",{className:"fa-solid fa-magnifying-glass fa-xl"}),name:{en:"Search history",vi:"Lịch sử tìm kiếm"},description:{en:"What you searched on facebook",vi:"Bạn đã tìm những gì trên facebook"},link:"https://accountscenter.facebook.com/info_and_permissions/search_history/"},{icon:o.jsx("i",{className:"fa-solid fa-bookmark fa-xl"}),name:{en:"Saved contents",vi:"Mục đã lưu"},description:{en:"View saved contents on Facebook",vi:"Xem nội dung bạn đã lưu trên Facebook"},link:"https://www.facebook.com/saved"},{icon:o.jsx("i",{className:"fa-solid fa-video fa-xl"}),name:{en:"Saved videos",vi:"Video đã lưu"},description:{en:"All video that you have saved",vi:"Tất cả video bạn đã lưu"},link:"https://www.facebook.com/watch/saved"},{icon:o.jsx("i",{className:"fa-solid fa-clock-rotate-left fa-xl"}),name:{en:"Your memories",vi:"Kỷ niệm của bạn"},description:{en:"View your memories on facebook",vi:"Xem kỷ niệm (memories) của bạn trên facebook"},link:"https://www.facebook.com/memories/"},{icon:o.jsx("i",{className:"fa-brands fa-adversal fa-xl"}),name:{en:"Ads activities",vi:"Quảng cáo đã xem"},description:{en:"View ads you have seen on facebook",vi:"Xem các quảng cáo bạn đã xem trên facebook"},link:"https://www.facebook.com/ads/activity"},{icon:o.jsx("i",{className:"fa-solid fa-eye fa-xl"}),name:{en:"Your activities",vi:"Nhật ký hoạt động"},description:{en:"Check all your activities on facebook",vi:"Kiểm tra nhật ký hoạt động của bạn trên facebook"},link:"https://www.facebook.com/me/allactivity"},{icon:o.jsx("i",{className:"fa-solid fa-calendar-days fa-xl"}),name:{en:"Joined events",vi:"Sự kiện đã tham gia"},description:{en:"View pass events that you have joined on facebook.",vi:"Xem tất cả sự kiện bạn từng tham gia trên facebook."},link:"https://www.facebook.com/events/past"},{icon:o.jsx("i",{className:"fa-solid fa-people-roof fa-xl"}),name:{en:"Family",vi:"Gia đình"},description:{en:"Manage & Monitor your family on facebook",vi:"Quản lý & Giám sát gia đình bạn trên facebook"},link:"https://familycenter.facebook.com/dashboard/"},{devider:!0,name:{en:"Security",vi:"Bảo mật"}},{icon:o.jsx("i",{className:"fa-solid fa-clock fa-xl"}),name:{en:"First date on Facebook",vi:"Ngày tham gia Facebook"},description:{en:"The date that you created this facebook account",vi:"Ngày mà bạn tạo nick facebook này"},badge:a.HOT,onClick:async()=>window.open("https://accountscenter.facebook.com/profiles/"+await d()+"/manage")},{icon:o.jsx("i",{className:"fa-solid fa-language fa-xl"}),name:{en:"Change language",vi:"Đổi ngôn ngữ"},description:{en:"Change display language on facebook",vi:"Đổi ngôn ngữ hiển thị trên facebook"},link:"https://www.facebook.com/settings/?tab=language"},{icon:o.jsx("i",{className:"fa-solid fa-location-dot fa-xl"}),name:{en:"Your location",vi:"Vị trí của bạn"},description:{en:"See how facebook know your location",vi:"Xem cách facebook biết vị trí của bạn"},link:"https://www.facebook.com/primary_location/info"},{icon:o.jsx("i",{className:"fa-solid fa-lock fa-xl"}),name:{en:"Privacy settings",vi:"Quyền riêng tư"},description:{en:"Check & Manage your privacy settings on facebook",vi:"Kiểm tra & Quản lý quyền riêng tư trên facebook"},link:"https://www.facebook.com/privacy/checkup/?source=privacy_center"},{icon:o.jsx("i",{className:"fa-solid fa-key fa-xl"}),name:{en:"Two factor authentication",vi:"Xác thực 2 yếu tố"},description:{en:"Increase security with two factor authentication on facebook",vi:"Tăng cường bảo mật bằng xác thực 2 yêu cầu tố trên facebook"},link:"https://accountscenter.facebook.com/password_and_security/two_factor"},{icon:o.jsx("i",{className:"fa-solid fa-desktop fa-xl"}),name:{en:"Login devices",vi:"Nơi bạn đăng nhập"},description:{en:"View all devices that you have logged in",vi:"Xem những thiết bị nào đã đăng nhập vào tài khoản của bạn"},link:"https://accountscenter.facebook.com/password_and_security/login_activity/"},{icon:o.jsx("i",{className:"fa-brands fa-google-drive fa-xl"}),name:{en:"Tranfer your data",vi:"Chuyển thông tin của bạn"},description:{en:"Clone your facebook data to other platform (google drive, dropbox, etc.)",vi:"Chuyển bản sao thông tin của bạn sang nền tảng khác (google drive, dropbox, ...)"},link:"https://accountscenter.facebook.com/info_and_permissions/tyi"},{icon:o.jsx("i",{className:"fa-solid fa-cloud-arrow-down fa-xl"}),name:{en:"Download your data",vi:"Tải xuống thông tin của bạn"},description:{en:"Download all your data on facebook (messages, posts, comments, likes, friends, etc.)",vi:"Tải xuống tất cả thông tin của bạn (tin nhắn, bài viết, bình luận, like, bạn bè, ...)"},link:"https://accountscenter.facebook.com/info_and_permissions/dyi"},{icon:o.jsx("i",{className:"fa-solid fa-skull fa-xl"}),name:{en:"Account recovery",vi:"Khôi phục tài khoản"},description:{en:"Your fb account has been hacked? Facebook can help you.",vi:"Tài khoản fb của bạn bị hack? Facebook có thể giúp bạn."},badge:a.HOT,link:"https://fb.com/hacked"}];function F(){const{ti:n}=r();return l.useEffect(()=>{s("Shortcuts:onLoad")},[]),o.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[o.jsx(h,{align:"middle",style:{margin:"16px"},children:o.jsx(m.Title,{level:3,style:{margin:0},children:n({en:"Facebook Shortcuts",vi:"Phím tắt Facebook"})})}),o.jsx(i,{style:{padding:10},dataSource:k,renderItem:e=>e.devider?o.jsxs("h2",{style:{marginTop:50},children:["📌 ",n(e.name)]}):o.jsx(i.Item,{children:o.jsx(i.Item.Meta,{avatar:e.icon,title:o.jsxs(o.Fragment,{children:[o.jsx("a",{href:e.link,target:"_blank",onClick:t=>{var c;s("Shortcuts:click:"+n(e.name)),e.link||(t.preventDefault(),t.stopPropagation(),(c=e.onClick)==null||c.call(e))},children:n(e.name)}),e.badge?o.jsx(f,{color:e.badge.bg,style:{marginLeft:10,color:e.badge.color},count:n(e.badge.text)}):null]}),description:n(e.description)})})})]})}export{F as default}; +import{r as l,aA as o,aH as a}from"./index-BBriuzNA.js";import{u as r,t as s,B as f,P as d}from"./MyApp-CmkiOnMb.js";import{R as h}from"./row-C0Wk6t4-.js";import{T as m}from"./index-Bumumc8Y.js";import{L as i}from"./index-B7udrguy.js";import"./responsiveObserver-Bb1LONna.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";const k=[{devider:!0,name:{en:"Friends",vi:"Bạn bè"}},{icon:o.jsx("i",{className:"fa-solid fa-user-plus fa-xl"}),name:{en:"Add friends history",vi:"Lịch sử kết bạn"},description:{en:"Friends that you have added on facebook",vi:"Bạn bè bạn đã thêm trên facebook"},link:"https://www.facebook.com/me/allactivity?category_key=FRIENDS"},{icon:o.jsx("i",{className:"fa-solid fa-user-minus fa-xl"}),name:{en:"Remove friends history",vi:"Lịch sử huỷ kết bạn"},description:{en:"People you have unfriended from facebook",vi:"Danh sách những người bạn đã huỷ kết bạn"},link:"https://www.facebook.com/me/allactivity?category_key=REMOVEDFRIENDS"},{icon:o.jsx("i",{className:"fa-solid fa-hand-point-up fa-xl"}),name:{en:"Poke friends history",vi:"Lịch sử chọc"},description:{en:"Friends that you poked on facebook",vi:"Bạn đã chọc ai trên facebook"},link:"https://www.facebook.com/me/allactivity?category_key=POKECLUSTER"},{icon:o.jsx("i",{className:"fa-solid fa-user fa-xl"}),name:{en:"Friend requests",vi:"Yêu cầu kết bạn"},description:{en:"Manage your incoming/outgoing friend requests",vi:"Quản lý lời mời kết bạn đã nhận/đã gửi"},link:"https://www.facebook.com/friends/requests"},{icon:o.jsx("i",{className:"fa-solid fa-cake-candles fa-xl"}),name:{en:"Friend's Birthdays",vi:"Sinh nhật bạn bè"},description:{en:"View your friend's birthdays each month on facebook",vi:"Xem từng tháng có những sinh nhật nào của bạn bè trên facebook."},link:"https://www.facebook.com/friends/birthdays"},{icon:o.jsx("i",{className:"fa-solid fa-person-walking-arrow-right fa-xl"}),name:{en:"Following",vi:"Đang theo dõi"},description:{en:"Friends/Page/Group that you are following on facebook",vi:"Bạn bè/Trang/Nhóm bạn đang theo dõi trên facebook"},link:"https://www.facebook.com/me/following"},{icon:o.jsx("i",{className:"fa-solid fa-person-walking-arrow-right fa-xl"}),name:{en:"Followers",vi:"Người theo dõi"},description:{en:"See who are following you on facebook",vi:"Xem ai đang theo dõi bạn trên facebook"},link:"https://www.facebook.com/me/followers"},{icon:o.jsx("i",{className:"fa-solid fa-ban fa-xl"}),name:{en:"Blocking list",vi:"Quản lý chặn"},description:{en:"Block anything on facebook that you don't want to see",vi:"Chặn bất kỳ thứ gì trên facebook mà bạn không thích"},badge:a.HOT,link:"https://www.facebook.com/settings/?tab=blocking"},{devider:!0,name:{en:"Activities",vi:"Hoạt động"}},{icon:o.jsx("i",{className:"fa-solid fa-film fa-xl"}),name:{en:"Recently watched videos",vi:"Video vừa xem"},description:{en:"View all videos you watched on facebook",vi:"Xem lại những video bạn đã xem trên facebook"},badge:a.HOT,link:"https://www.facebook.com/me/allactivity?activity_history=false&category_key=VIDEOWATCH&manage_mode=false&should_load_landing_page=false"},{icon:o.jsx("i",{className:"fa-solid fa-magnifying-glass fa-xl"}),name:{en:"Search history",vi:"Lịch sử tìm kiếm"},description:{en:"What you searched on facebook",vi:"Bạn đã tìm những gì trên facebook"},link:"https://accountscenter.facebook.com/info_and_permissions/search_history/"},{icon:o.jsx("i",{className:"fa-solid fa-bookmark fa-xl"}),name:{en:"Saved contents",vi:"Mục đã lưu"},description:{en:"View saved contents on Facebook",vi:"Xem nội dung bạn đã lưu trên Facebook"},link:"https://www.facebook.com/saved"},{icon:o.jsx("i",{className:"fa-solid fa-video fa-xl"}),name:{en:"Saved videos",vi:"Video đã lưu"},description:{en:"All video that you have saved",vi:"Tất cả video bạn đã lưu"},link:"https://www.facebook.com/watch/saved"},{icon:o.jsx("i",{className:"fa-solid fa-clock-rotate-left fa-xl"}),name:{en:"Your memories",vi:"Kỷ niệm của bạn"},description:{en:"View your memories on facebook",vi:"Xem kỷ niệm (memories) của bạn trên facebook"},link:"https://www.facebook.com/memories/"},{icon:o.jsx("i",{className:"fa-brands fa-adversal fa-xl"}),name:{en:"Ads activities",vi:"Quảng cáo đã xem"},description:{en:"View ads you have seen on facebook",vi:"Xem các quảng cáo bạn đã xem trên facebook"},link:"https://www.facebook.com/ads/activity"},{icon:o.jsx("i",{className:"fa-solid fa-eye fa-xl"}),name:{en:"Your activities",vi:"Nhật ký hoạt động"},description:{en:"Check all your activities on facebook",vi:"Kiểm tra nhật ký hoạt động của bạn trên facebook"},link:"https://www.facebook.com/me/allactivity"},{icon:o.jsx("i",{className:"fa-solid fa-calendar-days fa-xl"}),name:{en:"Joined events",vi:"Sự kiện đã tham gia"},description:{en:"View pass events that you have joined on facebook.",vi:"Xem tất cả sự kiện bạn từng tham gia trên facebook."},link:"https://www.facebook.com/events/past"},{icon:o.jsx("i",{className:"fa-solid fa-people-roof fa-xl"}),name:{en:"Family",vi:"Gia đình"},description:{en:"Manage & Monitor your family on facebook",vi:"Quản lý & Giám sát gia đình bạn trên facebook"},link:"https://familycenter.facebook.com/dashboard/"},{devider:!0,name:{en:"Security",vi:"Bảo mật"}},{icon:o.jsx("i",{className:"fa-solid fa-clock fa-xl"}),name:{en:"First date on Facebook",vi:"Ngày tham gia Facebook"},description:{en:"The date that you created this facebook account",vi:"Ngày mà bạn tạo nick facebook này"},badge:a.HOT,onClick:async()=>window.open("https://accountscenter.facebook.com/profiles/"+await d()+"/manage")},{icon:o.jsx("i",{className:"fa-solid fa-language fa-xl"}),name:{en:"Change language",vi:"Đổi ngôn ngữ"},description:{en:"Change display language on facebook",vi:"Đổi ngôn ngữ hiển thị trên facebook"},link:"https://www.facebook.com/settings/?tab=language"},{icon:o.jsx("i",{className:"fa-solid fa-location-dot fa-xl"}),name:{en:"Your location",vi:"Vị trí của bạn"},description:{en:"See how facebook know your location",vi:"Xem cách facebook biết vị trí của bạn"},link:"https://www.facebook.com/primary_location/info"},{icon:o.jsx("i",{className:"fa-solid fa-lock fa-xl"}),name:{en:"Privacy settings",vi:"Quyền riêng tư"},description:{en:"Check & Manage your privacy settings on facebook",vi:"Kiểm tra & Quản lý quyền riêng tư trên facebook"},link:"https://www.facebook.com/privacy/checkup/?source=privacy_center"},{icon:o.jsx("i",{className:"fa-solid fa-key fa-xl"}),name:{en:"Two factor authentication",vi:"Xác thực 2 yếu tố"},description:{en:"Increase security with two factor authentication on facebook",vi:"Tăng cường bảo mật bằng xác thực 2 yêu cầu tố trên facebook"},link:"https://accountscenter.facebook.com/password_and_security/two_factor"},{icon:o.jsx("i",{className:"fa-solid fa-desktop fa-xl"}),name:{en:"Login devices",vi:"Nơi bạn đăng nhập"},description:{en:"View all devices that you have logged in",vi:"Xem những thiết bị nào đã đăng nhập vào tài khoản của bạn"},link:"https://accountscenter.facebook.com/password_and_security/login_activity/"},{icon:o.jsx("i",{className:"fa-brands fa-google-drive fa-xl"}),name:{en:"Tranfer your data",vi:"Chuyển thông tin của bạn"},description:{en:"Clone your facebook data to other platform (google drive, dropbox, etc.)",vi:"Chuyển bản sao thông tin của bạn sang nền tảng khác (google drive, dropbox, ...)"},link:"https://accountscenter.facebook.com/info_and_permissions/tyi"},{icon:o.jsx("i",{className:"fa-solid fa-cloud-arrow-down fa-xl"}),name:{en:"Download your data",vi:"Tải xuống thông tin của bạn"},description:{en:"Download all your data on facebook (messages, posts, comments, likes, friends, etc.)",vi:"Tải xuống tất cả thông tin của bạn (tin nhắn, bài viết, bình luận, like, bạn bè, ...)"},link:"https://accountscenter.facebook.com/info_and_permissions/dyi"},{icon:o.jsx("i",{className:"fa-solid fa-skull fa-xl"}),name:{en:"Account recovery",vi:"Khôi phục tài khoản"},description:{en:"Your fb account has been hacked? Facebook can help you.",vi:"Tài khoản fb của bạn bị hack? Facebook có thể giúp bạn."},badge:a.HOT,link:"https://fb.com/hacked"}];function F(){const{ti:n}=r();return l.useEffect(()=>{s("Shortcuts:onLoad")},[]),o.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[o.jsx(h,{align:"middle",style:{margin:"16px"},children:o.jsx(m.Title,{level:3,style:{margin:0},children:n({en:"Facebook Shortcuts",vi:"Phím tắt Facebook"})})}),o.jsx(i,{style:{padding:10},dataSource:k,renderItem:e=>e.devider?o.jsxs("h2",{style:{marginTop:50},children:["📌 ",n(e.name)]}):o.jsx(i.Item,{children:o.jsx(i.Item.Meta,{avatar:e.icon,title:o.jsxs(o.Fragment,{children:[o.jsx("a",{href:e.link,target:"_blank",onClick:t=>{var c;s("Shortcuts:click:"+n(e.name)),e.link||(t.preventDefault(),t.stopPropagation(),(c=e.onClick)==null||c.call(e))},children:n(e.name)}),e.badge?o.jsx(f,{color:e.badge.bg,style:{marginLeft:10,color:e.badge.color},count:n(e.badge.text)}):null]}),description:n(e.description)})})})]})}export{F as default}; diff --git a/public/assets/Stories-Cd_fHXUc.js b/public/assets/Stories-CtgzOA59.js similarity index 53% rename from public/assets/Stories-Cd_fHXUc.js rename to public/assets/Stories-CtgzOA59.js index 9bef8a5..6f8750c 100644 --- a/public/assets/Stories-Cd_fHXUc.js +++ b/public/assets/Stories-CtgzOA59.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./RecentStoryViewer-DG9zNPDV.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./stories-DtwI_s_2.js","./MyApp-BHr373cy.js","./StoryViewers-Bp82Fv1t.js","./Collection-CPPE61tF.js","./index-X7jfXLlB.js","./file-download-DYjmaN3D.js","./index-BI67OZir.js","./Dropdown-DUpNeMO8.js","./PurePanel-CSR2tSBX.js","./index-DmA8T0X5.js","./index-BCUBacY9.js","./index-VHrAsB-Q.js","./EyeOutlined-BALW2cms.js","./SearchOutlined-D247roQH.js","./index-BJNnFmyH.js","./Pagination-CPGTHysj.js","./useBreakpoint-QbbjxHKX.js","./responsiveObserver-DiDk9dGL.js","./index-CETJ8txP.js","./row-DQoT4CfJ.js","./index-CJGqVaEE.js","./index-DTxLlwd8.js","./index-CU7pBSDU.js","./VideoWithMuted-xvYRNY0l.js","./index-CB9InVBI.js","./addEventListener-KkFh1sjE.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{aA as s,r as d,aF as u,aB as h}from"./index--trdnQFa.js";import{u as y,b as x,y as f,T as b,a9 as j,i as w}from"./MyApp-BHr373cy.js";import{C as v}from"./Collection-CPPE61tF.js";import{i as I}from"./icons-BAGZq2AS.js";import{g as k,a as _}from"./stories-DtwI_s_2.js";import{A as T}from"./index-fivsYW1W.js";import{L as N}from"./index-BJNnFmyH.js";import{I as S}from"./index-CB9InVBI.js";import{T as a}from"./index-VHrAsB-Q.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";const B=d.lazy(()=>u(()=>import("./RecentStoryViewer-DG9zNPDV.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url));function so({target:e}){const{ti:i}=y(),t=(e==null?void 0:e.name)+" - Stories",c=async(o=[],n)=>{if(!(e!=null&&e.id))return;const{bucketId:r,firstStoryId:p}=await k(e==null?void 0:e.id);return!r||!p?[]:await _(r)},m=(o,n)=>{const r=o.seen?s.jsx("span",{children:"👀"}):s.jsx("i",{className:"fa fa-eye-slash",style:{color:"gray"}});return s.jsxs(N.Item,{className:"show-on-hover-trigger",children:[s.jsxs(x,{direction:"vertical",style:{position:"relative"},children:[s.jsx(S,{src:o.thumbnail,fallback:o.image,style:{width:200,height:330,borderRadius:10,objectFit:"cover"},preview:{destroyOnClose:!0,imageRender:()=>s.jsx(B,{story:{bucket_id:o.bucket_id,owner:e},bucketsData:f("Collection.data."+t)||[],index:n}),toolbarRender:()=>null}}),s.jsx(b,{placement:"bottom",title:s.jsxs(s.Fragment,{children:[r," ",e==null?void 0:e.name,o.seen?i({en:" KNOWS you saw",vi:" BIẾT bạn đã xem"}):i({en:" DOESN'T know you saw",vi:" KHÔNG biết bạn đã xem"})]}),children:s.jsxs(a.Text,{children:[r," ",j(o.creation_time*1e3)," ",i({vi:"trước",en:"ago"}),s.jsx("br",{}),o.react_count," reactions ",o.reaction]})}),o.caption&&s.jsx(a.Text,{children:o.caption}),o.video&&s.jsx("div",{style:{position:"absolute",top:10,right:10,pointerEvents:"none"},children:I.IGVideo})]}),s.jsx(h,{type:"default",icon:s.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:w("/stories/"+o.bucket_id+"/"+o.id)})]})},l=async(o,n)=>({name:o.id+(o.video?".mp4":".jpg"),url:o.video||o.image});return s.jsx(v,{collectionName:t,fetchNext:c,renderItem:m,downloadItem:l,rowKey:o=>o.id,once:!0,header:o=>s.jsx(T,{showIcon:!0,type:"info",message:(e==null?void 0:e.name)+(o!=null&&o.length?i({en:" will not know you see this story",vi:" sẽ không biết bạn đã xem tin"}):i({en:" has no story today",vi:" không có tin nào hôm nay"}))})})}export{so as default}; +const __vite__fileDeps=["./RecentStoryViewer-DiqVKsiv.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./stories-B17I0-Ef.js","./MyApp-CmkiOnMb.js","./StoryViewers-suc5mL0p.js","./Collection-B9SxfYr4.js","./index-NjHtWr7u.js","./file-download-Dys_FsHc.js","./index-4qwk-lHW.js","./Dropdown-DxSI4NN9.js","./PurePanel-yY9muMEs.js","./index-tTPNrueW.js","./index-BbXfI1Nu.js","./index-Bumumc8Y.js","./EyeOutlined-Du2MtFRM.js","./SearchOutlined-DvnHgzkc.js","./index-B7udrguy.js","./Pagination-slfcHA-i.js","./useBreakpoint-CDLrV-mr.js","./responsiveObserver-Bb1LONna.js","./index-CKsES7YN.js","./row-C0Wk6t4-.js","./index-uPrgDTc-.js","./index-CbmP82sr.js","./index-Dg6R6lHP.js","./VideoWithMuted-CdYhYcjW.js","./index-Dm20K0UU.js","./addEventListener-w7NT04KM.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{aA as s,r as d,aF as u,aB as h}from"./index-BBriuzNA.js";import{u as y,b as x,y as f,T as b,a9 as j,i as w}from"./MyApp-CmkiOnMb.js";import{C as v}from"./Collection-B9SxfYr4.js";import{i as I}from"./icons-CG0UnJU2.js";import{g as k,a as _}from"./stories-B17I0-Ef.js";import{A as T}from"./index-BhyNApA-.js";import{L as N}from"./index-B7udrguy.js";import{I as S}from"./index-Dm20K0UU.js";import{T as a}from"./index-Bumumc8Y.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";const B=d.lazy(()=>u(()=>import("./RecentStoryViewer-DiqVKsiv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url));function so({target:e}){const{ti:i}=y(),t=(e==null?void 0:e.name)+" - Stories",c=async(o=[],n)=>{if(!(e!=null&&e.id))return;const{bucketId:r,firstStoryId:p}=await k(e==null?void 0:e.id);return!r||!p?[]:await _(r)},m=(o,n)=>{const r=o.seen?s.jsx("span",{children:"👀"}):s.jsx("i",{className:"fa fa-eye-slash",style:{color:"gray"}});return s.jsxs(N.Item,{className:"show-on-hover-trigger",children:[s.jsxs(x,{direction:"vertical",style:{position:"relative"},children:[s.jsx(S,{src:o.thumbnail,fallback:o.image,style:{width:200,height:330,borderRadius:10,objectFit:"cover"},preview:{destroyOnClose:!0,imageRender:()=>s.jsx(B,{story:{bucket_id:o.bucket_id,owner:e},bucketsData:f("Collection.data."+t)||[],index:n}),toolbarRender:()=>null}}),s.jsx(b,{placement:"bottom",title:s.jsxs(s.Fragment,{children:[r," ",e==null?void 0:e.name,o.seen?i({en:" KNOWS you saw",vi:" BIẾT bạn đã xem"}):i({en:" DOESN'T know you saw",vi:" KHÔNG biết bạn đã xem"})]}),children:s.jsxs(a.Text,{children:[r," ",j(o.creation_time*1e3)," ",i({vi:"trước",en:"ago"}),s.jsx("br",{}),o.react_count," reactions ",o.reaction]})}),o.caption&&s.jsx(a.Text,{children:o.caption}),o.video&&s.jsx("div",{style:{position:"absolute",top:10,right:10,pointerEvents:"none"},children:I.IGVideo})]}),s.jsx(h,{type:"default",icon:s.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:w("/stories/"+o.bucket_id+"/"+o.id)})]})},l=async(o,n)=>({name:o.id+(o.video?".mp4":".jpg"),url:o.video||o.image});return s.jsx(v,{collectionName:t,fetchNext:c,renderItem:m,downloadItem:l,rowKey:o=>o.id,once:!0,header:o=>s.jsx(T,{showIcon:!0,type:"info",message:(e==null?void 0:e.name)+(o!=null&&o.length?i({en:" will not know you see this story",vi:" sẽ không biết bạn đã xem tin"}):i({en:" has no story today",vi:" không có tin nào hôm nay"}))})})}export{so as default}; diff --git a/public/assets/StoryViewers-Bp82Fv1t.js b/public/assets/StoryViewers-suc5mL0p.js similarity index 70% rename from public/assets/StoryViewers-Bp82Fv1t.js rename to public/assets/StoryViewers-suc5mL0p.js index c1c96e6..93cda08 100644 --- a/public/assets/StoryViewers-Bp82Fv1t.js +++ b/public/assets/StoryViewers-suc5mL0p.js @@ -1 +1 @@ -import{r as u,aA as e}from"./index--trdnQFa.js";import{u as d,t as g,i as y,j as x,f as h}from"./MyApp-BHr373cy.js";import{C as j,D as S}from"./Collection-CPPE61tF.js";import{c as T}from"./stories-DtwI_s_2.js";import{T as o}from"./index-VHrAsB-Q.js";import{A as V}from"./index-DTxLlwd8.js";function F({storyId:i,initialViewers:n=[]}){const{ti:m}=d();u.useEffect(()=>{g("StoryViewers:onLoad")},[]);const c=async(t=[],r)=>{var a;const p=await T({storyId:i,cursor:r||((a=t[t.length-1])==null?void 0:a.cursor)||""}),f=new Set(t.map(s=>s.uid));return p.filter(s=>!f.has(s.uid))},l=(t,r)=>e.jsxs(o.Link,{href:y(t.uid),target:"_blank",style:{color:"#eee",display:"flex",alignItems:"center",padding:10},children:[(r||0)+1,".",e.jsx(V,{src:x(t.uid,50),style:{marginRight:10,marginLeft:10},size:40}),t.name," ",t.reactions,e.jsx(o.Text,{style:{position:"absolute",right:10},children:h(t.seen_time,m({en:"en-US",vi:"vi-VN"}))})]},t.uid);return e.jsx(j,{collectionName:"viewers of "+i,fetchNext:c,rowKey:t=>t.uid,renderItem:l,initialData:n,displayType:S.Vertical})}export{F as S}; +import{r as u,aA as e}from"./index-BBriuzNA.js";import{u as d,t as g,i as y,j as x,f as h}from"./MyApp-CmkiOnMb.js";import{C as j,D as S}from"./Collection-B9SxfYr4.js";import{c as T}from"./stories-B17I0-Ef.js";import{T as o}from"./index-Bumumc8Y.js";import{A as V}from"./index-CbmP82sr.js";function F({storyId:i,initialViewers:n=[]}){const{ti:m}=d();u.useEffect(()=>{g("StoryViewers:onLoad")},[]);const c=async(t=[],r)=>{var a;const p=await T({storyId:i,cursor:r||((a=t[t.length-1])==null?void 0:a.cursor)||""}),f=new Set(t.map(s=>s.uid));return p.filter(s=>!f.has(s.uid))},l=(t,r)=>e.jsxs(o.Link,{href:y(t.uid),target:"_blank",style:{color:"#eee",display:"flex",alignItems:"center",padding:10},children:[(r||0)+1,".",e.jsx(V,{src:x(t.uid,50),style:{marginRight:10,marginLeft:10},size:40}),t.name," ",t.reactions,e.jsx(o.Text,{style:{position:"absolute",right:10},children:h(t.seen_time,m({en:"en-US",vi:"vi-VN"}))})]},t.uid);return e.jsx(j,{collectionName:"viewers of "+i,fetchNext:c,rowKey:t=>t.uid,renderItem:l,initialData:n,displayType:S.Vertical})}export{F as S}; diff --git a/public/assets/Table-GiCOcILW.js b/public/assets/Table-By6CV266.js similarity index 99% rename from public/assets/Table-GiCOcILW.js rename to public/assets/Table-By6CV266.js index c6f370e..2b43dfe 100644 --- a/public/assets/Table-GiCOcILW.js +++ b/public/assets/Table-By6CV266.js @@ -1,4 +1,4 @@ -import{r as s,E as On,F as Pn,H as Rt,D as j,a1 as Tn,I as Ct,v as ea,aP as ta,a7 as Dn,aO as na,o as Y,aq as ra,bC as oa,aN as Ur,aK as Ft,e as nt,h as se,d as F,Y as vt,t as Gr,n as Je,Z as Yr,k as gt,j as fe,q as Kt,V as At,p as aa,s as ur,g as de,U as Zr,bD as Mn,X as k,x as fr,bd as la,w as pr,bE as vr,z as ia,bF as gr,_ as Jr,a as Qr,b as eo,bh as z,c as to,S as Bn,T as rt,C as sa,W as ft,K as da,$ as ct,bm as ca,Q as mr,a6 as ua,J as no,aB as hr,a2 as fa,a3 as pa,a4 as Ht,bn as va}from"./index--trdnQFa.js";import{m as ro,R as Ln,a1 as ga,ah as ma,ai as ha,T as yr,ac as ya,am as ba}from"./MyApp-BHr373cy.js";import{p as xa,q as Ca}from"./index-VHrAsB-Q.js";import{a as Zt,b as br}from"./addEventListener-KkFh1sjE.js";import{L as oo,R as Sa,E as xr,D as wa}from"./index-CETJ8txP.js";import{a as Ea,C as en,g as $a}from"./index-DmA8T0X5.js";import{D as ao}from"./index-BI67OZir.js";import{u as ka,a as Na}from"./useBreakpoint-QbbjxHKX.js";import{e as Ra,P as Ka}from"./Pagination-CPGTHysj.js";import{R as Ia}from"./SearchOutlined-D247roQH.js";import{I as Oa}from"./index-BCUBacY9.js";const lo=s.createContext(null),Pa=lo.Provider,io=s.createContext(null),Ta=io.Provider,Da=n=>{const{componentCls:t,antCls:r}=n,e=`${t}-group`;return{[e]:Object.assign(Object.assign({},Rt(n)),{display:"inline-block",fontSize:0,[`&${e}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},Ma=n=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:e,radioSize:o,motionDurationSlow:i,motionDurationMid:c,motionEaseInOutCirc:a,colorBgContainer:l,colorBorder:d,lineWidth:f,colorBgContainerDisabled:u,colorTextDisabled:p,paddingXS:v,dotColorDisabled:g,lineType:h,radioColor:m,radioBgColor:y,calc:x}=n,b=`${t}-inner`,C=x(o).sub(x(4).mul(2)),$=x(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Rt(n)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:n.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${j(f)} ${h} ${e}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Rt(n)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, +import{r as s,E as On,F as Pn,H as Rt,D as j,a1 as Tn,I as Ct,v as ea,aP as ta,a7 as Dn,aO as na,o as Y,aq as ra,bC as oa,aN as Ur,aK as Ft,e as nt,h as se,d as F,Y as vt,t as Gr,n as Je,Z as Yr,k as gt,j as fe,q as Kt,V as At,p as aa,s as ur,g as de,U as Zr,bD as Mn,X as k,x as fr,bd as la,w as pr,bE as vr,z as ia,bF as gr,_ as Jr,a as Qr,b as eo,bh as z,c as to,S as Bn,T as rt,C as sa,W as ft,K as da,$ as ct,bm as ca,Q as mr,a6 as ua,J as no,aB as hr,a2 as fa,a3 as pa,a4 as Ht,bn as va}from"./index-BBriuzNA.js";import{m as ro,R as Ln,a1 as ga,ah as ma,ai as ha,T as yr,ac as ya,am as ba}from"./MyApp-CmkiOnMb.js";import{p as xa,q as Ca}from"./index-Bumumc8Y.js";import{a as Zt,b as br}from"./addEventListener-w7NT04KM.js";import{L as oo,R as Sa,E as xr,D as wa}from"./index-CKsES7YN.js";import{a as Ea,C as en,g as $a}from"./index-tTPNrueW.js";import{D as ao}from"./index-4qwk-lHW.js";import{u as ka,a as Na}from"./useBreakpoint-CDLrV-mr.js";import{e as Ra,P as Ka}from"./Pagination-slfcHA-i.js";import{R as Ia}from"./SearchOutlined-DvnHgzkc.js";import{I as Oa}from"./index-BbXfI1Nu.js";const lo=s.createContext(null),Pa=lo.Provider,io=s.createContext(null),Ta=io.Provider,Da=n=>{const{componentCls:t,antCls:r}=n,e=`${t}-group`;return{[e]:Object.assign(Object.assign({},Rt(n)),{display:"inline-block",fontSize:0,[`&${e}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},Ma=n=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:e,radioSize:o,motionDurationSlow:i,motionDurationMid:c,motionEaseInOutCirc:a,colorBgContainer:l,colorBorder:d,lineWidth:f,colorBgContainerDisabled:u,colorTextDisabled:p,paddingXS:v,dotColorDisabled:g,lineType:h,radioColor:m,radioBgColor:y,calc:x}=n,b=`${t}-inner`,C=x(o).sub(x(4).mul(2)),$=x(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Rt(n)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:n.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${j(f)} ${h} ${e}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Rt(n)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, &:hover ${b}`]:{borderColor:e},[`${t}-input:focus-visible + ${b}`]:Object.assign({},Tn(n)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:$,height:$,marginBlockStart:x(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:x(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:$,transform:"scale(0)",opacity:0,transition:`all ${i} ${a}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$,height:$,backgroundColor:l,borderColor:d,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:e,backgroundColor:y,"&::after":{transform:`scale(${n.calc(n.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${a}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:u,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${x(C).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},Ba=n=>{const{buttonColor:t,controlHeight:r,componentCls:e,lineWidth:o,lineType:i,colorBorder:c,motionDurationSlow:a,motionDurationMid:l,buttonPaddingInline:d,fontSize:f,buttonBg:u,fontSizeLG:p,controlHeightLG:v,controlHeightSM:g,paddingXS:h,borderRadius:m,borderRadiusSM:y,borderRadiusLG:x,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:C,colorBgContainerDisabled:$,buttonCheckedBgDisabled:N,buttonCheckedColorDisabled:I,colorPrimary:E,colorPrimaryHover:R,colorPrimaryActive:P,buttonSolidCheckedBg:K,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:w,calc:M}=n;return{[`${e}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:f,lineHeight:j(M(r).sub(M(o).mul(2)).equal()),background:u,border:`${j(o)} ${i} ${c}`,borderBlockStartWidth:M(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${e}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:M(o).mul(-1).equal(),insetInlineStart:M(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:c,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${j(o)} ${i} ${c}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${e}-group-large &`]:{height:v,fontSize:p,lineHeight:j(M(v).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${e}-group-small &`]:{height:g,paddingInline:M(h).sub(o).equal(),paddingBlock:0,lineHeight:j(M(g).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Tn(n)),[`${e}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${e}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:b,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${e}-group-solid &-checked:not(${e}-button-wrapper-disabled)`]:{color:S,background:K,borderColor:K,"&:hover":{color:S,background:T,borderColor:T},"&:active":{color:S,background:w,borderColor:w}},"&-disabled":{color:C,backgroundColor:$,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:$,borderColor:c}},[`&-disabled${e}-button-wrapper-checked`]:{color:I,backgroundColor:N,borderColor:c,boxShadow:"none"}}}},La=n=>{const{wireframe:t,padding:r,marginXS:e,lineWidth:o,fontSizeLG:i,colorText:c,colorBgContainer:a,colorTextDisabled:l,controlItemBgActiveDisabled:d,colorTextLightSolid:f,colorPrimary:u,colorPrimaryHover:p,colorPrimaryActive:v,colorWhite:g}=n,h=4,m=i,y=t?m-h*2:m-(h+o)*2;return{radioSize:m,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:f,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:v,buttonBg:a,buttonCheckedBg:a,buttonColor:c,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:l,buttonPaddingInline:r-o,wrapperMarginInlineEnd:e,radioColor:t?u:g,radioBgColor:t?a:u}},so=On("Radio",n=>{const{controlOutline:t,controlOutlineWidth:r}=n,e=`0 0 0 ${j(r)} ${t}`,i=Pn(n,{radioFocusShadow:e,radioButtonFocusShadow:e});return[Da(i),Ma(i),Ba(i)]},La,{unitless:{radioSize:!0,dotSize:!0}});var Ha=function(n,t){var r={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(r[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(n);o{var r,e;const o=s.useContext(lo),i=s.useContext(io),{getPrefixCls:c,direction:a,radio:l}=s.useContext(Ct),d=s.useRef(null),f=ea(t,d),{isFormItemInput:u}=s.useContext(ta),p=w=>{var M,D;(M=n.onChange)===null||M===void 0||M.call(n,w),(D=o==null?void 0:o.onChange)===null||D===void 0||D.call(o,w)},{prefixCls:v,className:g,rootClassName:h,children:m,style:y,title:x}=n,b=Ha(n,["prefixCls","className","rootClassName","children","style","title"]),S=c("radio",v),C=((o==null?void 0:o.optionType)||i)==="button",$=C?`${S}-button`:S,N=Dn(S),[I,E,R]=so(S,N),P=Object.assign({},b),K=s.useContext(na);o&&(P.name=o.name,P.onChange=p,P.checked=n.value===o.value,P.disabled=(r=P.disabled)!==null&&r!==void 0?r:o.disabled),P.disabled=(e=P.disabled)!==null&&e!==void 0?e:K;const T=Y(`${$}-wrapper`,{[`${$}-wrapper-checked`]:P.checked,[`${$}-wrapper-disabled`]:P.disabled,[`${$}-wrapper-rtl`]:a==="rtl",[`${$}-wrapper-in-form-item`]:u},l==null?void 0:l.className,g,h,E,R,N);return I(s.createElement(ra,{component:"Radio",disabled:P.disabled},s.createElement("label",{className:T,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,title:x},s.createElement(Ea,Object.assign({},P,{className:Y(P.className,!C&&oa),type:"radio",prefixCls:$,ref:f})),m!==void 0?s.createElement("span",null,m):null)))},tn=s.forwardRef(_a),za=s.forwardRef((n,t)=>{const{getPrefixCls:r,direction:e}=s.useContext(Ct),[o,i]=ro(n.defaultValue,{value:n.value}),c=w=>{const M=o,D=w.target.value;"value"in n||i(D);const{onChange:O}=n;O&&D!==M&&O(w)},{prefixCls:a,className:l,rootClassName:d,options:f,buttonStyle:u="outline",disabled:p,children:v,size:g,style:h,id:m,onMouseEnter:y,onMouseLeave:x,onFocus:b,onBlur:S}=n,C=r("radio",a),$=`${C}-group`,N=Dn(C),[I,E,R]=so(C,N);let P=v;f&&f.length>0&&(P=f.map(w=>typeof w=="string"||typeof w=="number"?s.createElement(tn,{key:w.toString(),prefixCls:C,disabled:p,value:w,checked:o===w},w):s.createElement(tn,{key:`radio-group-value-options-${w.value}`,prefixCls:C,disabled:w.disabled||p,value:w.value,checked:o===w.value,title:w.title,style:w.style,id:w.id,required:w.required},w.label)));const K=Ur(g),T=Y($,`${$}-${u}`,{[`${$}-${K}`]:K,[`${$}-rtl`]:e==="rtl"},l,d,E,R,N);return I(s.createElement("div",Object.assign({},Ft(n,{aria:!0,data:!0}),{className:T,style:h,onMouseEnter:y,onMouseLeave:x,onFocus:b,onBlur:S,id:m,ref:t}),s.createElement(Pa,{value:{onChange:c,value:o,disabled:n.disabled,name:n.name,optionType:n.optionType}},P)))}),Fa=s.memo(za);var Aa=function(n,t){var r={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(r[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(n);o{const{getPrefixCls:r}=s.useContext(Ct),{prefixCls:e}=n,o=Aa(n,["prefixCls"]),i=r("radio",e);return s.createElement(Ta,{value:"button"},s.createElement(tn,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},Wa=s.forwardRef(ja),jt=tn;jt.Button=Wa;jt.Group=Fa;jt.__ANT_RADIO=!0;function Xe(n,t){return n[t]}var Va=["children"];function co(n,t){return"".concat(n,"-").concat(t)}function qa(n){return n&&n.type&&n.type.isTreeNode}function Wt(n,t){return n??t}function It(n){var t=n||{},r=t.title,e=t._title,o=t.key,i=t.children,c=r||"title";return{title:c,_title:e||[c],key:o||"key",children:i||"children"}}function uo(n){function t(r){var e=Gr(r);return e.map(function(o){if(!qa(o))return vt(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,c=o.props,a=c.children,l=Je(c,Va),d=F({key:i},l),f=t(a);return f.length&&(d.children=f),d}).filter(function(o){return o})}return t(n)}function vn(n,t,r){var e=It(r),o=e._title,i=e.key,c=e.children,a=new Set(t===!0?[]:t),l=[];function d(f){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map(function(p,v){for(var g=co(u?u.pos:"0",v),h=Wt(p[i],g),m,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,e=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,c=t.childrenPropName,a=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,d=i||l,f={},u={},p={posEntities:f,keyEntities:u};return r&&(p=r(p)||p),Xa(n,function(v){var g=v.node,h=v.index,m=v.pos,y=v.key,x=v.parentPos,b=v.level,S=v.nodes,C={node:g,nodes:S,index:h,key:y,pos:m,level:b},$=Wt(y,m);f[m]=C,u[$]=C,C.parent=f[x],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),e&&e(C,p)},{externalGetKey:d,childrenPropName:c,fieldNames:a}),o&&o(p),p}function _t(n,t){var r=t.expandedKeys,e=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,c=t.checkedKeys,a=t.halfCheckedKeys,l=t.dragOverNodeKey,d=t.dropPosition,f=t.keyEntities,u=Xe(f,n),p={eventKey:n,expanded:r.indexOf(n)!==-1,selected:e.indexOf(n)!==-1,loaded:o.indexOf(n)!==-1,loading:i.indexOf(n)!==-1,checked:c.indexOf(n)!==-1,halfChecked:a.indexOf(n)!==-1,pos:String(u?u.pos:""),dragOver:l===n&&d===0,dragOverGapTop:l===n&&d===-1,dragOverGapBottom:l===n&&d===1};return p}function Pe(n){var t=n.data,r=n.expanded,e=n.selected,o=n.checked,i=n.loaded,c=n.loading,a=n.halfChecked,l=n.dragOver,d=n.dragOverGapTop,f=n.dragOverGapBottom,u=n.pos,p=n.active,v=n.eventKey,g=F(F({},t),{},{expanded:r,selected:e,checked:o,loaded:i,loading:c,halfChecked:a,dragOver:l,dragOverGapTop:d,dragOverGapBottom:f,pos:u,active:p,key:v});return"props"in g||Object.defineProperty(g,"props",{get:function(){return vt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),g}function fo(n,t){var r=new Set;return n.forEach(function(e){t.has(e)||r.add(e)}),r}function Ua(n){var t=n||{},r=t.disabled,e=t.disableCheckbox,o=t.checkable;return!!(r||e)||o===!1}function Ga(n,t,r,e){for(var o=new Set(n),i=new Set,c=0;c<=r;c+=1){var a=t.get(c)||new Set;a.forEach(function(u){var p=u.key,v=u.node,g=u.children,h=g===void 0?[]:g;o.has(p)&&!e(v)&&h.filter(function(m){return!e(m.node)}).forEach(function(m){o.add(m.key)})})}for(var l=new Set,d=r;d>=0;d-=1){var f=t.get(d)||new Set;f.forEach(function(u){var p=u.parent,v=u.node;if(!(e(v)||!u.parent||l.has(u.parent.key))){if(e(u.parent.node)){l.add(p.key);return}var g=!0,h=!1;(p.children||[]).filter(function(m){return!e(m.node)}).forEach(function(m){var y=m.key,x=o.has(y);g&&!x&&(g=!1),!h&&(x||i.has(y))&&(h=!0)}),g&&o.add(p.key),h&&i.add(p.key),l.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(fo(i,o))}}function Ya(n,t,r,e,o){for(var i=new Set(n),c=new Set(t),a=0;a<=e;a+=1){var l=r.get(a)||new Set;l.forEach(function(p){var v=p.key,g=p.node,h=p.children,m=h===void 0?[]:h;!i.has(v)&&!c.has(v)&&!o(g)&&m.filter(function(y){return!o(y.node)}).forEach(function(y){i.delete(y.key)})})}c=new Set;for(var d=new Set,f=e;f>=0;f-=1){var u=r.get(f)||new Set;u.forEach(function(p){var v=p.parent,g=p.node;if(!(o(g)||!p.parent||d.has(p.parent.key))){if(o(p.parent.node)){d.add(v.key);return}var h=!0,m=!1;(v.children||[]).filter(function(y){return!o(y.node)}).forEach(function(y){var x=y.key,b=i.has(x);h&&!b&&(h=!1),!m&&(b||c.has(x))&&(m=!0)}),h||i.delete(v.key),m&&c.add(v.key),d.add(v.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(fo(c,i))}}function kt(n,t,r,e){var o=[],i;e?i=e:i=Ua;var c=new Set(n.filter(function(f){var u=!!Xe(r,f);return u||o.push(f),u})),a=new Map,l=0;Object.keys(r).forEach(function(f){var u=r[f],p=u.level,v=a.get(p);v||(v=new Set,a.set(p,v)),v.add(u),l=Math.max(l,p)}),vt(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(f){return"'".concat(f,"'")}).join(", ")));var d;return t===!0?d=Ga(c,a,l,i):d=Ya(c,t.halfCheckedKeys,a,l,i),d}var pt={},Vt="rc-table-internal-hook";function _n(n){var t=s.createContext(void 0),r=function(o){var i=o.value,c=o.children,a=s.useRef(i);a.current=i;var l=s.useState(function(){return{getValue:function(){return a.current},listeners:new Set}}),d=fe(l,1),f=d[0];return Kt(function(){aa.unstable_batchedUpdates(function(){f.listeners.forEach(function(u){u(i)})})},[i]),s.createElement(t.Provider,{value:f},c)};return{Context:t,Provider:r,defaultValue:n}}function ze(n,t){var r=gt(typeof t=="function"?t:function(u){if(t===void 0)return u;if(!Array.isArray(t))return u[t];var p={};return t.forEach(function(v){p[v]=u[v]}),p}),e=s.useContext(n==null?void 0:n.Context),o=e||{},i=o.listeners,c=o.getValue,a=s.useRef();a.current=r(e?c():n==null?void 0:n.defaultValue);var l=s.useState({}),d=fe(l,2),f=d[1];return Kt(function(){if(!e)return;function u(p){var v=r(p);At(a.current,v,!0)||f({})}return i.add(u),function(){i.delete(u)}},[e]),a.current}function Za(){var n=s.createContext(null);function t(){return s.useContext(n)}function r(o,i){var c=ur(o),a=function(d,f){var u=c?{ref:f}:{},p=s.useRef(0),v=s.useRef(d),g=t();return g!==null?s.createElement(o,de({},d,u)):((!i||i(v.current,d))&&(p.current+=1),v.current=d,s.createElement(n.Provider,{value:p.current},s.createElement(o,de({},d,u))))};return c?s.forwardRef(a):a}function e(o,i){var c=ur(o),a=function(d,f){var u=c?{ref:f}:{};return t(),s.createElement(o,de({},d,u))};return c?s.memo(s.forwardRef(a),i):s.memo(a,i)}return{makeImmutable:r,responseImmutable:e,useImmutableMark:t}}var zn=Za(),po=zn.makeImmutable,Pt=zn.responseImmutable,Ja=zn.useImmutableMark,Ue=_n(),vo=s.createContext({renderWithProps:!1}),Qa="RC_TABLE_KEY";function el(n){return n==null?[]:Array.isArray(n)?n:[n]}function rn(n){var t=[],r={};return n.forEach(function(e){for(var o=e||{},i=o.key,c=o.dataIndex,a=i||el(c).join("-")||Qa;r[a];)a="".concat(a,"_next");r[a]=!0,t.push(a)}),t}function xn(n){return n!=null}function tl(n){return n&&nt(n)==="object"&&!Array.isArray(n)&&!s.isValidElement(n)}function nl(n,t,r,e,o,i){var c=s.useContext(vo),a=Ja(),l=Zr(function(){if(xn(e))return[e];var d=t==null||t===""?[]:Array.isArray(t)?t:[t],f=Mn(n,d),u=f,p=void 0;if(o){var v=o(f,n,r);tl(v)?(u=v.children,p=v.props,c.renderWithProps=!0):u=v}return[u,p]},[a,n,e,t,o,r],function(d,f){if(i){var u=fe(d,2),p=u[1],v=fe(f,2),g=v[1];return i(g,p)}return c.renderWithProps?!0:!At(d,f,!0)});return l}function rl(n,t,r,e){var o=n+t-1;return n<=e&&o>=r}function ol(n,t){return ze(Ue,function(r){var e=rl(n,t||1,r.hoverStartRow,r.hoverEndRow);return[e,r.onHover]})}var al=function(t){var r=t.ellipsis,e=t.rowType,o=t.children,i,c=r===!0?{showTitle:!0}:r;return c&&(c.showTitle||e==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():s.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function ll(n){var t,r,e,o,i,c,a,l,d=n.component,f=n.children,u=n.ellipsis,p=n.scope,v=n.prefixCls,g=n.className,h=n.align,m=n.record,y=n.render,x=n.dataIndex,b=n.renderIndex,S=n.shouldCellUpdate,C=n.index,$=n.rowType,N=n.colSpan,I=n.rowSpan,E=n.fixLeft,R=n.fixRight,P=n.firstFixLeft,K=n.lastFixLeft,T=n.firstFixRight,w=n.lastFixRight,M=n.appendNode,D=n.additionalProps,O=D===void 0?{}:D,B=n.isSticky,L="".concat(v,"-cell"),_=ze(Ue,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=_.supportSticky,re=_.allColumnsFixedLeft,J=_.rowHoverable,Ee=nl(m,x,b,f,y,S),pe=fe(Ee,2),$e=pe[0],ee=pe[1],ue={},te=typeof E=="number"&&V,ie=typeof R=="number"&&V;te&&(ue.position="sticky",ue.left=E),ie&&(ue.position="sticky",ue.right=R);var Q=(t=(r=(e=ee==null?void 0:ee.colSpan)!==null&&e!==void 0?e:O.colSpan)!==null&&r!==void 0?r:N)!==null&&t!==void 0?t:1,U=(o=(i=(c=ee==null?void 0:ee.rowSpan)!==null&&c!==void 0?c:O.rowSpan)!==null&&i!==void 0?i:I)!==null&&o!==void 0?o:1,W=ol(C,U),A=fe(W,2),q=A[0],ae=A[1],H=gt(function(ye){var ke;m&&ae(C,C+U-1),O==null||(ke=O.onMouseEnter)===null||ke===void 0||ke.call(O,ye)}),Z=gt(function(ye){var ke;m&&ae(-1,-1),O==null||(ke=O.onMouseLeave)===null||ke===void 0||ke.call(O,ye)});if(Q===0||U===0)return null;var ve=(a=O.title)!==null&&a!==void 0?a:al({rowType:$,ellipsis:u,children:$e}),ne=Y(L,g,(l={},k(l,"".concat(L,"-fix-left"),te&&V),k(l,"".concat(L,"-fix-left-first"),P&&V),k(l,"".concat(L,"-fix-left-last"),K&&V),k(l,"".concat(L,"-fix-left-all"),K&&re&&V),k(l,"".concat(L,"-fix-right"),ie&&V),k(l,"".concat(L,"-fix-right-first"),T&&V),k(l,"".concat(L,"-fix-right-last"),w&&V),k(l,"".concat(L,"-ellipsis"),u),k(l,"".concat(L,"-with-append"),M),k(l,"".concat(L,"-fix-sticky"),(te||ie)&&B&&V),k(l,"".concat(L,"-row-hover"),!ee&&q),l),O.className,ee==null?void 0:ee.className),ge={};h&&(ge.textAlign=h);var Se=F(F(F(F({},ue),O.style),ge),ee==null?void 0:ee.style),X=$e;return nt(X)==="object"&&!Array.isArray(X)&&!s.isValidElement(X)&&(X=null),u&&(K||T)&&(X=s.createElement("span",{className:"".concat(L,"-content")},X)),s.createElement(d,de({},ee,O,{className:ne,style:Se,title:ve,scope:p,onMouseEnter:J?H:void 0,onMouseLeave:J?Z:void 0,colSpan:Q!==1?Q:null,rowSpan:U!==1?U:null}),M,X)}const St=s.memo(ll);function Fn(n,t,r,e,o){var i=r[n]||{},c=r[t]||{},a,l;i.fixed==="left"?a=e.left[o==="rtl"?t:n]:c.fixed==="right"&&(l=e.right[o==="rtl"?n:t]);var d=!1,f=!1,u=!1,p=!1,v=r[t+1],g=r[n-1],h=v&&!v.fixed||g&&!g.fixed||r.every(function(S){return S.fixed==="left"});if(o==="rtl"){if(a!==void 0){var m=g&&g.fixed==="left";p=!m&&h}else if(l!==void 0){var y=v&&v.fixed==="right";u=!y&&h}}else if(a!==void 0){var x=v&&v.fixed==="left";d=!x&&h}else if(l!==void 0){var b=g&&g.fixed==="right";f=!b&&h}return{fixLeft:a,fixRight:l,lastFixLeft:d,firstFixRight:f,lastFixRight:u,firstFixLeft:p,isSticky:e.isSticky}}var go=s.createContext({});function il(n){var t=n.className,r=n.index,e=n.children,o=n.colSpan,i=o===void 0?1:o,c=n.rowSpan,a=n.align,l=ze(Ue,["prefixCls","direction"]),d=l.prefixCls,f=l.direction,u=s.useContext(go),p=u.scrollColumnIndex,v=u.stickyOffsets,g=u.flattenColumns,h=r+i-1,m=h+1===p?i+1:i,y=Fn(r,r+m-1,g,v,f);return s.createElement(St,de({className:t,index:r,component:"td",prefixCls:d,record:null,dataIndex:null,align:a,colSpan:m,rowSpan:c,render:function(){return e}},y))}var sl=["children"];function dl(n){var t=n.children,r=Je(n,sl);return s.createElement("tr",r,t)}function on(n){var t=n.children;return t}on.Row=dl;on.Cell=il;function cl(n){var t=n.children,r=n.stickyOffsets,e=n.flattenColumns,o=ze(Ue,"prefixCls"),i=e.length-1,c=e[i],a=s.useMemo(function(){return{stickyOffsets:r,flattenColumns:e,scrollColumnIndex:c!=null&&c.scrollbar?i:null}},[c,e,i,r]);return s.createElement(go.Provider,{value:a},s.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const Jt=Pt(cl);var mo=on;function ul(n){return null}function fl(n){return null}function ho(n,t,r,e,o,i,c){n.push({record:t,indent:r,index:c});var a=i(t),l=o==null?void 0:o.has(a);if(t&&Array.isArray(t[e])&&l)for(var d=0;d1?P-1:0),T=1;T=1?C:""),style:F(F({},r),y==null?void 0:y.style)}),g.map(function(E,R){var P=E.render,K=E.dataIndex,T=E.className,w=Co(p,E,R,l,o),M=w.key,D=w.fixedInfo,O=w.appendCellNode,B=w.additionalCellProps;return s.createElement(St,de({className:T,ellipsis:E.ellipsis,align:E.align,scope:E.rowScope,component:E.rowScope?u:f,prefixCls:v,key:M,record:e,index:o,renderIndex:i,dataIndex:K,render:P,shouldCellUpdate:E.shouldCellUpdate},D,{appendNode:O,additionalProps:B}))})),N;if(b&&(S.current||x)){var I=m(e,o,l+1,x);N=s.createElement(xo,{expanded:x,className:Y("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(l+1),C),prefixCls:v,component:d,cellComponent:f,colSpan:g.length,isEmpty:!1},I)}return s.createElement(s.Fragment,null,$,N)}const vl=Pt(pl);function gl(n){var t=n.columnKey,r=n.onColumnResize,e=s.useRef();return s.useEffect(function(){e.current&&r(t,e.current.offsetWidth)},[]),s.createElement(Ln,{data:t},s.createElement("td",{ref:e,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function ml(n){var t=n.prefixCls,r=n.columnsKey,e=n.onColumnResize;return s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},s.createElement(Ln.Collection,{onBatchResize:function(i){i.forEach(function(c){var a=c.data,l=c.size;e(a,l.offsetWidth)})}},r.map(function(o){return s.createElement(gl,{key:o,columnKey:o,onColumnResize:e})})))}function hl(n){var t=n.data,r=n.measureColumnWidth,e=ze(Ue,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=e.prefixCls,i=e.getComponent,c=e.onColumnResize,a=e.flattenColumns,l=e.getRowKey,d=e.expandedKeys,f=e.childrenColumnName,u=e.emptyNode,p=yo(t,f,d,l),v=s.useRef({renderWithProps:!1}),g=i(["body","wrapper"],"tbody"),h=i(["body","row"],"tr"),m=i(["body","cell"],"td"),y=i(["body","cell"],"th"),x;t.length?x=p.map(function(S,C){var $=S.record,N=S.indent,I=S.index,E=l($,C);return s.createElement(vl,{key:E,rowKey:E,record:$,index:C,renderIndex:I,rowComponent:h,cellComponent:m,scopeCellComponent:y,getRowKey:l,indent:N})}):x=s.createElement(xo,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:h,cellComponent:m,colSpan:a.length,isEmpty:!0},u);var b=rn(a);return s.createElement(vo.Provider,{value:v.current},s.createElement(g,{className:"".concat(o,"-tbody")},r&&s.createElement(ml,{prefixCls:o,columnsKey:b,onColumnResize:c}),x))}const yl=Pt(hl);var bl=["expandable"],zt="RC_TABLE_INTERNAL_COL_DEFINE";function xl(n){var t=n.expandable,r=Je(n,bl),e;return"expandable"in n?e=F(F({},r),t):e=r,e.showExpandColumn===!1&&(e.expandIconColumnIndex=-1),e}var Cl=["columnType"];function So(n){for(var t=n.colWidths,r=n.columns,e=n.columCount,o=[],i=e||r.length,c=!1,a=i-1;a>=0;a-=1){var l=t[a],d=r&&r[a],f=d&&d[zt];if(l||f||c){var u=f||{};u.columnType;var p=Je(u,Cl);o.unshift(s.createElement("col",de({key:a,style:{width:l}},p))),c=!0}}return s.createElement("colgroup",null,o)}var Sl=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function wl(n,t){return s.useMemo(function(){for(var r=[],e=0;e1?"colgroup":"col":null,ellipsis:m.ellipsis,align:m.align,component:c,prefixCls:f,key:v[h]},y,{additionalProps:x,rowType:"header"}))}))};function kl(n){var t=[];function r(c,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var d=a,f=c.filter(Boolean).map(function(u){var p={key:u.key,className:u.className||"",children:u.title,column:u,colStart:d},v=1,g=u.children;return g&&g.length>0&&(v=r(g,d,l+1).reduce(function(h,m){return h+m},0),p.hasSubColumns=!0),"colSpan"in u&&(v=u.colSpan),"rowSpan"in u&&(p.rowSpan=u.rowSpan),p.colSpan=v,p.colEnd=p.colStart+v-1,t[l].push(p),d+=v,v});return f}r(n,0);for(var e=t.length,o=function(a){t[a].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=e-a)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?n*parseFloat(t)/100:null}function Rl(n,t,r){return s.useMemo(function(){if(t&&t>0){var e=0,o=0;n.forEach(function(p){var v=wr(t,p.width);v?e+=v:o+=1});var i=Math.max(t,r),c=Math.max(i-e,o),a=o,l=c/o,d=0,f=n.map(function(p){var v=F({},p),g=wr(t,v.width);if(g)v.width=g;else{var h=Math.floor(l);v.width=a===1?c:h,c-=h,a-=1}return d+=v.width,v});if(d0?F(F({},t),{},{children:wo(r)}):t})}function Cn(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return n.filter(function(r){return r&&nt(r)==="object"}).reduce(function(r,e,o){var i=e.fixed,c=i===!0?"left":i,a="".concat(t,"-").concat(o),l=e.children;return l&&l.length>0?[].concat(se(r),se(Cn(l,a).map(function(d){return F({fixed:c},d)}))):[].concat(se(r),[F(F({key:a},e),{},{fixed:c})])},[])}function Ol(n){return n.map(function(t){var r=t.fixed,e=Je(t,Il),o=r;return r==="left"?o="right":r==="right"&&(o="left"),F({fixed:o},e)})}function Pl(n,t){var r=n.prefixCls,e=n.columns,o=n.children,i=n.expandable,c=n.expandedKeys,a=n.columnTitle,l=n.getRowKey,d=n.onTriggerExpand,f=n.expandIcon,u=n.rowExpandable,p=n.expandIconColumnIndex,v=n.direction,g=n.expandRowByClick,h=n.columnWidth,m=n.fixed,y=n.scrollWidth,x=n.clientWidth,b=s.useMemo(function(){var K=e||An(o)||[];return wo(K.slice())},[e,o]),S=s.useMemo(function(){if(i){var K,T=b.slice();if(!T.includes(pt)){var w=p||0;w>=0&&T.splice(w,0,pt)}var M=T.indexOf(pt);T=T.filter(function(L,_){return L!==pt||_===M});var D=b[M],O;(m==="left"||m)&&!p?O="left":(m==="right"||m)&&p===b.length?O="right":O=D?D.fixed:null;var B=(K={},k(K,zt,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),k(K,"title",a),k(K,"fixed",O),k(K,"className","".concat(r,"-row-expand-icon-cell")),k(K,"width",h),k(K,"render",function(_,V,re){var J=l(V,re),Ee=c.has(J),pe=u?u(V):!0,$e=f({prefixCls:r,expanded:Ee,expandable:pe,record:V,onExpand:d});return g?s.createElement("span",{onClick:function(ue){return ue.stopPropagation()}},$e):$e}),K);return T.map(function(L){return L===pt?B:L})}return b.filter(function(L){return L!==pt})},[i,b,l,c,f,v]),C=s.useMemo(function(){var K=S;return t&&(K=t(K)),K.length||(K=[{render:function(){return null}}]),K},[t,S,v]),$=s.useMemo(function(){return v==="rtl"?Ol(Cn(C)):Cn(C)},[C,v,y]),N=s.useMemo(function(){for(var K=-1,T=$.length-1;T>=0;T-=1){var w=$[T].fixed;if(w==="left"||w===!0){K=T;break}}if(K>=0)for(var M=0;M<=K;M+=1){var D=$[M].fixed;if(D!=="left"&&D!==!0)return!0}var O=$.findIndex(function(_){var V=_.fixed;return V==="right"});if(O>=0)for(var B=O;B<$.length;B+=1){var L=$[B].fixed;if(L!=="right")return!0}return!1},[$]),I=Rl($,y,x),E=fe(I,2),R=E[0],P=E[1];return[C,R,P,N]}function Tl(n){var t,r=n.prefixCls,e=n.record,o=n.onExpand,i=n.expanded,c=n.expandable,a="".concat(r,"-row-expand-icon");if(!c)return s.createElement("span",{className:Y(a,"".concat(r,"-row-spaced"))});var l=function(f){o(e,f),f.stopPropagation()};return s.createElement("span",{className:Y(a,(t={},k(t,"".concat(r,"-row-expanded"),i),k(t,"".concat(r,"-row-collapsed"),!i),t)),onClick:l})}function Dl(n,t,r){var e=[];function o(i){(i||[]).forEach(function(c,a){e.push(t(c,a)),o(c[r])})}return o(n),e}function Ml(n,t,r){var e=xl(n),o=e.expandIcon,i=e.expandedRowKeys,c=e.defaultExpandedRowKeys,a=e.defaultExpandAllRows,l=e.expandedRowRender,d=e.onExpand,f=e.onExpandedRowsChange,u=e.childrenColumnName,p=o||Tl,v=u||"children",g=s.useMemo(function(){return l?"row":n.expandable&&n.internalHooks===Vt&&n.expandable.__PARENT_RENDER_ICON__||t.some(function(C){return C&&nt(C)==="object"&&C[v]})?"nest":!1},[!!l,t]),h=s.useState(function(){return c||(a?Dl(t,r,v):[])}),m=fe(h,2),y=m[0],x=m[1],b=s.useMemo(function(){return new Set(i||y||[])},[i,y]),S=s.useCallback(function(C){var $=r(C,t.indexOf(C)),N,I=b.has($);I?(b.delete($),N=se(b)):N=[].concat(se(b),[$]),x(N),d&&d(!I,C),f&&f(N)},[r,b,t,d,f]);return[e,g,b,p,v,S]}function Bl(n,t,r){var e=n.map(function(o,i){return Fn(i,i,n,t,r)});return Zr(function(){return e},[e],function(o,i){return!At(o,i)})}function Eo(n){var t=s.useRef(n),r=s.useState({}),e=fe(r,2),o=e[1],i=s.useRef(null),c=s.useRef([]);function a(l){c.current.push(l);var d=Promise.resolve();i.current=d,d.then(function(){if(i.current===d){var f=c.current,u=t.current;c.current=[],f.forEach(function(p){t.current=p(t.current)}),i.current=null,u!==t.current&&o({})}})}return s.useEffect(function(){return function(){i.current=null}},[]),[t.current,a]}function Ll(n){var t=s.useRef(null),r=s.useRef();function e(){window.clearTimeout(r.current)}function o(c){t.current=c,e(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function i(){return t.current}return s.useEffect(function(){return e},[]),[o,i]}function Hl(){var n=s.useState(-1),t=fe(n,2),r=t[0],e=t[1],o=s.useState(-1),i=fe(o,2),c=i[0],a=i[1],l=s.useCallback(function(d,f){e(d),a(f)},[]);return[r,c,l]}var Er=la()?window:null;function _l(n,t){var r=nt(n)==="object"?n:{},e=r.offsetHeader,o=e===void 0?0:e,i=r.offsetSummary,c=i===void 0?0:i,a=r.offsetScroll,l=a===void 0?0:a,d=r.getContainer,f=d===void 0?function(){return Er}:d,u=f()||Er;return s.useMemo(function(){var p=!!n;return{isSticky:p,stickyClassName:p?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:c,offsetScroll:l,container:u}},[l,o,c,t,u])}function zl(n,t,r){var e=s.useMemo(function(){var o=t.length,i=function(d,f,u){for(var p=[],v=0,g=d;g!==f;g+=u)p.push(v),t[g].fixed&&(v+=n[g]||0);return p},c=i(0,o,1),a=i(o-1,-1,-1).reverse();return r==="rtl"?{left:a,right:c}:{left:c,right:a}},[n,t,r]);return e}function $r(n){var t=n.className,r=n.children;return s.createElement("div",{className:t},r)}var Fl=function(t,r){var e,o,i=t.scrollBodyRef,c=t.onScroll,a=t.offsetScroll,l=t.container,d=ze(Ue,"prefixCls"),f=((e=i.current)===null||e===void 0?void 0:e.scrollWidth)||0,u=((o=i.current)===null||o===void 0?void 0:o.clientWidth)||0,p=f&&u*(u/f),v=s.useRef(),g=Eo({scrollLeft:0,isHiddenScrollBar:!1}),h=fe(g,2),m=h[0],y=h[1],x=s.useRef({delta:0,x:0}),b=s.useState(!1),S=fe(b,2),C=S[0],$=S[1],N=s.useRef(null);s.useEffect(function(){return function(){pr.cancel(N.current)}},[]);var I=function(){$(!1)},E=function(w){w.persist(),x.current.delta=w.pageX-m.scrollLeft,x.current.x=0,$(!0),w.preventDefault()},R=function(w){var M,D=w||((M=window)===null||M===void 0?void 0:M.event),O=D.buttons;if(!C||O===0){C&&$(!1);return}var B=x.current.x+w.pageX-x.current.x-x.current.delta;B<=0&&(B=0),B+p>=u&&(B=u-p),c({scrollLeft:B/u*(f+2)}),x.current.x=w.pageX},P=function(){N.current=pr(function(){if(i.current){var w=br(i.current).top,M=w+i.current.offsetHeight,D=l===window?document.documentElement.scrollTop+window.innerHeight:br(l).top+l.clientHeight;M-vr()<=D||w>=D-a?y(function(O){return F(F({},O),{},{isHiddenScrollBar:!0})}):y(function(O){return F(F({},O),{},{isHiddenScrollBar:!1})})}})},K=function(w){y(function(M){return F(F({},M),{},{scrollLeft:w/f*u||0})})};return s.useImperativeHandle(r,function(){return{setScrollLeft:K,checkScrollBarVisible:P}}),s.useEffect(function(){var T=Zt(document.body,"mouseup",I,!1),w=Zt(document.body,"mousemove",R,!1);return P(),function(){T.remove(),w.remove()}},[p,C]),s.useEffect(function(){var T=Zt(l,"scroll",P,!1),w=Zt(window,"resize",P,!1);return function(){T.remove(),w.remove()}},[l]),s.useEffect(function(){m.isHiddenScrollBar||y(function(T){var w=i.current;return w?F(F({},T),{},{scrollLeft:w.scrollLeft/w.scrollWidth*w.clientWidth}):T})},[m.isHiddenScrollBar]),f<=u||!p||m.isHiddenScrollBar?null:s.createElement("div",{style:{height:vr(),width:u,bottom:a},className:"".concat(d,"-sticky-scroll")},s.createElement("div",{onMouseDown:E,ref:v,className:Y("".concat(d,"-sticky-scroll-bar"),k({},"".concat(d,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(m.scrollLeft,"px, 0, 0)")}}))};const Al=s.forwardRef(Fl);var $o="rc-table",jl=[],Wl={};function Vl(){return"No Data"}function ql(n,t){var r,e=F({rowKey:"key",prefixCls:$o,emptyText:Vl},n),o=e.prefixCls,i=e.className,c=e.rowClassName,a=e.style,l=e.data,d=e.rowKey,f=e.scroll,u=e.tableLayout,p=e.direction,v=e.title,g=e.footer,h=e.summary,m=e.caption,y=e.id,x=e.showHeader,b=e.components,S=e.emptyText,C=e.onRow,$=e.onHeaderRow,N=e.onScroll,I=e.internalHooks,E=e.transformColumns,R=e.internalRefs,P=e.tailor,K=e.getContainerWidth,T=e.sticky,w=e.rowHoverable,M=w===void 0?!0:w,D=l||jl,O=!!D.length,B=I===Vt,L=s.useCallback(function(le,ce){return Mn(b,le)||ce},[b]),_=s.useMemo(function(){return typeof d=="function"?d:function(le){var ce=le&&le[d];return ce}},[d]),V=L(["body"]),re=Hl(),J=fe(re,3),Ee=J[0],pe=J[1],$e=J[2],ee=Ml(e,D,_),ue=fe(ee,6),te=ue[0],ie=ue[1],Q=ue[2],U=ue[3],W=ue[4],A=ue[5],q=f==null?void 0:f.x,ae=s.useState(0),H=fe(ae,2),Z=H[0],ve=H[1],ne=Pl(F(F(F({},e),te),{},{expandable:!!te.expandedRowRender,columnTitle:te.columnTitle,expandedKeys:Q,getRowKey:_,onTriggerExpand:A,expandIcon:U,expandIconColumnIndex:te.expandIconColumnIndex,direction:p,scrollWidth:B&&P&&typeof q=="number"?q:null,clientWidth:Z}),B?E:null),ge=fe(ne,4),Se=ge[0],X=ge[1],ye=ge[2],ke=ge[3],me=ye??q,je=s.useMemo(function(){return{columns:Se,flattenColumns:X}},[Se,X]),De=s.useRef(),ot=s.useRef(),G=s.useRef(),be=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:De.current,scrollTo:function(ce){var Le;if(G.current instanceof HTMLElement){var Ge=ce.index,He=ce.top,$t=ce.key;if(He){var ht;(ht=G.current)===null||ht===void 0||ht.scrollTo({top:He})}else{var yt,Lt=$t??_(D[Ge]);(yt=G.current.querySelector('[data-row-key="'.concat(Lt,'"]')))===null||yt===void 0||yt.scrollIntoView()}}else(Le=G.current)!==null&&Le!==void 0&&Le.scrollTo&&G.current.scrollTo(ce)}}});var xe=s.useRef(),Te=s.useState(!1),Re=fe(Te,2),we=Re[0],Oe=Re[1],Me=s.useState(!1),Ke=fe(Me,2),at=Ke[0],We=Ke[1],Dt=Eo(new Map),Ne=fe(Dt,2),Mt=Ne[0],Ve=Ne[1],Ye=rn(X),Ze=Ye.map(function(le){return Mt.get(le)}),wt=s.useMemo(function(){return Ze},[Ze.join("_")]),lt=zl(wt,X,p),Be=f&&xn(f.y),Fe=f&&xn(me)||!!te.fixed,Qe=Fe&&X.some(function(le){var ce=le.fixed;return ce}),Bt=s.useRef(),st=_l(T,o),et=st.isSticky,ln=st.offsetHeader,Xt=st.offsetSummary,sn=st.offsetScroll,oe=st.stickyClassName,he=st.container,Ce=s.useMemo(function(){return h==null?void 0:h(D)},[h,D]),Ie=(Be||et)&&s.isValidElement(Ce)&&Ce.type===on&&Ce.props.fixed,Ae,_e,qe;Be&&(_e={overflowY:"scroll",maxHeight:f.y}),Fe&&(Ae={overflowX:"auto"},Be||(_e={overflowY:"hidden"}),qe={width:me===!0?"auto":me,minWidth:"100%"});var dt=s.useCallback(function(le,ce){ia(De.current)&&Ve(function(Le){if(Le.get(le)!==ce){var Ge=new Map(Le);return Ge.set(le,ce),Ge}return Le})},[]),jo=Ll(),Gn=fe(jo,2),Wo=Gn[0],Yn=Gn[1];function Ut(le,ce){ce&&(typeof ce=="function"?ce(le):ce.scrollLeft!==le&&(ce.scrollLeft=le,ce.scrollLeft!==le&&setTimeout(function(){ce.scrollLeft=le},0)))}var Et=gt(function(le){var ce=le.currentTarget,Le=le.scrollLeft,Ge=p==="rtl",He=typeof Le=="number"?Le:ce.scrollLeft,$t=ce||Wl;if(!Yn()||Yn()===$t){var ht;Wo($t),Ut(He,ot.current),Ut(He,G.current),Ut(He,xe.current),Ut(He,(ht=Bt.current)===null||ht===void 0?void 0:ht.setScrollLeft)}var yt=ce||ot.current;if(yt){var Lt=yt.scrollWidth,pn=yt.clientWidth;if(Lt===pn){Oe(!1),We(!1);return}Ge?(Oe(-He0)):(Oe(He>0),We(He1?m-w:0,D=F(F(F({},I),d),{},{flex:"0 0 ".concat(w,"px"),width:"".concat(w,"px"),marginRight:M,pointerEvents:"auto"}),O=s.useMemo(function(){return u?K<=1:R===0||K===0||K>1},[K,R,u]);O?D.visibility="hidden":u&&(D.height=p==null?void 0:p(K));var B=O?function(){return null}:v,L={};return(K===0||R===0)&&(L.rowSpan=1,L.colSpan=1),s.createElement(St,de({className:Y(h,f),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:c,prefixCls:t.prefixCls,key:S,record:l,index:i,renderIndex:a,dataIndex:g,render:B,shouldCellUpdate:r.shouldCellUpdate},C,{appendNode:$,additionalProps:F(F({},N),{},{style:D},L)}))}var Yl=["data","index","className","rowKey","style","extra","getHeight"],Zl=s.forwardRef(function(n,t){var r=n.data,e=n.index,o=n.className,i=n.rowKey,c=n.style,a=n.extra,l=n.getHeight,d=Je(n,Yl),f=r.record,u=r.indent,p=r.index,v=ze(Ue,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=v.scrollX,h=v.flattenColumns,m=v.prefixCls,y=v.fixColumn,x=v.componentWidth,b=ze(jn,["getComponent"]),S=b.getComponent,C=bo(f,i,e,u),$=S(["body","row"],"div"),N=S(["body","cell"],"div"),I=C.rowSupportExpand,E=C.expanded,R=C.rowProps,P=C.expandedRowRender,K=C.expandedRowClassName,T;if(I&&E){var w=P(f,e,u+1,E),M=K==null?void 0:K(f,e,u),D={};y&&(D={style:k({},"--virtual-width","".concat(x,"px"))});var O="".concat(m,"-expanded-row-cell");T=s.createElement($,{className:Y("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(u+1),M)},s.createElement(St,{component:N,prefixCls:m,className:Y(O,k({},"".concat(O,"-fixed"),y)),additionalProps:D},w))}var B=F(F({},c),{},{width:g});a&&(B.position="absolute",B.pointerEvents="none");var L=s.createElement($,de({},R,d,{"data-row-key":i,ref:I?null:t,className:Y(o,"".concat(m,"-row"),R==null?void 0:R.className,k({},"".concat(m,"-row-extra"),a)),style:F(F({},B),R==null?void 0:R.style)}),h.map(function(_,V){return s.createElement(Gl,{key:V,component:N,rowInfo:C,column:_,colIndex:V,indent:u,index:e,renderIndex:p,record:f,inverse:a,getHeight:l})}));return I?s.createElement("div",{ref:t},L,T):L}),kr=Pt(Zl),Jl=s.forwardRef(function(n,t){var r=n.data,e=n.onScroll,o=ze(Ue,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=o.flattenColumns,c=o.onColumnResize,a=o.getRowKey,l=o.expandedKeys,d=o.prefixCls,f=o.childrenColumnName,u=o.emptyNode,p=o.scrollX,v=ze(jn),g=v.sticky,h=v.scrollY,m=v.listItemHeight,y=v.getComponent,x=v.onScroll,b=s.useRef(),S=yo(r,f,l,a),C=s.useMemo(function(){var D=0;return i.map(function(O){var B=O.width,L=O.key;return D+=B,[L,B,D]})},[i]),$=s.useMemo(function(){return C.map(function(D){return D[2]})},[C]);s.useEffect(function(){C.forEach(function(D){var O=fe(D,2),B=O[0],L=O[1];c(B,L)})},[C]),s.useImperativeHandle(t,function(){var D={scrollTo:function(B){var L;(L=b.current)===null||L===void 0||L.scrollTo(B)}};return Object.defineProperty(D,"scrollLeft",{get:function(){var B;return((B=b.current)===null||B===void 0?void 0:B.getScrollInfo().x)||0},set:function(B){var L;(L=b.current)===null||L===void 0||L.scrollTo({left:B})}}),D});var N=function(O,B){var L,_=(L=S[B])===null||L===void 0?void 0:L.record,V=O.onCell;if(V){var re,J=V(_,B);return(re=J==null?void 0:J.rowSpan)!==null&&re!==void 0?re:1}return 1},I=function(O){var B=O.start,L=O.end,_=O.getSize,V=O.offsetY;if(L<0)return null;for(var re=i.filter(function(A){return N(A,B)===0}),J=B,Ee=function(q){if(re=re.filter(function(ae){return N(ae,q)===0}),!re.length)return J=q,1},pe=B;pe>=0&&!Ee(pe);pe-=1);for(var $e=i.filter(function(A){return N(A,L)!==1}),ee=L,ue=function(q){if($e=$e.filter(function(ae){return N(ae,q)!==1}),!$e.length)return ee=Math.max(q-1,L),1},te=L;te1})&&ie.push(q)},U=J;U<=ee;U+=1)Q(U);var W=ie.map(function(A){var q=S[A],ae=a(q.record,A),H=function(ne){var ge=A+ne-1,Se=a(S[ge].record,ge),X=_(ae,Se);return X.bottom-X.top},Z=_(ae);return s.createElement(kr,{key:A,data:q,rowKey:ae,index:A,style:{top:-V+Z.top},extra:!0,getHeight:H})});return W},E=s.useMemo(function(){return{columnsOffset:$}},[$]),R="".concat(d,"-tbody"),P=y(["body","wrapper"]),K=y(["body","row"],"div"),T=y(["body","cell"],"div"),w;if(S.length){var M={};g&&(M.position="sticky",M.bottom=0,nt(g)==="object"&&g.offsetScroll&&(M.bottom=g.offsetScroll)),w=s.createElement(oo,{fullHeight:!1,ref:b,prefixCls:"".concat(R,"-virtual"),styles:{horizontalScrollBar:M},className:R,height:h,itemHeight:m||24,data:S,itemKey:function(O){return a(O.record)},component:P,scrollWidth:p,onVirtualScroll:function(O){var B=O.x;e({scrollLeft:B})},onScroll:x,extraRender:I},function(D,O,B){var L=a(D.record,O);return s.createElement(kr,{data:D,rowKey:L,index:O,style:B.style})})}else w=s.createElement(K,{className:Y("".concat(d,"-placeholder"))},s.createElement(St,{component:T,prefixCls:d},u));return s.createElement(No.Provider,{value:E},w)}),Ql=Pt(Jl),ei=function(t,r){var e=r.ref,o=r.onScroll;return s.createElement(Ql,{ref:e,data:t,onScroll:o})};function ti(n,t){var r=n.columns,e=n.scroll,o=n.sticky,i=n.prefixCls,c=i===void 0?$o:i,a=n.className,l=n.listItemHeight,d=n.components,f=n.onScroll,u=e||{},p=u.x,v=u.y;typeof p!="number"&&(p=1),typeof v!="number"&&(v=500);var g=gt(function(y,x){return Mn(d,y)||x}),h=gt(f),m=s.useMemo(function(){return{sticky:o,scrollY:v,listItemHeight:l,getComponent:g,onScroll:h}},[o,v,l,g,h]);return s.createElement(jn.Provider,{value:m},s.createElement(Tt,de({},n,{className:Y(a,"".concat(c,"-virtual")),scroll:F(F({},e),{},{x:p}),components:F(F({},d),{},{body:ei}),columns:r,internalHooks:Vt,tailor:!0,ref:t})))}var ni=s.forwardRef(ti);function Ro(n){return po(ni,n)}Ro();function ri(n){return null}function oi(n){return null}var Wn=s.createContext(null),ai=function(t){for(var r=t.prefixCls,e=t.level,o=t.isStart,i=t.isEnd,c="".concat(r,"-indent-unit"),a=[],l=0;l=0&&r.splice(e,1),r}function it(n,t){var r=(n||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function Vn(n){return n.split("-")}function ci(n,t){var r=[],e=Xe(t,n);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(c){var a=c.key,l=c.children;r.push(a),o(l)})}return o(e.children),r}function ui(n){if(n.parent){var t=Vn(n.pos);return Number(t[t.length-1])===n.parent.children.length-1}return!1}function fi(n){var t=Vn(n.pos);return Number(t[t.length-1])===0}function Kr(n,t,r,e,o,i,c,a,l,d){var f,u=n.clientX,p=n.clientY,v=n.target.getBoundingClientRect(),g=v.top,h=v.height,m=(d==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-u),y=(m-12)/e,x=l.filter(function(D){var O;return(O=a[D])===null||O===void 0||(O=O.children)===null||O===void 0?void 0:O.length}),b=Xe(a,r.props.eventKey);if(p-1.5?i({dragNode:T,dropNode:w,dropPosition:1})?R=1:M=!1:i({dragNode:T,dropNode:w,dropPosition:0})?R=0:i({dragNode:T,dropNode:w,dropPosition:1})?R=1:M=!1:i({dragNode:T,dropNode:w,dropPosition:1})?R=1:M=!1,{dropPosition:R,dropLevelOffset:P,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:E,dropContainerKey:R===0?null:((f=b.parent)===null||f===void 0?void 0:f.key)||null,dropAllowed:M}}function Ir(n,t){if(n){var r=t.multiple;return r?n.slice():n.length?[n[0]]:n}}function gn(n){if(!n)return null;var t;if(Array.isArray(n))t={checkedKeys:n,halfCheckedKeys:void 0};else if(nt(n)==="object")t={checkedKeys:n.checked||void 0,halfCheckedKeys:n.halfChecked||void 0};else return vt(!1,"`checkedKeys` is not an array or an object"),null;return t}function Sn(n,t){var r=new Set;function e(o){if(!r.has(o)){var i=Xe(t,o);if(i){r.add(o);var c=i.parent,a=i.node;a.disabled||c&&e(c.key)}}}return(n||[]).forEach(function(o){e(o)}),se(r)}function pi(n){const[t,r]=s.useState(null);return[s.useCallback((i,c,a)=>{const l=t??i,d=Math.min(l||0,i),f=Math.max(l||0,i),u=c.slice(d,f+1).map(g=>n(g)),p=u.some(g=>!a.has(g)),v=[];return u.forEach(g=>{p?(a.has(g)||v.push(g),a.add(g)):(a.delete(g),v.push(g))}),r(p?f:null),v},[t]),i=>{r(i)}]}const ut={},wn="SELECT_ALL",En="SELECT_INVERT",$n="SELECT_NONE",Or=[],Ko=(n,t)=>{let r=[];return(t||[]).forEach(e=>{r.push(e),e&&typeof e=="object"&&n in e&&(r=[].concat(se(r),se(Ko(n,e[n]))))}),r},vi=(n,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:e,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:c,onSelect:a,onSelectAll:l,onSelectInvert:d,onSelectNone:f,onSelectMultiple:u,columnWidth:p,type:v,selections:g,fixed:h,renderCell:m,hideSelectAll:y,checkStrictly:x=!0}=t||{},{prefixCls:b,data:S,pageData:C,getRecordByKey:$,getRowKey:N,expandType:I,childrenColumnName:E,locale:R,getPopupContainer:P}=n,K=Bn(),[T,w]=pi(Q=>Q),[M,D]=ro(e||o||Or,{value:e}),O=s.useRef(new Map),B=s.useCallback(Q=>{if(r){const U=new Map;Q.forEach(W=>{let A=$(W);!A&&O.current.has(W)&&(A=O.current.get(W)),U.set(W,A)}),O.current=U}},[$,r]);s.useEffect(()=>{B(M)},[M]);const{keyEntities:L}=s.useMemo(()=>{if(x)return{keyEntities:null};let Q=S;if(r){const U=new Set(S.map((A,q)=>N(A,q))),W=Array.from(O.current).reduce((A,q)=>{let[ae,H]=q;return U.has(ae)?A:A.concat(H)},[]);Q=[].concat(se(Q),se(W))}return Hn(Q,{externalGetKey:N,childrenPropName:E})},[S,N,x,E,r]),_=s.useMemo(()=>Ko(E,C),[E,C]),V=s.useMemo(()=>{const Q=new Map;return _.forEach((U,W)=>{const A=N(U,W),q=(i?i(U):null)||{};Q.set(A,q)}),Q},[_,N,i]),re=s.useCallback(Q=>{var U;return!!(!((U=V.get(N(Q)))===null||U===void 0)&&U.disabled)},[V,N]),[J,Ee]=s.useMemo(()=>{if(x)return[M||[],[]];const{checkedKeys:Q,halfCheckedKeys:U}=kt(M,!0,L,re);return[Q||[],U]},[M,x,L,re]),pe=s.useMemo(()=>{const Q=v==="radio"?J.slice(0,1):J;return new Set(Q)},[J,v]),$e=s.useMemo(()=>v==="radio"?new Set:new Set(Ee),[Ee,v]);s.useEffect(()=>{t||D(Or)},[!!t]);const ee=s.useCallback((Q,U)=>{let W,A;B(Q),r?(W=Q,A=Q.map(q=>O.current.get(q))):(W=[],A=[],Q.forEach(q=>{const ae=$(q);ae!==void 0&&(W.push(q),A.push(ae))})),D(W),c==null||c(W,A,{type:U})},[D,$,c,r]),ue=s.useCallback((Q,U,W,A)=>{if(a){const q=W.map(ae=>$(ae));a($(Q),U,q,A)}ee(W,"single")},[a,$,ee]),te=s.useMemo(()=>!g||y?null:(g===!0?[wn,En,$n]:g).map(U=>U===wn?{key:"all",text:R.selectionAll,onSelect(){ee(S.map((W,A)=>N(W,A)).filter(W=>{const A=V.get(W);return!(A!=null&&A.disabled)||pe.has(W)}),"all")}}:U===En?{key:"invert",text:R.selectInvert,onSelect(){const W=new Set(pe);C.forEach((q,ae)=>{const H=N(q,ae),Z=V.get(H);Z!=null&&Z.disabled||(W.has(H)?W.delete(H):W.add(H))});const A=Array.from(W);d&&(K.deprecated(!1,"onSelectInvert","onChange"),d(A)),ee(A,"invert")}}:U===$n?{key:"none",text:R.selectNone,onSelect(){f==null||f(),ee(Array.from(pe).filter(W=>{const A=V.get(W);return A==null?void 0:A.disabled}),"none")}}:U).map(U=>Object.assign(Object.assign({},U),{onSelect:function(){for(var W,A,q=arguments.length,ae=new Array(q),H=0;H{var U;if(!t)return Q.filter(G=>G!==ut);let W=se(Q);const A=new Set(pe),q=_.map(N).filter(G=>!V.get(G).disabled),ae=q.every(G=>A.has(G)),H=q.some(G=>A.has(G)),Z=()=>{const G=[];ae?q.forEach(xe=>{A.delete(xe),G.push(xe)}):q.forEach(xe=>{A.has(xe)||(A.add(xe),G.push(xe))});const be=Array.from(A);l==null||l(!ae,be.map(xe=>$(xe)),G.map(xe=>$(xe))),ee(be,"all"),w(null)};let ve,ne;if(v!=="radio"){let G;if(te){const we={getPopupContainer:P,items:te.map((Oe,Me)=>{const{key:Ke,text:at,onSelect:We}=Oe;return{key:Ke??Me,onClick:()=>{We==null||We(q)},label:at}})};G=s.createElement("div",{className:`${b}-selection-extra`},s.createElement(ao,{menu:we,getPopupContainer:P},s.createElement("span",null,s.createElement(Sa,null))))}const be=_.map((we,Oe)=>{const Me=N(we,Oe),Ke=V.get(Me)||{};return Object.assign({checked:A.has(Me)},Ke)}).filter(we=>{let{disabled:Oe}=we;return Oe}),xe=!!be.length&&be.length===_.length,Te=xe&&be.every(we=>{let{checked:Oe}=we;return Oe}),Re=xe&&be.some(we=>{let{checked:Oe}=we;return Oe});ne=s.createElement(en,{checked:xe?Te:!!_.length&&ae,indeterminate:xe?!Te&&Re:!ae&&H,onChange:Z,disabled:_.length===0||xe,"aria-label":G?"Custom selection":"Select all",skipGroup:!0}),ve=!y&&s.createElement("div",{className:`${b}-selection`},ne,G)}let ge;v==="radio"?ge=(G,be,xe)=>{const Te=N(be,xe),Re=A.has(Te);return{node:s.createElement(jt,Object.assign({},V.get(Te),{checked:Re,onClick:we=>we.stopPropagation(),onChange:we=>{A.has(Te)||ue(Te,!0,[Te],we.nativeEvent)}})),checked:Re}}:ge=(G,be,xe)=>{var Te;const Re=N(be,xe),we=A.has(Re),Oe=$e.has(Re),Me=V.get(Re);let Ke;return I==="nest"?Ke=Oe:Ke=(Te=Me==null?void 0:Me.indeterminate)!==null&&Te!==void 0?Te:Oe,{node:s.createElement(en,Object.assign({},Me,{indeterminate:Ke,checked:we,skipGroup:!0,onClick:at=>at.stopPropagation(),onChange:at=>{let{nativeEvent:We}=at;const{shiftKey:Dt}=We,Ne=q.findIndex(Ve=>Ve===Re),Mt=J.some(Ve=>q.includes(Ve));if(Dt&&x&&Mt){const Ve=T(Ne,q,A),Ye=Array.from(A);u==null||u(!we,Ye.map(Ze=>$(Ze)),Ve.map(Ze=>$(Ze))),ee(Ye,"multiple")}else{const Ve=J;if(x){const Ye=we?tt(Ve,Re):it(Ve,Re);ue(Re,!we,Ye,We)}else{const Ye=kt([].concat(se(Ve),[Re]),!0,L,re),{checkedKeys:Ze,halfCheckedKeys:wt}=Ye;let lt=Ze;if(we){const Be=new Set(Ze);Be.delete(Re),lt=kt(Array.from(Be),{checked:!1,halfCheckedKeys:wt},L,re).checkedKeys}ue(Re,!we,lt,We)}}w(we?null:Ne)}})),checked:we}};const Se=(G,be,xe)=>{const{node:Te,checked:Re}=ge(G,be,xe);return m?m(Re,be,xe,Te):Te};if(!W.includes(ut))if(W.findIndex(G=>{var be;return((be=G[zt])===null||be===void 0?void 0:be.columnType)==="EXPAND_COLUMN"})===0){const[G,...be]=W;W=[G,ut].concat(se(be))}else W=[ut].concat(se(W));const X=W.indexOf(ut);W=W.filter((G,be)=>G!==ut||be===X);const ye=W[X-1],ke=W[X+1];let me=h;me===void 0&&((ke==null?void 0:ke.fixed)!==void 0?me=ke.fixed:(ye==null?void 0:ye.fixed)!==void 0&&(me=ye.fixed)),me&&ye&&((U=ye[zt])===null||U===void 0?void 0:U.columnType)==="EXPAND_COLUMN"&&ye.fixed===void 0&&(ye.fixed=me);const je=Y(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:g&&v==="checkbox"}),De=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ne):t.columnTitle:ve,ot={fixed:me,width:p,className:`${b}-selection-column`,title:De(),render:Se,onCell:t.onCell,[zt]:{className:je}};return W.map(G=>G===ut?ot:G)},[N,_,t,J,pe,$e,p,te,I,V,u,ue,re]),pe]};function gi(n,t){return n._antProxy=n._antProxy||{},Object.keys(t).forEach(r=>{if(!(r in n._antProxy)){const e=n[r];n._antProxy[r]=e,n[r]=t[r]}}),n}function mi(n,t){return s.useImperativeHandle(n,()=>{const r=t(),{nativeElement:e}=r;return typeof Proxy<"u"?new Proxy(e,{get(o,i){return r[i]?r[i]:Reflect.get(o,i)}}):gi(e,r)})}function hi(n){return function(r){let{prefixCls:e,onExpand:o,record:i,expanded:c,expandable:a}=r;const l=`${e}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:d=>{o(i,d),d.stopPropagation()},className:Y(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&c,[`${l}-collapsed`]:a&&!c}),"aria-label":c?n.collapse:n.expand,"aria-expanded":c})}}function yi(n){return(r,e)=>{const o=r.querySelector(`.${n}-container`);let i=e;if(o){const c=getComputedStyle(o),a=parseInt(c.borderLeftWidth,10),l=parseInt(c.borderRightWidth,10);i=e-a-l}return i}}function bt(n,t){return"key"in n&&n.key!==void 0&&n.key!==null?n.key:n.dataIndex?Array.isArray(n.dataIndex)?n.dataIndex.join("."):n.dataIndex:t}function qt(n,t){return t?`${t}-${n}`:`${n}`}function an(n,t){return typeof n=="function"?n(t):n}function bi(n,t){const r=an(n,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r}var xi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Ci=function(t,r){return s.createElement(rt,de({},t,{ref:r,icon:xi}))},Si=s.forwardRef(Ci);function wi(n){const t=s.useRef(n),r=ka();return[()=>t.current,e=>{t.current=e,r()}]}function Ei(n){var t=n.dropPosition,r=n.dropLevelOffset,e=n.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-r*e;break;case 1:o.bottom=0,o.left=-r*e;break;case 0:o.bottom=0,o.left=e;break}return s.createElement("div",{style:o})}function Io(n){if(n==null)throw new TypeError("Cannot destructure "+n)}function $i(n,t){var r=s.useState(!1),e=fe(r,2),o=e[0],i=e[1];Kt(function(){if(o)return n(),function(){t()}},[o]),Kt(function(){return i(!0),function(){i(!1)}},[])}var ki=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Oo=function(t,r){var e=t.className,o=t.style,i=t.motion,c=t.motionNodes,a=t.motionType,l=t.onMotionStart,d=t.onMotionEnd,f=t.active,u=t.treeNodeRequiredProps,p=Je(t,ki),v=s.useState(!0),g=fe(v,2),h=g[0],m=g[1],y=s.useContext(Wn),x=y.prefixCls,b=c&&a!=="hide";Kt(function(){c&&b!==h&&m(b)},[c]);var S=function(){c&&l()},C=s.useRef(!1),$=function(){c&&!C.current&&(C.current=!0,d())};$i(S,$);var N=function(E){b===E&&$()};return c?s.createElement(sa,de({ref:r,visible:h},i,{motionAppear:a==="show",onVisibleChanged:N}),function(I,E){var R=I.className,P=I.style;return s.createElement("div",{ref:E,className:Y("".concat(x,"-treenode-motion"),R),style:P},c.map(function(K){var T=Object.assign({},(Io(K.data),K.data)),w=K.title,M=K.key,D=K.isStart,O=K.isEnd;delete T.children;var B=_t(M,u);return s.createElement(Ot,de({},T,B,{title:w,active:f,data:K.data,key:M,isStart:D,isEnd:O}))}))}):s.createElement(Ot,de({domRef:r,className:e,style:o},p,{active:f}))};Oo.displayName="MotionTreeNode";var Ni=s.forwardRef(Oo);function Ri(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=n.length,e=t.length;if(Math.abs(r-e)!==1)return{add:!1,key:null};function o(i,c){var a=new Map;i.forEach(function(d){a.set(d,!0)});var l=c.filter(function(d){return!a.has(d)});return l.length===1?l[0]:null}return r ").concat(t);return t}var To=s.forwardRef(function(n,t){var r=n.prefixCls,e=n.data;n.selectable,n.checkable;var o=n.expandedKeys,i=n.selectedKeys,c=n.checkedKeys,a=n.loadedKeys,l=n.loadingKeys,d=n.halfCheckedKeys,f=n.keyEntities,u=n.disabled,p=n.dragging,v=n.dragOverNodeKey,g=n.dropPosition,h=n.motion,m=n.height,y=n.itemHeight,x=n.virtual,b=n.focusable,S=n.activeItem,C=n.focused,$=n.tabIndex,N=n.onKeyDown,I=n.onFocus,E=n.onBlur,R=n.onActiveChange,P=n.onListChangeStart,K=n.onListChangeEnd,T=Je(n,Ki),w=s.useRef(null),M=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(ge){w.current.scrollTo(ge)},getIndentWidth:function(){return M.current.offsetWidth}}});var D=s.useState(o),O=fe(D,2),B=O[0],L=O[1],_=s.useState(e),V=fe(_,2),re=V[0],J=V[1],Ee=s.useState(e),pe=fe(Ee,2),$e=pe[0],ee=pe[1],ue=s.useState([]),te=fe(ue,2),ie=te[0],Q=te[1],U=s.useState(null),W=fe(U,2),A=W[0],q=W[1],ae=s.useRef(e);ae.current=e;function H(){var ne=ae.current;J(ne),ee(ne),Q([]),q(null),K()}Kt(function(){L(o);var ne=Ri(B,o);if(ne.key!==null)if(ne.add){var ge=re.findIndex(function(je){var De=je.key;return De===ne.key}),Se=Mr(Pr(re,e,ne.key),x,m,y),X=re.slice();X.splice(ge+1,0,Dr),ee(X),Q(Se),q("show")}else{var ye=e.findIndex(function(je){var De=je.key;return De===ne.key}),ke=Mr(Pr(e,re,ne.key),x,m,y),me=e.slice();me.splice(ye+1,0,Dr),ee(me),Q(ke),q("hide")}else re!==e&&(J(e),ee(e))},[o,e]),s.useEffect(function(){p||H()},[p]);var Z=h?$e:e,ve={expandedKeys:o,selectedKeys:i,loadedKeys:a,loadingKeys:l,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:v,dropPosition:g,keyEntities:f};return s.createElement(s.Fragment,null,C&&S&&s.createElement("span",{style:Tr,"aria-live":"assertive"},Oi(S)),s.createElement("div",null,s.createElement("input",{style:Tr,disabled:b===!1||u,tabIndex:b!==!1?$:null,onKeyDown:N,onFocus:I,onBlur:E,value:"",onChange:Ii,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(r,"-indent")},s.createElement("div",{ref:M,className:"".concat(r,"-indent-unit")}))),s.createElement(oo,de({},T,{data:Z,itemKey:Br,height:m,fullHeight:!1,virtual:x,itemHeight:y,prefixCls:"".concat(r,"-list"),ref:w,onVisibleChange:function(ge,Se){var X=new Set(ge),ye=Se.filter(function(ke){return!X.has(ke)});ye.some(function(ke){return Br(ke)===xt})&&H()}}),function(ne){var ge=ne.pos,Se=Object.assign({},(Io(ne.data),ne.data)),X=ne.title,ye=ne.key,ke=ne.isStart,me=ne.isEnd,je=Wt(ye,ge);delete Se.key,delete Se.children;var De=_t(je,ve);return s.createElement(Ni,de({},Se,De,{title:X,active:!!S&&ye===S.key,pos:ge,data:ne.data,isStart:ke,isEnd:me,motion:h,motionNodes:ye===xt?ie:null,motionType:A,onMotionStart:P,onMotionEnd:H,treeNodeRequiredProps:ve,onMouseMove:function(){R(null)}}))}))});To.displayName="NodeList";var Pi=10,qn=function(n){Jr(r,n);var t=Qr(r);function r(){var e;eo(this,r);for(var o=arguments.length,i=new Array(o),c=0;c2&&arguments[2]!==void 0?arguments[2]:!1,u=e.state,p=u.dragChildrenKeys,v=u.dropPosition,g=u.dropTargetKey,h=u.dropTargetPos,m=u.dropAllowed;if(m){var y=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),g!==null){var x=F(F({},_t(g,e.getTreeNodeRequiredProps())),{},{active:((d=e.getActiveItem())===null||d===void 0?void 0:d.key)===g,data:Xe(e.state.keyEntities,g).node}),b=p.indexOf(g)!==-1;vt(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=Vn(h),C={event:a,node:Pe(x),dragNode:e.dragNode?Pe(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(p),dropToGap:v!==0,dropPosition:v+Number(S[S.length-1])};f||y==null||y(C),e.dragNode=null}}}),k(z(e),"cleanDragState",function(){var a=e.state.draggingNodeKey;a!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null}),k(z(e),"triggerExpandActionExpand",function(a,l){var d=e.state,f=d.expandedKeys,u=d.flattenNodes,p=l.expanded,v=l.key,g=l.isLeaf;if(!(g||a.shiftKey||a.metaKey||a.ctrlKey)){var h=u.filter(function(y){return y.key===v})[0],m=Pe(F(F({},_t(v,e.getTreeNodeRequiredProps())),{},{data:h.data}));e.setExpandedKeys(p?tt(f,v):it(f,v)),e.onNodeExpand(a,m)}}),k(z(e),"onNodeClick",function(a,l){var d=e.props,f=d.onClick,u=d.expandAction;u==="click"&&e.triggerExpandActionExpand(a,l),f==null||f(a,l)}),k(z(e),"onNodeDoubleClick",function(a,l){var d=e.props,f=d.onDoubleClick,u=d.expandAction;u==="doubleClick"&&e.triggerExpandActionExpand(a,l),f==null||f(a,l)}),k(z(e),"onNodeSelect",function(a,l){var d=e.state.selectedKeys,f=e.state,u=f.keyEntities,p=f.fieldNames,v=e.props,g=v.onSelect,h=v.multiple,m=l.selected,y=l[p.key],x=!m;x?h?d=it(d,y):d=[y]:d=tt(d,y);var b=d.map(function(S){var C=Xe(u,S);return C?C.node:null}).filter(function(S){return S});e.setUncontrolledState({selectedKeys:d}),g==null||g(d,{event:"select",selected:x,node:l,selectedNodes:b,nativeEvent:a.nativeEvent})}),k(z(e),"onNodeCheck",function(a,l,d){var f=e.state,u=f.keyEntities,p=f.checkedKeys,v=f.halfCheckedKeys,g=e.props,h=g.checkStrictly,m=g.onCheck,y=l.key,x,b={event:"check",node:l,checked:d,nativeEvent:a.nativeEvent};if(h){var S=d?it(p,y):tt(p,y),C=tt(v,y);x={checked:S,halfChecked:C},b.checkedNodes=S.map(function(P){return Xe(u,P)}).filter(function(P){return P}).map(function(P){return P.node}),e.setUncontrolledState({checkedKeys:S})}else{var $=kt([].concat(se(p),[y]),!0,u),N=$.checkedKeys,I=$.halfCheckedKeys;if(!d){var E=new Set(N);E.delete(y);var R=kt(Array.from(E),{checked:!1,halfCheckedKeys:I},u);N=R.checkedKeys,I=R.halfCheckedKeys}x=N,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=I,N.forEach(function(P){var K=Xe(u,P);if(K){var T=K.node,w=K.pos;b.checkedNodes.push(T),b.checkedNodesPositions.push({node:T,pos:w})}}),e.setUncontrolledState({checkedKeys:N},!1,{halfCheckedKeys:I})}m==null||m(x,b)}),k(z(e),"onNodeLoad",function(a){var l,d=a.key,f=e.state.keyEntities,u=Xe(f,d);if(!(u!=null&&(l=u.children)!==null&&l!==void 0&&l.length)){var p=new Promise(function(v,g){e.setState(function(h){var m=h.loadedKeys,y=m===void 0?[]:m,x=h.loadingKeys,b=x===void 0?[]:x,S=e.props,C=S.loadData,$=S.onLoad;if(!C||y.indexOf(d)!==-1||b.indexOf(d)!==-1)return null;var N=C(a);return N.then(function(){var I=e.state.loadedKeys,E=it(I,d);$==null||$(E,{event:"load",node:a}),e.setUncontrolledState({loadedKeys:E}),e.setState(function(R){return{loadingKeys:tt(R.loadingKeys,d)}}),v()}).catch(function(I){if(e.setState(function(R){return{loadingKeys:tt(R.loadingKeys,d)}}),e.loadingRetryTimes[d]=(e.loadingRetryTimes[d]||0)+1,e.loadingRetryTimes[d]>=Pi){var E=e.state.loadedKeys;vt(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:it(E,d)}),v()}g(I)}),{loadingKeys:it(b,d)}})});return p.catch(function(){}),p}}),k(z(e),"onNodeMouseEnter",function(a,l){var d=e.props.onMouseEnter;d==null||d({event:a,node:l})}),k(z(e),"onNodeMouseLeave",function(a,l){var d=e.props.onMouseLeave;d==null||d({event:a,node:l})}),k(z(e),"onNodeContextMenu",function(a,l){var d=e.props.onRightClick;d&&(a.preventDefault(),d({event:a,node:l}))}),k(z(e),"onFocus",function(){var a=e.props.onFocus;e.setState({focused:!0});for(var l=arguments.length,d=new Array(l),f=0;f1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var f=!1,u=!0,p={};Object.keys(a).forEach(function(v){if(v in e.props){u=!1;return}f=!0,p[v]=a[v]}),f&&(!l||u)&&e.setState(F(F({},p),d))}}),k(z(e),"scrollTo",function(a){e.listRef.current.scrollTo(a)}),e}return to(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,c=o.itemScrollOffset,a=c===void 0?0:c;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:a}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,i=o.focused,c=o.flattenNodes,a=o.keyEntities,l=o.draggingNodeKey,d=o.activeKey,f=o.dropLevelOffset,u=o.dropContainerKey,p=o.dropTargetKey,v=o.dropPosition,g=o.dragOverNodeKey,h=o.indent,m=this.props,y=m.prefixCls,x=m.className,b=m.style,S=m.showLine,C=m.focusable,$=m.tabIndex,N=$===void 0?0:$,I=m.selectable,E=m.showIcon,R=m.icon,P=m.switcherIcon,K=m.draggable,T=m.checkable,w=m.checkStrictly,M=m.disabled,D=m.motion,O=m.loadData,B=m.filterTreeNode,L=m.height,_=m.itemHeight,V=m.virtual,re=m.titleRender,J=m.dropIndicatorRender,Ee=m.onContextMenu,pe=m.onScroll,$e=m.direction,ee=m.rootClassName,ue=m.rootStyle,te=Ft(this.props,{aria:!0,data:!0}),ie;return K&&(nt(K)==="object"?ie=K:typeof K=="function"?ie={nodeDraggable:K}:ie={}),s.createElement(Wn.Provider,{value:{prefixCls:y,selectable:I,showIcon:E,icon:R,switcherIcon:P,draggable:ie,draggingNodeKey:l,checkable:T,checkStrictly:w,disabled:M,keyEntities:a,dropLevelOffset:f,dropContainerKey:u,dropTargetKey:p,dropPosition:v,dragOverNodeKey:g,indent:h,direction:$e,dropIndicatorRender:J,loadData:O,filterTreeNode:B,titleRender:re,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},s.createElement("div",{role:"tree",className:Y(y,x,ee,k(k(k({},"".concat(y,"-show-line"),S),"".concat(y,"-focused"),i),"".concat(y,"-active-focused"),d!==null)),style:ue},s.createElement(To,de({ref:this.listRef,prefixCls:y,style:b,data:c,disabled:M,selectable:I,checkable:!!T,motion:D,dragging:l!==null,height:L,itemHeight:_,virtual:V,focusable:C,focused:i,tabIndex:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ee,onScroll:pe},this.getTreeNodeRequiredProps(),te))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var c=i.prevProps,a={prevProps:o};function l($){return!c&&$ in o||c&&c[$]!==o[$]}var d,f=i.fieldNames;if(l("fieldNames")&&(f=It(o.fieldNames),a.fieldNames=f),l("treeData")?d=o.treeData:l("children")&&(vt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),d=uo(o.children)),d){a.treeData=d;var u=Hn(d,{fieldNames:f});a.keyEntities=F(k({},xt,Po),u.keyEntities)}var p=a.keyEntities||i.keyEntities;if(l("expandedKeys")||c&&l("autoExpandParent"))a.expandedKeys=o.autoExpandParent||!c&&o.defaultExpandParent?Sn(o.expandedKeys,p):o.expandedKeys;else if(!c&&o.defaultExpandAll){var v=F({},p);delete v[xt],a.expandedKeys=Object.keys(v).map(function($){return v[$].key})}else!c&&o.defaultExpandedKeys&&(a.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Sn(o.defaultExpandedKeys,p):o.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,d||a.expandedKeys){var g=vn(d||i.treeData,a.expandedKeys||i.expandedKeys,f);a.flattenNodes=g}if(o.selectable&&(l("selectedKeys")?a.selectedKeys=Ir(o.selectedKeys,o):!c&&o.defaultSelectedKeys&&(a.selectedKeys=Ir(o.defaultSelectedKeys,o))),o.checkable){var h;if(l("checkedKeys")?h=gn(o.checkedKeys)||{}:!c&&o.defaultCheckedKeys?h=gn(o.defaultCheckedKeys)||{}:d&&(h=gn(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),h){var m=h,y=m.checkedKeys,x=y===void 0?[]:y,b=m.halfCheckedKeys,S=b===void 0?[]:b;if(!o.checkStrictly){var C=kt(x,!0,p);x=C.checkedKeys,S=C.halfCheckedKeys}a.checkedKeys=x,a.halfCheckedKeys=S}}return l("loadedKeys")&&(a.loadedKeys=o.loadedKeys),a}}]),r}(s.Component);k(qn,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Ei,allowDrop:function(){return!0},expandAction:!1});k(qn,"TreeNode",Ot);var Ti={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Di=function(t,r){return s.createElement(rt,de({},t,{ref:r,icon:Ti}))},Do=s.forwardRef(Di),Mi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Bi=function(t,r){return s.createElement(rt,de({},t,{ref:r,icon:Mi}))},Li=s.forwardRef(Bi),Hi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},_i=function(t,r){return s.createElement(rt,de({},t,{ref:r,icon:Hi}))},zi=s.forwardRef(_i),Fi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ai=function(t,r){return s.createElement(rt,de({},t,{ref:r,icon:Fi}))},ji=s.forwardRef(Ai);const Wi=new da("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Vi=(n,t)=>({[`.${n}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),qi=(n,t)=>({[`.${n}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${j(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Xi=(n,t)=>{const{treeCls:r,treeNodeCls:e,treeNodePadding:o,titleHeight:i,nodeSelectedBg:c,nodeHoverBg:a}=t,l=t.paddingXS;return{[r]:Object.assign(Object.assign({},Rt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${r}-rtl`]:{[`${r}-switcher`]:{"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${r}-active-focused)`]:Object.assign({},Tn(t)),[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${e}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Wi,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${e}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${j(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${r}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${e}-disabled).filter-node ${r}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${r}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${j(i)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${e}:hover &`]:{opacity:.45}},[`&${e}-disabled`]:{[`${r}-draggable-icon`]:{visibility:"hidden"}}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher`]:Object.assign(Object.assign({},Vi(n,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${j(i)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${r}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${r}-checkbox`]:{top:"initial",marginInlineEnd:l,alignSelf:"flex-start",marginTop:t.marginXXS},[`${r}-node-content-wrapper, ${r}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${j(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${j(i)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:a},[`&${r}-node-selected`]:{backgroundColor:c},[`${r}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${j(i)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}-node-content-wrapper`]:Object.assign({lineHeight:`${j(i)}`,userSelect:"none"},qi(n,t)),[`${e}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${r}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${e}-leaf-last`]:{[`${r}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${j(t.calc(i).div(2).equal())} !important`}}}}})}},Ui=n=>{const{treeCls:t,treeNodeCls:r,treeNodePadding:e,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=n;return{[`${t}${t}-directory`]:{[r]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:e,insetInlineStart:0,transition:`background-color ${n.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:n.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${n.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},Gi=(n,t)=>{const r=`.${n}`,e=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=Pn(t,{treeCls:r,treeNodeCls:e,treeNodePadding:o});return[Xi(n,i),Ui(i)]},Yi=n=>{const{controlHeightSM:t}=n;return{titleHeight:t,nodeHoverBg:n.controlItemBgHover,nodeSelectedBg:n.controlItemBgActive}},Zi=n=>{const{colorTextLightSolid:t,colorPrimary:r}=n;return Object.assign(Object.assign({},Yi(n)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:r})},Ji=On("Tree",(n,t)=>{let{prefixCls:r}=t;return[{[n.componentCls]:$a(`${r}-checkbox`,n)},Gi(r,n),ga(n)]},Zi),Lr=4;function Qi(n){const{dropPosition:t,dropLevelOffset:r,prefixCls:e,indent:o,direction:i="ltr"}=n,c=i==="ltr"?"left":"right",a=i==="ltr"?"right":"left",l={[c]:-r*o+Lr,[a]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[c]=o+Lr;break}return ct.createElement("div",{style:l,className:`${e}-drop-indicator`})}var es={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},ts=function(t,r){return s.createElement(rt,de({},t,{ref:r,icon:es}))},ns=s.forwardRef(ts),rs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},os=function(t,r){return s.createElement(rt,de({},t,{ref:r,icon:rs}))},as=s.forwardRef(os),ls={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},is=function(t,r){return s.createElement(rt,de({},t,{ref:r,icon:ls}))},ss=s.forwardRef(is);const ds=n=>{const{prefixCls:t,switcherIcon:r,treeNodeProps:e,showLine:o}=n,{isLeaf:i,expanded:c,loading:a}=e;if(a)return s.createElement(ca,{className:`${t}-switcher-loading-icon`});let l;if(o&&typeof o=="object"&&(l=o.showLeafIcon),i){if(!o)return null;if(typeof l!="boolean"&&l){const u=typeof l=="function"?l(e):l,p=`${t}-switcher-line-custom-icon`;return s.isValidElement(u)?mr(u,{className:Y(u.props.className||"",p)}):u}return l?s.createElement(Do,{className:`${t}-switcher-line-icon`}):s.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof r=="function"?r(e):r;return s.isValidElement(f)?mr(f,{className:Y(f.props.className||"",d)}):f!==void 0?f:o?c?s.createElement(as,{className:`${t}-switcher-line-icon`}):s.createElement(ss,{className:`${t}-switcher-line-icon`}):s.createElement(ns,{className:d})},Mo=ct.forwardRef((n,t)=>{var r;const{getPrefixCls:e,direction:o,virtual:i,tree:c}=ct.useContext(Ct),{prefixCls:a,className:l,showIcon:d=!1,showLine:f,switcherIcon:u,blockNode:p=!1,children:v,checkable:g=!1,selectable:h=!0,draggable:m,motion:y,style:x}=n,b=e("tree",a),S=e(),C=y??Object.assign(Object.assign({},ua(S)),{motionAppear:!1}),$=Object.assign(Object.assign({},n),{checkable:g,selectable:h,showIcon:d,motion:C,blockNode:p,showLine:!!f,dropIndicatorRender:Qi}),[N,I,E]=Ji(b),[,R]=no(),P=R.paddingXS/2+(((r=R.Tree)===null||r===void 0?void 0:r.titleHeight)||R.controlHeightSM),K=ct.useMemo(()=>{if(!m)return!1;let w={};switch(typeof m){case"function":w.nodeDraggable=m;break;case"object":w=Object.assign({},m);break}return w.icon!==!1&&(w.icon=w.icon||ct.createElement(ji,null)),w},[m]),T=w=>ct.createElement(ds,{prefixCls:b,switcherIcon:u,treeNodeProps:w,showLine:f});return N(ct.createElement(qn,Object.assign({itemHeight:P,ref:t,virtual:i},$,{style:Object.assign(Object.assign({},c==null?void 0:c.style),x),prefixCls:b,className:Y({[`${b}-icon-hide`]:!d,[`${b}-block-node`]:p,[`${b}-unselectable`]:!h,[`${b}-rtl`]:o==="rtl"},c==null?void 0:c.className,l,I,E),direction:o,checkable:g&&ct.createElement("span",{className:`${b}-checkbox-inner`}),selectable:h,switcherIcon:T,draggable:K}),v))}),Hr=0,mn=1,_r=2;function Xn(n,t,r){const{key:e,children:o}=r;function i(c){const a=c[e],l=c[o];t(a,c)!==!1&&Xn(l||[],t,r)}n.forEach(i)}function cs(n){let{treeData:t,expandedKeys:r,startKey:e,endKey:o,fieldNames:i}=n;const c=[];let a=Hr;if(e&&e===o)return[e];if(!e||!o)return[];function l(d){return d===e||d===o}return Xn(t,d=>{if(a===_r)return!1;if(l(d)){if(c.push(d),a===Hr)a=mn;else if(a===mn)return a=_r,!1}else a===mn&&c.push(d);return r.includes(d)},It(i)),c}function hn(n,t,r){const e=se(t),o=[];return Xn(n,(i,c)=>{const a=e.indexOf(i);return a!==-1&&(o.push(c),e.splice(a,1)),!!e.length},It(r)),o}var zr=function(n,t){var r={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(r[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(n);o{var{defaultExpandAll:r,defaultExpandParent:e,defaultExpandedKeys:o}=n,i=zr(n,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=s.useRef(),a=s.useRef(),l=()=>{const{keyEntities:I}=Hn(Fr(i));let E;return r?E=Object.keys(I):e?E=Sn(i.expandedKeys||o||[],I):E=i.expandedKeys||o||[],E},[d,f]=s.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[u,p]=s.useState(()=>l());s.useEffect(()=>{"selectedKeys"in i&&f(i.selectedKeys)},[i.selectedKeys]),s.useEffect(()=>{"expandedKeys"in i&&p(i.expandedKeys)},[i.expandedKeys]);const v=(I,E)=>{var R;return"expandedKeys"in i||p(I),(R=i.onExpand)===null||R===void 0?void 0:R.call(i,I,E)},g=(I,E)=>{var R;const{multiple:P,fieldNames:K}=i,{node:T,nativeEvent:w}=E,{key:M=""}=T,D=Fr(i),O=Object.assign(Object.assign({},E),{selected:!0}),B=(w==null?void 0:w.ctrlKey)||(w==null?void 0:w.metaKey),L=w==null?void 0:w.shiftKey;let _;P&&B?(_=I,c.current=M,a.current=_,O.selectedNodes=hn(D,_,K)):P&&L?(_=Array.from(new Set([].concat(se(a.current||[]),se(cs({treeData:D,expandedKeys:u,startKey:M,endKey:c.current,fieldNames:K}))))),O.selectedNodes=hn(D,_,K)):(_=[M],c.current=M,a.current=_,O.selectedNodes=hn(D,_,K)),(R=i.onSelect)===null||R===void 0||R.call(i,_,O),"selectedKeys"in i||f(_)},{getPrefixCls:h,direction:m}=s.useContext(Ct),{prefixCls:y,className:x,showIcon:b=!0,expandAction:S="click"}=i,C=zr(i,["prefixCls","className","showIcon","expandAction"]),$=h("tree",y),N=Y(`${$}-directory`,{[`${$}-directory-rtl`]:m==="rtl"},x);return s.createElement(Mo,Object.assign({icon:us,ref:t,blockNode:!0},C,{showIcon:b,expandAction:S,prefixCls:$,className:N,expandedKeys:u,selectedKeys:d,onSelect:g,onExpand:v}))},ps=s.forwardRef(fs),Un=Mo;Un.DirectoryTree=ps;Un.TreeNode=Ot;function Ar(n){let{value:t,onChange:r,filterSearch:e,tablePrefixCls:o,locale:i}=n;return e?s.createElement("div",{className:`${o}-filter-dropdown-search`},s.createElement(Oa,{prefix:s.createElement(Ia,null),placeholder:i.filterSearchPlaceholder,onChange:r,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const vs=n=>{const{keyCode:t}=n;t===ft.ENTER&&n.stopPropagation()},gs=s.forwardRef((n,t)=>s.createElement("div",{className:n.className,onClick:r=>r.stopPropagation(),onKeyDown:vs,ref:t},n.children));function Nt(n){let t=[];return(n||[]).forEach(r=>{let{value:e,children:o}=r;t.push(e),o&&(t=[].concat(se(t),se(Nt(o))))}),t}function ms(n){return n.some(t=>{let{children:r}=t;return r})}function Bo(n,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(n.trim().toLowerCase()):!1}function Lo(n){let{filters:t,prefixCls:r,filteredKeys:e,filterMultiple:o,searchValue:i,filterSearch:c}=n;return t.map((a,l)=>{const d=String(a.value);if(a.children)return{key:d||l,label:a.text,popupClassName:`${r}-dropdown-submenu`,children:Lo({filters:a.children,prefixCls:r,filteredKeys:e,filterMultiple:o,searchValue:i,filterSearch:c})};const f=o?en:jt,u={key:a.value!==void 0?d:l,label:s.createElement(s.Fragment,null,s.createElement(f,{checked:e.includes(d)}),s.createElement("span",null,a.text))};return i.trim()?typeof c=="function"?c(i,a)?u:null:Bo(i,a.text)?u:null:u})}function yn(n){return n||[]}function hs(n){var t,r;const{tablePrefixCls:e,prefixCls:o,column:i,dropdownPrefixCls:c,columnKey:a,filterOnClose:l,filterMultiple:d,filterMode:f="menu",filterSearch:u=!1,filterState:p,triggerFilter:v,locale:g,children:h,getPopupContainer:m,rootClassName:y}=n,{filterDropdownOpen:x,onFilterDropdownOpenChange:b,filterResetToDefaultFilteredValue:S,defaultFilteredValue:C,filterDropdownVisible:$,onFilterDropdownVisibleChange:N}=i,[I,E]=s.useState(!1),R=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),P=H=>{E(H),b==null||b(H),N==null||N(H)},K=(r=x??$)!==null&&r!==void 0?r:I,T=p==null?void 0:p.filteredKeys,[w,M]=wi(yn(T)),D=H=>{let{selectedKeys:Z}=H;M(Z)},O=(H,Z)=>{let{node:ve,checked:ne}=Z;D(d?{selectedKeys:H}:{selectedKeys:ne&&ve.key?[ve.key]:[]})};s.useEffect(()=>{I&&D({selectedKeys:yn(T)})},[T]);const[B,L]=s.useState([]),_=H=>{L(H)},[V,re]=s.useState(""),J=H=>{const{value:Z}=H.target;re(Z)};s.useEffect(()=>{I||re("")},[I]);const Ee=H=>{const Z=H&&H.length?H:null;if(Z===null&&(!p||!p.filteredKeys)||At(Z,p==null?void 0:p.filteredKeys,!0))return null;v({column:i,key:a,filteredKeys:Z})},pe=()=>{P(!1),Ee(w())},$e=function(){let{confirm:H,closeDropdown:Z}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};H&&Ee([]),Z&&P(!1),re(""),M(S?(C||[]).map(ve=>String(ve)):[])},ee=function(){let{closeDropdown:H}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};H&&P(!1),Ee(w())},ue=(H,Z)=>{Z.source==="trigger"&&(H&&T!==void 0&&M(yn(T)),P(H),!H&&!i.filterDropdown&&l&&pe())},te=Y({[`${c}-menu-without-submenu`]:!ms(i.filters||[])}),ie=H=>{if(H.target.checked){const Z=Nt(i==null?void 0:i.filters).map(ve=>String(ve));M(Z)}else M([])},Q=H=>{let{filters:Z}=H;return(Z||[]).map((ve,ne)=>{const ge=String(ve.value),Se={title:ve.text,key:ve.value!==void 0?ge:String(ne)};return ve.children&&(Se.children=Q({filters:ve.children})),Se})},U=H=>{var Z;return Object.assign(Object.assign({},H),{text:H.title,value:H.key,children:((Z=H.children)===null||Z===void 0?void 0:Z.map(ve=>U(ve)))||[]})};let W;if(typeof i.filterDropdown=="function")W=i.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:H=>D({selectedKeys:H}),selectedKeys:w(),confirm:ee,clearFilters:$e,filters:i.filters,visible:K,close:()=>{P(!1)}});else if(i.filterDropdown)W=i.filterDropdown;else{const H=w()||[],Z=()=>{const ne=s.createElement(xr,{image:xr.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((i.filters||[]).length===0)return ne;if(f==="tree")return s.createElement(s.Fragment,null,s.createElement(Ar,{filterSearch:u,value:V,onChange:J,tablePrefixCls:e,locale:g}),s.createElement("div",{className:`${e}-filter-dropdown-tree`},d?s.createElement(en,{checked:H.length===Nt(i.filters).length,indeterminate:H.length>0&&H.lengthtypeof u=="function"?u(V,U(X)):Bo(V,X.title):void 0})));const ge=Lo({filters:i.filters||[],filterSearch:u,prefixCls:o,filteredKeys:w(),filterMultiple:d,searchValue:V}),Se=ge.every(X=>X===null);return s.createElement(s.Fragment,null,s.createElement(Ar,{filterSearch:u,value:V,onChange:J,tablePrefixCls:e,locale:g}),Se?ne:s.createElement(ma,{selectable:!0,multiple:d,prefixCls:`${c}-menu`,className:te,onSelect:D,onDeselect:D,selectedKeys:H,getPopupContainer:m,openKeys:B,onOpenChange:_,items:ge}))},ve=()=>S?At((C||[]).map(ne=>String(ne)),H,!0):H.length===0;W=s.createElement(s.Fragment,null,Z(),s.createElement("div",{className:`${o}-dropdown-btns`},s.createElement(hr,{type:"link",size:"small",disabled:ve(),onClick:()=>$e()},g.filterReset),s.createElement(hr,{type:"primary",size:"small",onClick:pe},g.filterConfirm)))}i.filterDropdown&&(W=s.createElement(ha,{selectable:void 0},W));const A=()=>s.createElement(gs,{className:`${o}-dropdown`},W);let q;typeof i.filterIcon=="function"?q=i.filterIcon(R):i.filterIcon?q=i.filterIcon:q=s.createElement(Si,null);const{direction:ae}=s.useContext(Ct);return s.createElement("div",{className:`${o}-column`},s.createElement("span",{className:`${e}-column-title`},h),s.createElement(ao,{dropdownRender:A,trigger:["click"],open:K,onOpenChange:ue,getPopupContainer:m,placement:ae==="rtl"?"bottomLeft":"bottomRight",rootClassName:y},s.createElement("span",{role:"button",tabIndex:-1,className:Y(`${o}-trigger`,{active:R}),onClick:H=>{H.stopPropagation()}},q)))}function Nn(n,t,r){let e=[];return(n||[]).forEach((o,i)=>{var c;const a=qt(i,r);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let l=o.filteredValue;"filterDropdown"in o||(l=(c=l==null?void 0:l.map(String))!==null&&c!==void 0?c:l),e.push({column:o,key:bt(o,a),filteredKeys:l,forceFiltered:o.filtered})}else e.push({column:o,key:bt(o,a),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(e=[].concat(se(e),se(Nn(o.children,t,a))))}),e}function Ho(n,t,r,e,o,i,c,a,l){return r.map((d,f)=>{const u=qt(f,a),{filterOnClose:p=!0,filterMultiple:v=!0,filterMode:g,filterSearch:h}=d;let m=d;if(m.filters||m.filterDropdown){const y=bt(m,u),x=e.find(b=>{let{key:S}=b;return y===S});m=Object.assign(Object.assign({},m),{title:b=>s.createElement(hs,{tablePrefixCls:n,prefixCls:`${n}-filter`,dropdownPrefixCls:t,column:m,columnKey:y,filterState:x,filterOnClose:p,filterMultiple:v,filterMode:g,filterSearch:h,triggerFilter:i,locale:o,getPopupContainer:c,rootClassName:l},an(d.title,b))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Ho(n,t,m.children,e,o,i,c,u,l)})),m})}function jr(n){const t={};return n.forEach(r=>{let{key:e,filteredKeys:o,column:i}=r;const c=e,{filters:a,filterDropdown:l}=i;if(l)t[c]=o||null;else if(Array.isArray(o)){const d=Nt(a);t[c]=d.filter(f=>o.includes(String(f)))}else t[c]=null}),t}function Rn(n,t,r){return t.reduce((e,o)=>{const{column:{onFilter:i,filters:c},filteredKeys:a}=o;return i&&a&&a.length?e.map(l=>Object.assign({},l)).filter(l=>a.some(d=>{const f=Nt(c),u=f.findIndex(v=>String(v)===String(d)),p=u!==-1?f[u]:d;return l[r]&&(l[r]=Rn(l[r],t,r)),i(p,l)})):e},n)}const _o=n=>n.flatMap(t=>"children"in t?[t].concat(se(_o(t.children||[]))):[t]);function ys(n){let{prefixCls:t,dropdownPrefixCls:r,mergedColumns:e,onFilterChange:o,getPopupContainer:i,locale:c,rootClassName:a}=n;Bn();const l=s.useMemo(()=>_o(e||[]),[e]),[d,f]=s.useState(()=>Nn(l,!0)),u=s.useMemo(()=>{const h=Nn(l,!1);if(h.length===0)return h;let m=!0;if(h.forEach(y=>{let{filteredKeys:x}=y;x!==void 0&&(m=!1)}),m){const y=(l||[]).map((x,b)=>bt(x,qt(b)));return d.filter(x=>{let{key:b}=x;return y.includes(b)}).map(x=>{const b=l[y.findIndex(S=>S===x.key)];return Object.assign(Object.assign({},x),{column:Object.assign(Object.assign({},x.column),b),forceFiltered:b.filtered})})}return h},[l,d]),p=s.useMemo(()=>jr(u),[u]),v=h=>{const m=u.filter(y=>{let{key:x}=y;return x!==h.key});m.push(h),f(m),o(jr(m),m)};return[h=>Ho(t,r,h,u,c,v,i,void 0,a),u,p]}function bs(n,t,r){const e=s.useRef({});function o(i){if(!e.current||e.current.data!==n||e.current.childrenColumnName!==t||e.current.getRowKey!==r){let a=function(l){l.forEach((d,f)=>{const u=r(d,f);c.set(u,d),d&&typeof d=="object"&&t in d&&a(d[t]||[])})};const c=new Map;a(n),e.current={data:n,childrenColumnName:t,kvMap:c,getRowKey:r}}return e.current.kvMap.get(i)}return[o]}var xs=function(n,t){var r={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(r[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(n);o{const i=n[o];typeof i!="function"&&(r[o]=i)}),r}function Ss(n,t,r){const e=r&&typeof r=="object"?r:{},{total:o=0}=e,i=xs(e,["total"]),[c,a]=s.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:zo})),l=Ra(c,i,{total:o>0?o:n}),d=Math.ceil((o||n)/l.pageSize);l.current>d&&(l.current=d||1);const f=(p,v)=>{a({current:p??1,pageSize:v||l.pageSize})},u=(p,v)=>{var g;r&&((g=r.onChange)===null||g===void 0||g.call(r,p,v)),f(p,v),t(p,v||(l==null?void 0:l.pageSize))};return r===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:u}),f]}var ws={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Es=function(t,r){return s.createElement(rt,de({},t,{ref:r,icon:ws}))},$s=s.forwardRef(Es),ks={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Ns=function(t,r){return s.createElement(rt,de({},t,{ref:r,icon:ks}))},Rs=s.forwardRef(Ns);const Qt="ascend",bn="descend";function nn(n){return typeof n.sorter=="object"&&typeof n.sorter.multiple=="number"?n.sorter.multiple:!1}function Wr(n){return typeof n=="function"?n:n&&typeof n=="object"&&n.compare?n.compare:!1}function Ks(n,t){return t?n[n.indexOf(t)+1]:n[0]}function Kn(n,t,r){let e=[];function o(i,c){e.push({column:i,key:bt(i,c),multiplePriority:nn(i),sortOrder:i.sortOrder})}return(n||[]).forEach((i,c)=>{const a=qt(c,r);i.children?("sortOrder"in i&&o(i,a),e=[].concat(se(e),se(Kn(i.children,t,a)))):i.sorter&&("sortOrder"in i?o(i,a):t&&i.defaultSortOrder&&e.push({column:i,key:bt(i,a),multiplePriority:nn(i),sortOrder:i.defaultSortOrder}))}),e}function Fo(n,t,r,e,o,i,c,a){return(t||[]).map((l,d)=>{const f=qt(d,a);let u=l;if(u.sorter){const p=u.sortDirections||o,v=u.showSorterTooltip===void 0?c:u.showSorterTooltip,g=bt(u,f),h=r.find(I=>{let{key:E}=I;return E===g}),m=h?h.sortOrder:null,y=Ks(p,m);let x;if(l.sortIcon)x=l.sortIcon({sortOrder:m});else{const I=p.includes(Qt)&&s.createElement(Rs,{className:Y(`${n}-column-sorter-up`,{active:m===Qt})}),E=p.includes(bn)&&s.createElement($s,{className:Y(`${n}-column-sorter-down`,{active:m===bn})});x=s.createElement("span",{className:Y(`${n}-column-sorter`,{[`${n}-column-sorter-full`]:!!(I&&E)})},s.createElement("span",{className:`${n}-column-sorter-inner`,"aria-hidden":"true"},I,E))}const{cancelSort:b,triggerAsc:S,triggerDesc:C}=i||{};let $=b;y===bn?$=C:y===Qt&&($=S);const N=typeof v=="object"?Object.assign({title:$},v):{title:$};u=Object.assign(Object.assign({},u),{className:Y(u.className,{[`${n}-column-sort`]:m}),title:I=>{const E=`${n}-column-sorters`,R=s.createElement("span",{className:`${n}-column-title`},an(l.title,I)),P=s.createElement("div",{className:E},R,x);return v?typeof v!="boolean"&&(v==null?void 0:v.target)==="sorter-icon"?s.createElement("div",{className:`${E} ${n}-column-sorters-tooltip-target-sorter`},R,s.createElement(yr,Object.assign({},N),x)):s.createElement(yr,Object.assign({},N),P):P},onHeaderCell:I=>{const E=l.onHeaderCell&&l.onHeaderCell(I)||{},R=E.onClick,P=E.onKeyDown;E.onClick=w=>{e({column:l,key:g,sortOrder:y,multiplePriority:nn(l)}),R==null||R(w)},E.onKeyDown=w=>{w.keyCode===ft.ENTER&&(e({column:l,key:g,sortOrder:y,multiplePriority:nn(l)}),P==null||P(w))};const K=bi(l.title,{}),T=K==null?void 0:K.toString();return m?E["aria-sort"]=m==="ascend"?"ascending":"descending":E["aria-label"]=T||"",E.className=Y(E.className,`${n}-column-has-sorters`),E.tabIndex=0,l.ellipsis&&(E.title=(K??"").toString()),E}})}return"children"in u&&(u=Object.assign(Object.assign({},u),{children:Fo(n,u.children,r,e,o,i,c,f)})),u})}const Vr=n=>{const{column:t,sortOrder:r}=n;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}},qr=n=>{const t=n.filter(r=>{let{sortOrder:e}=r;return e}).map(Vr);if(t.length===0&&n.length){const r=n.length-1;return Object.assign(Object.assign({},Vr(n[r])),{column:void 0})}return t.length<=1?t[0]||{}:t};function In(n,t,r){const e=t.slice().sort((c,a)=>a.multiplePriority-c.multiplePriority),o=n.slice(),i=e.filter(c=>{let{column:{sorter:a},sortOrder:l}=c;return Wr(a)&&l});return i.length?o.sort((c,a)=>{for(let l=0;l{const a=c[r];return a?Object.assign(Object.assign({},c),{[r]:In(a,t,r)}):c}):o}function Is(n){let{prefixCls:t,mergedColumns:r,onSorterChange:e,sortDirections:o,tableLocale:i,showSorterTooltip:c}=n;const[a,l]=s.useState(Kn(r,!0)),d=s.useMemo(()=>{let g=!0;const h=Kn(r,!1);if(!h.length)return a;const m=[];function y(b){g?m.push(b):m.push(Object.assign(Object.assign({},b),{sortOrder:null}))}let x=null;return h.forEach(b=>{x===null?(y(b),b.sortOrder&&(b.multiplePriority===!1?g=!1:x=!0)):(x&&b.multiplePriority!==!1||(g=!1),y(b))}),m},[r,a]),f=s.useMemo(()=>{const g=d.map(h=>{let{column:m,sortOrder:y}=h;return{column:m,order:y}});return{sortColumns:g,sortColumn:g[0]&&g[0].column,sortOrder:g[0]&&g[0].order}},[d]),u=g=>{let h;g.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?h=[g]:h=[].concat(se(d.filter(m=>{let{key:y}=m;return y!==g.key})),[g]),l(h),e(qr(h),h)};return[g=>Fo(t,g,d,u,o,i,c),d,f,()=>qr(d)]}function Ao(n,t){return n.map(r=>{const e=Object.assign({},r);return e.title=an(r.title,t),"children"in e&&(e.children=Ao(e.children,t)),e})}function Os(n){return[s.useCallback(r=>Ao(r,n),[n])]}const Ps=ko((n,t)=>{const{_renderTimes:r}=n,{_renderTimes:e}=t;return r!==e}),Ts=Ro((n,t)=>{const{_renderTimes:r}=n,{_renderTimes:e}=t;return r!==e}),Ds=n=>{const{componentCls:t,lineWidth:r,lineType:e,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:c,tablePaddingHorizontal:a,calc:l}=n,d=`${j(r)} ${e} ${o}`,f=(u,p,v)=>({[`&${t}-${u}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${j(l(p).mul(-1).equal())} ${j(l(l(v).add(r)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:d,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:d,borderTop:d,[` > ${t}-content, diff --git a/public/assets/Tagged-DMRglDWE.js b/public/assets/Tagged-BpaY0RYJ.js similarity index 87% rename from public/assets/Tagged-DMRglDWE.js rename to public/assets/Tagged-BpaY0RYJ.js index d2b26ad..1019937 100644 --- a/public/assets/Tagged-DMRglDWE.js +++ b/public/assets/Tagged-BpaY0RYJ.js @@ -1 +1 @@ -import{r as v,aA as s,aB as j}from"./index--trdnQFa.js";import{a7 as M,a8 as R,H as L,E as O,u as D,d as F,g as w,t as T,b as k,j as $,i as E,a9 as U,f as J,T as P,B as H,o as K,c as z,k as V}from"./MyApp-BHr373cy.js";import g from"./MyTable-BTHATUSD.js";import{E as q}from"./ExportButton-C-PwJSin.js";import{I as W}from"./index-CB9InVBI.js";import"./index-X7jfXLlB.js";import"./Table-GiCOcILW.js";import"./index-VHrAsB-Q.js";import"./addEventListener-KkFh1sjE.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";import"./index-DmA8T0X5.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./Pagination-CPGTHysj.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./row-DQoT4CfJ.js";import"./file-download-DYjmaN3D.js";async function A(i,o=""){var p;const h=await M(R.EAAB),a=await L(`https://graph.facebook.com/v12.0/${i}/tagged?fields=from,id,message,created_time`+(o?`&after=${o}`:"")+`&access_token=${h}`),t=O(a);return console.log(t),((p=t==null?void 0:t.data)==null?void 0:p.map(c=>{var r,x,y,u;return{id:c.id,message:c.message,created_time:c.created_time,from:{id:(r=c.from)==null?void 0:r.id,name:(x=c.from)==null?void 0:x.name},cursor:(u=(y=t==null?void 0:t.paging)==null?void 0:y.cursors)==null?void 0:u.after}}))||[]}async function X(i){const o=".",h=btoa(JSON.stringify({"rp_author:0":JSON.stringify({name:"author",args:i}),"recent_posts:0":JSON.stringify({name:"recent_posts",args:""})})),a=`https://www.facebook.com/search/posts/?q=${encodeURI(o)}&filters=${encodeURI(h)}`;window.open(a,"_blank")}function jn({target:i}){const{ti:o}=D(),{message:h}=F(),[a,t]=w("Tagged."+(i==null?void 0:i.id),[]),[p,c]=w("Tagged.loading."+(i==null?void 0:i.id),!1),[r,x]=w("Tagged.loadMore."+(i==null?void 0:i.id),!1),[y,u]=v.useState(!0);v.useEffect(()=>{N()},[i==null?void 0:i.id]);const b=v.useRef(i==null?void 0:i.id),N=(e=!1)=>{if(!(i!=null&&i.id)||p)return;const n=b.current!==(i==null?void 0:i.id);!e&&a.length&&!n||(b.current=i==null?void 0:i.id,T("Tagged:onClickReload"),c(!0),A(i.id).then(l=>{console.log(l),t(l),u(!0)}).finally(()=>c(!1)))},S=async()=>{var e;!(i!=null&&i.id)||r||await V()&&(T("Tagged:onClickLoadMore"),x(!0),A(i.id,(e=a[a.length-1])==null?void 0:e.cursor).then(n=>{const l=new Set(a.map(d=>d.id)),m=n.filter(d=>!l.has(d.id));m.length?(t(d=>[...d,...m]),u(!0)):(h.info(o({en:"No more data",vi:"Không còn dữ liệu"})),u(!1))}).finally(()=>x(!1)))},_=()=>s.jsxs(k,{children:[s.jsxs(k.Compact,{children:[s.jsx(j,{type:"primary",icon:s.jsx("i",{className:"fa-solid fa-rotate-right"}),loading:p,disabled:r,onClick:()=>N(!0),children:o({en:"Reload",vi:"Tải lại"})}),s.jsx(j,{icon:s.jsx("i",{className:"fa-solid fa-play"}),loading:r,disabled:!y||p,onClick:S,children:o(y?{en:"Load more",vi:"Tải thêm"}:{en:"No more data",vi:"Không còn dữ liệu"})})]}),s.jsx(q,{data:a,options:[{key:"json",label:".json",prepareData:e=>({fileName:(i==null?void 0:i.name)+"_tagged.json",data:JSON.stringify(e,null,4)})},{key:"csv",label:".csv",prepareData:e=>({fileName:(i==null?void 0:i.name)+"_tagged.csv",data:K(e.map(n=>{var l,m;return{...n,from:(l=n.from)==null?void 0:l.id,fromName:(m=n.from)==null?void 0:m.name}}))})}]}),s.jsx(z,{color:"red",children:(a==null?void 0:a.length)+" "+o({en:"Tagged",vi:"Lượt tag"})})]}),B=[{title:"#",key:"index",dataIndex:"index"},{title:o({en:"Owner",vi:"Người tag"}),key:"from",dataIndex:"from",render:(e,n,l)=>{var m,d,f,C,I;return(m=n==null?void 0:n.from)!=null&&m.id?s.jsxs(k,{children:[s.jsx(W,{src:$((d=n==null?void 0:n.from)==null?void 0:d.id),style:{width:45,height:45,borderRadius:5}}),s.jsxs(k,{direction:"vertical",size:0,children:[s.jsx("a",{href:E((f=n==null?void 0:n.from)==null?void 0:f.id),target:"_blank",rel:"noreferrer",children:s.jsx("b",{children:(C=n==null?void 0:n.from)==null?void 0:C.name})}),s.jsx("span",{style:{opacity:.5},children:(I=n==null?void 0:n.from)==null?void 0:I.id})]})]}):o({en:"Anonymous",vi:"Ẩn danh"})},filters:Array.from(new Set(a==null?void 0:a.map(e=>{var n;return(n=e.from)==null?void 0:n.id}))).map(e=>{var l,m;const n=a.filter(d=>{var f;return((f=d.from)==null?void 0:f.id)===e});return{value:e||"",text:(((m=(l=n==null?void 0:n[0])==null?void 0:l.from)==null?void 0:m.name)||o({en:"Anonymous",vi:"Ẩn danh"}))+` (${n==null?void 0:n.length})`,count:n==null?void 0:n.length}}).sort((e,n)=>n.count-e.count),onFilter:(e,n)=>{var l;return((l=n.from)==null?void 0:l.id)==e},width:300},{title:o({en:"Content",vi:"Nội dung"}),key:"message",dataIndex:"message",render:(e,n,l)=>{var m,d,f;return s.jsx("div",{style:{wordBreak:"break-word",maxWidth:400},children:((f=((m=n==null?void 0:n.message)==null?void 0:m.length)>200?((d=n==null?void 0:n.message)==null?void 0:d.substring(0,200))+"...":n==null?void 0:n.message)==null?void 0:f.replace(i==null?void 0:i.name,""))||(i==null?void 0:i.name)})}},{title:o({en:"Created at",vi:"Thời gian"}),key:"created_time",dataIndex:"created_time",render:(e,n,l)=>s.jsxs("span",{children:[U(new Date(e))," - ",J(new Date(e))]})},{title:o({en:"Action",vi:"Hành động"}),key:"action",dataIndex:"action",render:(e,n,l)=>s.jsx(P,{title:o({en:"View post",vi:"Xem bài viết"}),children:s.jsx(j,{target:"_blank",href:E(n==null?void 0:n.id),icon:s.jsx("i",{className:"fa-solid fa-external-link"})})}),width:100}];return s.jsxs("div",{children:[s.jsx(k,{style:{width:"100%",alignItems:"center",justifyContent:"center",marginBottom:10},direction:"vertical",children:s.jsx(H,{count:o({en:"New",vi:"Mới"}),style:{color:"white"},color:"purple",children:s.jsx(j,{icon:s.jsx("i",{className:"fa-solid fa-search"}),onClick:()=>{T("BulkDownloader:Tagged:FindAllPosts"),X((i==null?void 0:i.id)||"")},children:o({en:"Find all posts of ",vi:"Tìm mọi bài viết của "})+(i==null?void 0:i.name)+"?"})})}),s.jsx(g,{data:a.map((e,n)=>({...e,index:n+1})),columns:B,searchable:!0,keyExtractor:e=>e==null?void 0:e.id,size:"small",renderTitle:_})]})}export{jn as default}; +import{r as v,aA as s,aB as j}from"./index-BBriuzNA.js";import{a7 as M,a8 as R,H as L,E as O,u as D,d as F,g as w,t as T,b as k,j as $,i as E,a9 as U,f as J,T as P,B as H,o as K,c as z,k as V}from"./MyApp-CmkiOnMb.js";import g from"./MyTable-C-6hHnGo.js";import{E as q}from"./ExportButton-DABx3myg.js";import{I as W}from"./index-Dm20K0UU.js";import"./index-NjHtWr7u.js";import"./Table-By6CV266.js";import"./index-Bumumc8Y.js";import"./addEventListener-w7NT04KM.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-tTPNrueW.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./Pagination-slfcHA-i.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./row-C0Wk6t4-.js";import"./file-download-Dys_FsHc.js";async function A(i,o=""){var p;const h=await M(R.EAAB),a=await L(`https://graph.facebook.com/v12.0/${i}/tagged?fields=from,id,message,created_time`+(o?`&after=${o}`:"")+`&access_token=${h}`),t=O(a);return console.log(t),((p=t==null?void 0:t.data)==null?void 0:p.map(c=>{var r,x,y,u;return{id:c.id,message:c.message,created_time:c.created_time,from:{id:(r=c.from)==null?void 0:r.id,name:(x=c.from)==null?void 0:x.name},cursor:(u=(y=t==null?void 0:t.paging)==null?void 0:y.cursors)==null?void 0:u.after}}))||[]}async function X(i){const o=".",h=btoa(JSON.stringify({"rp_author:0":JSON.stringify({name:"author",args:i}),"recent_posts:0":JSON.stringify({name:"recent_posts",args:""})})),a=`https://www.facebook.com/search/posts/?q=${encodeURI(o)}&filters=${encodeURI(h)}`;window.open(a,"_blank")}function jn({target:i}){const{ti:o}=D(),{message:h}=F(),[a,t]=w("Tagged."+(i==null?void 0:i.id),[]),[p,c]=w("Tagged.loading."+(i==null?void 0:i.id),!1),[r,x]=w("Tagged.loadMore."+(i==null?void 0:i.id),!1),[y,u]=v.useState(!0);v.useEffect(()=>{N()},[i==null?void 0:i.id]);const b=v.useRef(i==null?void 0:i.id),N=(e=!1)=>{if(!(i!=null&&i.id)||p)return;const n=b.current!==(i==null?void 0:i.id);!e&&a.length&&!n||(b.current=i==null?void 0:i.id,T("Tagged:onClickReload"),c(!0),A(i.id).then(l=>{console.log(l),t(l),u(!0)}).finally(()=>c(!1)))},S=async()=>{var e;!(i!=null&&i.id)||r||await V()&&(T("Tagged:onClickLoadMore"),x(!0),A(i.id,(e=a[a.length-1])==null?void 0:e.cursor).then(n=>{const l=new Set(a.map(d=>d.id)),m=n.filter(d=>!l.has(d.id));m.length?(t(d=>[...d,...m]),u(!0)):(h.info(o({en:"No more data",vi:"Không còn dữ liệu"})),u(!1))}).finally(()=>x(!1)))},_=()=>s.jsxs(k,{children:[s.jsxs(k.Compact,{children:[s.jsx(j,{type:"primary",icon:s.jsx("i",{className:"fa-solid fa-rotate-right"}),loading:p,disabled:r,onClick:()=>N(!0),children:o({en:"Reload",vi:"Tải lại"})}),s.jsx(j,{icon:s.jsx("i",{className:"fa-solid fa-play"}),loading:r,disabled:!y||p,onClick:S,children:o(y?{en:"Load more",vi:"Tải thêm"}:{en:"No more data",vi:"Không còn dữ liệu"})})]}),s.jsx(q,{data:a,options:[{key:"json",label:".json",prepareData:e=>({fileName:(i==null?void 0:i.name)+"_tagged.json",data:JSON.stringify(e,null,4)})},{key:"csv",label:".csv",prepareData:e=>({fileName:(i==null?void 0:i.name)+"_tagged.csv",data:K(e.map(n=>{var l,m;return{...n,from:(l=n.from)==null?void 0:l.id,fromName:(m=n.from)==null?void 0:m.name}}))})}]}),s.jsx(z,{color:"red",children:(a==null?void 0:a.length)+" "+o({en:"Tagged",vi:"Lượt tag"})})]}),B=[{title:"#",key:"index",dataIndex:"index"},{title:o({en:"Owner",vi:"Người tag"}),key:"from",dataIndex:"from",render:(e,n,l)=>{var m,d,f,C,I;return(m=n==null?void 0:n.from)!=null&&m.id?s.jsxs(k,{children:[s.jsx(W,{src:$((d=n==null?void 0:n.from)==null?void 0:d.id),style:{width:45,height:45,borderRadius:5}}),s.jsxs(k,{direction:"vertical",size:0,children:[s.jsx("a",{href:E((f=n==null?void 0:n.from)==null?void 0:f.id),target:"_blank",rel:"noreferrer",children:s.jsx("b",{children:(C=n==null?void 0:n.from)==null?void 0:C.name})}),s.jsx("span",{style:{opacity:.5},children:(I=n==null?void 0:n.from)==null?void 0:I.id})]})]}):o({en:"Anonymous",vi:"Ẩn danh"})},filters:Array.from(new Set(a==null?void 0:a.map(e=>{var n;return(n=e.from)==null?void 0:n.id}))).map(e=>{var l,m;const n=a.filter(d=>{var f;return((f=d.from)==null?void 0:f.id)===e});return{value:e||"",text:(((m=(l=n==null?void 0:n[0])==null?void 0:l.from)==null?void 0:m.name)||o({en:"Anonymous",vi:"Ẩn danh"}))+` (${n==null?void 0:n.length})`,count:n==null?void 0:n.length}}).sort((e,n)=>n.count-e.count),onFilter:(e,n)=>{var l;return((l=n.from)==null?void 0:l.id)==e},width:300},{title:o({en:"Content",vi:"Nội dung"}),key:"message",dataIndex:"message",render:(e,n,l)=>{var m,d,f;return s.jsx("div",{style:{wordBreak:"break-word",maxWidth:400},children:((f=((m=n==null?void 0:n.message)==null?void 0:m.length)>200?((d=n==null?void 0:n.message)==null?void 0:d.substring(0,200))+"...":n==null?void 0:n.message)==null?void 0:f.replace(i==null?void 0:i.name,""))||(i==null?void 0:i.name)})}},{title:o({en:"Created at",vi:"Thời gian"}),key:"created_time",dataIndex:"created_time",render:(e,n,l)=>s.jsxs("span",{children:[U(new Date(e))," - ",J(new Date(e))]})},{title:o({en:"Action",vi:"Hành động"}),key:"action",dataIndex:"action",render:(e,n,l)=>s.jsx(P,{title:o({en:"View post",vi:"Xem bài viết"}),children:s.jsx(j,{target:"_blank",href:E(n==null?void 0:n.id),icon:s.jsx("i",{className:"fa-solid fa-external-link"})})}),width:100}];return s.jsxs("div",{children:[s.jsx(k,{style:{width:"100%",alignItems:"center",justifyContent:"center",marginBottom:10},direction:"vertical",children:s.jsx(H,{count:o({en:"New",vi:"Mới"}),style:{color:"white"},color:"purple",children:s.jsx(j,{icon:s.jsx("i",{className:"fa-solid fa-search"}),onClick:()=>{T("BulkDownloader:Tagged:FindAllPosts"),X((i==null?void 0:i.id)||"")},children:o({en:"Find all posts of ",vi:"Tìm mọi bài viết của "})+(i==null?void 0:i.name)+"?"})})}),s.jsx(g,{data:a.map((e,n)=>({...e,index:n+1})),columns:B,searchable:!0,keyExtractor:e=>e==null?void 0:e.id,size:"small",renderTitle:_})]})}export{jn as default}; diff --git a/public/assets/ThreadsPosts-CCOkjPqs.js b/public/assets/ThreadsPosts-DTNKUpAv.js similarity index 87% rename from public/assets/ThreadsPosts-CCOkjPqs.js rename to public/assets/ThreadsPosts-DTNKUpAv.js index 660179e..4aacfb3 100644 --- a/public/assets/ThreadsPosts-CCOkjPqs.js +++ b/public/assets/ThreadsPosts-DTNKUpAv.js @@ -1 +1 @@ -import{r as w,aA as s,aB as U}from"./index--trdnQFa.js";import{E as q,G as V,u as H,B as A,b as L,au as g,a9 as K,ad as O}from"./MyApp-BHr373cy.js";import{c as W,g as I,d as z}from"./index-CSZp6KTZ.js";import{i as D}from"./icons-BAGZq2AS.js";import{C as X}from"./Collection-CPPE61tF.js";import{V as Y}from"./VideoWithMuted-xvYRNY0l.js";import{S as G}from"./index-CETJ8txP.js";import{L as R}from"./index-BJNnFmyH.js";import{I as J}from"./index-CB9InVBI.js";import"./videos-CpxHGGu6.js";import"./index-DTxLlwd8.js";import"./responsiveObserver-DiDk9dGL.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";import"./index-VHrAsB-Q.js";import"./PurePanel-CSR2tSBX.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-DYW0YRm8.js";import"./Dropdown-DUpNeMO8.js";import"./index-fivsYW1W.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./index-DmA8T0X5.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";function Z(a,t){var m,f,d,j,r,_,c,l,u,i,p,h,y,x,C,T,k,N,P,S;const n=(f=(m=a==null?void 0:a.node)==null?void 0:m.thread_items)==null?void 0:f[0],e=((r=(j=(d=n==null?void 0:n.post)==null?void 0:d.text_post_app_info)==null?void 0:j.share_info)==null?void 0:r.reposted_post)||((l=(c=(_=n==null?void 0:n.post)==null?void 0:_.text_post_app_info)==null?void 0:c.share_info)==null?void 0:l.quoted_post)||(n==null?void 0:n.post);return{id:(u=a==null?void 0:a.node)==null?void 0:u.id,pk:e==null?void 0:e.pk,code:e==null?void 0:e.code,caption:(i=e==null?void 0:e.caption)==null?void 0:i.text,image:I((p=e==null?void 0:e.image_versions2)==null?void 0:p.candidates),video:I(e==null?void 0:e.video_versions),carousel:(h=e==null?void 0:e.carousel_media)==null?void 0:h.map(o=>{var b;return{id:o==null?void 0:o.id,pk:o==null?void 0:o.pk,code:o==null?void 0:o.code,accessibilityCaption:o==null?void 0:o.accessibility_caption,image:I((b=o==null?void 0:o.image_versions2)==null?void 0:b.candidates),video:I(o==null?void 0:o.video_versions),isCarouselItem:!0}}),audio:e==null?void 0:e.audio,createdTime:(e==null?void 0:e.taken_at)*1e3,mentions:(T=(C=(x=(y=e==null?void 0:e.text_post_app_info)==null?void 0:y.text_fragments)==null?void 0:x.fragments)==null?void 0:C.filter(o=>(o==null?void 0:o.fragment_type)==="mentrion"))==null?void 0:T.map(o=>{var b,E,F,Q;return{id:(E=(b=o==null?void 0:o.mention_fragment)==null?void 0:b.mentioned_user)==null?void 0:E.id,username:(Q=(F=o==null?void 0:o.mention_fragment)==null?void 0:F.mentioned_user)==null?void 0:Q.username,text:o==null?void 0:o.plaintext}}),likeCount:e==null?void 0:e.like_count,replyCount:(k=e==null?void 0:e.text_post_app_info)==null?void 0:k.direct_reply_count,repostCount:(N=e==null?void 0:e.text_post_app_info)==null?void 0:N.repost_count,quoteCount:(P=e==null?void 0:e.text_post_app_info)==null?void 0:P.quote_count,isGenAI:((S=e==null?void 0:e.gen_ai_detection_method)==null?void 0:S.detection_method)!="NONE",cursor:(a==null?void 0:a.cursor)||(t==null?void 0:t.end_cursor),raw:a}}var v=(a=>(a.Threads="Threads",a.Replies="Replies",a.Reposts="Reposts",a))(v||{});const B={Threads:{first:{name:"BarcelonaProfileThreadsTabQuery",doc_id:"8436285959793247"},withCursor:{name:"BarcelonaProfileThreadsTabRefetchableQuery",doc_id:"8921337961211543"}},Replies:{first:{name:"BarcelonaProfileRepliesTabQuery",doc_id:"8488857591189950"},withCursor:{name:"BarcelonaProfileRepliesTabRefetchableQuery",doc_id:"8562442443831413"}},Reposts:{first:{name:"BarcelonaProfileRepostsTabQuery",doc_id:"8425754140878176"},withCursor:{name:"BarcelonaProfileRepostsTabRefetchableQuery",doc_id:"9365308133484269"}}};async function $(a="",t="",n="Threads"){let e;if(t){const d=await W({fb_api_req_friendly_name:B[n].withCursor.name,variables:{after:t,before:null,first:10,last:null,userID:a,__relay_internal__pv__BarcelonaIsLoggedInrelayprovider:!0,__relay_internal__pv__BarcelonaIsInlineReelsEnabledrelayprovider:!1,__relay_internal__pv__BarcelonaOptionalCookiesEnabledrelayprovider:!0,__relay_internal__pv__BarcelonaShowReshareCountrelayprovider:!1,__relay_internal__pv__BarcelonaQuotedPostUFIEnabledrelayprovider:!1,__relay_internal__pv__BarcelonaIsCrawlerrelayprovider:!1,__relay_internal__pv__BarcelonaShouldShowFediverseM075Featuresrelayprovider:!0},doc_id:B[n].withCursor.doc_id});e=q(d)}else{const d=await W({fb_api_req_friendly_name:B[n].first.name,variables:{userID:a,__relay_internal__pv__BarcelonaIsLoggedInrelayprovider:!0,__relay_internal__pv__BarcelonaIsInlineReelsEnabledrelayprovider:!1,__relay_internal__pv__BarcelonaOptionalCookiesEnabledrelayprovider:!0,__relay_internal__pv__BarcelonaShowReshareCountrelayprovider:!1,__relay_internal__pv__BarcelonaQuotedPostUFIEnabledrelayprovider:!1,__relay_internal__pv__BarcelonaIsCrawlerrelayprovider:!1,__relay_internal__pv__BarcelonaShouldShowFediverseM075Featuresrelayprovider:!0},doc_id:B[n].first.doc_id});e=q(d)}console.log(e);const{edges:m=[],page_info:f={}}=V(e);return m.map(d=>Z(d,f))}const M={[v.Threads]:{en:"📝 Posts",vi:"📝 Posts"},[v.Replies]:{en:"💬 Replies",vi:"💬 Replies"},[v.Reposts]:{en:"🔁 Reposts",vi:"🔁 Reposts"}};function Ne({target:a}){const{ti:t}=H(),[n,e]=w.useState(v.Threads),m=w.useCallback(async(r=[],_)=>{var l;return a!=null&&a.id?await $(a.id,_||((l=r[r.length-1])==null?void 0:l.cursor),n):void 0},[a,n]),f=w.useCallback((r,_)=>s.jsx(A,{count:t({en:"New",vi:"Mới"}),color:"purple",style:{color:"white"},children:s.jsx(G,{disabled:_,value:n,onChange:e,style:{width:"150px"},children:Object.entries(v).map(([c,l])=>s.jsx(G.Option,{value:l,children:t(M[l])},c))})}),[n,t]),d=w.useCallback(r=>{var i,p,h,y;const _=r.image||r.video||((i=r.carousel)==null?void 0:i.length),c="isCarouselItem"in r,l=c?null:s.jsx(U,{type:"default",icon:s.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:z("@"+(a==null?void 0:a.id)+"/post/"+r.code)}),u=c?null:s.jsxs(L,{direction:"vertical",size:0,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",paddingTop:5,paddingLeft:10},children:[s.jsxs("span",{children:[s.jsx("i",{className:"fa fa-thumbs-up"})," ",g(r.likeCount)]}),s.jsxs("span",{children:[s.jsx("i",{className:"fa fa-comment"})," ",g(r.replyCount)]}),s.jsxs("span",{children:[s.jsx("i",{className:"fa fa-retweet"})," ",g(r.repostCount)]}),s.jsxs("span",{children:[s.jsx("i",{className:"fa fa-quote-left"})," ",g(r.quoteCount)]}),s.jsxs("span",{children:[s.jsx("i",{className:"fa fa-clock"})," ",K(new Date(r.createdTime))]})]});return _?s.jsxs(R.Item,{children:[s.jsxs("div",{className:"show-on-hover-trigger",children:[s.jsx(J,{src:r.image,width:250,height:250,style:{objectFit:"cover",borderRadius:10},preview:r.video||(p=r.carousel)!=null&&p.length?{destroyOnClose:!0,imageRender:()=>{var x;return(x=r.carousel)!=null&&x.length?s.jsx(L,{style:{maxWidth:"90vw",maxHeight:"90vh",alignItems:"center",overflowY:"auto",overflowX:"hidden",backgroundColor:"#111",padding:20,borderRadius:10},children:s.jsx(R,{grid:{gutter:10},style:{width:"100%"},dataSource:r.carousel,renderItem:d,rowKey:C=>C.id})}):s.jsx(Y,{src:r.video,style:{maxWidth:"90vw",maxHeight:"90vh"}})},toolbarRender:()=>null}:void 0}),l]}),s.jsx("p",{style:{wordWrap:"break-word",maxWidth:250,padding:5},title:r.caption,children:O(r.caption,80)}),s.jsx("div",{style:{position:"absolute",top:10,right:10,pointerEvents:"none"},children:((h=r.carousel)==null?void 0:h.length)>0?s.jsxs(s.Fragment,{children:[s.jsx("span",{children:(y=r.carousel)==null?void 0:y.length}),D.IGCarousel]}):r.video?D.IGVideo:null}),u]}):s.jsx(R.Item,{children:s.jsxs("div",{className:"show-on-hover-trigger",children:[s.jsx("div",{style:{width:250,height:250,display:"flex",justifyContent:"center",alignItems:"center"},children:s.jsx("p",{style:{wordWrap:"break-word",padding:5},title:r.caption,children:O(r.caption,200)})}),l,u]})})},[]),j=w.useCallback((r,_)=>{var l,u;if(!r.video&&!r.image&&((l=r.carousel)==null?void 0:l.length)===0)return[];function c(i,p=""){const h=!!i.video;return{url:h?i.video:i.image,name:p+i.id+(h?".mp4":".jpg")}}return((u=r.carousel)==null?void 0:u.length)>0?r.carousel.map((i,p)=>c(i,p+"_")):c(r)},[]);return a!=null&&a.username?s.jsx(X,{collectionName:(a==null?void 0:a.username)+" - Threads "+t(M[n]),fetchNext:m,renderItem:d,downloadItem:j,headerButtons:f,getItemCursor:r=>r.cursor||"",rowKey:r=>r.id}):null}export{Ne as default}; +import{r as w,aA as s,aB as U}from"./index-BBriuzNA.js";import{E as q,G as V,u as H,B as A,b as L,au as g,a9 as K,ad as O}from"./MyApp-CmkiOnMb.js";import{c as W,g as I,d as z}from"./index-Cp3vfVbK.js";import{i as D}from"./icons-CG0UnJU2.js";import{C as X}from"./Collection-B9SxfYr4.js";import{V as Y}from"./VideoWithMuted-CdYhYcjW.js";import{S as G}from"./index-CKsES7YN.js";import{L as R}from"./index-B7udrguy.js";import{I as J}from"./index-Dm20K0UU.js";import"./videos-VQJKJ_Wq.js";import"./index-CbmP82sr.js";import"./responsiveObserver-Bb1LONna.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";import"./index-Bumumc8Y.js";import"./PurePanel-yY9muMEs.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-C9vPYMV7.js";import"./Dropdown-DxSI4NN9.js";import"./index-BhyNApA-.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./index-tTPNrueW.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";function Z(a,t){var m,f,d,j,r,_,c,l,u,i,p,h,y,x,C,T,k,N,P,S;const n=(f=(m=a==null?void 0:a.node)==null?void 0:m.thread_items)==null?void 0:f[0],e=((r=(j=(d=n==null?void 0:n.post)==null?void 0:d.text_post_app_info)==null?void 0:j.share_info)==null?void 0:r.reposted_post)||((l=(c=(_=n==null?void 0:n.post)==null?void 0:_.text_post_app_info)==null?void 0:c.share_info)==null?void 0:l.quoted_post)||(n==null?void 0:n.post);return{id:(u=a==null?void 0:a.node)==null?void 0:u.id,pk:e==null?void 0:e.pk,code:e==null?void 0:e.code,caption:(i=e==null?void 0:e.caption)==null?void 0:i.text,image:I((p=e==null?void 0:e.image_versions2)==null?void 0:p.candidates),video:I(e==null?void 0:e.video_versions),carousel:(h=e==null?void 0:e.carousel_media)==null?void 0:h.map(o=>{var b;return{id:o==null?void 0:o.id,pk:o==null?void 0:o.pk,code:o==null?void 0:o.code,accessibilityCaption:o==null?void 0:o.accessibility_caption,image:I((b=o==null?void 0:o.image_versions2)==null?void 0:b.candidates),video:I(o==null?void 0:o.video_versions),isCarouselItem:!0}}),audio:e==null?void 0:e.audio,createdTime:(e==null?void 0:e.taken_at)*1e3,mentions:(T=(C=(x=(y=e==null?void 0:e.text_post_app_info)==null?void 0:y.text_fragments)==null?void 0:x.fragments)==null?void 0:C.filter(o=>(o==null?void 0:o.fragment_type)==="mentrion"))==null?void 0:T.map(o=>{var b,E,F,Q;return{id:(E=(b=o==null?void 0:o.mention_fragment)==null?void 0:b.mentioned_user)==null?void 0:E.id,username:(Q=(F=o==null?void 0:o.mention_fragment)==null?void 0:F.mentioned_user)==null?void 0:Q.username,text:o==null?void 0:o.plaintext}}),likeCount:e==null?void 0:e.like_count,replyCount:(k=e==null?void 0:e.text_post_app_info)==null?void 0:k.direct_reply_count,repostCount:(N=e==null?void 0:e.text_post_app_info)==null?void 0:N.repost_count,quoteCount:(P=e==null?void 0:e.text_post_app_info)==null?void 0:P.quote_count,isGenAI:((S=e==null?void 0:e.gen_ai_detection_method)==null?void 0:S.detection_method)!="NONE",cursor:(a==null?void 0:a.cursor)||(t==null?void 0:t.end_cursor),raw:a}}var v=(a=>(a.Threads="Threads",a.Replies="Replies",a.Reposts="Reposts",a))(v||{});const B={Threads:{first:{name:"BarcelonaProfileThreadsTabQuery",doc_id:"8436285959793247"},withCursor:{name:"BarcelonaProfileThreadsTabRefetchableQuery",doc_id:"8921337961211543"}},Replies:{first:{name:"BarcelonaProfileRepliesTabQuery",doc_id:"8488857591189950"},withCursor:{name:"BarcelonaProfileRepliesTabRefetchableQuery",doc_id:"8562442443831413"}},Reposts:{first:{name:"BarcelonaProfileRepostsTabQuery",doc_id:"8425754140878176"},withCursor:{name:"BarcelonaProfileRepostsTabRefetchableQuery",doc_id:"9365308133484269"}}};async function $(a="",t="",n="Threads"){let e;if(t){const d=await W({fb_api_req_friendly_name:B[n].withCursor.name,variables:{after:t,before:null,first:10,last:null,userID:a,__relay_internal__pv__BarcelonaIsLoggedInrelayprovider:!0,__relay_internal__pv__BarcelonaIsInlineReelsEnabledrelayprovider:!1,__relay_internal__pv__BarcelonaOptionalCookiesEnabledrelayprovider:!0,__relay_internal__pv__BarcelonaShowReshareCountrelayprovider:!1,__relay_internal__pv__BarcelonaQuotedPostUFIEnabledrelayprovider:!1,__relay_internal__pv__BarcelonaIsCrawlerrelayprovider:!1,__relay_internal__pv__BarcelonaShouldShowFediverseM075Featuresrelayprovider:!0},doc_id:B[n].withCursor.doc_id});e=q(d)}else{const d=await W({fb_api_req_friendly_name:B[n].first.name,variables:{userID:a,__relay_internal__pv__BarcelonaIsLoggedInrelayprovider:!0,__relay_internal__pv__BarcelonaIsInlineReelsEnabledrelayprovider:!1,__relay_internal__pv__BarcelonaOptionalCookiesEnabledrelayprovider:!0,__relay_internal__pv__BarcelonaShowReshareCountrelayprovider:!1,__relay_internal__pv__BarcelonaQuotedPostUFIEnabledrelayprovider:!1,__relay_internal__pv__BarcelonaIsCrawlerrelayprovider:!1,__relay_internal__pv__BarcelonaShouldShowFediverseM075Featuresrelayprovider:!0},doc_id:B[n].first.doc_id});e=q(d)}console.log(e);const{edges:m=[],page_info:f={}}=V(e);return m.map(d=>Z(d,f))}const M={[v.Threads]:{en:"📝 Posts",vi:"📝 Posts"},[v.Replies]:{en:"💬 Replies",vi:"💬 Replies"},[v.Reposts]:{en:"🔁 Reposts",vi:"🔁 Reposts"}};function Ne({target:a}){const{ti:t}=H(),[n,e]=w.useState(v.Threads),m=w.useCallback(async(r=[],_)=>{var l;return a!=null&&a.id?await $(a.id,_||((l=r[r.length-1])==null?void 0:l.cursor),n):void 0},[a,n]),f=w.useCallback((r,_)=>s.jsx(A,{count:t({en:"New",vi:"Mới"}),color:"purple",style:{color:"white"},children:s.jsx(G,{disabled:_,value:n,onChange:e,style:{width:"150px"},children:Object.entries(v).map(([c,l])=>s.jsx(G.Option,{value:l,children:t(M[l])},c))})}),[n,t]),d=w.useCallback(r=>{var i,p,h,y;const _=r.image||r.video||((i=r.carousel)==null?void 0:i.length),c="isCarouselItem"in r,l=c?null:s.jsx(U,{type:"default",icon:s.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:z("@"+(a==null?void 0:a.id)+"/post/"+r.code)}),u=c?null:s.jsxs(L,{direction:"vertical",size:0,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",paddingTop:5,paddingLeft:10},children:[s.jsxs("span",{children:[s.jsx("i",{className:"fa fa-thumbs-up"})," ",g(r.likeCount)]}),s.jsxs("span",{children:[s.jsx("i",{className:"fa fa-comment"})," ",g(r.replyCount)]}),s.jsxs("span",{children:[s.jsx("i",{className:"fa fa-retweet"})," ",g(r.repostCount)]}),s.jsxs("span",{children:[s.jsx("i",{className:"fa fa-quote-left"})," ",g(r.quoteCount)]}),s.jsxs("span",{children:[s.jsx("i",{className:"fa fa-clock"})," ",K(new Date(r.createdTime))]})]});return _?s.jsxs(R.Item,{children:[s.jsxs("div",{className:"show-on-hover-trigger",children:[s.jsx(J,{src:r.image,width:250,height:250,style:{objectFit:"cover",borderRadius:10},preview:r.video||(p=r.carousel)!=null&&p.length?{destroyOnClose:!0,imageRender:()=>{var x;return(x=r.carousel)!=null&&x.length?s.jsx(L,{style:{maxWidth:"90vw",maxHeight:"90vh",alignItems:"center",overflowY:"auto",overflowX:"hidden",backgroundColor:"#111",padding:20,borderRadius:10},children:s.jsx(R,{grid:{gutter:10},style:{width:"100%"},dataSource:r.carousel,renderItem:d,rowKey:C=>C.id})}):s.jsx(Y,{src:r.video,style:{maxWidth:"90vw",maxHeight:"90vh"}})},toolbarRender:()=>null}:void 0}),l]}),s.jsx("p",{style:{wordWrap:"break-word",maxWidth:250,padding:5},title:r.caption,children:O(r.caption,80)}),s.jsx("div",{style:{position:"absolute",top:10,right:10,pointerEvents:"none"},children:((h=r.carousel)==null?void 0:h.length)>0?s.jsxs(s.Fragment,{children:[s.jsx("span",{children:(y=r.carousel)==null?void 0:y.length}),D.IGCarousel]}):r.video?D.IGVideo:null}),u]}):s.jsx(R.Item,{children:s.jsxs("div",{className:"show-on-hover-trigger",children:[s.jsx("div",{style:{width:250,height:250,display:"flex",justifyContent:"center",alignItems:"center"},children:s.jsx("p",{style:{wordWrap:"break-word",padding:5},title:r.caption,children:O(r.caption,200)})}),l,u]})})},[]),j=w.useCallback((r,_)=>{var l,u;if(!r.video&&!r.image&&((l=r.carousel)==null?void 0:l.length)===0)return[];function c(i,p=""){const h=!!i.video;return{url:h?i.video:i.image,name:p+i.id+(h?".mp4":".jpg")}}return((u=r.carousel)==null?void 0:u.length)>0?r.carousel.map((i,p)=>c(i,p+"_")):c(r)},[]);return a!=null&&a.username?s.jsx(X,{collectionName:(a==null?void 0:a.username)+" - Threads "+t(M[n]),fetchNext:m,renderItem:d,downloadItem:j,headerButtons:f,getItemCursor:r=>r.cursor||"",rowKey:r=>r.id}):null}export{Ne as default}; diff --git a/public/assets/TiktokUserVideos-D76xfnxs.js b/public/assets/TiktokUserVideos-CYeT8tUi.js similarity index 51% rename from public/assets/TiktokUserVideos-D76xfnxs.js rename to public/assets/TiktokUserVideos-CYeT8tUi.js index 6f1ab1e..b80779e 100644 --- a/public/assets/TiktokUserVideos-D76xfnxs.js +++ b/public/assets/TiktokUserVideos-CYeT8tUi.js @@ -1 +1 @@ -import{r as s,aA as r,aB as d}from"./index--trdnQFa.js";import{b as a}from"./index-CSZp6KTZ.js";import{C as l}from"./Collection-CPPE61tF.js";import{h as c}from"./MyApp-BHr373cy.js";import{L as u}from"./index-BJNnFmyH.js";import{I as f}from"./index-CB9InVBI.js";import{A as h}from"./index-fivsYW1W.js";import"./videos-CpxHGGu6.js";import"./index-DTxLlwd8.js";import"./responsiveObserver-DiDk9dGL.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";import"./index-VHrAsB-Q.js";import"./PurePanel-CSR2tSBX.js";import"./index-CETJ8txP.js";import"./SearchOutlined-D247roQH.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./index-DYW0YRm8.js";import"./Dropdown-DUpNeMO8.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./index-DmA8T0X5.js";import"./index-CJGqVaEE.js";import"./Pagination-CPGTHysj.js";import"./row-DQoT4CfJ.js";import"./addEventListener-KkFh1sjE.js";function P({target:i}){const t=s.useCallback(async(o=[],m)=>{var e;return i!=null&&i.id?await a(i.username||"",m||((e=o[o.length-1])==null?void 0:e.cursor)):void 0},[i]),p=s.useCallback(o=>r.jsx(u.Item,{children:r.jsxs("div",{className:"show-on-hover-trigger",children:[r.jsx(f,{src:o.video.dynamicCover,width:250,height:330,style:{objectFit:"cover",borderRadius:10},preview:!1}),r.jsx(d,{type:"default",icon:r.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:"https://www.tiktok.com/@"+(i==null?void 0:i.id)+"/video/"+o.id})]})}),[]),n=s.useCallback((o,m)=>({name:o.id+".mp4",url:o.video.downloadAddr}),[]);return r.jsx(l,{collectionName:(i==null?void 0:i.name)+" - Tiktok User Videos",fetchNext:t,renderItem:p,downloadItem:n,getItemCursor:o=>o.cursor||"",rowKey:o=>o.id,header:()=>{var o;return r.jsx(h,{showIcon:!0,type:"info",message:"Total "+c((o=i==null?void 0:i.raw)==null?void 0:o.videoCount)+" videos"})}})}export{P as default}; +import{r as s,aA as r,aB as d}from"./index-BBriuzNA.js";import{b as a}from"./index-Cp3vfVbK.js";import{C as l}from"./Collection-B9SxfYr4.js";import{h as c}from"./MyApp-CmkiOnMb.js";import{L as u}from"./index-B7udrguy.js";import{I as f}from"./index-Dm20K0UU.js";import{A as h}from"./index-BhyNApA-.js";import"./videos-VQJKJ_Wq.js";import"./index-CbmP82sr.js";import"./responsiveObserver-Bb1LONna.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";import"./index-Bumumc8Y.js";import"./PurePanel-yY9muMEs.js";import"./index-CKsES7YN.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./index-C9vPYMV7.js";import"./Dropdown-DxSI4NN9.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./index-tTPNrueW.js";import"./index-uPrgDTc-.js";import"./Pagination-slfcHA-i.js";import"./row-C0Wk6t4-.js";import"./addEventListener-w7NT04KM.js";function P({target:i}){const t=s.useCallback(async(o=[],m)=>{var e;return i!=null&&i.id?await a(i.username||"",m||((e=o[o.length-1])==null?void 0:e.cursor)):void 0},[i]),p=s.useCallback(o=>r.jsx(u.Item,{children:r.jsxs("div",{className:"show-on-hover-trigger",children:[r.jsx(f,{src:o.video.dynamicCover,width:250,height:330,style:{objectFit:"cover",borderRadius:10},preview:!1}),r.jsx(d,{type:"default",icon:r.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:"https://www.tiktok.com/@"+(i==null?void 0:i.id)+"/video/"+o.id})]})}),[]),n=s.useCallback((o,m)=>({name:o.id+".mp4",url:o.video.downloadAddr}),[]);return r.jsx(l,{collectionName:(i==null?void 0:i.name)+" - Tiktok User Videos",fetchNext:t,renderItem:p,downloadItem:n,getItemCursor:o=>o.cursor||"",rowKey:o=>o.id,header:()=>{var o;return r.jsx(h,{showIcon:!0,type:"info",message:"Total "+c((o=i==null?void 0:i.raw)==null?void 0:o.videoCount)+" videos"})}})}export{P as default}; diff --git a/public/assets/Tip-CifF-Vmi.js b/public/assets/Tip-DwnoLHUc.js similarity index 86% rename from public/assets/Tip-CifF-Vmi.js rename to public/assets/Tip-DwnoLHUc.js index b3dd4e8..4a07fd6 100644 --- a/public/assets/Tip-CifF-Vmi.js +++ b/public/assets/Tip-DwnoLHUc.js @@ -1 +1 @@ -import{r as c,aA as t}from"./index--trdnQFa.js";import{u as r,t as a}from"./MyApp-BHr373cy.js";import{T as s}from"./index-VHrAsB-Q.js";import{L as o}from"./index-BJNnFmyH.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";import"./row-DQoT4CfJ.js";const l=[{id:"exact-search",date:"2024-10-18",name:{vi:"Tìm kiếm chính xác theo từ khoá",en:"Exact match search by keyword"},icon:t.jsx("i",{className:"fa-solid fa-magnifying-glass fa-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1507557769898906"},{id:"find-music",date:"2024-10-18",name:{vi:"Tìm tên bài hát đang phát",en:"Find name of playing song/music"},icon:t.jsx("i",{className:"fa-solid fa-music fa-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1506658759988807"},{id:"invisible-ink",date:"2024-10-04",name:{vi:"Tô điểm cho chữ trên bài viết",en:"Add invisible ink to text in your post"},icon:t.jsx("i",{className:"fa-solid fa-pen-nib fa-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1498286754159341"},{id:"view-locked-profile",date:"2024-10-04",name:{vi:"Xem trang cá nhân đã khoá bảo vệ",en:"View profile that has been locked"},icon:t.jsx("i",{className:"fa-solid fa-lock fb-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1497809580873725"},{id:"check-ai-content",date:"2024-09-24",name:{vi:"Kiểm tra nội dung/hình ảnh do AI tạo",en:"Check content/image created by AI"},icon:t.jsx("i",{className:"fa-solid fa-robot fb-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1491214101533273"},{id:"self-react-story",date:"2024-09-01",name:{vi:"Tự like/thả tym cho story của bản thân",en:"How to react to your own story"},icon:t.jsx("i",{className:"fa-solid fa-heart fa-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1476823159639034"},{id:"emoji-db",date:"2024-08-09",name:{vi:"Thêm hàng nghìn emoji vào bài viết",en:"Add thousand of emoji to your post"},icon:t.jsx("i",{className:"fa-solid fa-face-smile-wink fa-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1463243317663685"}];function u(){const{ti:i}=r();return c.useEffect(()=>{a("Tip:onLoad")},[]),t.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%"},children:[t.jsxs("div",{style:{margin:"16px 0"},children:[t.jsx(s.Title,{level:3,style:{margin:0,marginBottom:10,textAlign:"center"},children:i({en:"Tip for Facebook",vi:"Mẹo dùng Facebook"})}),t.jsx("p",{style:{textAlign:"center",opacity:.7},children:i({en:"Update daily",vi:"Cập nhật mỗi ngày"})})]}),t.jsx(o,{style:{padding:10},dataSource:l,renderItem:e=>t.jsx(o.Item,{style:{minWidth:350},children:t.jsx(o.Item.Meta,{avatar:e.icon,title:t.jsx("a",{href:e.link,target:"_blank",onClick:n=>{n.stopPropagation(),n.preventDefault(),a("Tip:OpenLink:"+e.id),window.open(e.link,"_blank")},children:i(e.name)}),description:t.jsx(s.Text,{type:"secondary",children:i(e.date)})})})})]})}export{u as default}; +import{r as c,aA as t}from"./index-BBriuzNA.js";import{u as r,t as a}from"./MyApp-CmkiOnMb.js";import{T as s}from"./index-Bumumc8Y.js";import{L as o}from"./index-B7udrguy.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";import"./row-C0Wk6t4-.js";const l=[{id:"exact-search",date:"2024-10-18",name:{vi:"Tìm kiếm chính xác theo từ khoá",en:"Exact match search by keyword"},icon:t.jsx("i",{className:"fa-solid fa-magnifying-glass fa-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1507557769898906"},{id:"find-music",date:"2024-10-18",name:{vi:"Tìm tên bài hát đang phát",en:"Find name of playing song/music"},icon:t.jsx("i",{className:"fa-solid fa-music fa-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1506658759988807"},{id:"invisible-ink",date:"2024-10-04",name:{vi:"Tô điểm cho chữ trên bài viết",en:"Add invisible ink to text in your post"},icon:t.jsx("i",{className:"fa-solid fa-pen-nib fa-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1498286754159341"},{id:"view-locked-profile",date:"2024-10-04",name:{vi:"Xem trang cá nhân đã khoá bảo vệ",en:"View profile that has been locked"},icon:t.jsx("i",{className:"fa-solid fa-lock fb-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1497809580873725"},{id:"check-ai-content",date:"2024-09-24",name:{vi:"Kiểm tra nội dung/hình ảnh do AI tạo",en:"Check content/image created by AI"},icon:t.jsx("i",{className:"fa-solid fa-robot fb-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1491214101533273"},{id:"self-react-story",date:"2024-09-01",name:{vi:"Tự like/thả tym cho story của bản thân",en:"How to react to your own story"},icon:t.jsx("i",{className:"fa-solid fa-heart fa-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1476823159639034"},{id:"emoji-db",date:"2024-08-09",name:{vi:"Thêm hàng nghìn emoji vào bài viết",en:"Add thousand of emoji to your post"},icon:t.jsx("i",{className:"fa-solid fa-face-smile-wink fa-lg"}),content:{vi:"",en:""},link:"https://www.facebook.com/groups/1154059318582088/posts/1463243317663685"}];function u(){const{ti:i}=r();return c.useEffect(()=>{a("Tip:onLoad")},[]),t.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%"},children:[t.jsxs("div",{style:{margin:"16px 0"},children:[t.jsx(s.Title,{level:3,style:{margin:0,marginBottom:10,textAlign:"center"},children:i({en:"Tip for Facebook",vi:"Mẹo dùng Facebook"})}),t.jsx("p",{style:{textAlign:"center",opacity:.7},children:i({en:"Update daily",vi:"Cập nhật mỗi ngày"})})]}),t.jsx(o,{style:{padding:10},dataSource:l,renderItem:e=>t.jsx(o.Item,{style:{minWidth:350},children:t.jsx(o.Item.Meta,{avatar:e.icon,title:t.jsx("a",{href:e.link,target:"_blank",onClick:n=>{n.stopPropagation(),n.preventDefault(),a("Tip:OpenLink:"+e.id),window.open(e.link,"_blank")},children:i(e.name)}),description:t.jsx(s.Text,{type:"secondary",children:i(e.date)})})})})]})}export{u as default}; diff --git a/public/assets/UploadModal-BHq27OYF.js b/public/assets/UploadModal-CFIzpthN.js similarity index 99% rename from public/assets/UploadModal-BHq27OYF.js rename to public/assets/UploadModal-CFIzpthN.js index 1e1795a..69c11ff 100644 --- a/public/assets/UploadModal-BHq27OYF.js +++ b/public/assets/UploadModal-CFIzpthN.js @@ -1,4 +1,4 @@ -import{r as l,I as we,a7 as Nt,a_ as Lt,a$ as Mt,b0 as At,b1 as Tt,o as U,b2 as kt,b3 as _t,b4 as Ut,b5 as Se,b6 as zt,b7 as Wt,b8 as Bt,b9 as Ht,ba as Ge,bb as Xt,bc as qt,j as Vt,bd as Gt,e as be,d as ke,n as st,g as se,be as _e,E as lt,F as ct,H as dt,D as Q,K as Ue,a4 as Kt,Z as Yt,bf as Jt,ab as Qt,bg as Zt,T as xe,Y as er,_ as ut,a as pt,b as ft,X,bh as ee,h as me,c as mt,$ as ze,aK as tr,bi as rr,bj as Ke,a3 as gt,a2 as ht,aa as nr,bk as Ye,C as vt,a6 as or,bl as ar,Q as Je,bm as Qe,aB as Ze,aO as ir,aQ as sr,bn as lr,p as et,aA as le}from"./index--trdnQFa.js";import{P as fe}from"./index-DlkwBJMX.js";import{w as cr}from"./PurePanel-CSR2tSBX.js";import{T as bt,a1 as dr,m as ur}from"./MyApp-BHr373cy.js";import{u as pr}from"./useBreakpoint-QbbjxHKX.js";import{R as fr}from"./EyeOutlined-BALW2cms.js";import{R as mr}from"./index-VHrAsB-Q.js";import"./responsiveObserver-DiDk9dGL.js";var gr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:r,closeIcon:n,closable:a,type:i,title:s,children:o,footer:c}=e,d=gr(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=l.useContext(we),p=u(),f=t||u("modal"),h=Nt(p),[b,S,w]=Lt(f,h),y=`${f}-confirm`;let $={};return i?$={closable:a??!1,title:"",footer:"",children:l.createElement(Mt,Object.assign({},e,{prefixCls:f,confirmPrefixCls:y,rootPrefixCls:p,content:o}))}:$={closable:a??!0,title:s,footer:c!==null&&l.createElement(At,Object.assign({},e)),children:o},b(l.createElement(Tt,Object.assign({prefixCls:f,className:U(S,`${f}-pure-panel`,i&&y,i&&`${y}-${i}`,r,w,h)},d,{closeIcon:kt(f,n),closable:a},$)))},vr=cr(hr);function yt(e){return Se(qt(e))}const ie=_t;ie.useModal=Ut;ie.info=function(t){return Se(zt(t))};ie.success=function(t){return Se(Wt(t))};ie.error=function(t){return Se(Bt(t))};ie.warning=yt;ie.warn=yt;ie.confirm=function(t){return Se(Ht(t))};ie.destroyAll=function(){for(;Ge.length;){const t=Ge.pop();t&&t()}};ie.config=Xt;ie._InternalPanelDoNotUseOrYouWillBeFired=vr;var br={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},yr=function(){var t=l.useRef([]),r=l.useRef(null);return l.useEffect(function(){var n=Date.now(),a=!1;t.current.forEach(function(i){if(i){a=!0;var s=i.style;s.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(s.transitionDuration="0s, 0s")}}),a&&(r.current=Date.now())}),t.current},tt=0,$r=Gt();function Cr(){var e;return $r?(e=tt,tt+=1):e="TEST_OR_SSR",e}const wr=function(e){var t=l.useState(),r=Vt(t,2),n=r[0],a=r[1];return l.useEffect(function(){a("rc_progress_".concat(Cr()))},[]),e||n};var rt=function(t){var r=t.bg,n=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function nt(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),a="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(a)})}var Sr=l.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,a=e.gradientId,i=e.radius,s=e.style,o=e.ptg,c=e.strokeLinecap,d=e.strokeWidth,u=e.size,p=e.gapDegree,f=n&&be(n)==="object",h=f?"#FFF":void 0,b=u/2,S=l.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:b,cy:b,stroke:h,strokeLinecap:c,strokeWidth:d,opacity:o===0?0:1,style:s,ref:t});if(!f)return S;var w="".concat(a,"-conic"),y=p?"".concat(180+p/2,"deg"):"0deg",$=nt(n,(360-p)/360),P=nt(n,1),I="conic-gradient(from ".concat(y,", ").concat($.join(", "),")"),m="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(P.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:w},S),l.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(w,")")},l.createElement(rt,{bg:m},l.createElement(rt,{bg:I}))))}),$e=100,Ne=function(t,r,n,a,i,s,o,c,d,u){var p=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=n/100*360*((360-s)/360),h=s===0?0:{bottom:0,top:180,left:90,right:-90}[o],b=(100-a)/100*r;d==="round"&&a!==100&&(b+=u/2,b>=r&&(b=r-.01));var S=$e/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:b+p,transform:"rotate(".concat(i+f+h,"deg)"),transformOrigin:"".concat(S,"px ").concat(S,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},xr=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ot(e){var t=e??[];return Array.isArray(t)?t:[t]}var Er=function(t){var r=ke(ke({},br),t),n=r.id,a=r.prefixCls,i=r.steps,s=r.strokeWidth,o=r.trailWidth,c=r.gapDegree,d=c===void 0?0:c,u=r.gapPosition,p=r.trailColor,f=r.strokeLinecap,h=r.style,b=r.className,S=r.strokeColor,w=r.percent,y=st(r,xr),$=$e/2,P=wr(n),I="".concat(P,"-gradient"),m=$-s/2,x=Math.PI*2*m,O=d>0?90+d/2:-90,F=x*((360-d)/360),A=be(i)==="object"?i:{count:i,gap:2},v=A.count,Z=A.gap,te=ot(w),Y=ot(S),B=Y.find(function(L){return L&&be(L)==="object"}),q=B&&be(B)==="object",T=q?"butt":f,R=Ne(x,F,0,100,O,d,u,p,T,s),ne=yr(),V=function(){var G=0;return te.map(function(g,D){var H=Y[D]||Y[Y.length-1],_=Ne(x,F,G,g,O,d,u,H,T,s);return G+=g,l.createElement(Sr,{key:D,color:H,ptg:g,radius:m,prefixCls:a,gradientId:I,style:_,strokeLinecap:T,strokeWidth:s,gapDegree:d,ref:function(re){ne[D]=re},size:$e})}).reverse()},z=function(){var G=Math.round(v*(te[0]/100)),g=100/v,D=0;return new Array(v).fill(null).map(function(H,_){var J=_<=G-1?Y[0]:p,re=J&&be(J)==="object"?"url(#".concat(I,")"):void 0,oe=Ne(x,F,D,g,O,d,u,J,"butt",s,Z);return D+=(F-oe.strokeDashoffset+Z)*100/F,l.createElement("circle",{key:_,className:"".concat(a,"-circle-path"),r:m,cx:$,cy:$,stroke:re,strokeWidth:s,opacity:1,style:oe,ref:function(ae){ne[_]=ae}})})};return l.createElement("svg",se({className:U("".concat(a,"-circle"),b),viewBox:"0 0 ".concat($e," ").concat($e),style:h,id:n,role:"presentation"},y),!v&&l.createElement("circle",{className:"".concat(a,"-circle-trail"),r:m,cx:$,cy:$,stroke:p,strokeLinecap:T,strokeWidth:o||s,style:R}),v?z():V())};function de(e){return!e||e<0?0:e>100?100:e}function Oe(e){let{success:t,successPercent:r}=e,n=r;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}const Ir=e=>{let{percent:t,success:r,successPercent:n}=e;const a=de(Oe({success:r,successPercent:n}));return[a,de(de(t)-a)]},Or=e=>{let{success:t={},strokeColor:r}=e;const{strokeColor:n}=t;return[n||_e.green,r||null]},je=(e,t,r)=>{var n,a,i,s;let o=-1,c=-1;if(t==="step"){const d=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(o=e==="small"?2:14,c=u??8):typeof e=="number"?[o,c]=[e,e]:[o=14,c=8]=Array.isArray(e)?e:[e.width,e.height],o*=d}else if(t==="line"){const d=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e>"u"?c=d||(e==="small"?6:8):typeof e=="number"?[o,c]=[e,e]:[o=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[o,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[o,c]=[e,e]:Array.isArray(e)&&(o=(a=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&a!==void 0?a:120,c=(s=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&s!==void 0?s:120));return[o,c]},Pr=3,jr=e=>Pr/e*100,Dr=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:a,gapDegree:i,width:s=120,type:o,children:c,success:d,size:u=s,steps:p}=e,[f,h]=je(u,"circle");let{strokeWidth:b}=e;b===void 0&&(b=Math.max(jr(f),6));const S={width:f,height:h,fontSize:f*.15+6},w=l.useMemo(()=>{if(i||i===0)return i;if(o==="dashboard")return 75},[i,o]),y=Ir(e),$=a||o==="dashboard"&&"bottom"||void 0,P=Object.prototype.toString.call(e.strokeColor)==="[object Object]",I=Or({success:d,strokeColor:e.strokeColor}),m=U(`${t}-inner`,{[`${t}-circle-gradient`]:P}),x=l.createElement(Er,{steps:p,percent:p?y[1]:y,strokeWidth:b,trailWidth:b,strokeColor:p?I[1]:I,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:w,gapPosition:$}),O=f<=20,F=l.createElement("div",{className:m,style:S},x,!O&&c);return O?l.createElement(bt,{title:c},F):F},Pe="--progress-line-stroke-color",$t="--progress-percent",at=e=>{const t=e?"100%":"-100%";return new Ue(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Fr=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},dt(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Pe})`]},height:"100%",width:`calc(1 / var(${$t}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Q(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:at(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:at(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Rr=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Nr=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Lr=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},Mr=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Ar=lt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=ct(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Fr(r),Rr(r),Nr(r),Lr(r)]},Mr);var Tr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(r=>{const n=parseFloat(r.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(r=>{let{key:n,value:a}=r;return`${a} ${n}%`}).join(", ")},_r=(e,t)=>{const{from:r=_e.blue,to:n=_e.blue,direction:a=t==="rtl"?"to left":"to right"}=e,i=Tr(e,["from","to","direction"]);if(Object.keys(i).length!==0){const o=kr(i),c=`linear-gradient(${a}, ${o})`;return{background:c,[Pe]:c}}const s=`linear-gradient(${a}, ${r}, ${n})`;return{background:s,[Pe]:s}},Ur=e=>{const{prefixCls:t,direction:r,percent:n,size:a,strokeWidth:i,strokeColor:s,strokeLinecap:o="round",children:c,trailColor:d=null,percentPosition:u,success:p}=e,{align:f,type:h}=u,b=s&&typeof s!="string"?_r(s,r):{[Pe]:s,background:s},S=o==="square"||o==="butt"?0:void 0,w=a??[-1,i||(a==="small"?6:8)],[y,$]=je(w,"line",{strokeWidth:i}),P={backgroundColor:d||void 0,borderRadius:S},I=Object.assign(Object.assign({width:`${de(n)}%`,height:$,borderRadius:S},b),{[$t]:de(n)/100}),m=Oe(e),x={width:`${de(m)}%`,height:$,borderRadius:S,backgroundColor:p==null?void 0:p.strokeColor},O={width:y<0?"100%":y},F=l.createElement("div",{className:`${t}-inner`,style:P},l.createElement("div",{className:U(`${t}-bg`,`${t}-bg-${h}`),style:I},h==="inner"&&c),m!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:x})),A=h==="outer"&&f==="start",v=h==="outer"&&f==="end";return h==="outer"&&f==="center"?l.createElement("div",{className:`${t}-layout-bottom`},F,c):l.createElement("div",{className:`${t}-outer`,style:O},A&&c,F,v&&c)},zr=e=>{const{size:t,steps:r,percent:n=0,strokeWidth:a=8,strokeColor:i,trailColor:s=null,prefixCls:o,children:c}=e,d=Math.round(r*(n/100)),p=t??[t==="small"?2:14,a],[f,h]=je(p,"step",{steps:r,strokeWidth:a}),b=f/r,S=new Array(r);for(let w=0;w{const{prefixCls:r,className:n,rootClassName:a,steps:i,strokeColor:s,percent:o=0,size:c="default",showInfo:d=!0,type:u="line",status:p,format:f,style:h,percentPosition:b={}}=e,S=Wr(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:w="end",type:y="outer"}=b,$=Array.isArray(s)?s[0]:s,P=typeof s=="string"||Array.isArray(s)?s:void 0,I=l.useMemo(()=>{if($){const V=typeof $=="string"?$:Object.values($)[0];return new Kt(V).isLight()}return!1},[s]),m=l.useMemo(()=>{var V,z;const L=Oe(e);return parseInt(L!==void 0?(V=L??0)===null||V===void 0?void 0:V.toString():(z=o??0)===null||z===void 0?void 0:z.toString(),10)},[o,e.success,e.successPercent]),x=l.useMemo(()=>!Br.includes(p)&&m>=100?"success":p||"normal",[p,m]),{getPrefixCls:O,direction:F,progress:A}=l.useContext(we),v=O("progress",r),[Z,te,Y]=Ar(v),B=u==="line",q=B&&!i,T=l.useMemo(()=>{if(!d)return null;const V=Oe(e);let z;const L=f||(g=>`${g}%`),G=B&&I&&y==="inner";return y==="inner"||f||x!=="exception"&&x!=="success"?z=L(de(o),de(V)):x==="exception"?z=B?l.createElement(Jt,null):l.createElement(Qt,null):x==="success"&&(z=B?l.createElement(Zt,null):l.createElement(mr,null)),l.createElement("span",{className:U(`${v}-text`,{[`${v}-text-bright`]:G,[`${v}-text-${w}`]:q,[`${v}-text-${y}`]:q}),title:typeof z=="string"?z:void 0},z)},[d,o,m,x,u,v,f]);let R;u==="line"?R=i?l.createElement(zr,Object.assign({},e,{strokeColor:P,prefixCls:v,steps:typeof i=="object"?i.count:i}),T):l.createElement(Ur,Object.assign({},e,{strokeColor:$,prefixCls:v,direction:F,percentPosition:{align:w,type:y}}),T):(u==="circle"||u==="dashboard")&&(R=l.createElement(Dr,Object.assign({},e,{strokeColor:$,prefixCls:v,progressStatus:x}),T));const ne=U(v,`${v}-status-${x}`,{[`${v}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${v}-inline-circle`]:u==="circle"&&je(c,"circle")[0]<=20,[`${v}-line`]:q,[`${v}-line-align-${w}`]:q,[`${v}-line-position-${y}`]:q,[`${v}-steps`]:i,[`${v}-show-info`]:d,[`${v}-${c}`]:typeof c=="string",[`${v}-rtl`]:F==="rtl"},A==null?void 0:A.className,n,a,te,Y);return Z(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},A==null?void 0:A.style),h),className:ne,role:"progressbar","aria-valuenow":m},Yt(S,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))});var Xr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},qr=function(t,r){return l.createElement(xe,se({},t,{ref:r,icon:Xr}))},Vr=l.forwardRef(qr);const Le=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return r.some(function(s){var o=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(o.charAt(0)==="."){var c=n.toLowerCase(),d=o.toLowerCase(),u=[d];return(d===".jpg"||d===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(p){return c.endsWith(p)})}return/\/\*$/.test(o)?i===o.replace(/\/.*$/,""):a===o?!0:/^\w+$/.test(o)?(er(!1,"Upload takes an invalidate 'accept' type '".concat(o,"'.Skip for check.")),!0):!1})}return!0};function Gr(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function it(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Kr(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var i=e.data[a];if(Array.isArray(i)){i.forEach(function(s){r.append("".concat(a,"[]"),s)});return}r.append(a,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Gr(e,t),it(t)):e.onSuccess(it(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(a){n[a]!==null&&t.setRequestHeader(a,n[a])}),t.send(r),{abort:function(){t.abort()}}}function Yr(e,t){var r=e.createReader(),n=[];function a(){r.readEntries(function(i){var s=Array.prototype.slice.apply(i);n=n.concat(s);var o=!s.length;o?t(n):a()})}a()}var Jr=function(t,r,n){var a=function i(s,o){s&&(s.path=o||"",s.isFile?s.file(function(c){n(c)&&(s.fullPath&&!c.webkitRelativePath&&(Object.defineProperties(c,{webkitRelativePath:{writable:!0}}),c.webkitRelativePath=s.fullPath.replace(/^\//,""),Object.defineProperties(c,{webkitRelativePath:{writable:!1}})),r([c]))}):s.isDirectory&&Yr(s,function(c){c.forEach(function(d){i(d,"".concat(o).concat(s.name,"/"))})}))};t.forEach(function(i){a(i.webkitGetAsEntry())})},Qr=+new Date,Zr=0;function Me(){return"rc-upload-".concat(Qr,"-").concat(++Zr)}var en=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],tn=function(e){ut(r,e);var t=pt(r);function r(){var n;ft(this,r);for(var a=arguments.length,i=new Array(a),s=0;s{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Q(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` +import{r as l,I as we,a7 as Nt,a_ as Lt,a$ as Mt,b0 as At,b1 as Tt,o as U,b2 as kt,b3 as _t,b4 as Ut,b5 as Se,b6 as zt,b7 as Wt,b8 as Bt,b9 as Ht,ba as Ge,bb as Xt,bc as qt,j as Vt,bd as Gt,e as be,d as ke,n as st,g as se,be as _e,E as lt,F as ct,H as dt,D as Q,K as Ue,a4 as Kt,Z as Yt,bf as Jt,ab as Qt,bg as Zt,T as xe,Y as er,_ as ut,a as pt,b as ft,X,bh as ee,h as me,c as mt,$ as ze,aK as tr,bi as rr,bj as Ke,a3 as gt,a2 as ht,aa as nr,bk as Ye,C as vt,a6 as or,bl as ar,Q as Je,bm as Qe,aB as Ze,aO as ir,aQ as sr,bn as lr,p as et,aA as le}from"./index-BBriuzNA.js";import{P as fe}from"./index-DhqkrVsj.js";import{w as cr}from"./PurePanel-yY9muMEs.js";import{T as bt,a1 as dr,m as ur}from"./MyApp-CmkiOnMb.js";import{u as pr}from"./useBreakpoint-CDLrV-mr.js";import{R as fr}from"./EyeOutlined-Du2MtFRM.js";import{R as mr}from"./index-Bumumc8Y.js";import"./responsiveObserver-Bb1LONna.js";var gr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:r,closeIcon:n,closable:a,type:i,title:s,children:o,footer:c}=e,d=gr(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=l.useContext(we),p=u(),f=t||u("modal"),h=Nt(p),[b,S,w]=Lt(f,h),y=`${f}-confirm`;let $={};return i?$={closable:a??!1,title:"",footer:"",children:l.createElement(Mt,Object.assign({},e,{prefixCls:f,confirmPrefixCls:y,rootPrefixCls:p,content:o}))}:$={closable:a??!0,title:s,footer:c!==null&&l.createElement(At,Object.assign({},e)),children:o},b(l.createElement(Tt,Object.assign({prefixCls:f,className:U(S,`${f}-pure-panel`,i&&y,i&&`${y}-${i}`,r,w,h)},d,{closeIcon:kt(f,n),closable:a},$)))},vr=cr(hr);function yt(e){return Se(qt(e))}const ie=_t;ie.useModal=Ut;ie.info=function(t){return Se(zt(t))};ie.success=function(t){return Se(Wt(t))};ie.error=function(t){return Se(Bt(t))};ie.warning=yt;ie.warn=yt;ie.confirm=function(t){return Se(Ht(t))};ie.destroyAll=function(){for(;Ge.length;){const t=Ge.pop();t&&t()}};ie.config=Xt;ie._InternalPanelDoNotUseOrYouWillBeFired=vr;var br={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},yr=function(){var t=l.useRef([]),r=l.useRef(null);return l.useEffect(function(){var n=Date.now(),a=!1;t.current.forEach(function(i){if(i){a=!0;var s=i.style;s.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(s.transitionDuration="0s, 0s")}}),a&&(r.current=Date.now())}),t.current},tt=0,$r=Gt();function Cr(){var e;return $r?(e=tt,tt+=1):e="TEST_OR_SSR",e}const wr=function(e){var t=l.useState(),r=Vt(t,2),n=r[0],a=r[1];return l.useEffect(function(){a("rc_progress_".concat(Cr()))},[]),e||n};var rt=function(t){var r=t.bg,n=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function nt(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),a="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(a)})}var Sr=l.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,a=e.gradientId,i=e.radius,s=e.style,o=e.ptg,c=e.strokeLinecap,d=e.strokeWidth,u=e.size,p=e.gapDegree,f=n&&be(n)==="object",h=f?"#FFF":void 0,b=u/2,S=l.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:b,cy:b,stroke:h,strokeLinecap:c,strokeWidth:d,opacity:o===0?0:1,style:s,ref:t});if(!f)return S;var w="".concat(a,"-conic"),y=p?"".concat(180+p/2,"deg"):"0deg",$=nt(n,(360-p)/360),P=nt(n,1),I="conic-gradient(from ".concat(y,", ").concat($.join(", "),")"),m="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(P.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:w},S),l.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(w,")")},l.createElement(rt,{bg:m},l.createElement(rt,{bg:I}))))}),$e=100,Ne=function(t,r,n,a,i,s,o,c,d,u){var p=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=n/100*360*((360-s)/360),h=s===0?0:{bottom:0,top:180,left:90,right:-90}[o],b=(100-a)/100*r;d==="round"&&a!==100&&(b+=u/2,b>=r&&(b=r-.01));var S=$e/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:b+p,transform:"rotate(".concat(i+f+h,"deg)"),transformOrigin:"".concat(S,"px ").concat(S,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},xr=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ot(e){var t=e??[];return Array.isArray(t)?t:[t]}var Er=function(t){var r=ke(ke({},br),t),n=r.id,a=r.prefixCls,i=r.steps,s=r.strokeWidth,o=r.trailWidth,c=r.gapDegree,d=c===void 0?0:c,u=r.gapPosition,p=r.trailColor,f=r.strokeLinecap,h=r.style,b=r.className,S=r.strokeColor,w=r.percent,y=st(r,xr),$=$e/2,P=wr(n),I="".concat(P,"-gradient"),m=$-s/2,x=Math.PI*2*m,O=d>0?90+d/2:-90,F=x*((360-d)/360),A=be(i)==="object"?i:{count:i,gap:2},v=A.count,Z=A.gap,te=ot(w),Y=ot(S),B=Y.find(function(L){return L&&be(L)==="object"}),q=B&&be(B)==="object",T=q?"butt":f,R=Ne(x,F,0,100,O,d,u,p,T,s),ne=yr(),V=function(){var G=0;return te.map(function(g,D){var H=Y[D]||Y[Y.length-1],_=Ne(x,F,G,g,O,d,u,H,T,s);return G+=g,l.createElement(Sr,{key:D,color:H,ptg:g,radius:m,prefixCls:a,gradientId:I,style:_,strokeLinecap:T,strokeWidth:s,gapDegree:d,ref:function(re){ne[D]=re},size:$e})}).reverse()},z=function(){var G=Math.round(v*(te[0]/100)),g=100/v,D=0;return new Array(v).fill(null).map(function(H,_){var J=_<=G-1?Y[0]:p,re=J&&be(J)==="object"?"url(#".concat(I,")"):void 0,oe=Ne(x,F,D,g,O,d,u,J,"butt",s,Z);return D+=(F-oe.strokeDashoffset+Z)*100/F,l.createElement("circle",{key:_,className:"".concat(a,"-circle-path"),r:m,cx:$,cy:$,stroke:re,strokeWidth:s,opacity:1,style:oe,ref:function(ae){ne[_]=ae}})})};return l.createElement("svg",se({className:U("".concat(a,"-circle"),b),viewBox:"0 0 ".concat($e," ").concat($e),style:h,id:n,role:"presentation"},y),!v&&l.createElement("circle",{className:"".concat(a,"-circle-trail"),r:m,cx:$,cy:$,stroke:p,strokeLinecap:T,strokeWidth:o||s,style:R}),v?z():V())};function de(e){return!e||e<0?0:e>100?100:e}function Oe(e){let{success:t,successPercent:r}=e,n=r;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}const Ir=e=>{let{percent:t,success:r,successPercent:n}=e;const a=de(Oe({success:r,successPercent:n}));return[a,de(de(t)-a)]},Or=e=>{let{success:t={},strokeColor:r}=e;const{strokeColor:n}=t;return[n||_e.green,r||null]},je=(e,t,r)=>{var n,a,i,s;let o=-1,c=-1;if(t==="step"){const d=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(o=e==="small"?2:14,c=u??8):typeof e=="number"?[o,c]=[e,e]:[o=14,c=8]=Array.isArray(e)?e:[e.width,e.height],o*=d}else if(t==="line"){const d=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e>"u"?c=d||(e==="small"?6:8):typeof e=="number"?[o,c]=[e,e]:[o=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[o,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[o,c]=[e,e]:Array.isArray(e)&&(o=(a=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&a!==void 0?a:120,c=(s=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&s!==void 0?s:120));return[o,c]},Pr=3,jr=e=>Pr/e*100,Dr=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:a,gapDegree:i,width:s=120,type:o,children:c,success:d,size:u=s,steps:p}=e,[f,h]=je(u,"circle");let{strokeWidth:b}=e;b===void 0&&(b=Math.max(jr(f),6));const S={width:f,height:h,fontSize:f*.15+6},w=l.useMemo(()=>{if(i||i===0)return i;if(o==="dashboard")return 75},[i,o]),y=Ir(e),$=a||o==="dashboard"&&"bottom"||void 0,P=Object.prototype.toString.call(e.strokeColor)==="[object Object]",I=Or({success:d,strokeColor:e.strokeColor}),m=U(`${t}-inner`,{[`${t}-circle-gradient`]:P}),x=l.createElement(Er,{steps:p,percent:p?y[1]:y,strokeWidth:b,trailWidth:b,strokeColor:p?I[1]:I,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:w,gapPosition:$}),O=f<=20,F=l.createElement("div",{className:m,style:S},x,!O&&c);return O?l.createElement(bt,{title:c},F):F},Pe="--progress-line-stroke-color",$t="--progress-percent",at=e=>{const t=e?"100%":"-100%";return new Ue(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Fr=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},dt(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Pe})`]},height:"100%",width:`calc(1 / var(${$t}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Q(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:at(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:at(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Rr=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Nr=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Lr=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},Mr=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Ar=lt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=ct(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Fr(r),Rr(r),Nr(r),Lr(r)]},Mr);var Tr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(r=>{const n=parseFloat(r.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(r=>{let{key:n,value:a}=r;return`${a} ${n}%`}).join(", ")},_r=(e,t)=>{const{from:r=_e.blue,to:n=_e.blue,direction:a=t==="rtl"?"to left":"to right"}=e,i=Tr(e,["from","to","direction"]);if(Object.keys(i).length!==0){const o=kr(i),c=`linear-gradient(${a}, ${o})`;return{background:c,[Pe]:c}}const s=`linear-gradient(${a}, ${r}, ${n})`;return{background:s,[Pe]:s}},Ur=e=>{const{prefixCls:t,direction:r,percent:n,size:a,strokeWidth:i,strokeColor:s,strokeLinecap:o="round",children:c,trailColor:d=null,percentPosition:u,success:p}=e,{align:f,type:h}=u,b=s&&typeof s!="string"?_r(s,r):{[Pe]:s,background:s},S=o==="square"||o==="butt"?0:void 0,w=a??[-1,i||(a==="small"?6:8)],[y,$]=je(w,"line",{strokeWidth:i}),P={backgroundColor:d||void 0,borderRadius:S},I=Object.assign(Object.assign({width:`${de(n)}%`,height:$,borderRadius:S},b),{[$t]:de(n)/100}),m=Oe(e),x={width:`${de(m)}%`,height:$,borderRadius:S,backgroundColor:p==null?void 0:p.strokeColor},O={width:y<0?"100%":y},F=l.createElement("div",{className:`${t}-inner`,style:P},l.createElement("div",{className:U(`${t}-bg`,`${t}-bg-${h}`),style:I},h==="inner"&&c),m!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:x})),A=h==="outer"&&f==="start",v=h==="outer"&&f==="end";return h==="outer"&&f==="center"?l.createElement("div",{className:`${t}-layout-bottom`},F,c):l.createElement("div",{className:`${t}-outer`,style:O},A&&c,F,v&&c)},zr=e=>{const{size:t,steps:r,percent:n=0,strokeWidth:a=8,strokeColor:i,trailColor:s=null,prefixCls:o,children:c}=e,d=Math.round(r*(n/100)),p=t??[t==="small"?2:14,a],[f,h]=je(p,"step",{steps:r,strokeWidth:a}),b=f/r,S=new Array(r);for(let w=0;w{const{prefixCls:r,className:n,rootClassName:a,steps:i,strokeColor:s,percent:o=0,size:c="default",showInfo:d=!0,type:u="line",status:p,format:f,style:h,percentPosition:b={}}=e,S=Wr(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:w="end",type:y="outer"}=b,$=Array.isArray(s)?s[0]:s,P=typeof s=="string"||Array.isArray(s)?s:void 0,I=l.useMemo(()=>{if($){const V=typeof $=="string"?$:Object.values($)[0];return new Kt(V).isLight()}return!1},[s]),m=l.useMemo(()=>{var V,z;const L=Oe(e);return parseInt(L!==void 0?(V=L??0)===null||V===void 0?void 0:V.toString():(z=o??0)===null||z===void 0?void 0:z.toString(),10)},[o,e.success,e.successPercent]),x=l.useMemo(()=>!Br.includes(p)&&m>=100?"success":p||"normal",[p,m]),{getPrefixCls:O,direction:F,progress:A}=l.useContext(we),v=O("progress",r),[Z,te,Y]=Ar(v),B=u==="line",q=B&&!i,T=l.useMemo(()=>{if(!d)return null;const V=Oe(e);let z;const L=f||(g=>`${g}%`),G=B&&I&&y==="inner";return y==="inner"||f||x!=="exception"&&x!=="success"?z=L(de(o),de(V)):x==="exception"?z=B?l.createElement(Jt,null):l.createElement(Qt,null):x==="success"&&(z=B?l.createElement(Zt,null):l.createElement(mr,null)),l.createElement("span",{className:U(`${v}-text`,{[`${v}-text-bright`]:G,[`${v}-text-${w}`]:q,[`${v}-text-${y}`]:q}),title:typeof z=="string"?z:void 0},z)},[d,o,m,x,u,v,f]);let R;u==="line"?R=i?l.createElement(zr,Object.assign({},e,{strokeColor:P,prefixCls:v,steps:typeof i=="object"?i.count:i}),T):l.createElement(Ur,Object.assign({},e,{strokeColor:$,prefixCls:v,direction:F,percentPosition:{align:w,type:y}}),T):(u==="circle"||u==="dashboard")&&(R=l.createElement(Dr,Object.assign({},e,{strokeColor:$,prefixCls:v,progressStatus:x}),T));const ne=U(v,`${v}-status-${x}`,{[`${v}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${v}-inline-circle`]:u==="circle"&&je(c,"circle")[0]<=20,[`${v}-line`]:q,[`${v}-line-align-${w}`]:q,[`${v}-line-position-${y}`]:q,[`${v}-steps`]:i,[`${v}-show-info`]:d,[`${v}-${c}`]:typeof c=="string",[`${v}-rtl`]:F==="rtl"},A==null?void 0:A.className,n,a,te,Y);return Z(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},A==null?void 0:A.style),h),className:ne,role:"progressbar","aria-valuenow":m},Yt(S,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))});var Xr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},qr=function(t,r){return l.createElement(xe,se({},t,{ref:r,icon:Xr}))},Vr=l.forwardRef(qr);const Le=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return r.some(function(s){var o=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(o.charAt(0)==="."){var c=n.toLowerCase(),d=o.toLowerCase(),u=[d];return(d===".jpg"||d===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(p){return c.endsWith(p)})}return/\/\*$/.test(o)?i===o.replace(/\/.*$/,""):a===o?!0:/^\w+$/.test(o)?(er(!1,"Upload takes an invalidate 'accept' type '".concat(o,"'.Skip for check.")),!0):!1})}return!0};function Gr(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function it(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Kr(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var i=e.data[a];if(Array.isArray(i)){i.forEach(function(s){r.append("".concat(a,"[]"),s)});return}r.append(a,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Gr(e,t),it(t)):e.onSuccess(it(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(a){n[a]!==null&&t.setRequestHeader(a,n[a])}),t.send(r),{abort:function(){t.abort()}}}function Yr(e,t){var r=e.createReader(),n=[];function a(){r.readEntries(function(i){var s=Array.prototype.slice.apply(i);n=n.concat(s);var o=!s.length;o?t(n):a()})}a()}var Jr=function(t,r,n){var a=function i(s,o){s&&(s.path=o||"",s.isFile?s.file(function(c){n(c)&&(s.fullPath&&!c.webkitRelativePath&&(Object.defineProperties(c,{webkitRelativePath:{writable:!0}}),c.webkitRelativePath=s.fullPath.replace(/^\//,""),Object.defineProperties(c,{webkitRelativePath:{writable:!1}})),r([c]))}):s.isDirectory&&Yr(s,function(c){c.forEach(function(d){i(d,"".concat(o).concat(s.name,"/"))})}))};t.forEach(function(i){a(i.webkitGetAsEntry())})},Qr=+new Date,Zr=0;function Me(){return"rc-upload-".concat(Qr,"-").concat(++Zr)}var en=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],tn=function(e){ut(r,e);var t=pt(r);function r(){var n;ft(this,r);for(var a=arguments.length,i=new Array(a),s=0;s{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Q(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Q(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r}, diff --git a/public/assets/VIP-BGGjeNIq.js b/public/assets/VIP-3r4NLbNh.js similarity index 95% rename from public/assets/VIP-BGGjeNIq.js rename to public/assets/VIP-3r4NLbNh.js index 7db4ef1..ddce776 100644 --- a/public/assets/VIP-BGGjeNIq.js +++ b/public/assets/VIP-3r4NLbNh.js @@ -1 +1 @@ -import{r as k,aA as n,aH as i,aG as b,aB as I}from"./index--trdnQFa.js";import{u as V,a as P,t as y,b as s,B as u,c as m,T as w,k as x}from"./MyApp-BHr373cy.js";import{T}from"./index-VHrAsB-Q.js";import{R as j}from"./row-DQoT4CfJ.js";import{A as g}from"./index-fivsYW1W.js";import{F as B}from"./Table-GiCOcILW.js";import"./responsiveObserver-DiDk9dGL.js";import"./addEventListener-KkFh1sjE.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";import"./index-DmA8T0X5.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./useBreakpoint-QbbjxHKX.js";import"./Pagination-CPGTHysj.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";function J(){const{ti:e}=V(),{isVIP:c,expiredTime:r,timeLeft:p}=P();k.useEffect(()=>{y("VIP:onLoad")},[]);const l=[{header:!0,path:"/bulk-downloader",icon:n.jsx("i",{className:"fa-solid fa-download"}),name:e({en:"Bulk downloader",vi:"Tải hàng loạt"})},{name:e({en:"Download all photos/videos/reels on Facebook/Instagram/Threads",vi:"Tải mọi ảnh/video/reel trên Facebook/Instagram/Threads"}),description:e({en:"Suppport all Meta platforms: Facebook (user/page/group) & Instagram & Threads",vi:"Hỗ trợ tất cả nền tảng Meta: Facebook (người dùng/trang/nhóm) & Instagram & Threads"}),badge:i.HOT,noVIP:!1,VIP:!0},{name:e({en:"View LOCKED profile",vi:"Xem trang cá nhân bị KHOÁ"}),description:e({en:"Stalk anyone even if they locked their facebook profile: tagged, groups, pages, life events, ...",vi:"Xem nhiều thông tin hơn ở những trang cá nhân được khoá bảo vệ: những nơi được tag (bình luận, bài viết), nhóm tham gia, trang đã like, sự kiện trong đời, ..."}),badge:i.HOT,noVIP:!0,VIP:!0},{name:e({en:"View TAGGED content of anyone",vi:"Xem lượt TAG của người khác"}),description:e({en:"Know where your friends being tagged on facebook: in posts, in comments, ... (even if they locked their profile)",vi:"Biết bạn bè được tag ở đâu trên facebook: bài viết, bình luận, ... (đã khoá bảo vệ trang cá nhân cũng xem đươc)"}),badge:i.NEW,noVIP:!0,VIP:!0},{name:e({en:"Find all POSTS of anyone",vi:"Tìm mọi BÀI VIẾT của người khác"}),description:e({en:"Know where someone have posted on facebook: groups/pages (even if they locked their profile)",vi:"Biết người khác đã đăng bài ở đâu trên facebook: nhóm/trang (đã khoá bảo vệ trang cá nhân cũng xem đươc)"}),badge:i.NEW,noVIP:!0,VIP:!0},{name:e({en:"Know which groups/pages your friends joined",vi:"Biết bạn bè tham gia nhóm/trang nào"}),description:e({en:"even if they locked their profile, even if not your friends",vi:"Đã khoá bảo vệ trang cá nhân cũng xem đươc, chưa kết bạn cũng xem được"}),noVIP:!0,VIP:!0},{name:e({en:"View stories ANONYMOUS",vi:"Xem story ẨN DANH"}),description:e({en:"Your friends will not know you saw their stories, support both Facebook & Instagram",vi:"Bạn bè sẽ không biết bạn đã xem story của họ, hỗ trợ Facebook & Instagram"}),noVIP:!0,VIP:!0},{name:e({en:"Download any video/reels",vi:"Tải bất kỳ video/reels nào"}),description:e({en:"Just enter the link of the video/reels, support Facebook, include private videos",vi:"Chỉ cần nhập link video/reels, hỗ trợ Facebook, cả video riêng tư"}),noVIP:!0,VIP:!0},{name:e({en:"Download any Facebook POST",vi:"Tải BÀI VIẾT Facebook bất kỳ"}),description:e({en:"Just enter the link of the post, we will download all photos/video in that post for you",vi:"Chỉ cần nhập link bài viết, sẽ tải mọi ảnh/video có trong bài viết đó cho bạn"}),badge:i.NEW,noVIP:!1,VIP:!0},{name:e({en:"Download ALL medias + JSON + LINKs",vi:"Tải mọi ảnh + video + JSON + LINKS"}),description:e({en:"Support direct download all medias, or just .JSON (more informations), or just Links",vi:"Hỗ trợ tải trực tiếp ảnh/video về máy, hoặc chỉ tải .JSON (nhiều thông tin hơn), hoặc chỉ tải danh sách Link"}),noVIP:!1,VIP:!0},{name:e({en:"Bulk download with Select mode",vi:"Tải hàng loạt có Sàng lọc"}),description:e({en:"Select media you want to download, instead of download all",vi:"Cho phép chọn ảnh/video muốn tải, thay vì tải tất cả"}),noVIP:!1,VIP:!0},{header:!0,path:"/stories",icon:n.jsx("i",{className:"fa-solid fa-heart"}),name:e({en:"Story",vi:"Tin (Story)"})},{name:e({en:"View all stories ANONYMOUS",vi:"Xem mọi story ẨN DANH"}),description:e({en:"View all today's stories of your friends, support anonymous",vi:"Xem tất cả stories được đăng bởi bạn bè hôm nay, hỗ trợ xem ẩn danh"}),badge:i.HOT,noVIP:!0,VIP:!0},{name:e({en:"Download any story",vi:"Tải story dễ dàng"}),description:e({en:"Download any story of any friend with ease",vi:"Tải story của bất kỳ ai dễ dàng, không ràng buộc"}),noVIP:!0,VIP:!0},{name:e({en:"Bulk download all stories",vi:"Tải hàng loạt story"}),description:e({en:"Download all/selected stories with one click",vi:"Tải mọi story với 1 click, hỗ trợ chọn để tải"}),noVIP:!1,VIP:!0},{name:e({en:"Custom reactions",vi:"Thêm cảm xúc"}),description:e({en:"Add bunch of reactions for you to react to any story",vi:"Thêm hàng trăm cảm xúc tuỳ chỉnh để bạn thả vào bất kỳ story nào"}),badge:i.HOT,noVIP:!1,VIP:!0},{header:!0,path:"/messages/all",icon:n.jsx("i",{className:"fa-brands fa-facebook-messenger"}),name:e({en:"Messsages",vi:"Tin nhắn"})},{name:e({en:"Manage all messages",vi:"Quản lý mọi tin nhắn"}),description:e({en:"Include search/sort/filter by name/members/messages count/message type (non e2ee)",vi:"Bao gồm tìm kiếm/sắp xếp/sàng lọc theo tên/thành viên/số tin nhắn/loại tin nhắn (không mã hoá đầu cuối)"}),noVIP:!0,VIP:!0},{name:e({en:"View old messages at any date",vi:"Xem tin nhắn cũ tại thời điểm bất kỳ"}),description:e({en:"Just select the date, we will show all messages at that date for you",vi:"Chỉ cần chọn ngày, tool sẽ hiện mọi tin nhắn trong ngày đó cho bạn"}),badge:i.HOT,noVIP:!1,VIP:!0},{name:e({en:"Find first messages",vi:"Xem tin nhắn đầu tiên"}),description:e({en:"Auto scan to find first message of any thread",vi:"Tự động quét tìm tin nhắn đầu tiên của bất kỳ đoạn chat nào"}),noVIP:!1,VIP:!0},{name:e({en:"Download all messages",vi:"Tải toàn bộ cuộc trò chuyện"}),description:e({en:"Download all messages/threads in bulk, into single .html file",vi:"Tải toàn bộ tin nhắn/đoạn chat, ra 1 file .html duy nhất"}),noVIP:!1,VIP:!0},{header:!0,path:"/friends/all",icon:n.jsx("i",{className:"fa-solid fa-users"}),name:e({en:"Friends",vi:"Bạn bè"})},{name:e({en:"Manage all friends",vi:"Quản lý tất cả bạn bè"}),description:e({en:"Include search/sort/filter by name/uid, find locked account, find friend that block your messages",vi:"Bao gồm tìm kiếm/sắp xếp/sàng lọc theo tên/uid, tìm tài khoản bị khoá, tìm bạn bè đang chặn tin nhắn của bạn"}),noVIP:!0,VIP:!0},{name:e({en:"Detect unfriend",vi:"Phát hiện huỷ kết bạn"}),description:e({en:"Auto detect and notify when someone unfriend you, or new friend added",vi:"Tự động phát hiện và thông báo khi có người huỷ kết bạn với bạn, hoặc khi có bạn mới"}),badge:i.HOT,noVIP:!0,VIP:!0},{name:e({en:"Unfriend one click",vi:"Huỷ kết bạn 1 chạm"}),description:e({en:"Unfriend anyone with just 1 click, support undo",vi:"Huỷ kết bạn bất kỳ ai chỉ với 1 click, hỗ trợ hoàn tác"}),noVIP:!0,VIP:!0},{name:e({en:"Bulk unfriend all/selected",vi:"Huỷ kết bạn hàng loạt"}),description:e({en:"Select multiple friends to unfriend, or just unfriend all with just one click",vi:"Chọn nhiều bạn để huỷ kết bạn cùng lúc, hoặc huỷ kết bạn tất cả chỉ với 1 nút"}),noVIP:!1,VIP:!0},{name:e({en:"Ranking friends",vi:"Xếp hạng bạn bè"}),description:e({en:"Ranking to see who are most interacting with you in recent days (recent interactions)",vi:"Xếp hạng xem ai tương tác nhiều nhất với bạn thời gian gần đây (tương tác gần đây)"}),noVIP:!0,VIP:!0},{name:e({en:"Quick filters",vi:"Bộ lọc nhanh"}),description:e({en:"Quick filter out accounts that have special characters, contains number, no avatar, strange UID, blocked messages, ...",vi:"Lọc nhanh tài khoản chứa ký tự đặc biệt, chứa số, không có avatar, UID lạ, người chặn tin nhắn, ..."}),noVIP:!0,VIP:!0},{name:e({en:"Interactions scan",vi:"Quét tương tác"}),description:e({en:"Scan all your posts to count likes and comments of all your friends (total interactions)",vi:"Quét toàn bộ bài viết của bạn để đếm like và comments của tất cả bạn bè (tương tác tổng)"}),badge:i.HOT,noVIP:!1,VIP:!0},{name:e({en:"Deep scan",vi:"Quét chuyên sâu"}),description:e({en:"Scan all friends to find locked accounts, gender, mutual friends, and more",vi:"Quét toàn bộ bạn bè để tìm tài khoản bị khoá, giới tính, bạn chung , ..."}),badge:i.NEW,noVIP:!1,VIP:!0},{header:!0,path:"/friends/requests",icon:n.jsx("i",{className:"fa-solid fa-user-plus"}),name:e({en:"Friend requests",vi:"Lời mời kết bạn"})},{name:e({en:"Manage all friend requests",vi:"Quản lý yêu cầu kết bạn"}),description:e({en:"Include search/sort/filter all friend requests (incoming/outgoing)",vi:"Bao gồm tìm kiếm/sắp xếp/lọc tất cả yêu cầu kết bạn (gửi đến/gửi đi)"}),noVIP:!0,VIP:!0},{name:e({en:"One click action friend-request",vi:"1 click bay màu Lời mời kết bạn"}),description:e({en:"Decline/Accept/Cancel any friend request with just 1 click",vi:"Từ chối/Chấp nhận/Thu hồi bất kỳ yêu cầu kết bạn nào chỉ với 1 click"}),noVIP:!0,VIP:!0},{name:e({en:"One click BULK action ALL friend-requests",vi:"1 click bay màu TOÀN BỘ lời mời kết bạn"}),description:e({en:"Decline/Accept/Cancel all/selected friend-requests with just 1 click",vi:"Từ chối/Chấp nhận/Thu hồi HÀNG LOẠT yêu cầu kết bạn nào chỉ với 1 click"}),noVIP:!1,VIP:!0},{header:!0,path:"/friends/follows",icon:n.jsx("i",{className:"fa-solid fa-person-walking-arrow-right"}),name:e({en:"Following",vi:"Đang theo dõi"})},{name:e({en:"Manage all following",vi:"Quản lý danh sách theo dõi"}),description:e({en:"Include search/sort/filter all your following (friends/pages/groups)",vi:"Bao gồm tìm kiếm/sắp xếp/lọc toàn bộ danh sách người bạn đang theo dõi (người dùng/trang/nhóm)"}),noVIP:!0,VIP:!0},{name:e({en:"Unfollow with one click",vi:"Bỏ theo dõi với 1 click"}),description:e({en:"Unfollow anyone with just 1 click, support undo",vi:"Bỏ theo dõi bất kỳ ai chỉ với 1 click, hỗ trợ hoàn tác"}),noVIP:!0,VIP:!0},{name:e({en:"UnFollow in BULK",vi:"Bỏ theo dõi hàng loạt"}),description:e({en:"Unfollow all/selected accounts with ease",vi:"Bỏ theo dõi tất cả hoặc tài khoản được chọn, hoàn toàn tự động"}),noVIP:!1,VIP:!0},{header:!0,path:"/groups",icon:n.jsx("i",{className:"fa-solid fa-users-line"}),name:e({en:"Groups",vi:"Nhóm"})},{name:e({en:"Manage all groups",vi:"Quản lý nhóm"}),description:e({en:"Include search/sort/filter all joined groups/admin groups/waiting groups",vi:"Bao gồm tìm kiếm/sắp xếp/lọc tất cả nhóm đã tham gia/nhóm bạn làm admin/nhóm đang chờ duyệt"}),noVIP:!0,VIP:!0},{name:e({en:"Leave group 1 click",vi:"Rời nhóm 1 chạm"}),description:e({en:"Leave any group with 1 click, support undo",vi:"Rời nhóm chỉ với 1 click, hỗ trợ hoàn tác"}),noVIP:!0,VIP:!0},{name:e({en:"Bulk Leave groups",vi:"Rời nhóm hàng loạt"}),description:e({en:"Leave all/selected groups with one click",vi:"Rời tất cả nhóm / nhóm được chọn dễ dàng, nhanh chóng"}),noVIP:!1,VIP:!0},{name:e({en:"Find groups no admin",vi:"Tìm nhóm không có admin"}),description:e({en:"Scan to find groups that don’t have any admin",vi:"Quét để tìm nhóm không có admin quản lý"}),noVIP:!1,VIP:!0},{header:!0,path:"/pages",icon:n.jsx("i",{className:"fa-solid fa-flag"}),name:e({en:"Pages",vi:"Trang"})},{name:e({en:"Manage all pages",vi:"Quản lý trang"}),description:e({en:"Include search/sort/filter all joined pages/admin pages/invited pages",vi:"Bao gồm tìm kiếm/sắp xếp/lọc tất cả trang đã tham gia/trang của bạn/trang được mời"}),noVIP:!0,VIP:!0},{name:e({en:"Unfollow/Unlike 1 click",vi:"Bỏ theo dõi/Bỏ thích 1 chạm"}),description:e({en:"Unfollow or Unlike any page with 1 click, support undo",vi:"Bỏ theo dõi hoặc Bỏ thích trang bất kỳ nhanh chóng, hỗ trợ hoàn tác"}),noVIP:!0,VIP:!0},{name:e({en:"Bulk Unfollow/Unlike pages",vi:"Bỏ theo dõi/Bỏ thích hàng loạt"}),description:e({en:"Unfollow or Unlike multiple pages in bulk",vi:"Bỏ theo dõi hoặc Bỏ thích nhiều trang cùng lúc"}),noVIP:!1,VIP:!0},{header:!0,icon:n.jsx("i",{className:"fa-solid fa-star"}),name:e({en:"More",vi:"Tiện ích"})},{name:e({en:"A lot of Autorun features",vi:"Hàng loạt chức năng Tự động chạy"}),description:e({en:"Block 'seen' story feature on facebook/instagram. Count total post' reactions. Delete tracking params from urls, ...",vi:"Chặn 'đã xem' story facebook/instagram. Đếm tổng lượt thích bài viết facebook. Xoá tham số theo dõi trong url, ..."}),badge:i.NEW,noVIP:!0,VIP:!0},{name:e({en:"Facebok Video Downloader",vi:"Tải video Facebook"}),description:e({en:"Download any video/reel with 1 click, highest quality",vi:"Tải bất kỳ video/reel nào với 1 chạm, chất lượng cao nhất"}),badge:i.NEW,noVIP:!0,VIP:!0},{name:e({en:"Shortcuts",vi:"Phím tắt"}),description:e({en:"Access top features of Facebook faster",vi:"Truy cập các tính năng hay của Facebook nhanh hơn"}),noVIP:!0,VIP:!0}].map((o,t)=>({...o,id:t+1})),f=[{title:"#",dataIndex:"id",key:"id",width:50,render:(o,t,d)=>t.header?"":l.filter(a=>!a.header).findIndex(a=>a.id==o)+1},{title:e({en:"Features",vi:"Chức năng"}),dataIndex:"name",key:"name",render:(o,t,d)=>t.header?n.jsx(T.Title,{level:4,style:{marginTop:15,marginBottom:0},children:n.jsxs(b,{to:t.path,children:[t.icon," ",o]})}):n.jsxs(s,{direction:"vertical",size:0,style:{maxWidth:500},children:[n.jsxs(s,{children:[t.name,t.badge&&n.jsx(u,{color:t.badge.bg,count:e(t.badge.text),style:{color:t.badge.color}})]}),n.jsx("span",{className:"vip-desc",children:t.description})]})},...[{name:"Free",value:"noVIP"},{name:n.jsxs(n.Fragment,{children:["VIP ",n.jsx("i",{className:"fa-solid fa-crown",style:{color:"gold"}})]}),value:"VIP",showHeaderPath:!0}].map(({name:o,value:t,showHeaderPath:d})=>({title:o,dataIndex:t,key:t,width:70,align:"center",render:(a,v,N)=>v.header?"":a?n.jsx(m,{color:"success",children:n.jsx("i",{className:"fa-solid fa-check"})}):n.jsx(m,{color:"error",children:n.jsx("i",{className:"fa-solid fa-xmark"})})}))],h=n.jsxs(j,{justify:"end",style:{margin:"5px"},children:[c?n.jsx(g,{showIcon:!0,type:"success",message:n.jsxs(n.Fragment,{children:[e({en:"VIP Unlocked",vi:"Thành viên VIP"})+" ",n.jsxs(w,{title:e({en:"Until ",vi:"Tới "})+new Date(r).toLocaleString(),children:["(",p,")"]})]})}):r?n.jsx(g,{showIcon:!0,type:"info",message:e({en:"Expired at",vi:"Hết hạn lúc"})+" "+new Date(r).toLocaleString()}):null,n.jsx(u,{count:e({en:"New",vi:"Mới"}),style:{color:"white"},color:"purple",children:n.jsx(I,{size:"large",icon:n.jsx("i",{className:"fa-solid fa-crown",style:{color:"gold"}}),onClick:()=>x(!0),style:{marginLeft:10},children:e(c?{en:"Renew VIP",vi:"Gia hạn VIP"}:{en:"Unlock VIP",vi:"Mở khoá VIP"})})})]});return n.jsxs(s,{direction:"vertical",style:{width:"100%"},align:"center",children:[n.jsxs("h1",{children:["VIP ",n.jsx("i",{className:"fa-solid fa-crown",style:{color:"gold"}})]}),h,n.jsx(B,{sticky:{offsetHeader:0},fixedHeader:!0,size:"middle",tableLayout:"auto",dataSource:l,columns:f,pagination:!1,style:{minWidth:500,width:"min(100vw, 700px)"},rowKey:o=>o.id,footer:()=>h})]})}export{J as default}; +import{r as k,aA as n,aH as i,aG as b,aB as I}from"./index-BBriuzNA.js";import{u as V,a as P,t as y,b as s,B as u,c as m,T as w,k as x}from"./MyApp-CmkiOnMb.js";import{T}from"./index-Bumumc8Y.js";import{R as j}from"./row-C0Wk6t4-.js";import{A as g}from"./index-BhyNApA-.js";import{F as B}from"./Table-By6CV266.js";import"./responsiveObserver-Bb1LONna.js";import"./addEventListener-w7NT04KM.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-tTPNrueW.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./useBreakpoint-CDLrV-mr.js";import"./Pagination-slfcHA-i.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";function J(){const{ti:e}=V(),{isVIP:c,expiredTime:r,timeLeft:p}=P();k.useEffect(()=>{y("VIP:onLoad")},[]);const l=[{header:!0,path:"/bulk-downloader",icon:n.jsx("i",{className:"fa-solid fa-download"}),name:e({en:"Bulk downloader",vi:"Tải hàng loạt"})},{name:e({en:"Download all photos/videos/reels on Facebook/Instagram/Threads",vi:"Tải mọi ảnh/video/reel trên Facebook/Instagram/Threads"}),description:e({en:"Suppport all Meta platforms: Facebook (user/page/group) & Instagram & Threads",vi:"Hỗ trợ tất cả nền tảng Meta: Facebook (người dùng/trang/nhóm) & Instagram & Threads"}),badge:i.HOT,noVIP:!1,VIP:!0},{name:e({en:"View LOCKED profile",vi:"Xem trang cá nhân bị KHOÁ"}),description:e({en:"Stalk anyone even if they locked their facebook profile: tagged, groups, pages, life events, ...",vi:"Xem nhiều thông tin hơn ở những trang cá nhân được khoá bảo vệ: những nơi được tag (bình luận, bài viết), nhóm tham gia, trang đã like, sự kiện trong đời, ..."}),badge:i.HOT,noVIP:!0,VIP:!0},{name:e({en:"View TAGGED content of anyone",vi:"Xem lượt TAG của người khác"}),description:e({en:"Know where your friends being tagged on facebook: in posts, in comments, ... (even if they locked their profile)",vi:"Biết bạn bè được tag ở đâu trên facebook: bài viết, bình luận, ... (đã khoá bảo vệ trang cá nhân cũng xem đươc)"}),badge:i.NEW,noVIP:!0,VIP:!0},{name:e({en:"Find all POSTS of anyone",vi:"Tìm mọi BÀI VIẾT của người khác"}),description:e({en:"Know where someone have posted on facebook: groups/pages (even if they locked their profile)",vi:"Biết người khác đã đăng bài ở đâu trên facebook: nhóm/trang (đã khoá bảo vệ trang cá nhân cũng xem đươc)"}),badge:i.NEW,noVIP:!0,VIP:!0},{name:e({en:"Know which groups/pages your friends joined",vi:"Biết bạn bè tham gia nhóm/trang nào"}),description:e({en:"even if they locked their profile, even if not your friends",vi:"Đã khoá bảo vệ trang cá nhân cũng xem đươc, chưa kết bạn cũng xem được"}),noVIP:!0,VIP:!0},{name:e({en:"View stories ANONYMOUS",vi:"Xem story ẨN DANH"}),description:e({en:"Your friends will not know you saw their stories, support both Facebook & Instagram",vi:"Bạn bè sẽ không biết bạn đã xem story của họ, hỗ trợ Facebook & Instagram"}),noVIP:!0,VIP:!0},{name:e({en:"Download any video/reels",vi:"Tải bất kỳ video/reels nào"}),description:e({en:"Just enter the link of the video/reels, support Facebook, include private videos",vi:"Chỉ cần nhập link video/reels, hỗ trợ Facebook, cả video riêng tư"}),noVIP:!0,VIP:!0},{name:e({en:"Download any Facebook POST",vi:"Tải BÀI VIẾT Facebook bất kỳ"}),description:e({en:"Just enter the link of the post, we will download all photos/video in that post for you",vi:"Chỉ cần nhập link bài viết, sẽ tải mọi ảnh/video có trong bài viết đó cho bạn"}),badge:i.NEW,noVIP:!1,VIP:!0},{name:e({en:"Download ALL medias + JSON + LINKs",vi:"Tải mọi ảnh + video + JSON + LINKS"}),description:e({en:"Support direct download all medias, or just .JSON (more informations), or just Links",vi:"Hỗ trợ tải trực tiếp ảnh/video về máy, hoặc chỉ tải .JSON (nhiều thông tin hơn), hoặc chỉ tải danh sách Link"}),noVIP:!1,VIP:!0},{name:e({en:"Bulk download with Select mode",vi:"Tải hàng loạt có Sàng lọc"}),description:e({en:"Select media you want to download, instead of download all",vi:"Cho phép chọn ảnh/video muốn tải, thay vì tải tất cả"}),noVIP:!1,VIP:!0},{header:!0,path:"/stories",icon:n.jsx("i",{className:"fa-solid fa-heart"}),name:e({en:"Story",vi:"Tin (Story)"})},{name:e({en:"View all stories ANONYMOUS",vi:"Xem mọi story ẨN DANH"}),description:e({en:"View all today's stories of your friends, support anonymous",vi:"Xem tất cả stories được đăng bởi bạn bè hôm nay, hỗ trợ xem ẩn danh"}),badge:i.HOT,noVIP:!0,VIP:!0},{name:e({en:"Download any story",vi:"Tải story dễ dàng"}),description:e({en:"Download any story of any friend with ease",vi:"Tải story của bất kỳ ai dễ dàng, không ràng buộc"}),noVIP:!0,VIP:!0},{name:e({en:"Bulk download all stories",vi:"Tải hàng loạt story"}),description:e({en:"Download all/selected stories with one click",vi:"Tải mọi story với 1 click, hỗ trợ chọn để tải"}),noVIP:!1,VIP:!0},{name:e({en:"Custom reactions",vi:"Thêm cảm xúc"}),description:e({en:"Add bunch of reactions for you to react to any story",vi:"Thêm hàng trăm cảm xúc tuỳ chỉnh để bạn thả vào bất kỳ story nào"}),badge:i.HOT,noVIP:!1,VIP:!0},{header:!0,path:"/messages/all",icon:n.jsx("i",{className:"fa-brands fa-facebook-messenger"}),name:e({en:"Messsages",vi:"Tin nhắn"})},{name:e({en:"Manage all messages",vi:"Quản lý mọi tin nhắn"}),description:e({en:"Include search/sort/filter by name/members/messages count/message type (non e2ee)",vi:"Bao gồm tìm kiếm/sắp xếp/sàng lọc theo tên/thành viên/số tin nhắn/loại tin nhắn (không mã hoá đầu cuối)"}),noVIP:!0,VIP:!0},{name:e({en:"View old messages at any date",vi:"Xem tin nhắn cũ tại thời điểm bất kỳ"}),description:e({en:"Just select the date, we will show all messages at that date for you",vi:"Chỉ cần chọn ngày, tool sẽ hiện mọi tin nhắn trong ngày đó cho bạn"}),badge:i.HOT,noVIP:!1,VIP:!0},{name:e({en:"Find first messages",vi:"Xem tin nhắn đầu tiên"}),description:e({en:"Auto scan to find first message of any thread",vi:"Tự động quét tìm tin nhắn đầu tiên của bất kỳ đoạn chat nào"}),noVIP:!1,VIP:!0},{name:e({en:"Download all messages",vi:"Tải toàn bộ cuộc trò chuyện"}),description:e({en:"Download all messages/threads in bulk, into single .html file",vi:"Tải toàn bộ tin nhắn/đoạn chat, ra 1 file .html duy nhất"}),noVIP:!1,VIP:!0},{header:!0,path:"/friends/all",icon:n.jsx("i",{className:"fa-solid fa-users"}),name:e({en:"Friends",vi:"Bạn bè"})},{name:e({en:"Manage all friends",vi:"Quản lý tất cả bạn bè"}),description:e({en:"Include search/sort/filter by name/uid, find locked account, find friend that block your messages",vi:"Bao gồm tìm kiếm/sắp xếp/sàng lọc theo tên/uid, tìm tài khoản bị khoá, tìm bạn bè đang chặn tin nhắn của bạn"}),noVIP:!0,VIP:!0},{name:e({en:"Detect unfriend",vi:"Phát hiện huỷ kết bạn"}),description:e({en:"Auto detect and notify when someone unfriend you, or new friend added",vi:"Tự động phát hiện và thông báo khi có người huỷ kết bạn với bạn, hoặc khi có bạn mới"}),badge:i.HOT,noVIP:!0,VIP:!0},{name:e({en:"Unfriend one click",vi:"Huỷ kết bạn 1 chạm"}),description:e({en:"Unfriend anyone with just 1 click, support undo",vi:"Huỷ kết bạn bất kỳ ai chỉ với 1 click, hỗ trợ hoàn tác"}),noVIP:!0,VIP:!0},{name:e({en:"Bulk unfriend all/selected",vi:"Huỷ kết bạn hàng loạt"}),description:e({en:"Select multiple friends to unfriend, or just unfriend all with just one click",vi:"Chọn nhiều bạn để huỷ kết bạn cùng lúc, hoặc huỷ kết bạn tất cả chỉ với 1 nút"}),noVIP:!1,VIP:!0},{name:e({en:"Ranking friends",vi:"Xếp hạng bạn bè"}),description:e({en:"Ranking to see who are most interacting with you in recent days (recent interactions)",vi:"Xếp hạng xem ai tương tác nhiều nhất với bạn thời gian gần đây (tương tác gần đây)"}),noVIP:!0,VIP:!0},{name:e({en:"Quick filters",vi:"Bộ lọc nhanh"}),description:e({en:"Quick filter out accounts that have special characters, contains number, no avatar, strange UID, blocked messages, ...",vi:"Lọc nhanh tài khoản chứa ký tự đặc biệt, chứa số, không có avatar, UID lạ, người chặn tin nhắn, ..."}),noVIP:!0,VIP:!0},{name:e({en:"Interactions scan",vi:"Quét tương tác"}),description:e({en:"Scan all your posts to count likes and comments of all your friends (total interactions)",vi:"Quét toàn bộ bài viết của bạn để đếm like và comments của tất cả bạn bè (tương tác tổng)"}),badge:i.HOT,noVIP:!1,VIP:!0},{name:e({en:"Deep scan",vi:"Quét chuyên sâu"}),description:e({en:"Scan all friends to find locked accounts, gender, mutual friends, and more",vi:"Quét toàn bộ bạn bè để tìm tài khoản bị khoá, giới tính, bạn chung , ..."}),badge:i.NEW,noVIP:!1,VIP:!0},{header:!0,path:"/friends/requests",icon:n.jsx("i",{className:"fa-solid fa-user-plus"}),name:e({en:"Friend requests",vi:"Lời mời kết bạn"})},{name:e({en:"Manage all friend requests",vi:"Quản lý yêu cầu kết bạn"}),description:e({en:"Include search/sort/filter all friend requests (incoming/outgoing)",vi:"Bao gồm tìm kiếm/sắp xếp/lọc tất cả yêu cầu kết bạn (gửi đến/gửi đi)"}),noVIP:!0,VIP:!0},{name:e({en:"One click action friend-request",vi:"1 click bay màu Lời mời kết bạn"}),description:e({en:"Decline/Accept/Cancel any friend request with just 1 click",vi:"Từ chối/Chấp nhận/Thu hồi bất kỳ yêu cầu kết bạn nào chỉ với 1 click"}),noVIP:!0,VIP:!0},{name:e({en:"One click BULK action ALL friend-requests",vi:"1 click bay màu TOÀN BỘ lời mời kết bạn"}),description:e({en:"Decline/Accept/Cancel all/selected friend-requests with just 1 click",vi:"Từ chối/Chấp nhận/Thu hồi HÀNG LOẠT yêu cầu kết bạn nào chỉ với 1 click"}),noVIP:!1,VIP:!0},{header:!0,path:"/friends/follows",icon:n.jsx("i",{className:"fa-solid fa-person-walking-arrow-right"}),name:e({en:"Following",vi:"Đang theo dõi"})},{name:e({en:"Manage all following",vi:"Quản lý danh sách theo dõi"}),description:e({en:"Include search/sort/filter all your following (friends/pages/groups)",vi:"Bao gồm tìm kiếm/sắp xếp/lọc toàn bộ danh sách người bạn đang theo dõi (người dùng/trang/nhóm)"}),noVIP:!0,VIP:!0},{name:e({en:"Unfollow with one click",vi:"Bỏ theo dõi với 1 click"}),description:e({en:"Unfollow anyone with just 1 click, support undo",vi:"Bỏ theo dõi bất kỳ ai chỉ với 1 click, hỗ trợ hoàn tác"}),noVIP:!0,VIP:!0},{name:e({en:"UnFollow in BULK",vi:"Bỏ theo dõi hàng loạt"}),description:e({en:"Unfollow all/selected accounts with ease",vi:"Bỏ theo dõi tất cả hoặc tài khoản được chọn, hoàn toàn tự động"}),noVIP:!1,VIP:!0},{header:!0,path:"/groups",icon:n.jsx("i",{className:"fa-solid fa-users-line"}),name:e({en:"Groups",vi:"Nhóm"})},{name:e({en:"Manage all groups",vi:"Quản lý nhóm"}),description:e({en:"Include search/sort/filter all joined groups/admin groups/waiting groups",vi:"Bao gồm tìm kiếm/sắp xếp/lọc tất cả nhóm đã tham gia/nhóm bạn làm admin/nhóm đang chờ duyệt"}),noVIP:!0,VIP:!0},{name:e({en:"Leave group 1 click",vi:"Rời nhóm 1 chạm"}),description:e({en:"Leave any group with 1 click, support undo",vi:"Rời nhóm chỉ với 1 click, hỗ trợ hoàn tác"}),noVIP:!0,VIP:!0},{name:e({en:"Bulk Leave groups",vi:"Rời nhóm hàng loạt"}),description:e({en:"Leave all/selected groups with one click",vi:"Rời tất cả nhóm / nhóm được chọn dễ dàng, nhanh chóng"}),noVIP:!1,VIP:!0},{name:e({en:"Find groups no admin",vi:"Tìm nhóm không có admin"}),description:e({en:"Scan to find groups that don’t have any admin",vi:"Quét để tìm nhóm không có admin quản lý"}),noVIP:!1,VIP:!0},{header:!0,path:"/pages",icon:n.jsx("i",{className:"fa-solid fa-flag"}),name:e({en:"Pages",vi:"Trang"})},{name:e({en:"Manage all pages",vi:"Quản lý trang"}),description:e({en:"Include search/sort/filter all joined pages/admin pages/invited pages",vi:"Bao gồm tìm kiếm/sắp xếp/lọc tất cả trang đã tham gia/trang của bạn/trang được mời"}),noVIP:!0,VIP:!0},{name:e({en:"Unfollow/Unlike 1 click",vi:"Bỏ theo dõi/Bỏ thích 1 chạm"}),description:e({en:"Unfollow or Unlike any page with 1 click, support undo",vi:"Bỏ theo dõi hoặc Bỏ thích trang bất kỳ nhanh chóng, hỗ trợ hoàn tác"}),noVIP:!0,VIP:!0},{name:e({en:"Bulk Unfollow/Unlike pages",vi:"Bỏ theo dõi/Bỏ thích hàng loạt"}),description:e({en:"Unfollow or Unlike multiple pages in bulk",vi:"Bỏ theo dõi hoặc Bỏ thích nhiều trang cùng lúc"}),noVIP:!1,VIP:!0},{header:!0,icon:n.jsx("i",{className:"fa-solid fa-star"}),name:e({en:"More",vi:"Tiện ích"})},{name:e({en:"A lot of Autorun features",vi:"Hàng loạt chức năng Tự động chạy"}),description:e({en:"Block 'seen' story feature on facebook/instagram. Count total post' reactions. Delete tracking params from urls, ...",vi:"Chặn 'đã xem' story facebook/instagram. Đếm tổng lượt thích bài viết facebook. Xoá tham số theo dõi trong url, ..."}),badge:i.NEW,noVIP:!0,VIP:!0},{name:e({en:"Facebok Video Downloader",vi:"Tải video Facebook"}),description:e({en:"Download any video/reel with 1 click, highest quality",vi:"Tải bất kỳ video/reel nào với 1 chạm, chất lượng cao nhất"}),badge:i.NEW,noVIP:!0,VIP:!0},{name:e({en:"Shortcuts",vi:"Phím tắt"}),description:e({en:"Access top features of Facebook faster",vi:"Truy cập các tính năng hay của Facebook nhanh hơn"}),noVIP:!0,VIP:!0}].map((o,t)=>({...o,id:t+1})),f=[{title:"#",dataIndex:"id",key:"id",width:50,render:(o,t,d)=>t.header?"":l.filter(a=>!a.header).findIndex(a=>a.id==o)+1},{title:e({en:"Features",vi:"Chức năng"}),dataIndex:"name",key:"name",render:(o,t,d)=>t.header?n.jsx(T.Title,{level:4,style:{marginTop:15,marginBottom:0},children:n.jsxs(b,{to:t.path,children:[t.icon," ",o]})}):n.jsxs(s,{direction:"vertical",size:0,style:{maxWidth:500},children:[n.jsxs(s,{children:[t.name,t.badge&&n.jsx(u,{color:t.badge.bg,count:e(t.badge.text),style:{color:t.badge.color}})]}),n.jsx("span",{className:"vip-desc",children:t.description})]})},...[{name:"Free",value:"noVIP"},{name:n.jsxs(n.Fragment,{children:["VIP ",n.jsx("i",{className:"fa-solid fa-crown",style:{color:"gold"}})]}),value:"VIP",showHeaderPath:!0}].map(({name:o,value:t,showHeaderPath:d})=>({title:o,dataIndex:t,key:t,width:70,align:"center",render:(a,v,N)=>v.header?"":a?n.jsx(m,{color:"success",children:n.jsx("i",{className:"fa-solid fa-check"})}):n.jsx(m,{color:"error",children:n.jsx("i",{className:"fa-solid fa-xmark"})})}))],h=n.jsxs(j,{justify:"end",style:{margin:"5px"},children:[c?n.jsx(g,{showIcon:!0,type:"success",message:n.jsxs(n.Fragment,{children:[e({en:"VIP Unlocked",vi:"Thành viên VIP"})+" ",n.jsxs(w,{title:e({en:"Until ",vi:"Tới "})+new Date(r).toLocaleString(),children:["(",p,")"]})]})}):r?n.jsx(g,{showIcon:!0,type:"info",message:e({en:"Expired at",vi:"Hết hạn lúc"})+" "+new Date(r).toLocaleString()}):null,n.jsx(u,{count:e({en:"New",vi:"Mới"}),style:{color:"white"},color:"purple",children:n.jsx(I,{size:"large",icon:n.jsx("i",{className:"fa-solid fa-crown",style:{color:"gold"}}),onClick:()=>x(!0),style:{marginLeft:10},children:e(c?{en:"Renew VIP",vi:"Gia hạn VIP"}:{en:"Unlock VIP",vi:"Mở khoá VIP"})})})]});return n.jsxs(s,{direction:"vertical",style:{width:"100%"},align:"center",children:[n.jsxs("h1",{children:["VIP ",n.jsx("i",{className:"fa-solid fa-crown",style:{color:"gold"}})]}),h,n.jsx(B,{sticky:{offsetHeader:0},fixedHeader:!0,size:"middle",tableLayout:"auto",dataSource:l,columns:f,pagination:!1,style:{minWidth:500,width:"min(100vw, 700px)"},rowKey:o=>o.id,footer:()=>h})]})}export{J as default}; diff --git a/public/assets/VideoDownloader-CDm2n03r.js b/public/assets/VideoDownloader-CGIr9UaI.js similarity index 80% rename from public/assets/VideoDownloader-CDm2n03r.js rename to public/assets/VideoDownloader-CGIr9UaI.js index 16e5328..8d524dc 100644 --- a/public/assets/VideoDownloader-CDm2n03r.js +++ b/public/assets/VideoDownloader-CGIr9UaI.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./VideoViewer-BZdLHYsJ.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./VideoWithMuted-xvYRNY0l.js","./MyApp-BHr373cy.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{aC as w,r as s,aA as t,aB as j,aY as I,aF as L}from"./index--trdnQFa.js";import{u as S,d as V,g as x,t as y,X as T,b as E,B as C}from"./MyApp-BHr373cy.js";import{g as D,C as F}from"./videos-CpxHGGu6.js";import{T as N}from"./index-VHrAsB-Q.js";import{I as R}from"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";const _=s.lazy(()=>L(()=>import("./VideoViewer-BZdLHYsJ.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url));function z(){var m,p;const{ti:o}=S(),{message:a}=V(),i=w(),l=s.useMemo(()=>new URLSearchParams(i.search),[i.search]),[f,d]=x("videoDownloader.url",l.get("url")||((m=i.state)==null?void 0:m.url)||""),[h,c]=x("videoDownloader.info",((p=i.state)==null?void 0:p.info)||null),[v,r]=s.useState(!1);s.useEffect(()=>{y("VideoDownloader:onLoad")},[]),s.useEffect(()=>{var e,n;(e=i.state)!=null&&e.url&&((n=i.state)!=null&&n.info)&&(d(i.state.url),c(i.state.info))},[i.state]),s.useEffect(()=>{if(l.get("url")){const e=setTimeout(g,200);return()=>clearTimeout(e)}},[l]);const g=async()=>{const e="VideoDownloader:onSearch";y(e),r(!0),a.loading({key:e,content:o({en:"Finding video...",vi:"Đang tìm video..."}),duration:0});const n=await T(f);if(!n){r(!1),a.error({key:e,content:o({en:"Video not found",vi:"Không tìm thấy video"})});return}a.success({content:o({en:"Found video id: ",vi:"Tìm thấy ID video: "})+n}),a.loading({key:e,content:o({en:"Fetching video info...",vi:"Đang tải thông tin video..."}),duration:0});const u=await D(n);if(console.log(u),!u){r(!1),a.error({key:e,content:o({en:"Cannot fetch video info",vi:"Không tải được video"})});return}a.success({key:e,content:o({en:"Fetched video info",vi:"Tải thông tin video thành công"})}),c(u),r(!1)};return t.jsxs(E,{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",padding:10},direction:"vertical",children:[t.jsx(N.Title,{level:3,children:o({en:"Video/Reel downloader",vi:"Tải video/reel"})}),t.jsx(R.Search,{placeholder:o({en:"Enter video/reel URL",vi:"Nhập LINK video/reel"}),size:"large",style:{width:350},value:f,onChange:e=>{var n;return d((n=e.target.value)==null?void 0:n.trim())},onSearch:()=>g(),enterButton:v?null:t.jsx("i",{className:"fa-solid fa-magnifying-glass"}),loading:v}),h?t.jsxs("div",{style:{position:"relative"},children:[t.jsx(_,{buttonTop:!0,info:h}),t.jsx(j,{type:"text",icon:t.jsx("i",{className:"fa-solid fa-xmark"}),onClick:()=>{d(""),c(null)},style:{position:"absolute",right:5,top:5}})]}):t.jsx(C,{color:"purple",count:o({en:"New",vi:"Mới"}),style:{color:"white"},children:t.jsx(F,{defaultActiveKey:[0],items:[{label:o({en:"Supported URL format ?",vi:"Các định dạng LINK được hỗ trợ ?"}),children:t.jsx("ul",{children:I.map(e=>t.jsx("li",{children:e},e))})}]})})]})}export{z as default}; +const __vite__fileDeps=["./VideoViewer-cT2XlKrM.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./VideoWithMuted-CdYhYcjW.js","./MyApp-CmkiOnMb.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{aC as w,r as s,aA as t,aB as j,aY as I,aF as L}from"./index-BBriuzNA.js";import{u as S,d as V,g as x,t as y,X as T,b as E,B as C}from"./MyApp-CmkiOnMb.js";import{g as D,C as F}from"./videos-VQJKJ_Wq.js";import{T as N}from"./index-Bumumc8Y.js";import{I as R}from"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";const _=s.lazy(()=>L(()=>import("./VideoViewer-cT2XlKrM.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url));function z(){var m,p;const{ti:o}=S(),{message:a}=V(),i=w(),l=s.useMemo(()=>new URLSearchParams(i.search),[i.search]),[f,d]=x("videoDownloader.url",l.get("url")||((m=i.state)==null?void 0:m.url)||""),[h,c]=x("videoDownloader.info",((p=i.state)==null?void 0:p.info)||null),[v,r]=s.useState(!1);s.useEffect(()=>{y("VideoDownloader:onLoad")},[]),s.useEffect(()=>{var e,n;(e=i.state)!=null&&e.url&&((n=i.state)!=null&&n.info)&&(d(i.state.url),c(i.state.info))},[i.state]),s.useEffect(()=>{if(l.get("url")){const e=setTimeout(g,200);return()=>clearTimeout(e)}},[l]);const g=async()=>{const e="VideoDownloader:onSearch";y(e),r(!0),a.loading({key:e,content:o({en:"Finding video...",vi:"Đang tìm video..."}),duration:0});const n=await T(f);if(!n){r(!1),a.error({key:e,content:o({en:"Video not found",vi:"Không tìm thấy video"})});return}a.success({content:o({en:"Found video id: ",vi:"Tìm thấy ID video: "})+n}),a.loading({key:e,content:o({en:"Fetching video info...",vi:"Đang tải thông tin video..."}),duration:0});const u=await D(n);if(console.log(u),!u){r(!1),a.error({key:e,content:o({en:"Cannot fetch video info",vi:"Không tải được video"})});return}a.success({key:e,content:o({en:"Fetched video info",vi:"Tải thông tin video thành công"})}),c(u),r(!1)};return t.jsxs(E,{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",padding:10},direction:"vertical",children:[t.jsx(N.Title,{level:3,children:o({en:"Video/Reel downloader",vi:"Tải video/reel"})}),t.jsx(R.Search,{placeholder:o({en:"Enter video/reel URL",vi:"Nhập LINK video/reel"}),size:"large",style:{width:350},value:f,onChange:e=>{var n;return d((n=e.target.value)==null?void 0:n.trim())},onSearch:()=>g(),enterButton:v?null:t.jsx("i",{className:"fa-solid fa-magnifying-glass"}),loading:v}),h?t.jsxs("div",{style:{position:"relative"},children:[t.jsx(_,{buttonTop:!0,info:h}),t.jsx(j,{type:"text",icon:t.jsx("i",{className:"fa-solid fa-xmark"}),onClick:()=>{d(""),c(null)},style:{position:"absolute",right:5,top:5}})]}):t.jsx(C,{color:"purple",count:o({en:"New",vi:"Mới"}),style:{color:"white"},children:t.jsx(F,{defaultActiveKey:[0],items:[{label:o({en:"Supported URL format ?",vi:"Các định dạng LINK được hỗ trợ ?"}),children:t.jsx("ul",{children:I.map(e=>t.jsx("li",{children:e},e))})}]})})]})}export{z as default}; diff --git a/public/assets/VideoViewer-BZdLHYsJ.js b/public/assets/VideoViewer-cT2XlKrM.js similarity index 89% rename from public/assets/VideoViewer-BZdLHYsJ.js rename to public/assets/VideoViewer-cT2XlKrM.js index 483d238..63b18ff 100644 --- a/public/assets/VideoViewer-BZdLHYsJ.js +++ b/public/assets/VideoViewer-cT2XlKrM.js @@ -1 +1 @@ -import{r,aA as i,aB as j}from"./index--trdnQFa.js";import{A as p,V as v}from"./VideoWithMuted-xvYRNY0l.js";import{u as q,ay as S,b as z,T as A,az as V,t as L}from"./MyApp-BHr373cy.js";function B({info:t,style:C,videoStyle:R,buttonTop:c=!1}){var m,f,g,x,y;const{ti:w}=q(),[s,o]=r.useState(null),[l,E]=r.useState({}),[n,b]=r.useState(0),d=(s==null?void 0:s.source)||t.source;(g=(f=(m=t.variants)==null?void 0:m.filter(e=>!e.isAudio))==null?void 0:f.sort((e,a)=>a.width*a.height-e.width*e.height))==null||g[0],(x=t.variants)==null||x.find(e=>e.isAudio);const u=r.useRef(!1);r.useEffect(()=>{var e;(e=t.variants)!=null&&e.length&&!Object.keys(l).length&&!u.current&&(u.current=!0,Promise.all(t.variants.map(a=>S(a.source).then(k=>{E(F=>({...F,[a.id]:k}))}).catch(()=>{console.log("ERROR get size",a)}))).finally(()=>{u.current=!1}))},[l,t.variants]),r.useEffect(()=>{t.source&&S(t.source).then(e=>{b(e)})},[t.source]);const h=i.jsxs(z.Compact,{children:[i.jsx(A,{title:n?V(n,1):"",children:i.jsx(j,{type:s?"default":"primary",onClick:()=>o(null),children:w({en:"Default",vi:"Mặc định"})})}),(y=t.variants)==null?void 0:y.map((e,a)=>i.jsx(A,{title:(e.isAudio?"":e.width+"x"+e.height)+(l[e.id]?" - "+V(l[e.id],1):""),children:i.jsxs(j,{type:(s==null?void 0:s.id)===e.id?"primary":"default",onClick:()=>{L("VideoViewer:onChangeVariant:"+(e.qualityLabel||e.mimeType)),o(e)},icon:e.isAudio?i.jsx("i",{className:"fa-solid fa-music"}):null,children:[e.qualityClass," ",e.qualityLabel||e.mimeType]})},e.id))]});return i.jsxs(z,{direction:"vertical",style:{padding:15,borderRadius:10,backgroundColor:"#222",justifyContent:"center",alignItems:"center",...C},children:[c&&h,s!=null&&s.isAudio?i.jsx(p,{src:d}):i.jsx(v,{src:d,style:{maxWidth:"80vw",maxHeight:"80vh",...R}}),!c&&h]})}export{B as default}; +import{r,aA as i,aB as j}from"./index-BBriuzNA.js";import{A as p,V as v}from"./VideoWithMuted-CdYhYcjW.js";import{u as q,ay as S,b as z,T as A,az as V,t as L}from"./MyApp-CmkiOnMb.js";function B({info:t,style:C,videoStyle:R,buttonTop:c=!1}){var m,f,g,x,y;const{ti:w}=q(),[s,o]=r.useState(null),[l,E]=r.useState({}),[n,b]=r.useState(0),d=(s==null?void 0:s.source)||t.source;(g=(f=(m=t.variants)==null?void 0:m.filter(e=>!e.isAudio))==null?void 0:f.sort((e,a)=>a.width*a.height-e.width*e.height))==null||g[0],(x=t.variants)==null||x.find(e=>e.isAudio);const u=r.useRef(!1);r.useEffect(()=>{var e;(e=t.variants)!=null&&e.length&&!Object.keys(l).length&&!u.current&&(u.current=!0,Promise.all(t.variants.map(a=>S(a.source).then(k=>{E(F=>({...F,[a.id]:k}))}).catch(()=>{console.log("ERROR get size",a)}))).finally(()=>{u.current=!1}))},[l,t.variants]),r.useEffect(()=>{t.source&&S(t.source).then(e=>{b(e)})},[t.source]);const h=i.jsxs(z.Compact,{children:[i.jsx(A,{title:n?V(n,1):"",children:i.jsx(j,{type:s?"default":"primary",onClick:()=>o(null),children:w({en:"Default",vi:"Mặc định"})})}),(y=t.variants)==null?void 0:y.map((e,a)=>i.jsx(A,{title:(e.isAudio?"":e.width+"x"+e.height)+(l[e.id]?" - "+V(l[e.id],1):""),children:i.jsxs(j,{type:(s==null?void 0:s.id)===e.id?"primary":"default",onClick:()=>{L("VideoViewer:onChangeVariant:"+(e.qualityLabel||e.mimeType)),o(e)},icon:e.isAudio?i.jsx("i",{className:"fa-solid fa-music"}):null,children:[e.qualityClass," ",e.qualityLabel||e.mimeType]})},e.id))]});return i.jsxs(z,{direction:"vertical",style:{padding:15,borderRadius:10,backgroundColor:"#222",justifyContent:"center",alignItems:"center",...C},children:[c&&h,s!=null&&s.isAudio?i.jsx(p,{src:d}):i.jsx(v,{src:d,style:{maxWidth:"80vw",maxHeight:"80vh",...R}}),!c&&h]})}export{B as default}; diff --git a/public/assets/VideoWithMuted-xvYRNY0l.js b/public/assets/VideoWithMuted-CdYhYcjW.js similarity index 77% rename from public/assets/VideoWithMuted-xvYRNY0l.js rename to public/assets/VideoWithMuted-CdYhYcjW.js index e0ce0d5..602dec9 100644 --- a/public/assets/VideoWithMuted-xvYRNY0l.js +++ b/public/assets/VideoWithMuted-CdYhYcjW.js @@ -1 +1 @@ -import{au as u,av as e,aA as r}from"./index--trdnQFa.js";function a(t){const o=u(e.muted);return r.jsx("video",{controls:!0,autoPlay:!0,loop:!0,muted:o,...t})}function n(t){const o=u(e.muted);return r.jsx("audio",{controls:!0,autoPlay:!0,loop:!0,muted:o,...t})}export{n as A,a as V}; +import{au as u,av as e,aA as r}from"./index-BBriuzNA.js";function a(t){const o=u(e.muted);return r.jsx("video",{controls:!0,autoPlay:!0,loop:!0,muted:o,...t})}function n(t){const o=u(e.muted);return r.jsx("audio",{controls:!0,autoPlay:!0,loop:!0,muted:o,...t})}export{n as A,a as V}; diff --git a/public/assets/Videos-Csu7HQR5.js b/public/assets/Videos-CSQOUGHs.js similarity index 53% rename from public/assets/Videos-Csu7HQR5.js rename to public/assets/Videos-CSQOUGHs.js index e36dfcd..343aa30 100644 --- a/public/assets/Videos-Csu7HQR5.js +++ b/public/assets/Videos-CSQOUGHs.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./VideoViewer-BZdLHYsJ.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./VideoWithMuted-xvYRNY0l.js","./MyApp-BHr373cy.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{r,aA as e,aB as u,aF as h}from"./index--trdnQFa.js";import{V as a,B as f,ab as x,ac as b,i as t}from"./MyApp-BHr373cy.js";import{C as v}from"./Collection-CPPE61tF.js";import{a as w,b as y,g as p}from"./videos-CpxHGGu6.js";import j from"./ImageLazyPreview-CSLUs9MG.js";import{L as I}from"./index-BJNnFmyH.js";import"./index-X7jfXLlB.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./index-DmA8T0X5.js";import"./index-BCUBacY9.js";import"./index-VHrAsB-Q.js";import"./EyeOutlined-BALW2cms.js";import"./SearchOutlined-D247roQH.js";import"./index-CJGqVaEE.js";import"./index-CB9InVBI.js";import"./addEventListener-KkFh1sjE.js";import"./Pagination-CPGTHysj.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CETJ8txP.js";import"./row-DQoT4CfJ.js";const V=r.lazy(()=>h(()=>import("./VideoViewer-BZdLHYsJ.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url));function X({target:i}){const l=r.useCallback(async(o=[],s)=>{var d;return!(i!=null&&i.id)||!(i!=null&&i.type)?void 0:(s=s||((d=o==null?void 0:o[(o==null?void 0:o.length)-1])==null?void 0:d.cursor)||"",((i==null?void 0:i.type)===a.Group?await w({id:i==null?void 0:i.id,cursor:s}):await y({id:i==null?void 0:i.id,cursor:s})).videos)},[i]),n=r.useCallback(async o=>{if(!o.source){const s=await p(o.id);o.source=s.source}return{url:o.source,name:o.id+".mp4"}},[]),c=r.useCallback(o=>e.jsx(I.Item,{className:"show-on-hover-trigger",children:e.jsxs(f.Ribbon,{text:o.length?x(o.length):null,children:[e.jsx(j,{src:o.picture,width:200,height:200,style:{objectFit:"cover",borderRadius:10},cacheId:"video."+o.id,getPreview:()=>o.source||p(o.id),renderPreview:(s,m)=>({destroyOnClose:!0,imageRender:()=>e.jsx(b,{spinning:m,children:e.jsx(V,{info:s,style:{maxWidth:"90vw",maxHeight:"90vh"}})}),toolbarRender:()=>null})}),e.jsx(u,{type:"default",icon:e.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:t(o.id)})]})}),[]);return e.jsx(v,{collectionName:(i==null?void 0:i.name)+" - Videos",fetchNext:l,renderItem:c,downloadItem:n,getItemCursor:o=>o.cursor,rowKey:o=>o.id})}export{X as default}; +const __vite__fileDeps=["./VideoViewer-cT2XlKrM.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./VideoWithMuted-CdYhYcjW.js","./MyApp-CmkiOnMb.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{r,aA as e,aB as u,aF as h}from"./index-BBriuzNA.js";import{V as a,B as f,ab as x,ac as b,i as t}from"./MyApp-CmkiOnMb.js";import{C as v}from"./Collection-B9SxfYr4.js";import{a as w,b as y,g as p}from"./videos-VQJKJ_Wq.js";import j from"./ImageLazyPreview-DbcS5lXO.js";import{L as I}from"./index-B7udrguy.js";import"./index-NjHtWr7u.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./index-tTPNrueW.js";import"./index-BbXfI1Nu.js";import"./index-Bumumc8Y.js";import"./EyeOutlined-Du2MtFRM.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-uPrgDTc-.js";import"./index-Dm20K0UU.js";import"./addEventListener-w7NT04KM.js";import"./Pagination-slfcHA-i.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./index-CKsES7YN.js";import"./row-C0Wk6t4-.js";const V=r.lazy(()=>h(()=>import("./VideoViewer-cT2XlKrM.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url));function X({target:i}){const l=r.useCallback(async(o=[],s)=>{var d;return!(i!=null&&i.id)||!(i!=null&&i.type)?void 0:(s=s||((d=o==null?void 0:o[(o==null?void 0:o.length)-1])==null?void 0:d.cursor)||"",((i==null?void 0:i.type)===a.Group?await w({id:i==null?void 0:i.id,cursor:s}):await y({id:i==null?void 0:i.id,cursor:s})).videos)},[i]),n=r.useCallback(async o=>{if(!o.source){const s=await p(o.id);o.source=s.source}return{url:o.source,name:o.id+".mp4"}},[]),c=r.useCallback(o=>e.jsx(I.Item,{className:"show-on-hover-trigger",children:e.jsxs(f.Ribbon,{text:o.length?x(o.length):null,children:[e.jsx(j,{src:o.picture,width:200,height:200,style:{objectFit:"cover",borderRadius:10},cacheId:"video."+o.id,getPreview:()=>o.source||p(o.id),renderPreview:(s,m)=>({destroyOnClose:!0,imageRender:()=>e.jsx(b,{spinning:m,children:e.jsx(V,{info:s,style:{maxWidth:"90vw",maxHeight:"90vh"}})}),toolbarRender:()=>null})}),e.jsx(u,{type:"default",icon:e.jsx("i",{className:"fa-solid fa-up-right-from-square"}),style:{position:"absolute",bottom:10,right:10},className:"show-on-hover-item",target:"_blank",href:t(o.id)})]})}),[]);return e.jsx(v,{collectionName:(i==null?void 0:i.name)+" - Videos",fetchNext:l,renderItem:c,downloadItem:n,getItemCursor:o=>o.cursor,rowKey:o=>o.id})}export{X as default}; diff --git a/public/assets/addEventListener-KkFh1sjE.js b/public/assets/addEventListener-w7NT04KM.js similarity index 90% rename from public/assets/addEventListener-KkFh1sjE.js rename to public/assets/addEventListener-w7NT04KM.js index 114facd..921579b 100644 --- a/public/assets/addEventListener-KkFh1sjE.js +++ b/public/assets/addEventListener-w7NT04KM.js @@ -1 +1 @@ -import{bz as d}from"./index--trdnQFa.js";function r(){var e=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:n}}function f(e){var n=e.getBoundingClientRect(),t=document.documentElement;return{left:n.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}function a(e,n,t,i){var o=d.unstable_batchedUpdates?function(l){d.unstable_batchedUpdates(t,l)}:t;return e!=null&&e.addEventListener&&e.addEventListener(n,o,i),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(n,o,i)}}}export{a,f as b,r as g}; +import{bz as d}from"./index-BBriuzNA.js";function r(){var e=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:n}}function f(e){var n=e.getBoundingClientRect(),t=document.documentElement;return{left:n.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}function a(e,n,t,i){var o=d.unstable_batchedUpdates?function(l){d.unstable_batchedUpdates(t,l)}:t;return e!=null&&e.addEventListener&&e.addEventListener(n,o,i),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(n,o,i)}}}export{a,f as b,r as g}; diff --git a/public/assets/albums-CYfJUBHa.js b/public/assets/albums-BXb2vQdB.js similarity index 98% rename from public/assets/albums-CYfJUBHa.js rename to public/assets/albums-BXb2vQdB.js index c090e6c..42b6685 100644 --- a/public/assets/albums-CYfJUBHa.js +++ b/public/assets/albums-BXb2vQdB.js @@ -1 +1 @@ -import{D as x,E as k,H as C}from"./MyApp-BHr373cy.js";async function g({uid:s="",cursor:p=""}){var l,n,c,d,u,b,f,_,h,y;const e=[],m=await x({fb_api_req_friendly_name:"ProfileCometAppCollectionAlbumsRendererPaginationQuery",variables:{cursor:p,count:8,scale:2,id:btoa(`app_collection:${s}:2305272732:6`)},doc_id:"8672545689426653"}),r=k(m),{edges:o=[],page_info:i={}}=((n=(l=r==null?void 0:r.data)==null?void 0:l.node)==null?void 0:n.pageItems)||{};for(const t of o){const v=atob((c=t==null?void 0:t.node)==null?void 0:c.id).split(":").pop()||"";e.push({id:v,type:"album",name:(u=(d=t==null?void 0:t.node)==null?void 0:d.title)==null?void 0:u.text,count:parseInt((f=(b=t==null?void 0:t.node)==null?void 0:b.subtitle_text)==null?void 0:f.text)||0,link:(_=t==null?void 0:t.node)==null?void 0:_.url,picture:(y=(h=t==null?void 0:t.node)==null?void 0:h.image)==null?void 0:y.uri,cursor:t==null?void 0:t.cursor,recent:e.length})}return{albums:e,nextCursor:i==null?void 0:i.end_cursor}}async function P({groupId:s="",cursor:p=""}){var l,n,c,d,u,b,f,_,h,y,t,v,A,$;const e=[],m=await x({fb_api_req_friendly_name:"GroupsCometMediaAlbumsTabGridQuery",variables:{cursor:p,count:8,scale:2,id:s},doc_id:"6894403247286675"}),r=k(m),{edges:o=[],page_info:i={}}=((n=(l=r==null?void 0:r.data)==null?void 0:l.node)==null?void 0:n.group_albums)||{};for(const a of o){const w=(c=a==null?void 0:a.node)==null?void 0:c.id;e.push({id:w,type:"album",name:(u=(d=a==null?void 0:a.node)==null?void 0:d.title)==null?void 0:u.text,count:(((f=(b=a==null?void 0:a.node)==null?void 0:b.photos)==null?void 0:f.count)||0)+(((h=(_=a==null?void 0:a.node)==null?void 0:_.video)==null?void 0:h.count)||0),link:(y=a==null?void 0:a.node)==null?void 0:y.url,picture:($=(A=(v=(t=a==null?void 0:a.node)==null?void 0:t.album_cover_focused_image)==null?void 0:v.image)==null?void 0:A.image)==null?void 0:$.uri,cursor:a==null?void 0:a.cursor,recent:e.length})}return{albums:e,nextCursor:i==null?void 0:i.end_cursor}}async function Q({id:s="",fromId:p="",accessToken:e=""}){var i,l,n,c,d;const m=[],r=await C(`https://graph.facebook.com/v14.0/${s}?fields=albums.limit(100)${p?`.after(${btoa(p)})`:""}{type,name,count,link,picture{url}}&access_token=${e}`),o=k(r);if((l=(i=o.albums)==null?void 0:i.data)!=null&&l.length)for(const u of o.albums.data)m.push({id:u.id,type:u.type,name:u.name,count:u.count,link:u.link,picture:u.picture.data.url,recent:m.length});return{albums:m,nextCursor:(d=(c=(n=o.albums)==null?void 0:n.paging)==null?void 0:c.cursors)==null?void 0:d.after}}var E=(s=>(s.IMAGE="image",s.VIDEO="video",s))(E||{});async function q({albumId:s,accessToken:p="",fromId:e=""}){var i,l;let m=`https://graph.facebook.com/v14.0/${s}/photos?fields=largest_image&limit=100&access_token=${p}`;e&&(m+=`&after=${btoa(e)}`);let r=await C(m),o=k(r);if((i=o==null?void 0:o.data)!=null&&i.length)return((l=o==null?void 0:o.data)==null?void 0:l.map(n=>({id:n.id,uri:n.largest_image.source,type:"image"})))||[];r=await x({doc_id:"8142948395762884",variables:{id:s,cursor:e?btoa("fbid:"+e):"",count:14,renderLocation:"permalink",scale:2}}),o=k(r);try{return o.data.node.media.edges.map(c=>({id:c.node.id,uri:c.node.image.uri,type:c.node.__typename==="Video"?"video":"image"}))}catch(n){return console.error(n),[]}}export{E as M,P as a,g as b,q as c,Q as g}; +import{D as x,E as k,H as C}from"./MyApp-CmkiOnMb.js";async function g({uid:s="",cursor:p=""}){var l,n,c,d,u,b,f,_,h,y;const e=[],m=await x({fb_api_req_friendly_name:"ProfileCometAppCollectionAlbumsRendererPaginationQuery",variables:{cursor:p,count:8,scale:2,id:btoa(`app_collection:${s}:2305272732:6`)},doc_id:"8672545689426653"}),r=k(m),{edges:o=[],page_info:i={}}=((n=(l=r==null?void 0:r.data)==null?void 0:l.node)==null?void 0:n.pageItems)||{};for(const t of o){const v=atob((c=t==null?void 0:t.node)==null?void 0:c.id).split(":").pop()||"";e.push({id:v,type:"album",name:(u=(d=t==null?void 0:t.node)==null?void 0:d.title)==null?void 0:u.text,count:parseInt((f=(b=t==null?void 0:t.node)==null?void 0:b.subtitle_text)==null?void 0:f.text)||0,link:(_=t==null?void 0:t.node)==null?void 0:_.url,picture:(y=(h=t==null?void 0:t.node)==null?void 0:h.image)==null?void 0:y.uri,cursor:t==null?void 0:t.cursor,recent:e.length})}return{albums:e,nextCursor:i==null?void 0:i.end_cursor}}async function P({groupId:s="",cursor:p=""}){var l,n,c,d,u,b,f,_,h,y,t,v,A,$;const e=[],m=await x({fb_api_req_friendly_name:"GroupsCometMediaAlbumsTabGridQuery",variables:{cursor:p,count:8,scale:2,id:s},doc_id:"6894403247286675"}),r=k(m),{edges:o=[],page_info:i={}}=((n=(l=r==null?void 0:r.data)==null?void 0:l.node)==null?void 0:n.group_albums)||{};for(const a of o){const w=(c=a==null?void 0:a.node)==null?void 0:c.id;e.push({id:w,type:"album",name:(u=(d=a==null?void 0:a.node)==null?void 0:d.title)==null?void 0:u.text,count:(((f=(b=a==null?void 0:a.node)==null?void 0:b.photos)==null?void 0:f.count)||0)+(((h=(_=a==null?void 0:a.node)==null?void 0:_.video)==null?void 0:h.count)||0),link:(y=a==null?void 0:a.node)==null?void 0:y.url,picture:($=(A=(v=(t=a==null?void 0:a.node)==null?void 0:t.album_cover_focused_image)==null?void 0:v.image)==null?void 0:A.image)==null?void 0:$.uri,cursor:a==null?void 0:a.cursor,recent:e.length})}return{albums:e,nextCursor:i==null?void 0:i.end_cursor}}async function Q({id:s="",fromId:p="",accessToken:e=""}){var i,l,n,c,d;const m=[],r=await C(`https://graph.facebook.com/v14.0/${s}?fields=albums.limit(100)${p?`.after(${btoa(p)})`:""}{type,name,count,link,picture{url}}&access_token=${e}`),o=k(r);if((l=(i=o.albums)==null?void 0:i.data)!=null&&l.length)for(const u of o.albums.data)m.push({id:u.id,type:u.type,name:u.name,count:u.count,link:u.link,picture:u.picture.data.url,recent:m.length});return{albums:m,nextCursor:(d=(c=(n=o.albums)==null?void 0:n.paging)==null?void 0:c.cursors)==null?void 0:d.after}}var E=(s=>(s.IMAGE="image",s.VIDEO="video",s))(E||{});async function q({albumId:s,accessToken:p="",fromId:e=""}){var i,l;let m=`https://graph.facebook.com/v14.0/${s}/photos?fields=largest_image&limit=100&access_token=${p}`;e&&(m+=`&after=${btoa(e)}`);let r=await C(m),o=k(r);if((i=o==null?void 0:o.data)!=null&&i.length)return((l=o==null?void 0:o.data)==null?void 0:l.map(n=>({id:n.id,uri:n.largest_image.source,type:"image"})))||[];r=await x({doc_id:"8142948395762884",variables:{id:s,cursor:e?btoa("fbid:"+e):"",count:14,renderLocation:"permalink",scale:2}}),o=k(r);try{return o.data.node.media.edges.map(c=>({id:c.node.id,uri:c.node.image.uri,type:c.node.__typename==="Video"?"video":"image"}))}catch(n){return console.error(n),[]}}export{E as M,P as a,g as b,q as c,Q as g}; diff --git a/public/assets/cat-DzgugpgN.gif b/public/assets/cat-DzgugpgN.gif new file mode 100644 index 0000000..053b4d9 Binary files /dev/null and b/public/assets/cat-DzgugpgN.gif differ diff --git a/public/assets/dayjs.min-DH5lmvCP.js b/public/assets/dayjs.min-Qbr7UE_g.js similarity index 99% rename from public/assets/dayjs.min-DH5lmvCP.js rename to public/assets/dayjs.min-Qbr7UE_g.js index a84dc67..05512e0 100644 --- a/public/assets/dayjs.min-DH5lmvCP.js +++ b/public/assets/dayjs.min-Qbr7UE_g.js @@ -1 +1 @@ -import{as as Q,at as K}from"./index--trdnQFa.js";var E={exports:{}};(function(V,X){(function(W,k){V.exports=k()})(K,function(){var W=1e3,k=6e4,N=36e5,A="millisecond",S="second",w="minute",O="hour",M="day",T="week",m="month",U="quarter",v="year",_="date",J="Invalid Date",q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,G={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},I=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},P={s:I,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+I(r,2,"0")+":"+I(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(x=e),e||!r&&x},f=function(s,n){if(F(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new C(t)},a=P;a.l=j,a.i=F,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var C=function(){function s(t){this.$L=j(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(q);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)=n?s:""+Array(n+1-r.length).join(t)+s},P={s:I,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+I(r,2,"0")+":"+I(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(x=e),e||!r&&x},f=function(s,n){if(F(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new C(t)},a=P;a.l=j,a.i=F,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var C=function(){function s(t){this.$L=j(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(q);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)"u"&&e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),setTimeout(function(){document.body.removeChild(e),window.URL.revokeObjectURL(n)},200)}};const f=w(l);export{f}; +import{as as w}from"./index-BBriuzNA.js";var l=function(t,a,r,d){var i=typeof d<"u"?[d,t]:[t],o=new Blob(i,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(o,a);else{var n=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(o):window.webkitURL.createObjectURL(o),e=document.createElement("a");e.style.display="none",e.href=n,e.setAttribute("download",a),typeof e.download>"u"&&e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),setTimeout(function(){document.body.removeChild(e),window.URL.revokeObjectURL(n)},200)}};const f=w(l);export{f}; diff --git a/public/assets/groups-DwKzy7u6.js b/public/assets/groups-DGwrOePX.js similarity index 98% rename from public/assets/groups-DwKzy7u6.js rename to public/assets/groups-DGwrOePX.js index af69b19..112e0f8 100644 --- a/public/assets/groups-DwKzy7u6.js +++ b/public/assets/groups-DGwrOePX.js @@ -1,3 +1,3 @@ -import{D as d,E as f,P as G,G as M}from"./MyApp-BHr373cy.js";async function D(o=""){var e,l,i,s,u,c;const r=await d({fb_api_req_friendly_name:"CometGroupMembersAdminsRootQuery",variables:{groupID:o,scale:2},doc_id:"8138328892873449"}),a=f(r);console.log(a);const t=((e=a==null?void 0:a.data)==null?void 0:e.group)||{};return{groupId:o||"",adminCount:((l=t==null?void 0:t.admin_and_moderator_profiles)==null?void 0:l.count)||0,memberCount:((i=t==null?void 0:t.all_active_members)==null?void 0:i.count)||((s=t==null?void 0:t.group_member_profiles)==null?void 0:s.count)||0,adminProfiles:(c=(u=t==null?void 0:t.group_admin_profiles)==null?void 0:u.edges)==null?void 0:c.map(n=>{var _,m,b,E,p,N;return{uid:(_=n==null?void 0:n.node)==null?void 0:_.id,name:(m=n==null?void 0:n.node)==null?void 0:m.name,avatar:(E=(b=n==null?void 0:n.node)==null?void 0:b.profile_picture)==null?void 0:E.uri,url:(p=n==null?void 0:n.node)==null?void 0:p.url,verified:(N=n==null?void 0:n.node)==null?void 0:N.is_verified}})}}async function P({uid:o="",cursor:r}){const a=await d({fb_api_req_friendly_name:"ProfileCometAppCollectionGridRendererPaginationQuery",variables:{count:8,cursor:r??null,id:btoa(`app_collection:${o||await G()}:2361831622:66`)},doc_id:"5244211935648733"}),t=f(a);console.log(t);const{edges:e=[],page_info:l={}}=M(t);return e.map(i=>{var s,u,c,n,_;return{id:((s=i.node.node)==null?void 0:s.id)||atob(i.node.id).split(":").at(-1),name:i.node.title.text,description:(n=(c=(u=i.node.subtitle_text)==null?void 0:u.text)==null?void 0:c.split(` +import{D as d,E as f,P as G,G as M}from"./MyApp-CmkiOnMb.js";async function D(o=""){var e,l,i,s,u,c;const r=await d({fb_api_req_friendly_name:"CometGroupMembersAdminsRootQuery",variables:{groupID:o,scale:2},doc_id:"8138328892873449"}),a=f(r);console.log(a);const t=((e=a==null?void 0:a.data)==null?void 0:e.group)||{};return{groupId:o||"",adminCount:((l=t==null?void 0:t.admin_and_moderator_profiles)==null?void 0:l.count)||0,memberCount:((i=t==null?void 0:t.all_active_members)==null?void 0:i.count)||((s=t==null?void 0:t.group_member_profiles)==null?void 0:s.count)||0,adminProfiles:(c=(u=t==null?void 0:t.group_admin_profiles)==null?void 0:u.edges)==null?void 0:c.map(n=>{var _,m,b,E,p,N;return{uid:(_=n==null?void 0:n.node)==null?void 0:_.id,name:(m=n==null?void 0:n.node)==null?void 0:m.name,avatar:(E=(b=n==null?void 0:n.node)==null?void 0:b.profile_picture)==null?void 0:E.uri,url:(p=n==null?void 0:n.node)==null?void 0:p.url,verified:(N=n==null?void 0:n.node)==null?void 0:N.is_verified}})}}async function P({uid:o="",cursor:r}){const a=await d({fb_api_req_friendly_name:"ProfileCometAppCollectionGridRendererPaginationQuery",variables:{count:8,cursor:r??null,id:btoa(`app_collection:${o||await G()}:2361831622:66`)},doc_id:"5244211935648733"}),t=f(a);console.log(t);const{edges:e=[],page_info:l={}}=M(t);return e.map(i=>{var s,u,c,n,_;return{id:((s=i.node.node)==null?void 0:s.id)||atob(i.node.id).split(":").at(-1),name:i.node.title.text,description:(n=(c=(u=i.node.subtitle_text)==null?void 0:u.text)==null?void 0:c.split(` `))==null?void 0:n[1],url:i.node.url,visibility:i.node.node.visibility,image:i.node.image.uri,membersCount:Number((((_=i.node.subtitle_text.text.split(` `))==null?void 0:_[0])||"").match(/\d+/g).join("")??1),cursor:i.cursor}})}var y=(o=>(o.NONE="NONE",o.TOP_LEVEL_GROUP="TOP_LEVEL_GROUP",o))(y||{}),O=(o=>(o.NOT_JOINED="NOT_JOINED",o.PENDING="PENDING",o.MEMBER="MEMBER",o.ADMIN="ADMIN",o))(O||{});function v(o,r="MEMBER"){var a,t,e,l,i,s,u,c,n;return{id:(a=o==null?void 0:o.node)==null?void 0:a.id,name:(t=o==null?void 0:o.node)==null?void 0:t.name,avatar:(l=(e=o==null?void 0:o.node)==null?void 0:e.profile_picture)==null?void 0:l.uri,url:(i=o==null?void 0:o.node)==null?void 0:i.url,lastVisitedTime:(((s=o==null?void 0:o.node)==null?void 0:s.viewer_last_visited_time)||((u=o==null?void 0:o.node)==null?void 0:u.viewer_request_to_join_timestamp)||((c=o==null?void 0:o.node)==null?void 0:c.last_post_time)||0)*1e3,userType:r,cursor:o==null?void 0:o.cursor,subspaceType:((n=o==null?void 0:o.node)==null?void 0:n.subspace_type)||"NONE"}}async function C({cursor:o="",ordering:r=["viewer_added"]}={}){var i,s,u,c;if(!o){const n=await d({fb_api_req_friendly_name:"GroupsCometJoinsRootQuery",variables:{ordering:r,scale:2},doc_id:"6985470494844388"}),_=f(n),m=[],{pending_groups:b={},all_joined_groups:E={}}=((i=_==null?void 0:_.data)==null?void 0:i.viewer)||{};return(s=b.edges)==null||s.forEach(p=>{m.push(v(p,"PENDING"))}),(c=(u=E.tab_groups_list)==null?void 0:u.edges)==null||c.forEach(p=>{m.push(v(p,"MEMBER"))}),console.log(_),m}const a=await d({fb_api_req_friendly_name:"GroupsCometAllJoinedGroupsSectionPaginationQuery",variables:{cursor:o||null,ordering:r,count:20,scale:2},doc_id:"6009728632468556"}),t=f(a);console.log(t);const{edges:e=[],page_info:l={}}=M(t);return e.map(n=>v(n,"MEMBER"))}async function R({cursor:o=""}={}){var l;const r=await d({variables:{adminGroupsCount:1e3,memberGroupsCount:0,scale:1.5},doc_id:"4868264159917793"}),a=f(r);console.log(a);const{edges:t=[],page_info:e={}}=M((l=a==null?void 0:a.data)==null?void 0:l.adminGroups);return t.map(i=>v(i,"ADMIN"))}async function h(o=""){var t;const r=await d({fb_api_req_friendly_name:"useGroupLeaveMutation",variables:{input:{group_id:o,readd_policy:"ALLOW_READD",source:"comet_group_page",actor_id:await G(),client_mutation_id:"1"},groupID:o},doc_id:"2018579381571489"}),a=f(r);return console.log(a),((t=a==null?void 0:a.data)==null?void 0:t.group_leave)!=null}export{y as S,O as U,C as a,D as b,P as c,R as g,h as l}; diff --git a/public/assets/highlights-BzKltXsd.js b/public/assets/highlights-DQPggAnb.js similarity index 90% rename from public/assets/highlights-BzKltXsd.js rename to public/assets/highlights-DQPggAnb.js index 819f0b3..e3f4295 100644 --- a/public/assets/highlights-BzKltXsd.js +++ b/public/assets/highlights-DQPggAnb.js @@ -1 +1 @@ -import{E as u,G as m}from"./MyApp-BHr373cy.js";import{f,g as p}from"./index-CSZp6KTZ.js";async function v(c){const _=await f({fb_api_req_friendly_name:"PolarisProfileStoryHighlightsTrayContentDirectQuery",variables:{user_id:c},doc_id:"7612410165515693"}),o=u(_),{edges:a=[],page_info:d={}}=m(o);return console.log(o),a.map(t=>{var n,r,e,i,s;return{id:(n=t==null?void 0:t.node)==null?void 0:n.id,title:(r=t==null?void 0:t.node)==null?void 0:r.title,cover:(s=(i=(e=t==null?void 0:t.node)==null?void 0:e.cover_media)==null?void 0:i.cropped_image_version)==null?void 0:s.url}})}async function y(c){var t,n,r;const _=await f({fb_api_req_friendly_name:"PolarisStoriesV3HighlightsPageQuery",variables:{initial_reel_id:c,reel_ids:[c],first:3,last:2},doc_id:"7854629807955730"}),o=u(_);console.log(o);const{edges:a=[],page_info:d={}}=m(o);return(r=(n=(t=a==null?void 0:a[0])==null?void 0:t.node)==null?void 0:n.items)==null?void 0:r.map(e=>{var s,l;const i=e||{};return{id:i.id,type:"",width:i.original_width,height:i.original_height,image:p((s=i.image_versions2)==null?void 0:s.candidates),video:p(i.video_versions),comment_count:i.comment_count,like_count:i.like_count,play_count:i.play_count,view_count:i.view_count,cursor:"",raw:e,caption:((l=i.caption)==null?void 0:l.text)||"",created_at:(i.taken_at||0)*1e3}})}export{y as a,v as g}; +import{E as u,G as m}from"./MyApp-CmkiOnMb.js";import{f,g as p}from"./index-Cp3vfVbK.js";async function v(c){const _=await f({fb_api_req_friendly_name:"PolarisProfileStoryHighlightsTrayContentDirectQuery",variables:{user_id:c},doc_id:"7612410165515693"}),o=u(_),{edges:a=[],page_info:d={}}=m(o);return console.log(o),a.map(t=>{var n,r,e,i,s;return{id:(n=t==null?void 0:t.node)==null?void 0:n.id,title:(r=t==null?void 0:t.node)==null?void 0:r.title,cover:(s=(i=(e=t==null?void 0:t.node)==null?void 0:e.cover_media)==null?void 0:i.cropped_image_version)==null?void 0:s.url}})}async function y(c){var t,n,r;const _=await f({fb_api_req_friendly_name:"PolarisStoriesV3HighlightsPageQuery",variables:{initial_reel_id:c,reel_ids:[c],first:3,last:2},doc_id:"7854629807955730"}),o=u(_);console.log(o);const{edges:a=[],page_info:d={}}=m(o);return(r=(n=(t=a==null?void 0:a[0])==null?void 0:t.node)==null?void 0:n.items)==null?void 0:r.map(e=>{var s,l;const i=e||{};return{id:i.id,type:"",width:i.original_width,height:i.original_height,image:p((s=i.image_versions2)==null?void 0:s.candidates),video:p(i.video_versions),comment_count:i.comment_count,like_count:i.like_count,play_count:i.play_count,view_count:i.view_count,cursor:"",raw:e,caption:((l=i.caption)==null?void 0:l.text)||"",created_at:(i.taken_at||0)*1e3}})}export{y as a,v as g}; diff --git a/public/assets/icons-BAGZq2AS.js b/public/assets/icons-CG0UnJU2.js similarity index 95% rename from public/assets/icons-BAGZq2AS.js rename to public/assets/icons-CG0UnJU2.js index dbd8bf6..a5d1b4c 100644 --- a/public/assets/icons-BAGZq2AS.js +++ b/public/assets/icons-CG0UnJU2.js @@ -1 +1 @@ -import{aA as l}from"./index--trdnQFa.js";const i={IGVideo:l.jsxs("svg",{"aria-label":"Clip",fill:"currentColor",height:"20",viewBox:"0 0 24 24",width:"20",children:[l.jsx("title",{children:"Clip"}),l.jsx("path",{d:"m12.823 1 2.974 5.002h-5.58l-2.65-4.971c.206-.013.419-.022.642-.027L8.55 1Zm2.327 0h.298c3.06 0 4.468.754 5.64 1.887a6.007 6.007 0 0 1 1.596 2.82l.07.295h-4.629L15.15 1Zm-9.667.377L7.95 6.002H1.244a6.01 6.01 0 0 1 3.942-4.53Zm9.735 12.834-4.545-2.624a.909.909 0 0 0-1.356.668l-.008.12v5.248a.91.91 0 0 0 1.255.84l.109-.053 4.545-2.624a.909.909 0 0 0 .1-1.507l-.1-.068-4.545-2.624Zm-14.2-6.209h21.964l.015.36.003.189v6.899c0 3.061-.755 4.469-1.888 5.64-1.151 1.114-2.5 1.856-5.33 1.909l-.334.003H8.551c-3.06 0-4.467-.755-5.64-1.889-1.114-1.15-1.854-2.498-1.908-5.33L1 15.45V8.551l.003-.189Z",fillRule:"evenodd"})]}),IGCarousel:l.jsxs("svg",{"aria-label":"Carousel",fill:"currentColor",height:"20",viewBox:"0 0 48 48",width:"20",children:[l.jsx("title",{children:"Carousel"}),l.jsx("path",{d:"M34.8 29.7V11c0-2.9-2.3-5.2-5.2-5.2H11c-2.9 0-5.2 2.3-5.2 5.2v18.7c0 2.9 2.3 5.2 5.2 5.2h18.7c2.8-.1 5.1-2.4 5.1-5.2zM39.2 15v16.1c0 4.5-3.7 8.2-8.2 8.2H14.9c-.6 0-.9.7-.5 1.1 1 1.1 2.4 1.8 4.1 1.8h13.4c5.7 0 10.3-4.6 10.3-10.3V18.5c0-1.6-.7-3.1-1.8-4.1-.5-.4-1.2 0-1.2.6z"})]})},c=i;export{c as i}; +import{aA as l}from"./index-BBriuzNA.js";const i={IGVideo:l.jsxs("svg",{"aria-label":"Clip",fill:"currentColor",height:"20",viewBox:"0 0 24 24",width:"20",children:[l.jsx("title",{children:"Clip"}),l.jsx("path",{d:"m12.823 1 2.974 5.002h-5.58l-2.65-4.971c.206-.013.419-.022.642-.027L8.55 1Zm2.327 0h.298c3.06 0 4.468.754 5.64 1.887a6.007 6.007 0 0 1 1.596 2.82l.07.295h-4.629L15.15 1Zm-9.667.377L7.95 6.002H1.244a6.01 6.01 0 0 1 3.942-4.53Zm9.735 12.834-4.545-2.624a.909.909 0 0 0-1.356.668l-.008.12v5.248a.91.91 0 0 0 1.255.84l.109-.053 4.545-2.624a.909.909 0 0 0 .1-1.507l-.1-.068-4.545-2.624Zm-14.2-6.209h21.964l.015.36.003.189v6.899c0 3.061-.755 4.469-1.888 5.64-1.151 1.114-2.5 1.856-5.33 1.909l-.334.003H8.551c-3.06 0-4.467-.755-5.64-1.889-1.114-1.15-1.854-2.498-1.908-5.33L1 15.45V8.551l.003-.189Z",fillRule:"evenodd"})]}),IGCarousel:l.jsxs("svg",{"aria-label":"Carousel",fill:"currentColor",height:"20",viewBox:"0 0 48 48",width:"20",children:[l.jsx("title",{children:"Carousel"}),l.jsx("path",{d:"M34.8 29.7V11c0-2.9-2.3-5.2-5.2-5.2H11c-2.9 0-5.2 2.3-5.2 5.2v18.7c0 2.9 2.3 5.2 5.2 5.2h18.7c2.8-.1 5.1-2.4 5.1-5.2zM39.2 15v16.1c0 4.5-3.7 8.2-8.2 8.2H14.9c-.6 0-.9.7-.5 1.1 1 1.1 2.4 1.8 4.1 1.8h13.4c5.7 0 10.3-4.6 10.3-10.3V18.5c0-1.6-.7-3.1-1.8-4.1-.5-.4-1.2 0-1.2.6z"})]})},c=i;export{c as i}; diff --git a/public/assets/index-BI67OZir.js b/public/assets/index-4qwk-lHW.js similarity index 98% rename from public/assets/index-BI67OZir.js rename to public/assets/index-4qwk-lHW.js index b94328e..a1f59e6 100644 --- a/public/assets/index-BI67OZir.js +++ b/public/assets/index-4qwk-lHW.js @@ -1,4 +1,4 @@ -import{E as ie,F as re,H as le,aX as K,D as S,G as se,r as i,I as ne,a7 as de,J as ce,Q as ue,o as D,k as pe,M as me,Z as ge,R as ve,S as be,aM as $e,aB as k}from"./index--trdnQFa.js";import{p as fe,s as Ce,v as we,q as ye,ae as he,x as ee,af as Se,n as xe,m as Pe,ag as Oe,ah as Ie,ai as Ee,a2 as Ne,b as ze,a0 as Re}from"./MyApp-BHr373cy.js";import{D as je}from"./Dropdown-DUpNeMO8.js";import{i as oe,g as De}from"./PurePanel-CSR2tSBX.js";const Te=e=>{const{componentCls:o,menuCls:t,colorError:a,colorTextLightSolid:l}=e,s=`${t}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${t} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:a,"&:hover":{color:l,backgroundColor:a}}}}}},Be=e=>{const{componentCls:o,menuCls:t,zIndexPopup:a,dropdownArrowDistance:l,sizePopupArrow:s,antCls:n,iconCls:d,motionDurationMid:b,paddingBlock:w,fontSize:y,dropdownEdgeChildPadding:$,colorTextDisabled:g,fontSizeIcon:c,controlPaddingHorizontal:C,colorBgElevated:p}=e;return[{[o]:Object.assign(Object.assign({},le(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:e.calc(s).div(2).sub(l).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${n}-btn`]:{[`& > ${d}-down, & > ${n}-btn-icon > ${d}-down`]:{fontSize:c}},[`${o}-wrap`]:{position:"relative",[`${n}-btn > ${d}-down`]:{fontSize:c},[`${d}-down::before`]:{transition:`transform ${b}`}},[`${o}-wrap-open`]:{[`${d}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${n}-slide-down-enter${n}-slide-down-enter-active${o}-placement-bottomLeft, +import{E as ie,F as re,H as le,aX as K,D as S,G as se,r as i,I as ne,a7 as de,J as ce,Q as ue,o as D,k as pe,M as me,Z as ge,R as ve,S as be,aM as $e,aB as k}from"./index-BBriuzNA.js";import{p as fe,s as Ce,v as we,q as ye,ae as he,x as ee,af as Se,n as xe,m as Pe,ag as Oe,ah as Ie,ai as Ee,a2 as Ne,b as ze,a0 as Re}from"./MyApp-CmkiOnMb.js";import{D as je}from"./Dropdown-DxSI4NN9.js";import{i as oe,g as De}from"./PurePanel-yY9muMEs.js";const Te=e=>{const{componentCls:o,menuCls:t,colorError:a,colorTextLightSolid:l}=e,s=`${t}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${t} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:a,"&:hover":{color:l,backgroundColor:a}}}}}},Be=e=>{const{componentCls:o,menuCls:t,zIndexPopup:a,dropdownArrowDistance:l,sizePopupArrow:s,antCls:n,iconCls:d,motionDurationMid:b,paddingBlock:w,fontSize:y,dropdownEdgeChildPadding:$,colorTextDisabled:g,fontSizeIcon:c,controlPaddingHorizontal:C,colorBgElevated:p}=e;return[{[o]:Object.assign(Object.assign({},le(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:e.calc(s).div(2).sub(l).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${n}-btn`]:{[`& > ${d}-down, & > ${n}-btn-icon > ${d}-down`]:{fontSize:c}},[`${o}-wrap`]:{position:"relative",[`${n}-btn > ${d}-down`]:{fontSize:c},[`${d}-down::before`]:{transition:`transform ${b}`}},[`${o}-wrap-open`]:{[`${d}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${n}-slide-down-enter${n}-slide-down-enter-active${o}-placement-bottomLeft, &${n}-slide-down-appear${n}-slide-down-appear-active${o}-placement-bottomLeft, &${n}-slide-down-enter${n}-slide-down-enter-active${o}-placement-bottom, &${n}-slide-down-appear${n}-slide-down-appear-active${o}-placement-bottom, diff --git a/public/assets/index-BJNnFmyH.js b/public/assets/index-B7udrguy.js similarity index 97% rename from public/assets/index-BJNnFmyH.js rename to public/assets/index-B7udrguy.js index 6dd9a5b..e79d319 100644 --- a/public/assets/index-BJNnFmyH.js +++ b/public/assets/index-B7udrguy.js @@ -1 +1 @@ -import{r,I as D,o as H,$ as C,Q as ye,E as Se,F as xe,D as f,H as ve,aN as be,h as k}from"./index--trdnQFa.js";import{e as Ce,P as Oe}from"./Pagination-CPGTHysj.js";import{r as ee}from"./responsiveObserver-DiDk9dGL.js";import{D as Ee}from"./index-CETJ8txP.js";import{a as Pe}from"./useBreakpoint-QbbjxHKX.js";import{a as je,u as ze,R as Ne}from"./row-DQoT4CfJ.js";import{ac as we}from"./MyApp-BHr373cy.js";var Ie=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:i,direction:n}=r.useContext(D),{gutter:a,wrap:m}=r.useContext(je),{prefixCls:u,span:x,order:g,offset:P,push:O,pull:j,className:p,children:I,flex:$,style:z}=e,N=Ie(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),c=i("col",u),[B,v,L]=ze(c),M={};let E={};Be.forEach(o=>{let s={};const W=e[o];typeof W=="number"?s.span=W:typeof W=="object"&&(s=W||{}),delete N[o],E=Object.assign(Object.assign({},E),{[`${c}-${o}-${s.span}`]:s.span!==void 0,[`${c}-${o}-order-${s.order}`]:s.order||s.order===0,[`${c}-${o}-offset-${s.offset}`]:s.offset||s.offset===0,[`${c}-${o}-push-${s.push}`]:s.push||s.push===0,[`${c}-${o}-pull-${s.pull}`]:s.pull||s.pull===0,[`${c}-rtl`]:n==="rtl"}),s.flex&&(E[`${c}-${o}-flex`]=!0,M[`--${c}-${o}-flex`]=te(s.flex))});const h=H(c,{[`${c}-${x}`]:x!==void 0,[`${c}-order-${g}`]:g,[`${c}-offset-${P}`]:P,[`${c}-push-${O}`]:O,[`${c}-pull-${j}`]:j},p,E,v,L),l={};if(a&&a[0]>0){const o=a[0]/2;l.paddingLeft=o,l.paddingRight=o}return $&&(l.flex=te($),m===!1&&!l.minWidth&&(l.minWidth=0)),B(r.createElement("div",Object.assign({},N,{style:Object.assign(Object.assign(Object.assign({},l),z),M),className:h,ref:t}),I))}),q=C.createContext({});q.Consumer;var ie=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:i,avatar:n,title:a,description:m}=e,u=ie(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:x}=r.useContext(D),g=x("list",t),P=H(`${g}-item-meta`,i),O=C.createElement("div",{className:`${g}-item-meta-content`},a&&C.createElement("h4",{className:`${g}-item-meta-title`},a),m&&C.createElement("div",{className:`${g}-item-meta-description`},m));return C.createElement("div",Object.assign({},u,{className:P}),n&&C.createElement("div",{className:`${g}-item-meta-avatar`},n),(a||m)&&O)},He=C.forwardRef((e,t)=>{const{prefixCls:i,children:n,actions:a,extra:m,styles:u,className:x,classNames:g,colStyle:P}=e,O=ie(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:j,itemLayout:p}=r.useContext(q),{getPrefixCls:I,list:$}=r.useContext(D),z=h=>{var l,o;return H((o=(l=$==null?void 0:$.item)===null||l===void 0?void 0:l.classNames)===null||o===void 0?void 0:o[h],g==null?void 0:g[h])},N=h=>{var l,o;return Object.assign(Object.assign({},(o=(l=$==null?void 0:$.item)===null||l===void 0?void 0:l.styles)===null||o===void 0?void 0:o[h]),u==null?void 0:u[h])},c=()=>{let h;return r.Children.forEach(n,l=>{typeof l=="string"&&(h=!0)}),h&&r.Children.count(n)>1},B=()=>p==="vertical"?!!m:!c(),v=I("list",i),L=a&&a.length>0&&C.createElement("ul",{className:H(`${v}-item-action`,z("actions")),key:"actions",style:N("actions")},a.map((h,l)=>C.createElement("li",{key:`${v}-item-action-${l}`},h,l!==a.length-1&&C.createElement("em",{className:`${v}-item-action-split`})))),M=j?"div":"li",E=C.createElement(M,Object.assign({},O,j?{}:{ref:t},{className:H(`${v}-item`,{[`${v}-item-no-flex`]:!B()},x)}),p==="vertical"&&m?[C.createElement("div",{className:`${v}-item-main`,key:"content"},n,L),C.createElement("div",{className:H(`${v}-item-extra`,z("extra")),key:"extra",style:N("extra")},m)]:[n,L,ye(m,{key:"extra"})]);return j?C.createElement(Le,{ref:t,flex:1,style:P},E):E}),ne=He;ne.Meta=Me;const We=e=>{const{listBorderedCls:t,componentCls:i,paddingLG:n,margin:a,itemPaddingSM:m,itemPaddingLG:u,marginLG:x,borderRadiusLG:g}=e;return{[`${t}`]:{border:`${f(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:g,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:n},[`${i}-pagination`]:{margin:`${f(a)} ${f(x)}`}},[`${t}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:m}},[`${t}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:u}}}},Te=e=>{const{componentCls:t,screenSM:i,screenMD:n,marginLG:a,marginSM:m,margin:u}=e;return{[`@media screen and (max-width:${n}px)`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${i}px)`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:m}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${f(u)}`}}}}}},Ge=e=>{const{componentCls:t,antCls:i,controlHeight:n,minHeight:a,paddingSM:m,marginLG:u,padding:x,itemPadding:g,colorPrimary:P,itemPaddingSM:O,itemPaddingLG:j,paddingXS:p,margin:I,colorText:$,colorTextDescription:z,motionDurationSlow:N,lineWidth:c,headerBg:B,footerBg:v,emptyTextPadding:L,metaMarginBottom:M,avatarMarginRight:E,titleMarginBottom:h,descriptionFontSize:l}=e,o={};return["start","center","end"].forEach(s=>{o[`&-align-${s}`]={textAlign:s}}),{[`${t}`]:Object.assign(Object.assign({},ve(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:B},[`${t}-footer`]:{background:v},[`${t}-header, ${t}-footer`]:{paddingBlock:m},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:u},o),{[`${i}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:g,color:$,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:$},[`${t}-item-meta-title`]:{margin:`0 0 ${f(e.marginXXS)} 0`,color:$,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:$,transition:`all ${N}`,"&:hover":{color:P}}},[`${t}-item-meta-description`]:{color:z,fontSize:l,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${f(p)}`,color:z,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:c,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${f(x)} 0`,color:z,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:L,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${i}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:I,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:u},[`${t}-item-meta`]:{marginBlockEnd:M,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:h,color:$,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:x,marginInlineStart:"auto","> li":{padding:`0 ${f(x)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${f(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${f(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${f(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:n},[`${t}-split${t}-something-after-last-item ${i}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${f(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:j},[`${t}-sm ${t}-item`]:{padding:O},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Re=e=>({contentWidth:220,itemPadding:`${f(e.paddingContentVertical)} 0`,itemPaddingSM:`${f(e.paddingContentVerticalSM)} ${f(e.paddingContentHorizontal)}`,itemPaddingLG:`${f(e.paddingContentVerticalLG)} ${f(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),_e=Se("List",e=>{const t=xe(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Ge(t),We(t),Te(t)]},Re);var Ae=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a(S,w)=>{var K;l(S),s(w),i&&i[d]&&((K=i==null?void 0:i[d])===null||K===void 0||K.call(i,S,w))},oe=Q("onChange"),le=Q("onShowSizeChange"),se=(d,S)=>{if(!v)return null;let w;return typeof B=="function"?w=B(d):B?w=d[B]:w=d.key,w||(w=`list-item-${S}`),r.createElement(r.Fragment,{key:w},v(d,S))},ce=()=>!!(j||i||N),y=W("list",n),[de,me,ge]=_e(y);let G=c;typeof G=="boolean"&&(G={spinning:G});const X=G&&G.spinning,pe=be($);let R="";switch(pe){case"large":R="lg";break;case"small":R="sm";break}const $e=H(y,{[`${y}-vertical`]:O==="vertical",[`${y}-${R}`]:R,[`${y}-split`]:m,[`${y}-bordered`]:a,[`${y}-loading`]:X,[`${y}-grid`]:!!p,[`${y}-something-after-last-item`]:ce(),[`${y}-rtl`]:ae==="rtl"},T==null?void 0:T.className,u,x,me,ge),b=Ce(re,{total:I.length,current:h,pageSize:o},i||{}),Y=Math.ceil(b.total/b.pageSize);b.current>Y&&(b.current=Y);const U=i?r.createElement("div",{className:H(`${y}-pagination`,`${y}-pagination-align-${(t=b==null?void 0:b.align)!==null&&t!==void 0?t:"end"}`)},r.createElement(Oe,Object.assign({},b,{onChange:oe,onShowSizeChange:le}))):null;let F=k(I);i&&I.length>(b.current-1)*b.pageSize&&(F=k(I).splice((b.current-1)*b.pageSize,b.pageSize));const fe=Object.keys(p||{}).some(d=>["xs","sm","md","lg","xl","xxl"].includes(d)),Z=Pe(fe),_=r.useMemo(()=>{for(let d=0;d{if(!p)return;const d=_&&p[_]?p[_]:p.column;if(d)return{width:`${100/d}%`,maxWidth:`${100/d}%`}},[JSON.stringify(p),_]);let J=X&&r.createElement("div",{style:{minHeight:53}});if(F.length>0){const d=F.map((S,w)=>se(S,w));J=p?r.createElement(Ne,{gutter:p.gutter},r.Children.map(d,S=>r.createElement("div",{key:S==null?void 0:S.key,style:ue},S))):r.createElement("ul",{className:`${y}-items`},d)}else!P&&!X&&(J=r.createElement("div",{className:`${y}-empty-text`},L&&L.emptyText||(V==null?void 0:V("List"))||r.createElement(Ee,{componentName:"List"})));const A=b.position||"bottom",he=r.useMemo(()=>({grid:p,itemLayout:O}),[JSON.stringify(p),O]);return de(r.createElement(q.Provider,{value:he},r.createElement("div",Object.assign({style:Object.assign(Object.assign({},T==null?void 0:T.style),g),className:$e},M),(A==="top"||A==="both")&&U,z&&r.createElement("div",{className:`${y}-header`},z),r.createElement(we,Object.assign({},G),J,P),N&&r.createElement("div",{className:`${y}-footer`},N),j||(A==="bottom"||A==="both")&&U)))}De.Item=ne;export{De as L}; +import{r,I as D,o as H,$ as C,Q as ye,E as Se,F as xe,D as f,H as ve,aN as be,h as k}from"./index-BBriuzNA.js";import{e as Ce,P as Oe}from"./Pagination-slfcHA-i.js";import{r as ee}from"./responsiveObserver-Bb1LONna.js";import{D as Ee}from"./index-CKsES7YN.js";import{a as Pe}from"./useBreakpoint-CDLrV-mr.js";import{a as je,u as ze,R as Ne}from"./row-C0Wk6t4-.js";import{ac as we}from"./MyApp-CmkiOnMb.js";var Ie=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:i,direction:n}=r.useContext(D),{gutter:a,wrap:m}=r.useContext(je),{prefixCls:u,span:x,order:g,offset:P,push:O,pull:j,className:p,children:I,flex:$,style:z}=e,N=Ie(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),c=i("col",u),[B,v,L]=ze(c),M={};let E={};Be.forEach(o=>{let s={};const W=e[o];typeof W=="number"?s.span=W:typeof W=="object"&&(s=W||{}),delete N[o],E=Object.assign(Object.assign({},E),{[`${c}-${o}-${s.span}`]:s.span!==void 0,[`${c}-${o}-order-${s.order}`]:s.order||s.order===0,[`${c}-${o}-offset-${s.offset}`]:s.offset||s.offset===0,[`${c}-${o}-push-${s.push}`]:s.push||s.push===0,[`${c}-${o}-pull-${s.pull}`]:s.pull||s.pull===0,[`${c}-rtl`]:n==="rtl"}),s.flex&&(E[`${c}-${o}-flex`]=!0,M[`--${c}-${o}-flex`]=te(s.flex))});const h=H(c,{[`${c}-${x}`]:x!==void 0,[`${c}-order-${g}`]:g,[`${c}-offset-${P}`]:P,[`${c}-push-${O}`]:O,[`${c}-pull-${j}`]:j},p,E,v,L),l={};if(a&&a[0]>0){const o=a[0]/2;l.paddingLeft=o,l.paddingRight=o}return $&&(l.flex=te($),m===!1&&!l.minWidth&&(l.minWidth=0)),B(r.createElement("div",Object.assign({},N,{style:Object.assign(Object.assign(Object.assign({},l),z),M),className:h,ref:t}),I))}),q=C.createContext({});q.Consumer;var ie=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:i,avatar:n,title:a,description:m}=e,u=ie(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:x}=r.useContext(D),g=x("list",t),P=H(`${g}-item-meta`,i),O=C.createElement("div",{className:`${g}-item-meta-content`},a&&C.createElement("h4",{className:`${g}-item-meta-title`},a),m&&C.createElement("div",{className:`${g}-item-meta-description`},m));return C.createElement("div",Object.assign({},u,{className:P}),n&&C.createElement("div",{className:`${g}-item-meta-avatar`},n),(a||m)&&O)},He=C.forwardRef((e,t)=>{const{prefixCls:i,children:n,actions:a,extra:m,styles:u,className:x,classNames:g,colStyle:P}=e,O=ie(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:j,itemLayout:p}=r.useContext(q),{getPrefixCls:I,list:$}=r.useContext(D),z=h=>{var l,o;return H((o=(l=$==null?void 0:$.item)===null||l===void 0?void 0:l.classNames)===null||o===void 0?void 0:o[h],g==null?void 0:g[h])},N=h=>{var l,o;return Object.assign(Object.assign({},(o=(l=$==null?void 0:$.item)===null||l===void 0?void 0:l.styles)===null||o===void 0?void 0:o[h]),u==null?void 0:u[h])},c=()=>{let h;return r.Children.forEach(n,l=>{typeof l=="string"&&(h=!0)}),h&&r.Children.count(n)>1},B=()=>p==="vertical"?!!m:!c(),v=I("list",i),L=a&&a.length>0&&C.createElement("ul",{className:H(`${v}-item-action`,z("actions")),key:"actions",style:N("actions")},a.map((h,l)=>C.createElement("li",{key:`${v}-item-action-${l}`},h,l!==a.length-1&&C.createElement("em",{className:`${v}-item-action-split`})))),M=j?"div":"li",E=C.createElement(M,Object.assign({},O,j?{}:{ref:t},{className:H(`${v}-item`,{[`${v}-item-no-flex`]:!B()},x)}),p==="vertical"&&m?[C.createElement("div",{className:`${v}-item-main`,key:"content"},n,L),C.createElement("div",{className:H(`${v}-item-extra`,z("extra")),key:"extra",style:N("extra")},m)]:[n,L,ye(m,{key:"extra"})]);return j?C.createElement(Le,{ref:t,flex:1,style:P},E):E}),ne=He;ne.Meta=Me;const We=e=>{const{listBorderedCls:t,componentCls:i,paddingLG:n,margin:a,itemPaddingSM:m,itemPaddingLG:u,marginLG:x,borderRadiusLG:g}=e;return{[`${t}`]:{border:`${f(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:g,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:n},[`${i}-pagination`]:{margin:`${f(a)} ${f(x)}`}},[`${t}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:m}},[`${t}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:u}}}},Te=e=>{const{componentCls:t,screenSM:i,screenMD:n,marginLG:a,marginSM:m,margin:u}=e;return{[`@media screen and (max-width:${n}px)`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${i}px)`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:m}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${f(u)}`}}}}}},Ge=e=>{const{componentCls:t,antCls:i,controlHeight:n,minHeight:a,paddingSM:m,marginLG:u,padding:x,itemPadding:g,colorPrimary:P,itemPaddingSM:O,itemPaddingLG:j,paddingXS:p,margin:I,colorText:$,colorTextDescription:z,motionDurationSlow:N,lineWidth:c,headerBg:B,footerBg:v,emptyTextPadding:L,metaMarginBottom:M,avatarMarginRight:E,titleMarginBottom:h,descriptionFontSize:l}=e,o={};return["start","center","end"].forEach(s=>{o[`&-align-${s}`]={textAlign:s}}),{[`${t}`]:Object.assign(Object.assign({},ve(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:B},[`${t}-footer`]:{background:v},[`${t}-header, ${t}-footer`]:{paddingBlock:m},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:u},o),{[`${i}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:g,color:$,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:$},[`${t}-item-meta-title`]:{margin:`0 0 ${f(e.marginXXS)} 0`,color:$,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:$,transition:`all ${N}`,"&:hover":{color:P}}},[`${t}-item-meta-description`]:{color:z,fontSize:l,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${f(p)}`,color:z,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:c,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${f(x)} 0`,color:z,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:L,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${i}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:I,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:u},[`${t}-item-meta`]:{marginBlockEnd:M,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:h,color:$,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:x,marginInlineStart:"auto","> li":{padding:`0 ${f(x)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${f(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${f(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${f(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:n},[`${t}-split${t}-something-after-last-item ${i}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${f(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:j},[`${t}-sm ${t}-item`]:{padding:O},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Re=e=>({contentWidth:220,itemPadding:`${f(e.paddingContentVertical)} 0`,itemPaddingSM:`${f(e.paddingContentVerticalSM)} ${f(e.paddingContentHorizontal)}`,itemPaddingLG:`${f(e.paddingContentVerticalLG)} ${f(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),_e=Se("List",e=>{const t=xe(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Ge(t),We(t),Te(t)]},Re);var Ae=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a(S,w)=>{var K;l(S),s(w),i&&i[d]&&((K=i==null?void 0:i[d])===null||K===void 0||K.call(i,S,w))},oe=Q("onChange"),le=Q("onShowSizeChange"),se=(d,S)=>{if(!v)return null;let w;return typeof B=="function"?w=B(d):B?w=d[B]:w=d.key,w||(w=`list-item-${S}`),r.createElement(r.Fragment,{key:w},v(d,S))},ce=()=>!!(j||i||N),y=W("list",n),[de,me,ge]=_e(y);let G=c;typeof G=="boolean"&&(G={spinning:G});const X=G&&G.spinning,pe=be($);let R="";switch(pe){case"large":R="lg";break;case"small":R="sm";break}const $e=H(y,{[`${y}-vertical`]:O==="vertical",[`${y}-${R}`]:R,[`${y}-split`]:m,[`${y}-bordered`]:a,[`${y}-loading`]:X,[`${y}-grid`]:!!p,[`${y}-something-after-last-item`]:ce(),[`${y}-rtl`]:ae==="rtl"},T==null?void 0:T.className,u,x,me,ge),b=Ce(re,{total:I.length,current:h,pageSize:o},i||{}),Y=Math.ceil(b.total/b.pageSize);b.current>Y&&(b.current=Y);const U=i?r.createElement("div",{className:H(`${y}-pagination`,`${y}-pagination-align-${(t=b==null?void 0:b.align)!==null&&t!==void 0?t:"end"}`)},r.createElement(Oe,Object.assign({},b,{onChange:oe,onShowSizeChange:le}))):null;let F=k(I);i&&I.length>(b.current-1)*b.pageSize&&(F=k(I).splice((b.current-1)*b.pageSize,b.pageSize));const fe=Object.keys(p||{}).some(d=>["xs","sm","md","lg","xl","xxl"].includes(d)),Z=Pe(fe),_=r.useMemo(()=>{for(let d=0;d{if(!p)return;const d=_&&p[_]?p[_]:p.column;if(d)return{width:`${100/d}%`,maxWidth:`${100/d}%`}},[JSON.stringify(p),_]);let J=X&&r.createElement("div",{style:{minHeight:53}});if(F.length>0){const d=F.map((S,w)=>se(S,w));J=p?r.createElement(Ne,{gutter:p.gutter},r.Children.map(d,S=>r.createElement("div",{key:S==null?void 0:S.key,style:ue},S))):r.createElement("ul",{className:`${y}-items`},d)}else!P&&!X&&(J=r.createElement("div",{className:`${y}-empty-text`},L&&L.emptyText||(V==null?void 0:V("List"))||r.createElement(Ee,{componentName:"List"})));const A=b.position||"bottom",he=r.useMemo(()=>({grid:p,itemLayout:O}),[JSON.stringify(p),O]);return de(r.createElement(q.Provider,{value:he},r.createElement("div",Object.assign({style:Object.assign(Object.assign({},T==null?void 0:T.style),g),className:$e},M),(A==="top"||A==="both")&&U,z&&r.createElement("div",{className:`${y}-header`},z),r.createElement(we,Object.assign({},G),J,P),N&&r.createElement("div",{className:`${y}-footer`},N),j||(A==="bottom"||A==="both")&&U)))}De.Item=ne;export{De as L}; diff --git a/public/assets/index--trdnQFa.js b/public/assets/index-BBriuzNA.js similarity index 99% rename from public/assets/index--trdnQFa.js rename to public/assets/index-BBriuzNA.js index ad46f91..edb9547 100644 --- a/public/assets/index--trdnQFa.js +++ b/public/assets/index-BBriuzNA.js @@ -244,4 +244,4 @@ html body { * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var As=m,TR=kR;function RR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _R=typeof Object.is=="function"?Object.is:RR,NR=TR.useSyncExternalStore,IR=As.useRef,FR=As.useEffect,MR=As.useMemo,LR=As.useDebugValue;Y1.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=IR(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=MR(function(){function s(S){if(!u){if(u=!0,c=S,S=r(S),o!==void 0&&a.hasValue){var C=a.value;if(o(C,S))return f=C}return f=S}if(C=f,_R(c,S))return C;var h=r(S);return o!==void 0&&o(C,h)?C:(c=S,f=h)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return s(t())},d===null?void 0:function(){return s(d())}]},[t,n,r,o]);var l=NR(e,i[0],i[1]);return FR(function(){a.hasValue=!0,a.value=l},[l]),LR(l),l};Q1.exports=Y1;var jR=Q1.exports;const AR=Wl(jR);var eS={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:zR}=z,{useSyncExternalStoreWithSelector:DR}=AR;let cv=!1;const BR=e=>e;function HR(e,t=BR,n){(eS?"production":void 0)!=="production"&&n&&!cv&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),cv=!0);const r=DR(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return zR(r),r}const fv=e=>{(eS?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?yR(e):e,n=(r,o)=>HR(t,r,o);return Object.assign(n,t),n},VR=e=>e?fv(e):fv;var tS=Symbol.for("immer-nothing"),dv=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function qt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $o=Object.getPrototypeOf;function ko(e){return!!e&&!!e[Ot]}function Or(e){var t;return e?nS(e)||Array.isArray(e)||!!e[dv]||!!((t=e.constructor)!=null&&t[dv])||Ds(e)||Bs(e):!1}var UR=Object.prototype.constructor.toString();function nS(e){if(!e||typeof e!="object")return!1;const t=$o(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===UR}function Hl(e,t){zs(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function zs(e){const t=e[Ot];return t?t.type_:Array.isArray(e)?1:Ds(e)?2:Bs(e)?3:0}function $f(e,t){return zs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rS(e,t,n){const r=zs(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function WR(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ds(e){return e instanceof Map}function Bs(e){return e instanceof Set}function sr(e){return e.copy_||e.base_}function kf(e,t){if(Ds(e))return new Map(e);if(Bs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=nS(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Ot];let o=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=GR),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>sp(r,!0))),e}function GR(){qt(2)}function Hs(e){return Object.isFrozen(e)}var KR={};function $r(e){const t=KR[e];return t||qt(0,e),t}var Wi;function oS(){return Wi}function qR(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function pv(e,t){t&&($r("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Tf(e){Rf(e),e.drafts_.forEach(XR),e.drafts_=null}function Rf(e){e===Wi&&(Wi=e.parent_)}function mv(e){return Wi=qR(Wi,e)}function XR(e){const t=e[Ot];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function gv(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ot].modified_&&(Tf(t),qt(4)),Or(e)&&(e=Vl(t,e),t.parent_||Ul(t,e)),t.patches_&&$r("Patches").generateReplacementPatches_(n[Ot].base_,e,t.patches_,t.inversePatches_)):e=Vl(t,n,[]),Tf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==tS?e:void 0}function Vl(e,t,n){if(Hs(t))return t;const r=t[Ot];if(!r)return Hl(t,(o,i)=>vv(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ul(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),Hl(i,(l,s)=>vv(e,r,o,l,s,n,a)),Ul(e,o,!1),n&&e.patches_&&$r("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function vv(e,t,n,r,o,i,a){if(ko(o)){const l=i&&t&&t.type_!==3&&!$f(t.assigned_,r)?i.concat(r):void 0,s=Vl(e,o,l);if(rS(n,r,s),ko(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Or(o)&&!Hs(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Vl(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Ul(e,o)}}function Ul(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&sp(t,n)}function QR(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:oS(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=up;n&&(o=[r],i=Gi);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}var up={get(e,t){if(t===Ot)return e;const n=sr(e);if(!$f(n,t))return YR(e,n,t);const r=n[t];return e.finalized_||!Or(r)?r:r===Gu(e.base_,t)?(Ku(e),e.copy_[t]=Nf(r,e)):r},has(e,t){return t in sr(e)},ownKeys(e){return Reflect.ownKeys(sr(e))},set(e,t,n){const r=iS(sr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Gu(sr(e),t),i=o==null?void 0:o[Ot];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(WR(n,o)&&(n!==void 0||$f(e.base_,t)))return!0;Ku(e),_f(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Gu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ku(e),_f(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=sr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){qt(11)},getPrototypeOf(e){return $o(e.base_)},setPrototypeOf(){qt(12)}},Gi={};Hl(up,(e,t)=>{Gi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Gi.deleteProperty=function(e,t){return Gi.set.call(this,e,t,void 0)};Gi.set=function(e,t,n){return up.set.call(this,e[0],t,n,e[0])};function Gu(e,t){const n=e[Ot];return(n?sr(n):e)[t]}function YR(e,t,n){var o;const r=iS(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function iS(e,t){if(!(t in e))return;let n=$o(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=$o(n)}}function _f(e){e.modified_||(e.modified_=!0,e.parent_&&_f(e.parent_))}function Ku(e){e.copy_||(e.copy_=kf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ZR=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(s=i,...u){return a.produce(s,c=>n.call(this,c,...u))}}typeof n!="function"&&qt(6),r!==void 0&&typeof r!="function"&&qt(7);let o;if(Or(t)){const i=mv(this),a=Nf(t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?Tf(i):Rf(i)}return pv(i,r),gv(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===tS&&(o=void 0),this.autoFreeze_&&sp(o,!0),r){const i=[],a=[];$r("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else qt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,s=>t(s,...l));let r,o;return[this.produce(t,n,(a,l)=>{r=a,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Or(e)||qt(8),ko(e)&&(e=JR(e));const t=mv(this),n=Nf(e,void 0);return n[Ot].isManual_=!0,Rf(t),n}finishDraft(e,t){const n=e&&e[Ot];(!n||!n.isManual_)&&qt(9);const{scope_:r}=n;return pv(r,t),gv(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=$r("Patches").applyPatches_;return ko(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Nf(e,t){const n=Ds(e)?$r("MapSet").proxyMap_(e,t):Bs(e)?$r("MapSet").proxySet_(e,t):QR(e,t);return(t?t.scope_:oS()).drafts_.push(n),n}function JR(e){return ko(e)||qt(10,e),aS(e)}function aS(e){if(!Or(e)||Hs(e))return e;const t=e[Ot];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=kf(e,t.scope_.immer_.useStrictShallowCopy_)}else n=kf(e,!0);return Hl(n,(r,o)=>{rS(n,r,aS(o))}),t&&(t.finalized_=!1),n}var $t=new ZR,e_=$t.produce;$t.produceWithPatches.bind($t);$t.setAutoFreeze.bind($t);$t.setUseStrictShallowCopy.bind($t);$t.applyPatches.bind($t);$t.createDraft.bind($t);$t.finishDraft.bind($t);const t_=e=>(t,n,r)=>(r.setState=(o,i,...a)=>{const l=typeof o=="function"?e_(o):o;return t(l,i,...a)},e(r.setState,n,r)),n_=t_;var r_={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function o_(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var i;const a=s=>s===null?null:JSON.parse(s,void 0),l=(i=n.getItem(o))!=null?i:null;return l instanceof Promise?l.then(a):a(l)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,void 0)),removeItem:o=>n.removeItem(o)}}const Ki=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Ki(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Ki(r)(n)}}}},i_=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:y=>y,version:0,merge:(y,g)=>({...g,...y}),...t},a=!1;const l=new Set,s=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...y)},r,o);const c=Ki(i.serialize),f=()=>{const y=i.partialize({...r()});let g;const p=c({state:y,version:i.version}).then(v=>u.setItem(i.name,v)).catch(v=>{g=v});if(g)throw g;return p},d=o.setState;o.setState=(y,g)=>{d(y,g),f()};const S=e((...y)=>{n(...y),f()},r,o);let C;const h=()=>{var y;if(!u)return;a=!1,l.forEach(p=>p(r()));const g=((y=i.onRehydrateStorage)==null?void 0:y.call(i,r()))||void 0;return Ki(u.getItem.bind(u))(i.name).then(p=>{if(p)return i.deserialize(p)}).then(p=>{if(p)if(typeof p.version=="number"&&p.version!==i.version){if(i.migrate)return i.migrate(p.state,p.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return p.state}).then(p=>{var v;return C=i.merge(p,(v=r())!=null?v:S),n(C,!0),f()}).then(()=>{g==null||g(C,void 0),a=!0,s.forEach(p=>p(C))}).catch(p=>{g==null||g(void 0,p)})};return o.persist={setOptions:y=>{i={...i,...y},y.getStorage&&(u=y.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:y=>(l.add(y),()=>{l.delete(y)}),onFinishHydration:y=>(s.add(y),()=>{s.delete(y)})},h(),C||S},a_=(e,t)=>(n,r,o)=>{let i={storage:o_(()=>localStorage),partialize:h=>h,version:0,merge:(h,y)=>({...y,...h}),...t},a=!1;const l=new Set,s=new Set;let u=i.storage;if(!u)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},r,o);const c=()=>{const h=i.partialize({...r()});return u.setItem(i.name,{state:h,version:i.version})},f=o.setState;o.setState=(h,y)=>{f(h,y),c()};const d=e((...h)=>{n(...h),c()},r,o);o.getInitialState=()=>d;let S;const C=()=>{var h,y;if(!u)return;a=!1,l.forEach(p=>{var v;return p((v=r())!=null?v:d)});const g=((y=i.onRehydrateStorage)==null?void 0:y.call(i,(h=r())!=null?h:d))||void 0;return Ki(u.getItem.bind(u))(i.name).then(p=>{if(p)if(typeof p.version=="number"&&p.version!==i.version){if(i.migrate)return i.migrate(p.state,p.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return p.state}).then(p=>{var v;return S=i.merge(p,(v=r())!=null?v:d),n(S,!0),c()}).then(()=>{g==null||g(S,void 0),S=r(),a=!0,s.forEach(p=>p(S))}).catch(p=>{g==null||g(void 0,p)})};return o.persist={setOptions:h=>{i={...i,...h},h.storage&&(u=h.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>C(),hasHydrated:()=>a,onHydrate:h=>(l.add(h),()=>{l.delete(h)}),onFinishHydration:h=>(s.add(h),()=>{s.delete(h)})},i.skipHydration||C(),S||d},l_=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((r_?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),i_(e,t)):a_(e,t),s_=l_,ll={Facebook:"Facebook",Instagram:"Instagram",Threads:"Threads"},I_={[ll.Threads]:"fa-solid fa-at fa-lg"},u_={vi:"vi",en:"en"},F_={me:{url:"https://fb.com/99.hoangtran",uid:"100004848287494"},donate:"https://hoangtran0410.github.io/HoangTran0410/DONATE",GroupFB:"https://www.facebook.com/groups/1154059318582088",FaintiyoMedia:"https://www.facebook.com/FaintiyoMedia",UsefulScript:{github:"https://github.com/Useful-Scripts-Extension/useful-script",tutorial:"https://www.facebook.com/groups/1154059318582088/permalink/1453443235310360",demo:"https://useful-scripts-extension.github.io/useful-script/popup/popup.html",statistic:"https://useful-script-statistic.glitch.me"},FB_AIO:{webstore:"https://chromewebstore.google.com/detail/facebook-all-in-one/ncncagnhhigemlgiflfgdhcdpipadmmm",featureRequest:"https://www.facebook.com/messages/t/8566172656781742",helpReferral:"https://www.facebook.com/groups/1154059318582088/posts/1497153027606047",howToGetFbDtsg:"https://www.facebook.com/groups/1154059318582088/posts/1517029315618418"},PostToShare:{url:"https://www.facebook.com/groups/1154059318582088/posts/1473755286612488/",postId:"1473755286612488",uid:"100004848287494"}},M_={HOT:{bg:"#cc4433",color:"white",text:{vi:"Hot",en:"Hot"}},NEW:{bg:"purple",color:"white",text:{vi:"Mới",en:"New"}}},c_=["https://fb.watch/...","https://www.facebook.com/reel/...","https://www.facebook.com/watch/?v=...","https://www.facebook.com/.../videos/...","https://www.facebook.com/watch/?share_url=..."],L_={[ll.Facebook]:[{icon:"fa-solid fa-hashtag",name:{en:"ID of user/group/page",vi:"ID của user/group/page"},url:["100006164142110"]},{icon:"fa-solid fa-link",name:{en:"URL of user/group/page",vi:"Link của user/group/page"},url:["https://www.facebook.com/...","https://www.facebook.com/groups/...","https://www.facebook.com/groups/.../user/...","https://www.facebook.com/profile.php?id=..."]},{icon:"fa-regular fa-heart",name:{en:"Post URL (with multiple photos/videos)",vi:"Link bài viết (có nhiều ảnh/video)"},url:["https://www.facebook.com/.../posts/...","https://www.facebook.com/groups/.../posts/...","https://www.facebook.com/groups/...?multi_permalinks=...","https://www.facebook.com/photo/?fbid=...&set=...","https://www.facebook.com/permalink.php?story_fbid=...&id=..."]},{icon:"fa-solid fa-film",name:{en:"Video/Reel URL",vi:"Link video/reel"},url:c_},{icon:"fa-solid fa-share",name:{en:"Share URL",vi:"Link share"},url:["https://www.facebook.com/share/..."]}],[ll.Instagram]:[{icon:"fa-solid fa-hashtag",name:{en:"Insta name",vi:"Tên insta"},url:["99.hoangtran"]},{icon:"fa-solid fa-link",name:{en:"Direct URL",vi:"Link insta"},url:["https://www.instagram.com/99.hoangtran"]},{icon:"fa-solid fa-play",name:{en:"Story URL",vi:"Link story"},url:["https://www.instagram.com/stories/99.hoangtran"]}],[ll.Threads]:[{icon:"fa-solid fa-hashtag",name:{en:"Threads name",vi:"Tên threads"},url:["99.hoangtran"]},{icon:"fa-solid fa-link",name:{en:"Direct URL",vi:"Link threads"},url:["https://www.threads.net/@99.hoangtran"]}]},f_=(e,t)=>({persist:{muted:!1,darkMode:!0,profile:null,platform:null,friendsByUid:{},bulkSearchHistory:[],notifications:[],language:null,sharedPostURL:null,sharedPostTime:null,BEVIPExpiredTime:{}},setMuted:n=>e(r=>{r.persist.muted=n}),setDarkMode:n=>e(r=>{r.persist.darkMode=n}),setProfile:n=>e(r=>{r.persist.profile=n}),setPlatform:n=>e(r=>{r.persist.platform=n}),setFriendsByUid:(n,r)=>e(o=>{try{o.persist.friendsByUid||(o.persist.friendsByUid={}),n&&(o.persist.friendsByUid[n]=r)}catch(i){console.error(i)}}),addBulkSearchHistory:(n,r=1e3)=>e(o=>{try{Array.isArray(n)||(n=[n]),o.persist.bulkSearchHistory||(o.persist.bulkSearchHistory=[]);for(let i of n){let a=o.persist.bulkSearchHistory.findIndex(l=>l.targetId===i.targetId);a>-1&&o.persist.bulkSearchHistory.splice(a,1),o.persist.bulkSearchHistory.push(i)}o.persist.bulkSearchHistory.length>r&&(o.persist.bulkSearchHistory=o.persist.bulkSearchHistory.slice(o.persist.bulkSearchHistory.length-r))}catch(i){console.error(i)}}),deleteBulkSearchHistory:(n,r)=>e(o=>{var i;try{let a=(i=o.persist.bulkSearchHistory)==null?void 0:i.findIndex(l=>l.platform===n&&l.targetId===r);a>-1&&o.persist.bulkSearchHistory.splice(a,1)}catch(a){console.error(a)}}),clearBulkSearchHistory:n=>e(r=>{var o;r.persist.bulkSearchHistory=((o=r.persist.bulkSearchHistory)==null?void 0:o.filter(i=>i.platform!==n))||[]}),addNotification:(n,r=1e3)=>e(o=>{try{o.persist.notifications||(o.persist.notifications=[]),o.persist.notifications.push(n),o.persist.notifications.length>r&&(o.persist.notifications=o.persist.notifications.slice(o.persist.notifications.length-r))}catch(i){console.error(i)}}),clearNotifications:()=>e(n=>{n.persist.notifications=[]}),setLanguage:n=>e(r=>{typeof n=="string"&&n in u_&&(r.persist.language=n)}),setSharedPostURL:n=>e(r=>{r.persist.sharedPostURL=n}),setSharedPostTime:n=>e(r=>{r.persist.sharedPostTime=n}),setBEVIPexpiredTime:(n,r)=>e(o=>{o.persist.BEVIPExpiredTime||(o.persist.BEVIPExpiredTime={}),o.persist.BEVIPExpiredTime[n]=r})}),d_={hydrated:e=>e.hydrated,muted:e=>e.persist.muted,darkMode:e=>e.persist.darkMode,platform:e=>e.persist.platform,profile:e=>e.persist.profile,friendsByUid:e=>e.persist.friendsByUid||{},bulkSearchHistory:e=>e.persist.bulkSearchHistory||[],notifications:e=>e.persist.notifications||[],language:e=>e.persist.language,sharedPostURL:e=>e.persist.sharedPostURL,sharedPostTime:e=>e.persist.sharedPostTime||0,BEVIPExpiredTime:e=>e.persist.BEVIPExpiredTime||{},setDarkMode:e=>e.setDarkMode,setMuted:e=>e.setMuted,setProfile:e=>e.setProfile,setPlatform:e=>e.setPlatform,setFriendsByUid:e=>e.setFriendsByUid,addBulkSearchHistory:e=>e.addBulkSearchHistory,deleteBulkSearchHistory:e=>e.deleteBulkSearchHistory,clearBulkSearchHistory:e=>e.clearBulkSearchHistory,addNotification:e=>e.addNotification,clearNotifications:e=>e.clearNotifications,setLanguage:e=>e.setLanguage,setSharedPostURL:e=>e.setSharedPostURL,setSharedPostTime:e=>e.setSharedPostTime,setBEVIPexpiredTime:e=>e.setBEVIPexpiredTime},p_=VR(n_(s_((e,t)=>({...f_(e),hydrated:!1,setHasHydrated:n=>{e({hydrated:n})}}),{name:"facebook-all-in-one-extension",partialize:e=>({persist:e.persist}),onRehydrateStorage:()=>(e,t)=>(console.log("onRehydrateStorage",e,t),e.setHasHydrated(!0),(n,r)=>{r?console.log("an error happened during hydration",r):console.log("hydration finished")})}))),m_=m.lazy(()=>PS(()=>import("./MyApp-BHr373cy.js").then(e=>e.aA),[],import.meta.url));function g_(){const e=p_(d_.darkMode);return or.jsx(m.StrictMode,{children:or.jsx(_s,{theme:{algorithm:e?lv.darkAlgorithm:lv.lightAlgorithm},children:or.jsx(X1,{children:or.jsx(qE,{children:or.jsx(vR,{children:or.jsx(m_,{})})})})})})}const v_=qu.createRoot(document.getElementById("root"));v_.render(or.jsx(g_,{}));export{z as $,eP as A,d$ as B,ra as C,ie as D,Ir as E,en as F,aT as G,Gd as H,we as I,At as J,he as K,xP as L,AP as M,xO as N,zl as O,c$ as P,i1 as Q,c1 as R,Ts as S,fn as T,Nd as U,Qc as V,Y as W,_ as X,xt as Y,xs as Z,No as _,bs as a,hT as a$,w_ as a0,p2 as a1,x_ as a2,c2 as a3,Ke as a4,u2 as a5,O_ as a6,ia as a7,$_ as a8,EO as a9,or as aA,la as aB,us as aC,S_ as aD,DE as aE,PS as aF,C_ as aG,M_ as aH,OE as aI,ib as aJ,Ns as aK,qO as aL,bO as aM,g1 as aN,Ll as aO,Qg as aP,Hd as aQ,Gm as aR,e_ as aS,ll as aT,jo as aU,I_ as aV,L_ as aW,Kd as aX,c_ as aY,y_ as aZ,cT as a_,qk as aa,oa as ab,Q2 as ac,UP as ad,ZP as ae,P_ as af,np as ag,_s as ah,av as ai,YP as aj,QT as ak,N_ as al,XT as am,Xd as an,C$ as ao,Lg as ap,yO as aq,PP as ar,Wl as as,h_ as at,p_ as au,d_ as av,u_ as aw,F_ as ax,X1 as ay,Zw as az,ut as b,Vk as b0,v$ as b1,Hk as b2,pT as b3,TT as b4,R_ as b5,wT as b6,ET as b7,bT as b8,xT as b9,x1 as bA,y1 as bB,m1 as bC,ln as bD,k_ as bE,o$ as bF,ti as ba,__ as bb,CT as bc,vt as bd,Pu as be,Zd as bf,Yd as bg,oe as bh,Fr as bi,at as bj,Dx as bk,Yy as bl,u1 as bm,Pr as bn,T_ as bo,vk as bp,b_ as bq,Sx as br,nb as bs,px as bt,ep as bu,Jd as bv,Fy as bw,R1 as bx,lT as by,Bc as bz,ct as c,F as d,J as e,sb as f,fe as g,X as h,mi as i,G as j,Rs as k,E_ as l,j1 as m,cn as n,Q as o,ea as p,zi as q,m as r,ws as s,Fl as t,G0 as u,Cs as v,$n as w,W0 as x,Nm as y,cO as z}; + */var As=m,TR=kR;function RR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _R=typeof Object.is=="function"?Object.is:RR,NR=TR.useSyncExternalStore,IR=As.useRef,FR=As.useEffect,MR=As.useMemo,LR=As.useDebugValue;Y1.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=IR(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=MR(function(){function s(S){if(!u){if(u=!0,c=S,S=r(S),o!==void 0&&a.hasValue){var C=a.value;if(o(C,S))return f=C}return f=S}if(C=f,_R(c,S))return C;var h=r(S);return o!==void 0&&o(C,h)?C:(c=S,f=h)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return s(t())},d===null?void 0:function(){return s(d())}]},[t,n,r,o]);var l=NR(e,i[0],i[1]);return FR(function(){a.hasValue=!0,a.value=l},[l]),LR(l),l};Q1.exports=Y1;var jR=Q1.exports;const AR=Wl(jR);var eS={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:zR}=z,{useSyncExternalStoreWithSelector:DR}=AR;let cv=!1;const BR=e=>e;function HR(e,t=BR,n){(eS?"production":void 0)!=="production"&&n&&!cv&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),cv=!0);const r=DR(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return zR(r),r}const fv=e=>{(eS?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?yR(e):e,n=(r,o)=>HR(t,r,o);return Object.assign(n,t),n},VR=e=>e?fv(e):fv;var tS=Symbol.for("immer-nothing"),dv=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function qt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $o=Object.getPrototypeOf;function ko(e){return!!e&&!!e[Ot]}function Or(e){var t;return e?nS(e)||Array.isArray(e)||!!e[dv]||!!((t=e.constructor)!=null&&t[dv])||Ds(e)||Bs(e):!1}var UR=Object.prototype.constructor.toString();function nS(e){if(!e||typeof e!="object")return!1;const t=$o(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===UR}function Hl(e,t){zs(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function zs(e){const t=e[Ot];return t?t.type_:Array.isArray(e)?1:Ds(e)?2:Bs(e)?3:0}function $f(e,t){return zs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rS(e,t,n){const r=zs(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function WR(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ds(e){return e instanceof Map}function Bs(e){return e instanceof Set}function sr(e){return e.copy_||e.base_}function kf(e,t){if(Ds(e))return new Map(e);if(Bs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=nS(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Ot];let o=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=GR),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>sp(r,!0))),e}function GR(){qt(2)}function Hs(e){return Object.isFrozen(e)}var KR={};function $r(e){const t=KR[e];return t||qt(0,e),t}var Wi;function oS(){return Wi}function qR(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function pv(e,t){t&&($r("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Tf(e){Rf(e),e.drafts_.forEach(XR),e.drafts_=null}function Rf(e){e===Wi&&(Wi=e.parent_)}function mv(e){return Wi=qR(Wi,e)}function XR(e){const t=e[Ot];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function gv(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ot].modified_&&(Tf(t),qt(4)),Or(e)&&(e=Vl(t,e),t.parent_||Ul(t,e)),t.patches_&&$r("Patches").generateReplacementPatches_(n[Ot].base_,e,t.patches_,t.inversePatches_)):e=Vl(t,n,[]),Tf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==tS?e:void 0}function Vl(e,t,n){if(Hs(t))return t;const r=t[Ot];if(!r)return Hl(t,(o,i)=>vv(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ul(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),Hl(i,(l,s)=>vv(e,r,o,l,s,n,a)),Ul(e,o,!1),n&&e.patches_&&$r("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function vv(e,t,n,r,o,i,a){if(ko(o)){const l=i&&t&&t.type_!==3&&!$f(t.assigned_,r)?i.concat(r):void 0,s=Vl(e,o,l);if(rS(n,r,s),ko(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Or(o)&&!Hs(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Vl(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Ul(e,o)}}function Ul(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&sp(t,n)}function QR(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:oS(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=up;n&&(o=[r],i=Gi);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}var up={get(e,t){if(t===Ot)return e;const n=sr(e);if(!$f(n,t))return YR(e,n,t);const r=n[t];return e.finalized_||!Or(r)?r:r===Gu(e.base_,t)?(Ku(e),e.copy_[t]=Nf(r,e)):r},has(e,t){return t in sr(e)},ownKeys(e){return Reflect.ownKeys(sr(e))},set(e,t,n){const r=iS(sr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Gu(sr(e),t),i=o==null?void 0:o[Ot];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(WR(n,o)&&(n!==void 0||$f(e.base_,t)))return!0;Ku(e),_f(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Gu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ku(e),_f(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=sr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){qt(11)},getPrototypeOf(e){return $o(e.base_)},setPrototypeOf(){qt(12)}},Gi={};Hl(up,(e,t)=>{Gi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Gi.deleteProperty=function(e,t){return Gi.set.call(this,e,t,void 0)};Gi.set=function(e,t,n){return up.set.call(this,e[0],t,n,e[0])};function Gu(e,t){const n=e[Ot];return(n?sr(n):e)[t]}function YR(e,t,n){var o;const r=iS(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function iS(e,t){if(!(t in e))return;let n=$o(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=$o(n)}}function _f(e){e.modified_||(e.modified_=!0,e.parent_&&_f(e.parent_))}function Ku(e){e.copy_||(e.copy_=kf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ZR=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(s=i,...u){return a.produce(s,c=>n.call(this,c,...u))}}typeof n!="function"&&qt(6),r!==void 0&&typeof r!="function"&&qt(7);let o;if(Or(t)){const i=mv(this),a=Nf(t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?Tf(i):Rf(i)}return pv(i,r),gv(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===tS&&(o=void 0),this.autoFreeze_&&sp(o,!0),r){const i=[],a=[];$r("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else qt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,s=>t(s,...l));let r,o;return[this.produce(t,n,(a,l)=>{r=a,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Or(e)||qt(8),ko(e)&&(e=JR(e));const t=mv(this),n=Nf(e,void 0);return n[Ot].isManual_=!0,Rf(t),n}finishDraft(e,t){const n=e&&e[Ot];(!n||!n.isManual_)&&qt(9);const{scope_:r}=n;return pv(r,t),gv(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=$r("Patches").applyPatches_;return ko(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Nf(e,t){const n=Ds(e)?$r("MapSet").proxyMap_(e,t):Bs(e)?$r("MapSet").proxySet_(e,t):QR(e,t);return(t?t.scope_:oS()).drafts_.push(n),n}function JR(e){return ko(e)||qt(10,e),aS(e)}function aS(e){if(!Or(e)||Hs(e))return e;const t=e[Ot];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=kf(e,t.scope_.immer_.useStrictShallowCopy_)}else n=kf(e,!0);return Hl(n,(r,o)=>{rS(n,r,aS(o))}),t&&(t.finalized_=!1),n}var $t=new ZR,e_=$t.produce;$t.produceWithPatches.bind($t);$t.setAutoFreeze.bind($t);$t.setUseStrictShallowCopy.bind($t);$t.applyPatches.bind($t);$t.createDraft.bind($t);$t.finishDraft.bind($t);const t_=e=>(t,n,r)=>(r.setState=(o,i,...a)=>{const l=typeof o=="function"?e_(o):o;return t(l,i,...a)},e(r.setState,n,r)),n_=t_;var r_={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function o_(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var i;const a=s=>s===null?null:JSON.parse(s,void 0),l=(i=n.getItem(o))!=null?i:null;return l instanceof Promise?l.then(a):a(l)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,void 0)),removeItem:o=>n.removeItem(o)}}const Ki=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Ki(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Ki(r)(n)}}}},i_=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:y=>y,version:0,merge:(y,g)=>({...g,...y}),...t},a=!1;const l=new Set,s=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...y)},r,o);const c=Ki(i.serialize),f=()=>{const y=i.partialize({...r()});let g;const p=c({state:y,version:i.version}).then(v=>u.setItem(i.name,v)).catch(v=>{g=v});if(g)throw g;return p},d=o.setState;o.setState=(y,g)=>{d(y,g),f()};const S=e((...y)=>{n(...y),f()},r,o);let C;const h=()=>{var y;if(!u)return;a=!1,l.forEach(p=>p(r()));const g=((y=i.onRehydrateStorage)==null?void 0:y.call(i,r()))||void 0;return Ki(u.getItem.bind(u))(i.name).then(p=>{if(p)return i.deserialize(p)}).then(p=>{if(p)if(typeof p.version=="number"&&p.version!==i.version){if(i.migrate)return i.migrate(p.state,p.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return p.state}).then(p=>{var v;return C=i.merge(p,(v=r())!=null?v:S),n(C,!0),f()}).then(()=>{g==null||g(C,void 0),a=!0,s.forEach(p=>p(C))}).catch(p=>{g==null||g(void 0,p)})};return o.persist={setOptions:y=>{i={...i,...y},y.getStorage&&(u=y.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:y=>(l.add(y),()=>{l.delete(y)}),onFinishHydration:y=>(s.add(y),()=>{s.delete(y)})},h(),C||S},a_=(e,t)=>(n,r,o)=>{let i={storage:o_(()=>localStorage),partialize:h=>h,version:0,merge:(h,y)=>({...y,...h}),...t},a=!1;const l=new Set,s=new Set;let u=i.storage;if(!u)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},r,o);const c=()=>{const h=i.partialize({...r()});return u.setItem(i.name,{state:h,version:i.version})},f=o.setState;o.setState=(h,y)=>{f(h,y),c()};const d=e((...h)=>{n(...h),c()},r,o);o.getInitialState=()=>d;let S;const C=()=>{var h,y;if(!u)return;a=!1,l.forEach(p=>{var v;return p((v=r())!=null?v:d)});const g=((y=i.onRehydrateStorage)==null?void 0:y.call(i,(h=r())!=null?h:d))||void 0;return Ki(u.getItem.bind(u))(i.name).then(p=>{if(p)if(typeof p.version=="number"&&p.version!==i.version){if(i.migrate)return i.migrate(p.state,p.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return p.state}).then(p=>{var v;return S=i.merge(p,(v=r())!=null?v:d),n(S,!0),c()}).then(()=>{g==null||g(S,void 0),S=r(),a=!0,s.forEach(p=>p(S))}).catch(p=>{g==null||g(void 0,p)})};return o.persist={setOptions:h=>{i={...i,...h},h.storage&&(u=h.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>C(),hasHydrated:()=>a,onHydrate:h=>(l.add(h),()=>{l.delete(h)}),onFinishHydration:h=>(s.add(h),()=>{s.delete(h)})},i.skipHydration||C(),S||d},l_=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((r_?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),i_(e,t)):a_(e,t),s_=l_,ll={Facebook:"Facebook",Instagram:"Instagram",Threads:"Threads"},I_={[ll.Threads]:"fa-solid fa-at fa-lg"},u_={vi:"vi",en:"en"},F_={me:{url:"https://fb.com/99.hoangtran",uid:"100004848287494"},donate:"https://hoangtran0410.github.io/HoangTran0410/DONATE",GroupFB:"https://www.facebook.com/groups/1154059318582088",FaintiyoMedia:"https://www.facebook.com/FaintiyoMedia",UsefulScript:{github:"https://github.com/Useful-Scripts-Extension/useful-script",tutorial:"https://www.facebook.com/groups/1154059318582088/permalink/1453443235310360",demo:"https://useful-scripts-extension.github.io/useful-script/popup/popup.html",statistic:"https://useful-script-statistic.glitch.me"},FB_AIO:{webstore:"https://chromewebstore.google.com/detail/facebook-all-in-one/ncncagnhhigemlgiflfgdhcdpipadmmm",featureRequest:"https://www.facebook.com/messages/t/8566172656781742",helpReferral:"https://www.facebook.com/groups/1154059318582088/posts/1497153027606047",howToGetFbDtsg:"https://www.facebook.com/groups/1154059318582088/posts/1517029315618418"},PostToShare:{url:"https://www.facebook.com/groups/1154059318582088/posts/1473755286612488/",postId:"1473755286612488",uid:"100004848287494"}},M_={HOT:{bg:"#cc4433",color:"white",text:{vi:"Hot",en:"Hot"}},NEW:{bg:"purple",color:"white",text:{vi:"Mới",en:"New"}}},c_=["https://fb.watch/...","https://www.facebook.com/reel/...","https://www.facebook.com/watch/?v=...","https://www.facebook.com/.../videos/...","https://www.facebook.com/watch/?share_url=..."],L_={[ll.Facebook]:[{icon:"fa-solid fa-hashtag",name:{en:"ID of user/group/page",vi:"ID của user/group/page"},url:["100006164142110"]},{icon:"fa-solid fa-link",name:{en:"URL of user/group/page",vi:"Link của user/group/page"},url:["https://www.facebook.com/...","https://www.facebook.com/groups/...","https://www.facebook.com/groups/.../user/...","https://www.facebook.com/profile.php?id=..."]},{icon:"fa-regular fa-heart",name:{en:"Post URL (with multiple photos/videos)",vi:"Link bài viết (có nhiều ảnh/video)"},url:["https://www.facebook.com/.../posts/...","https://www.facebook.com/groups/.../posts/...","https://www.facebook.com/groups/...?multi_permalinks=...","https://www.facebook.com/photo/?fbid=...&set=...","https://www.facebook.com/permalink.php?story_fbid=...&id=..."]},{icon:"fa-solid fa-film",name:{en:"Video/Reel URL",vi:"Link video/reel"},url:c_},{icon:"fa-solid fa-share",name:{en:"Share URL",vi:"Link share"},url:["https://www.facebook.com/share/..."]}],[ll.Instagram]:[{icon:"fa-solid fa-hashtag",name:{en:"Insta name",vi:"Tên insta"},url:["99.hoangtran"]},{icon:"fa-solid fa-link",name:{en:"Direct URL",vi:"Link insta"},url:["https://www.instagram.com/99.hoangtran"]},{icon:"fa-solid fa-play",name:{en:"Story URL",vi:"Link story"},url:["https://www.instagram.com/stories/99.hoangtran"]}],[ll.Threads]:[{icon:"fa-solid fa-hashtag",name:{en:"Threads name",vi:"Tên threads"},url:["99.hoangtran"]},{icon:"fa-solid fa-link",name:{en:"Direct URL",vi:"Link threads"},url:["https://www.threads.net/@99.hoangtran"]}]},f_=(e,t)=>({persist:{muted:!1,darkMode:!0,profile:null,platform:null,friendsByUid:{},bulkSearchHistory:[],notifications:[],language:null,sharedPostURL:null,sharedPostTime:null,BEVIPExpiredTime:{}},setMuted:n=>e(r=>{r.persist.muted=n}),setDarkMode:n=>e(r=>{r.persist.darkMode=n}),setProfile:n=>e(r=>{r.persist.profile=n}),setPlatform:n=>e(r=>{r.persist.platform=n}),setFriendsByUid:(n,r)=>e(o=>{try{o.persist.friendsByUid||(o.persist.friendsByUid={}),n&&(o.persist.friendsByUid[n]=r)}catch(i){console.error(i)}}),addBulkSearchHistory:(n,r=1e3)=>e(o=>{try{Array.isArray(n)||(n=[n]),o.persist.bulkSearchHistory||(o.persist.bulkSearchHistory=[]);for(let i of n){let a=o.persist.bulkSearchHistory.findIndex(l=>l.targetId===i.targetId);a>-1&&o.persist.bulkSearchHistory.splice(a,1),o.persist.bulkSearchHistory.push(i)}o.persist.bulkSearchHistory.length>r&&(o.persist.bulkSearchHistory=o.persist.bulkSearchHistory.slice(o.persist.bulkSearchHistory.length-r))}catch(i){console.error(i)}}),deleteBulkSearchHistory:(n,r)=>e(o=>{var i;try{let a=(i=o.persist.bulkSearchHistory)==null?void 0:i.findIndex(l=>l.platform===n&&l.targetId===r);a>-1&&o.persist.bulkSearchHistory.splice(a,1)}catch(a){console.error(a)}}),clearBulkSearchHistory:n=>e(r=>{var o;r.persist.bulkSearchHistory=((o=r.persist.bulkSearchHistory)==null?void 0:o.filter(i=>i.platform!==n))||[]}),addNotification:(n,r=1e3)=>e(o=>{try{o.persist.notifications||(o.persist.notifications=[]),o.persist.notifications.push(n),o.persist.notifications.length>r&&(o.persist.notifications=o.persist.notifications.slice(o.persist.notifications.length-r))}catch(i){console.error(i)}}),clearNotifications:()=>e(n=>{n.persist.notifications=[]}),setLanguage:n=>e(r=>{typeof n=="string"&&n in u_&&(r.persist.language=n)}),setSharedPostURL:n=>e(r=>{r.persist.sharedPostURL=n}),setSharedPostTime:n=>e(r=>{r.persist.sharedPostTime=n}),setBEVIPexpiredTime:(n,r)=>e(o=>{o.persist.BEVIPExpiredTime||(o.persist.BEVIPExpiredTime={}),o.persist.BEVIPExpiredTime[n]=r})}),d_={hydrated:e=>e.hydrated,muted:e=>e.persist.muted,darkMode:e=>e.persist.darkMode,platform:e=>e.persist.platform,profile:e=>e.persist.profile,friendsByUid:e=>e.persist.friendsByUid||{},bulkSearchHistory:e=>e.persist.bulkSearchHistory||[],notifications:e=>e.persist.notifications||[],language:e=>e.persist.language,sharedPostURL:e=>e.persist.sharedPostURL,sharedPostTime:e=>e.persist.sharedPostTime||0,BEVIPExpiredTime:e=>e.persist.BEVIPExpiredTime||{},setDarkMode:e=>e.setDarkMode,setMuted:e=>e.setMuted,setProfile:e=>e.setProfile,setPlatform:e=>e.setPlatform,setFriendsByUid:e=>e.setFriendsByUid,addBulkSearchHistory:e=>e.addBulkSearchHistory,deleteBulkSearchHistory:e=>e.deleteBulkSearchHistory,clearBulkSearchHistory:e=>e.clearBulkSearchHistory,addNotification:e=>e.addNotification,clearNotifications:e=>e.clearNotifications,setLanguage:e=>e.setLanguage,setSharedPostURL:e=>e.setSharedPostURL,setSharedPostTime:e=>e.setSharedPostTime,setBEVIPexpiredTime:e=>e.setBEVIPexpiredTime},p_=VR(n_(s_((e,t)=>({...f_(e),hydrated:!1,setHasHydrated:n=>{e({hydrated:n})}}),{name:"facebook-all-in-one-extension",partialize:e=>({persist:e.persist}),onRehydrateStorage:()=>(e,t)=>(console.log("onRehydrateStorage",e,t),e.setHasHydrated(!0),(n,r)=>{r?console.log("an error happened during hydration",r):console.log("hydration finished")})}))),m_=m.lazy(()=>PS(()=>import("./MyApp-CmkiOnMb.js").then(e=>e.aA),[],import.meta.url));function g_(){const e=p_(d_.darkMode);return or.jsx(m.StrictMode,{children:or.jsx(_s,{theme:{algorithm:e?lv.darkAlgorithm:lv.lightAlgorithm},children:or.jsx(X1,{children:or.jsx(qE,{children:or.jsx(vR,{children:or.jsx(m_,{})})})})})})}const v_=qu.createRoot(document.getElementById("root"));v_.render(or.jsx(g_,{}));export{z as $,eP as A,d$ as B,ra as C,ie as D,Ir as E,en as F,aT as G,Gd as H,we as I,At as J,he as K,xP as L,AP as M,xO as N,zl as O,c$ as P,i1 as Q,c1 as R,Ts as S,fn as T,Nd as U,Qc as V,Y as W,_ as X,xt as Y,xs as Z,No as _,bs as a,hT as a$,w_ as a0,p2 as a1,x_ as a2,c2 as a3,Ke as a4,u2 as a5,O_ as a6,ia as a7,$_ as a8,EO as a9,or as aA,la as aB,us as aC,S_ as aD,DE as aE,PS as aF,C_ as aG,M_ as aH,OE as aI,ib as aJ,Ns as aK,qO as aL,bO as aM,g1 as aN,Ll as aO,Qg as aP,Hd as aQ,Gm as aR,e_ as aS,ll as aT,jo as aU,I_ as aV,L_ as aW,Kd as aX,c_ as aY,y_ as aZ,cT as a_,qk as aa,oa as ab,Q2 as ac,UP as ad,ZP as ae,P_ as af,np as ag,_s as ah,av as ai,YP as aj,QT as ak,N_ as al,XT as am,Xd as an,C$ as ao,Lg as ap,yO as aq,PP as ar,Wl as as,h_ as at,p_ as au,d_ as av,u_ as aw,F_ as ax,X1 as ay,Zw as az,ut as b,Vk as b0,v$ as b1,Hk as b2,pT as b3,TT as b4,R_ as b5,wT as b6,ET as b7,bT as b8,xT as b9,x1 as bA,y1 as bB,m1 as bC,ln as bD,k_ as bE,o$ as bF,ti as ba,__ as bb,CT as bc,vt as bd,Pu as be,Zd as bf,Yd as bg,oe as bh,Fr as bi,at as bj,Dx as bk,Yy as bl,u1 as bm,Pr as bn,T_ as bo,vk as bp,b_ as bq,Sx as br,nb as bs,px as bt,ep as bu,Jd as bv,Fy as bw,R1 as bx,lT as by,Bc as bz,ct as c,F as d,J as e,sb as f,fe as g,X as h,mi as i,G as j,Rs as k,E_ as l,j1 as m,cn as n,Q as o,ea as p,zi as q,m as r,ws as s,Fl as t,G0 as u,Cs as v,$n as w,W0 as x,Nm as y,cO as z}; diff --git a/public/assets/index-CB2nR54F.js b/public/assets/index-BM7CeakW.js similarity index 95% rename from public/assets/index-CB2nR54F.js rename to public/assets/index-BM7CeakW.js index f6d5eba..91932cf 100644 --- a/public/assets/index-CB2nR54F.js +++ b/public/assets/index-BM7CeakW.js @@ -1 +1 @@ -import{E as z,r as a,I as h,o as E,aQ as V,bn as W,aB as R,bA as A,bB as H,bv as N,Z as L}from"./index--trdnQFa.js";import{m as X}from"./MyApp-BHr373cy.js";import{a as D,g as S,P as F}from"./index-CU7pBSDU.js";const q=e=>{const{componentCls:n,iconCls:l,antCls:t,zIndexPopup:o,colorText:p,colorWarning:f,marginXXS:c,marginXS:i,fontSize:u,fontWeightStrong:C,colorTextHeading:d}=e;return{[n]:{zIndex:o,[`&${t}-popover`]:{fontSize:u},[`${n}-message`]:{marginBottom:i,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${n}-message-icon ${l}`]:{color:f,fontSize:u,lineHeight:1,marginInlineEnd:i},[`${n}-title`]:{fontWeight:C,color:d,"&:only-child":{fontWeight:"normal"}},[`${n}-description`]:{marginTop:c,color:p}},[`${n}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:i}}}}},M=e=>{const{zIndexPopupBase:n}=e;return{zIndexPopup:n+60}},$=z("Popconfirm",e=>q(e),M,{resetStyle:!1});var Q=function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,okButtonProps:l,cancelButtonProps:t,title:o,description:p,cancelText:f,okText:c,okType:i="primary",icon:u=a.createElement(N,null),showCancel:C=!0,close:d,onConfirm:v,onCancel:y,onPopupClick:b}=e,{getPrefixCls:P}=a.useContext(h),[m]=V("Popconfirm",W.Popconfirm),g=S(o),x=S(p);return a.createElement("div",{className:`${n}-inner-content`,onClick:b},a.createElement("div",{className:`${n}-message`},u&&a.createElement("span",{className:`${n}-message-icon`},u),a.createElement("div",{className:`${n}-message-text`},g&&a.createElement("div",{className:E(`${n}-title`)},g),x&&a.createElement("div",{className:`${n}-description`},x))),a.createElement("div",{className:`${n}-buttons`},C&&a.createElement(R,Object.assign({onClick:y,size:"small"},t),f||(m==null?void 0:m.cancelText)),a.createElement(A,{buttonProps:Object.assign(Object.assign({size:"small"},H(i)),l),actionFn:v,close:d,prefixCls:P("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||(m==null?void 0:m.okText))))},U=e=>{const{prefixCls:n,placement:l,className:t,style:o}=e,p=Q(e,["prefixCls","placement","className","style"]),{getPrefixCls:f}=a.useContext(h),c=f("popconfirm",n),[i]=$(c);return i(a.createElement(D,{placement:l,className:E(c,t),style:o,content:a.createElement(j,Object.assign({prefixCls:c},p))}))};var Y=function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{var l,t;const{prefixCls:o,placement:p="top",trigger:f="click",okType:c="primary",icon:i=a.createElement(N,null),children:u,overlayClassName:C,onOpenChange:d,onVisibleChange:v}=e,y=Y(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:b}=a.useContext(h),[P,m]=X(!1,{value:(l=e.open)!==null&&l!==void 0?l:e.visible,defaultValue:(t=e.defaultOpen)!==null&&t!==void 0?t:e.defaultVisible}),g=(r,s)=>{m(r,!0),v==null||v(r),d==null||d(r,s)},x=r=>{g(!1,r)},I=r=>{var s;return(s=e.onConfirm)===null||s===void 0?void 0:s.call(void 0,r)},w=r=>{var s;g(!1,r),(s=e.onCancel)===null||s===void 0||s.call(void 0,r)},k=(r,s)=>{const{disabled:B=!1}=e;B||g(r,s)},O=b("popconfirm",o),T=E(O,C),[_]=$(O);return _(a.createElement(F,Object.assign({},L(y,["title"]),{trigger:f,placement:p,onOpenChange:k,open:P,ref:n,overlayClassName:T,content:a.createElement(j,Object.assign({okType:c,icon:i},e,{prefixCls:O,close:x,onConfirm:I,onCancel:w})),"data-popover-inject":!0}),u))}),G=Z;G._InternalPanelDoNotUseOrYouWillBeFired=U;export{G as P}; +import{E as z,r as a,I as h,o as E,aQ as V,bn as W,aB as R,bA as A,bB as H,bv as N,Z as L}from"./index-BBriuzNA.js";import{m as X}from"./MyApp-CmkiOnMb.js";import{a as D,g as S,P as F}from"./index-Dg6R6lHP.js";const q=e=>{const{componentCls:n,iconCls:l,antCls:t,zIndexPopup:o,colorText:p,colorWarning:f,marginXXS:c,marginXS:i,fontSize:u,fontWeightStrong:C,colorTextHeading:d}=e;return{[n]:{zIndex:o,[`&${t}-popover`]:{fontSize:u},[`${n}-message`]:{marginBottom:i,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${n}-message-icon ${l}`]:{color:f,fontSize:u,lineHeight:1,marginInlineEnd:i},[`${n}-title`]:{fontWeight:C,color:d,"&:only-child":{fontWeight:"normal"}},[`${n}-description`]:{marginTop:c,color:p}},[`${n}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:i}}}}},M=e=>{const{zIndexPopupBase:n}=e;return{zIndexPopup:n+60}},$=z("Popconfirm",e=>q(e),M,{resetStyle:!1});var Q=function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,okButtonProps:l,cancelButtonProps:t,title:o,description:p,cancelText:f,okText:c,okType:i="primary",icon:u=a.createElement(N,null),showCancel:C=!0,close:d,onConfirm:v,onCancel:y,onPopupClick:b}=e,{getPrefixCls:P}=a.useContext(h),[m]=V("Popconfirm",W.Popconfirm),g=S(o),x=S(p);return a.createElement("div",{className:`${n}-inner-content`,onClick:b},a.createElement("div",{className:`${n}-message`},u&&a.createElement("span",{className:`${n}-message-icon`},u),a.createElement("div",{className:`${n}-message-text`},g&&a.createElement("div",{className:E(`${n}-title`)},g),x&&a.createElement("div",{className:`${n}-description`},x))),a.createElement("div",{className:`${n}-buttons`},C&&a.createElement(R,Object.assign({onClick:y,size:"small"},t),f||(m==null?void 0:m.cancelText)),a.createElement(A,{buttonProps:Object.assign(Object.assign({size:"small"},H(i)),l),actionFn:v,close:d,prefixCls:P("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||(m==null?void 0:m.okText))))},U=e=>{const{prefixCls:n,placement:l,className:t,style:o}=e,p=Q(e,["prefixCls","placement","className","style"]),{getPrefixCls:f}=a.useContext(h),c=f("popconfirm",n),[i]=$(c);return i(a.createElement(D,{placement:l,className:E(c,t),style:o,content:a.createElement(j,Object.assign({prefixCls:c},p))}))};var Y=function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{var l,t;const{prefixCls:o,placement:p="top",trigger:f="click",okType:c="primary",icon:i=a.createElement(N,null),children:u,overlayClassName:C,onOpenChange:d,onVisibleChange:v}=e,y=Y(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:b}=a.useContext(h),[P,m]=X(!1,{value:(l=e.open)!==null&&l!==void 0?l:e.visible,defaultValue:(t=e.defaultOpen)!==null&&t!==void 0?t:e.defaultVisible}),g=(r,s)=>{m(r,!0),v==null||v(r),d==null||d(r,s)},x=r=>{g(!1,r)},I=r=>{var s;return(s=e.onConfirm)===null||s===void 0?void 0:s.call(void 0,r)},w=r=>{var s;g(!1,r),(s=e.onCancel)===null||s===void 0||s.call(void 0,r)},k=(r,s)=>{const{disabled:B=!1}=e;B||g(r,s)},O=b("popconfirm",o),T=E(O,C),[_]=$(O);return _(a.createElement(F,Object.assign({},L(y,["title"]),{trigger:f,placement:p,onOpenChange:k,open:P,ref:n,overlayClassName:T,content:a.createElement(j,Object.assign({okType:c,icon:i},e,{prefixCls:O,close:x,onConfirm:I,onCancel:w})),"data-popover-inject":!0}),u))}),G=Z;G._InternalPanelDoNotUseOrYouWillBeFired=U;export{G as P}; diff --git a/public/assets/index-BCUBacY9.js b/public/assets/index-BbXfI1Nu.js similarity index 97% rename from public/assets/index-BCUBacY9.js rename to public/assets/index-BbXfI1Nu.js index af5788b..8d5894e 100644 --- a/public/assets/index-BCUBacY9.js +++ b/public/assets/index-BbXfI1Nu.js @@ -1 +1 @@ -import{r as s,I as X,o as q,aP as D,E as ee,F as te,w as ne,aK as oe,a7 as se,aN as J,k as W,h as re,T as ae,g as ie,Z as le,v as Y,aM as ce,Q as Z,aB as ue}from"./index--trdnQFa.js";import{m as fe,c as pe,i as me,I as K,f as de,n as ve,o as ge}from"./index-VHrAsB-Q.js";import{R as Ce}from"./EyeOutlined-BALW2cms.js";import{R as ye}from"./SearchOutlined-D247roQH.js";const be=e=>{const{getPrefixCls:r,direction:i}=s.useContext(X),{prefixCls:t,className:n}=e,u=r("input-group",t),v=r("input"),[m,C]=fe(v),x=q(u,{[`${u}-lg`]:e.size==="large",[`${u}-sm`]:e.size==="small",[`${u}-compact`]:e.compact,[`${u}-rtl`]:i==="rtl"},C,n),g=s.useContext(D),d=s.useMemo(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return m(s.createElement("span",{className:x,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(D.Provider,{value:d},e.children)))},Oe=e=>{const{componentCls:r,paddingXS:i}=e;return{[`${r}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:i,"&-rtl":{direction:"rtl"},[`${r}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${r}-sm ${r}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${r}-lg ${r}-input`]:{paddingInline:e.paddingXS}}}},he=ee(["Input","OTP"],e=>{const r=te(e,pe(e));return[Oe(r)]},me);var xe=function(e,r){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{value:i,onChange:t,onActiveChange:n,index:u,mask:v}=e,m=xe(e,["value","onChange","onActiveChange","index","mask"]),C=i&&typeof v=="string"?v:i,x=p=>{t(u,p.target.value)},g=s.useRef(null);s.useImperativeHandle(r,()=>g.current);const d=()=>{ne(()=>{var p;const y=(p=g.current)===null||p===void 0?void 0:p.input;document.activeElement===y&&y&&y.select()})},_=p=>{let{key:y}=p;y==="ArrowLeft"?n(u-1):y==="ArrowRight"&&n(u+1),d()},w=p=>{p.key==="Backspace"&&!i&&n(u-1),d()};return s.createElement(K,Object.assign({},m,{ref:g,value:C,onInput:x,onFocus:d,onKeyDown:_,onKeyUp:w,onMouseDown:d,onMouseUp:d,type:v===!0?"password":"text"}))});var Pe=function(e,r){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{prefixCls:i,length:t=6,size:n,defaultValue:u,value:v,onChange:m,formatter:C,variant:x,disabled:g,status:d,autoFocus:_,mask:w}=e,p=Pe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:y,direction:j}=s.useContext(X),b=y("otp",i),k=oe(p,{aria:!0,data:!0,attr:!0}),P=se(b),[A,M,$]=he(b,P),S=J(o=>n??o),z=s.useContext(D),O=de(z.status,d),h=s.useMemo(()=>Object.assign(Object.assign({},z),{status:O,hasFeedback:!1,feedbackIcon:null}),[z,O]),T=s.useRef(null),I=s.useRef({});s.useImperativeHandle(r,()=>({focus:()=>{var o;(o=I.current[0])===null||o===void 0||o.focus()},blur:()=>{var o;for(let a=0;aC?C(o):o,[R,E]=s.useState(L(N(u||"")));s.useEffect(()=>{v!==void 0&&E(L(v))},[v]);const V=W(o=>{E(o),m&&o.length===t&&o.every(a=>a)&&o.some((a,c)=>R[c]!==a)&&m(o.join(""))}),U=W((o,a)=>{let c=re(R);for(let f=0;f=0&&!c[f];f-=1)c.pop();const B=N(c.map(f=>f||" ").join(""));return c=L(B).map((f,H)=>f===" "&&!c[H]?c[H]:f),c}),Q=(o,a)=>{var c;const B=U(o,a),f=Math.min(o+a.length,t-1);f!==o&&((c=I.current[f])===null||c===void 0||c.focus()),V(B)},G=o=>{var a;(a=I.current[o])===null||a===void 0||a.focus()},l={variant:x,disabled:g,status:O,mask:w};return A(s.createElement("div",Object.assign({},k,{ref:T,className:q(b,{[`${b}-sm`]:S==="small",[`${b}-lg`]:S==="large",[`${b}-rtl`]:j==="rtl"},$,M)}),s.createElement(D.Provider,{value:h},Array.from({length:t}).map((o,a)=>{const c=`otp-${a}`,B=R[a]||"";return s.createElement(Ie,Object.assign({ref:f=>{I.current[a]=f},key:c,index:a,size:S,htmlSize:1,className:`${b}-input`,onChange:Q,value:B,onActiveChange:G,autoFocus:a===0&&_},l))}))))});var Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},we=function(r,i){return s.createElement(ae,ie({},r,{ref:i,icon:Ee}))},je=s.forwardRef(we),$e=function(e,r){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);ne?s.createElement(Ce,null):s.createElement(je,null),Re={click:"onClick",hover:"onMouseOver"},_e=s.forwardRef((e,r)=>{const{disabled:i,action:t="click",visibilityToggle:n=!0,iconRender:u=ze}=e,v=typeof n=="object"&&n.visible!==void 0,[m,C]=s.useState(()=>v?n.visible:!1),x=s.useRef(null);s.useEffect(()=>{v&&C(n.visible)},[v,n]);const g=ve(x),d=()=>{i||(m&&g(),C(z=>{var O;const h=!z;return typeof n=="object"&&((O=n.onVisibleChange)===null||O===void 0||O.call(n,h)),h}))},_=z=>{const O=Re[t]||"",h=u(m),T={[O]:d,className:`${z}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault()},onMouseUp:I=>{I.preventDefault()}};return s.cloneElement(s.isValidElement(h)?h:s.createElement("span",null,h),T)},{className:w,prefixCls:p,inputPrefixCls:y,size:j}=e,b=$e(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:k}=s.useContext(X),P=k("input",y),A=k("input-password",p),M=n&&_(A),$=q(A,w,{[`${A}-${j}`]:!!j}),S=Object.assign(Object.assign({},le(b,["suffix","iconRender","visibilityToggle"])),{type:m?"text":"password",className:$,prefixCls:P,suffix:M});return j&&(S.size=j),s.createElement(K,Object.assign({ref:Y(r,x)},S))});var ke=function(e,r){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{prefixCls:i,inputPrefixCls:t,className:n,size:u,suffix:v,enterButton:m=!1,addonAfter:C,loading:x,disabled:g,onSearch:d,onChange:_,onCompositionStart:w,onCompositionEnd:p}=e,y=ke(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:j,direction:b}=s.useContext(X),k=s.useRef(!1),P=j("input-search",i),A=j("input",t),{compactSize:M}=ce(P,b),$=J(l=>{var o;return(o=u??M)!==null&&o!==void 0?o:l}),S=s.useRef(null),z=l=>{l&&l.target&&l.type==="click"&&d&&d(l.target.value,l,{source:"clear"}),_&&_(l)},O=l=>{var o;document.activeElement===((o=S.current)===null||o===void 0?void 0:o.input)&&l.preventDefault()},h=l=>{var o,a;d&&d((a=(o=S.current)===null||o===void 0?void 0:o.input)===null||a===void 0?void 0:a.value,l,{source:"input"})},T=l=>{k.current||x||h(l)},I=typeof m=="boolean"?s.createElement(ye,null):null,N=`${P}-button`;let R;const E=m||{},V=E.type&&E.type.__ANT_BUTTON===!0;V||E.type==="button"?R=Z(E,Object.assign({onMouseDown:O,onClick:l=>{var o,a;(a=(o=E==null?void 0:E.props)===null||o===void 0?void 0:o.onClick)===null||a===void 0||a.call(o,l),h(l)},key:"enterButton"},V?{className:N,size:$}:{})):R=s.createElement(ue,{className:N,type:m?"primary":void 0,size:$,disabled:g,key:"enterButton",onMouseDown:O,onClick:h,loading:x,icon:I},m),C&&(R=[R,Z(C,{key:"addonAfter"})]);const U=q(P,{[`${P}-rtl`]:b==="rtl",[`${P}-${$}`]:!!$,[`${P}-with-button`]:!!m},n),Q=l=>{k.current=!0,w==null||w(l)},G=l=>{k.current=!1,p==null||p(l)};return s.createElement(K,Object.assign({ref:Y(S,r),onPressEnter:T},y,{size:$,onCompositionStart:Q,onCompositionEnd:G,prefixCls:A,addonAfter:R,suffix:v,onChange:z,className:U,disabled:g}))}),F=K;F.Group=be;F.Search=Ae;F.TextArea=ge;F.Password=_e;F.OTP=Se;export{F as I}; +import{r as s,I as X,o as q,aP as D,E as ee,F as te,w as ne,aK as oe,a7 as se,aN as J,k as W,h as re,T as ae,g as ie,Z as le,v as Y,aM as ce,Q as Z,aB as ue}from"./index-BBriuzNA.js";import{m as fe,c as pe,i as me,I as K,f as de,n as ve,o as ge}from"./index-Bumumc8Y.js";import{R as Ce}from"./EyeOutlined-Du2MtFRM.js";import{R as ye}from"./SearchOutlined-DvnHgzkc.js";const be=e=>{const{getPrefixCls:r,direction:i}=s.useContext(X),{prefixCls:t,className:n}=e,u=r("input-group",t),v=r("input"),[m,C]=fe(v),x=q(u,{[`${u}-lg`]:e.size==="large",[`${u}-sm`]:e.size==="small",[`${u}-compact`]:e.compact,[`${u}-rtl`]:i==="rtl"},C,n),g=s.useContext(D),d=s.useMemo(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return m(s.createElement("span",{className:x,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(D.Provider,{value:d},e.children)))},Oe=e=>{const{componentCls:r,paddingXS:i}=e;return{[`${r}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:i,"&-rtl":{direction:"rtl"},[`${r}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${r}-sm ${r}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${r}-lg ${r}-input`]:{paddingInline:e.paddingXS}}}},he=ee(["Input","OTP"],e=>{const r=te(e,pe(e));return[Oe(r)]},me);var xe=function(e,r){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{value:i,onChange:t,onActiveChange:n,index:u,mask:v}=e,m=xe(e,["value","onChange","onActiveChange","index","mask"]),C=i&&typeof v=="string"?v:i,x=p=>{t(u,p.target.value)},g=s.useRef(null);s.useImperativeHandle(r,()=>g.current);const d=()=>{ne(()=>{var p;const y=(p=g.current)===null||p===void 0?void 0:p.input;document.activeElement===y&&y&&y.select()})},_=p=>{let{key:y}=p;y==="ArrowLeft"?n(u-1):y==="ArrowRight"&&n(u+1),d()},w=p=>{p.key==="Backspace"&&!i&&n(u-1),d()};return s.createElement(K,Object.assign({},m,{ref:g,value:C,onInput:x,onFocus:d,onKeyDown:_,onKeyUp:w,onMouseDown:d,onMouseUp:d,type:v===!0?"password":"text"}))});var Pe=function(e,r){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{prefixCls:i,length:t=6,size:n,defaultValue:u,value:v,onChange:m,formatter:C,variant:x,disabled:g,status:d,autoFocus:_,mask:w}=e,p=Pe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:y,direction:j}=s.useContext(X),b=y("otp",i),k=oe(p,{aria:!0,data:!0,attr:!0}),P=se(b),[A,M,$]=he(b,P),S=J(o=>n??o),z=s.useContext(D),O=de(z.status,d),h=s.useMemo(()=>Object.assign(Object.assign({},z),{status:O,hasFeedback:!1,feedbackIcon:null}),[z,O]),T=s.useRef(null),I=s.useRef({});s.useImperativeHandle(r,()=>({focus:()=>{var o;(o=I.current[0])===null||o===void 0||o.focus()},blur:()=>{var o;for(let a=0;aC?C(o):o,[R,E]=s.useState(L(N(u||"")));s.useEffect(()=>{v!==void 0&&E(L(v))},[v]);const V=W(o=>{E(o),m&&o.length===t&&o.every(a=>a)&&o.some((a,c)=>R[c]!==a)&&m(o.join(""))}),U=W((o,a)=>{let c=re(R);for(let f=0;f=0&&!c[f];f-=1)c.pop();const B=N(c.map(f=>f||" ").join(""));return c=L(B).map((f,H)=>f===" "&&!c[H]?c[H]:f),c}),Q=(o,a)=>{var c;const B=U(o,a),f=Math.min(o+a.length,t-1);f!==o&&((c=I.current[f])===null||c===void 0||c.focus()),V(B)},G=o=>{var a;(a=I.current[o])===null||a===void 0||a.focus()},l={variant:x,disabled:g,status:O,mask:w};return A(s.createElement("div",Object.assign({},k,{ref:T,className:q(b,{[`${b}-sm`]:S==="small",[`${b}-lg`]:S==="large",[`${b}-rtl`]:j==="rtl"},$,M)}),s.createElement(D.Provider,{value:h},Array.from({length:t}).map((o,a)=>{const c=`otp-${a}`,B=R[a]||"";return s.createElement(Ie,Object.assign({ref:f=>{I.current[a]=f},key:c,index:a,size:S,htmlSize:1,className:`${b}-input`,onChange:Q,value:B,onActiveChange:G,autoFocus:a===0&&_},l))}))))});var Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},we=function(r,i){return s.createElement(ae,ie({},r,{ref:i,icon:Ee}))},je=s.forwardRef(we),$e=function(e,r){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);ne?s.createElement(Ce,null):s.createElement(je,null),Re={click:"onClick",hover:"onMouseOver"},_e=s.forwardRef((e,r)=>{const{disabled:i,action:t="click",visibilityToggle:n=!0,iconRender:u=ze}=e,v=typeof n=="object"&&n.visible!==void 0,[m,C]=s.useState(()=>v?n.visible:!1),x=s.useRef(null);s.useEffect(()=>{v&&C(n.visible)},[v,n]);const g=ve(x),d=()=>{i||(m&&g(),C(z=>{var O;const h=!z;return typeof n=="object"&&((O=n.onVisibleChange)===null||O===void 0||O.call(n,h)),h}))},_=z=>{const O=Re[t]||"",h=u(m),T={[O]:d,className:`${z}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault()},onMouseUp:I=>{I.preventDefault()}};return s.cloneElement(s.isValidElement(h)?h:s.createElement("span",null,h),T)},{className:w,prefixCls:p,inputPrefixCls:y,size:j}=e,b=$e(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:k}=s.useContext(X),P=k("input",y),A=k("input-password",p),M=n&&_(A),$=q(A,w,{[`${A}-${j}`]:!!j}),S=Object.assign(Object.assign({},le(b,["suffix","iconRender","visibilityToggle"])),{type:m?"text":"password",className:$,prefixCls:P,suffix:M});return j&&(S.size=j),s.createElement(K,Object.assign({ref:Y(r,x)},S))});var ke=function(e,r){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{prefixCls:i,inputPrefixCls:t,className:n,size:u,suffix:v,enterButton:m=!1,addonAfter:C,loading:x,disabled:g,onSearch:d,onChange:_,onCompositionStart:w,onCompositionEnd:p}=e,y=ke(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:j,direction:b}=s.useContext(X),k=s.useRef(!1),P=j("input-search",i),A=j("input",t),{compactSize:M}=ce(P,b),$=J(l=>{var o;return(o=u??M)!==null&&o!==void 0?o:l}),S=s.useRef(null),z=l=>{l&&l.target&&l.type==="click"&&d&&d(l.target.value,l,{source:"clear"}),_&&_(l)},O=l=>{var o;document.activeElement===((o=S.current)===null||o===void 0?void 0:o.input)&&l.preventDefault()},h=l=>{var o,a;d&&d((a=(o=S.current)===null||o===void 0?void 0:o.input)===null||a===void 0?void 0:a.value,l,{source:"input"})},T=l=>{k.current||x||h(l)},I=typeof m=="boolean"?s.createElement(ye,null):null,N=`${P}-button`;let R;const E=m||{},V=E.type&&E.type.__ANT_BUTTON===!0;V||E.type==="button"?R=Z(E,Object.assign({onMouseDown:O,onClick:l=>{var o,a;(a=(o=E==null?void 0:E.props)===null||o===void 0?void 0:o.onClick)===null||a===void 0||a.call(o,l),h(l)},key:"enterButton"},V?{className:N,size:$}:{})):R=s.createElement(ue,{className:N,type:m?"primary":void 0,size:$,disabled:g,key:"enterButton",onMouseDown:O,onClick:h,loading:x,icon:I},m),C&&(R=[R,Z(C,{key:"addonAfter"})]);const U=q(P,{[`${P}-rtl`]:b==="rtl",[`${P}-${$}`]:!!$,[`${P}-with-button`]:!!m},n),Q=l=>{k.current=!0,w==null||w(l)},G=l=>{k.current=!1,p==null||p(l)};return s.createElement(K,Object.assign({ref:Y(S,r),onPressEnter:T},y,{size:$,onCompositionStart:Q,onCompositionEnd:G,prefixCls:A,addonAfter:R,suffix:v,onChange:z,className:U,disabled:g}))}),F=K;F.Group=be;F.Search=Ae;F.TextArea=ge;F.Password=_e;F.OTP=Se;export{F as I}; diff --git a/public/assets/index-BeFPDyjj.js b/public/assets/index-BeFPDyjj.js deleted file mode 100644 index b680d07..0000000 --- a/public/assets/index-BeFPDyjj.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__fileDeps=["./RecentStories-B9-ahsMF.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./MyApp-BHr373cy.js","./Collection-CPPE61tF.js","./index-X7jfXLlB.js","./file-download-DYjmaN3D.js","./index-BI67OZir.js","./Dropdown-DUpNeMO8.js","./PurePanel-CSR2tSBX.js","./index-DmA8T0X5.js","./index-BCUBacY9.js","./index-VHrAsB-Q.js","./EyeOutlined-BALW2cms.js","./SearchOutlined-D247roQH.js","./index-BJNnFmyH.js","./Pagination-CPGTHysj.js","./useBreakpoint-QbbjxHKX.js","./responsiveObserver-DiDk9dGL.js","./index-CETJ8txP.js","./row-DQoT4CfJ.js","./index-CJGqVaEE.js","./RecentStoryViewer-DG9zNPDV.js","./stories-DtwI_s_2.js","./StoryViewers-Bp82Fv1t.js","./index-DTxLlwd8.js","./index-CU7pBSDU.js","./VideoWithMuted-xvYRNY0l.js","./index-CB9InVBI.js","./addEventListener-KkFh1sjE.js","./index-fivsYW1W.js","./ArchivedStories-BCCxC5DD.js","./index-CB2nR54F.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{aA as e,r as i,aF as a}from"./index--trdnQFa.js";import{u as o,b as l}from"./MyApp-BHr373cy.js";import{T as c}from"./index-DYW0YRm8.js";import"./Dropdown-DUpNeMO8.js";const n=i.lazy(()=>a(()=>import("./RecentStories-B9-ahsMF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),d=i.lazy(()=>a(()=>import("./ArchivedStories-BCCxC5DD.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,28,29,32,26]),import.meta.url)),r={Recent:"recent",Archived:"archived"};function v(){const{ti:t}=o(),s=[{key:r.Recent,label:t({en:"Today",vi:"Hôm nay"}),closable:!1,children:e.jsx(n,{})},{key:r.Archived,label:t({en:"Archived",vi:"Kho lưu trữ"}),closable:!1,children:e.jsx(d,{})}];return e.jsxs(l,{direction:"vertical",style:{width:"100%"},children:[e.jsx("h1",{style:{textAlign:"left"},children:t({en:"Story",vi:"Tin"})}),e.jsx(c,{hideAdd:!0,type:"editable-card",items:s})]})}export{v as default}; diff --git a/public/assets/index-fivsYW1W.js b/public/assets/index-BhyNApA-.js similarity index 99% rename from public/assets/index-fivsYW1W.js rename to public/assets/index-BhyNApA-.js index ad76ef5..cb39123 100644 --- a/public/assets/index-fivsYW1W.js +++ b/public/assets/index-BhyNApA-.js @@ -1,3 +1,3 @@ -import{E as q,H as J,D as B,r as s,I as Q,o as S,aK as U,C as Y,v as Z,ar as ee,ab as oe,bg as ne,bu as te,bf as re,bv as ie,_ as se,c as ae,b as le,bw as ce}from"./index--trdnQFa.js";const h=(e,o,r,n,i)=>({background:e,border:`${B(n.lineWidth)} ${n.lineType} ${o}`,[`${i}-icon`]:{color:r}}),de=e=>{const{componentCls:o,motionDurationSlow:r,marginXS:n,marginSM:i,fontSize:a,fontSizeLG:d,lineHeight:m,borderRadiusLG:g,motionEaseInOutCirc:p,withDescriptionIconSize:v,colorText:b,colorTextHeading:y,withDescriptionPadding:C,defaultPadding:l}=e;return{[o]:Object.assign(Object.assign({},J(e)),{position:"relative",display:"flex",alignItems:"center",padding:l,wordWrap:"break-word",borderRadius:g,[`&${o}-rtl`]:{direction:"rtl"},[`${o}-content`]:{flex:1,minWidth:0},[`${o}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:m},"&-message":{color:y},[`&${o}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${p}, opacity ${r} ${p}, +import{E as q,H as J,D as B,r as s,I as Q,o as S,aK as U,C as Y,v as Z,ar as ee,ab as oe,bg as ne,bu as te,bf as re,bv as ie,_ as se,c as ae,b as le,bw as ce}from"./index-BBriuzNA.js";const h=(e,o,r,n,i)=>({background:e,border:`${B(n.lineWidth)} ${n.lineType} ${o}`,[`${i}-icon`]:{color:r}}),de=e=>{const{componentCls:o,motionDurationSlow:r,marginXS:n,marginSM:i,fontSize:a,fontSizeLG:d,lineHeight:m,borderRadiusLG:g,motionEaseInOutCirc:p,withDescriptionIconSize:v,colorText:b,colorTextHeading:y,withDescriptionPadding:C,defaultPadding:l}=e;return{[o]:Object.assign(Object.assign({},J(e)),{position:"relative",display:"flex",alignItems:"center",padding:l,wordWrap:"break-word",borderRadius:g,[`&${o}-rtl`]:{direction:"rtl"},[`${o}-content`]:{flex:1,minWidth:0},[`${o}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:m},"&-message":{color:y},[`&${o}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${p}, opacity ${r} ${p}, padding-top ${r} ${p}, padding-bottom ${r} ${p}, margin-bottom ${r} ${p}`},[`&${o}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${o}-with-description`]:{alignItems:"flex-start",padding:C,[`${o}-icon`]:{marginInlineEnd:i,fontSize:v,lineHeight:0},[`${o}-message`]:{display:"block",marginBottom:n,color:y,fontSize:d},[`${o}-description`]:{display:"block",color:b}},[`${o}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},ue=e=>{const{componentCls:o,colorSuccess:r,colorSuccessBorder:n,colorSuccessBg:i,colorWarning:a,colorWarningBorder:d,colorWarningBg:m,colorError:g,colorErrorBorder:p,colorErrorBg:v,colorInfo:b,colorInfoBorder:y,colorInfoBg:C}=e;return{[o]:{"&-success":h(i,n,r,e,o),"&-info":h(C,y,b,e,o),"&-warning":h(m,d,a,e,o),"&-error":Object.assign(Object.assign({},h(v,p,g,e,o)),{[`${o}-description > pre`]:{margin:0,padding:0}})}}},me=e=>{const{componentCls:o,iconCls:r,motionDurationMid:n,marginXS:i,fontSizeIcon:a,colorIcon:d,colorIconHover:m}=e;return{[o]:{"&-action":{marginInlineStart:i},[`${o}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:B(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:d,transition:`color ${n}`,"&:hover":{color:m}}},"&-close-text":{color:d,transition:`color ${n}`,"&:hover":{color:m}}}}},pe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),fe=q("Alert",e=>[de(e),ue(e),me(e)],pe);var j=function(e,o){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{icon:o,prefixCls:r,type:n}=e,i=ge[n]||null;return o?ee(o,s.createElement("span",{className:`${r}-icon`},o),()=>({className:S(`${r}-icon`,{[o.props.className]:o.props.className})})):s.createElement(i,{className:`${r}-icon`})},be=e=>{const{isClosable:o,prefixCls:r,closeIcon:n,handleClose:i,ariaProps:a}=e,d=n===!0||n===void 0?s.createElement(oe,null):n;return o?s.createElement("button",Object.assign({type:"button",onClick:i,className:`${r}-close-icon`,tabIndex:0},a),d):null},H=s.forwardRef((e,o)=>{const{description:r,prefixCls:n,message:i,banner:a,className:d,rootClassName:m,style:g,onMouseEnter:p,onMouseLeave:v,onClick:b,afterClose:y,showIcon:C,closable:l,closeText:I,closeIcon:$,action:E,id:P}=e,M=j(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[x,z]=s.useState(!1),w=s.useRef(null);s.useImperativeHandle(o,()=>({nativeElement:w.current}));const{getPrefixCls:R,direction:D,alert:t}=s.useContext(Q),c=R("alert",n),[_,T,A]=fe(c),k=u=>{var f;z(!0),(f=e.onClose)===null||f===void 0||f.call(e,u)},N=s.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),L=s.useMemo(()=>typeof l=="object"&&l.closeIcon||I?!0:typeof l=="boolean"?l:$!==!1&&$!==null&&$!==void 0?!0:!!(t!=null&&t.closable),[I,$,l,t==null?void 0:t.closable]),O=a&&C===void 0?!0:C,W=S(c,`${c}-${N}`,{[`${c}-with-description`]:!!r,[`${c}-no-icon`]:!O,[`${c}-banner`]:!!a,[`${c}-rtl`]:D==="rtl"},t==null?void 0:t.className,d,m,A,T),G=U(M,{aria:!0,data:!0}),V=s.useMemo(()=>{var u,f;return typeof l=="object"&&l.closeIcon?l.closeIcon:I||($!==void 0?$:typeof(t==null?void 0:t.closable)=="object"&&(!((u=t==null?void 0:t.closable)===null||u===void 0)&&u.closeIcon)?(f=t==null?void 0:t.closable)===null||f===void 0?void 0:f.closeIcon:t==null?void 0:t.closeIcon)},[$,l,I,t==null?void 0:t.closeIcon]),X=s.useMemo(()=>{const u=l??(t==null?void 0:t.closable);return typeof u=="object"?j(u,["closeIcon"]):{}},[l,t==null?void 0:t.closable]);return _(s.createElement(Y,{visible:!x,motionName:`${c}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:u=>({maxHeight:u.offsetHeight}),onLeaveEnd:y},(u,f)=>{let{className:F,style:K}=u;return s.createElement("div",Object.assign({id:P,ref:Z(w,f),"data-show":!x,className:S(W,F),style:Object.assign(Object.assign(Object.assign({},t==null?void 0:t.style),g),K),onMouseEnter:p,onMouseLeave:v,onClick:b,role:"alert"},G),O?s.createElement(ve,{description:r,icon:e.icon,prefixCls:c,type:N}):null,s.createElement("div",{className:`${c}-content`},i?s.createElement("div",{className:`${c}-message`},i):null,r?s.createElement("div",{className:`${c}-description`},r):null),E?s.createElement("div",{className:`${c}-action`},E):null,s.createElement(be,{isClosable:L,prefixCls:c,closeIcon:V,handleClose:k,ariaProps:X}))}))});let $e=function(e){function o(){var r;return le(this,o),r=ce(this,o,arguments),r.state={error:void 0,info:{componentStack:""}},r}return se(o,e),ae(o,[{key:"componentDidCatch",value:function(n,i){this.setState({error:n,info:i})}},{key:"render",value:function(){const{message:n,description:i,id:a,children:d}=this.props,{error:m,info:g}=this.state,p=g&&g.componentStack?g.componentStack:null,v=typeof n>"u"?(m||"").toString():n,b=typeof i>"u"?p:i;return m?s.createElement(H,{id:a,type:"error",message:v,description:s.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},b)}):d}}])}(s.Component);const ye=H;ye.ErrorBoundary=$e;export{ye as A}; diff --git a/public/assets/index-BZhs6IWC.js b/public/assets/index-Bns8oKci.js similarity index 93% rename from public/assets/index-BZhs6IWC.js rename to public/assets/index-Bns8oKci.js index b825003..aee3ac9 100644 --- a/public/assets/index-BZhs6IWC.js +++ b/public/assets/index-Bns8oKci.js @@ -1,2 +1,2 @@ -import{aA as i,r as B,aB as I}from"./index--trdnQFa.js";import{D as O,E as A,G as z,P as W,I as ee,u as te,d as ne,k as $,t as V,U as ae,M as ie,g as P,b as H,j as se,L as J,c as K,T as D,o as X,i as Y}from"./MyApp-BHr373cy.js";import re from"./MyTable-BTHATUSD.js";import{E as ce}from"./ExportButton-C-PwJSin.js";import{A as de}from"./index-DTxLlwd8.js";import{I as ue}from"./index-CB9InVBI.js";import{R as fe}from"./row-DQoT4CfJ.js";import{T as ge}from"./index-VHrAsB-Q.js";import"./index-X7jfXLlB.js";import"./Table-GiCOcILW.js";import"./addEventListener-KkFh1sjE.js";import"./index-CETJ8txP.js";import"./PurePanel-CSR2tSBX.js";import"./SearchOutlined-D247roQH.js";import"./index-DmA8T0X5.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./useBreakpoint-QbbjxHKX.js";import"./responsiveObserver-DiDk9dGL.js";import"./Pagination-CPGTHysj.js";import"./index-BCUBacY9.js";import"./EyeOutlined-BALW2cms.js";import"./file-download-DYjmaN3D.js";import"./index-CU7pBSDU.js";var oe=(n=>(n.USER="User",n.PAGE="Page",n.GROUP="Group",n))(oe||{}),j=(n=>(n.FOLLOWING="Following",n.UNFOLLOWED="UnFollowed",n))(j||{});const Z={Following:{en:"Following",vi:"Đang theo dõi"},UnFollowed:{en:"Unfollowed",vi:"Đã bỏ theo dõi"}};async function pe(n=""){const r=await O({fb_api_req_friendly_name:"CometFeedPreferencesUnfollowProfileGridRefetchQuery",variables:{after_cursor:n,included_types:["USER","PAGE","GROUP"],no_memorialized_profiles:null,num_profiles:30,profile_picture_scale:2,query_substring:""},doc_id:"5699463850111622"}),f=A(r),{edges:E=[],page_info:_={}}=z(f);return E.map(a=>{var d,g,F,x,m,h;return{type:(d=a.node)==null?void 0:d.__typename,status:"Following",id:(g=a.node)==null?void 0:g.id,name:(F=a.node)==null?void 0:F.name,avatar:(m=(x=a.node)==null?void 0:x.profile_picture)==null?void 0:m.uri,url:(h=a.node)==null?void 0:h.url,cursor:a.cursor}})}async function me(n){const r=n.type==="Group"?await O({fb_api_req_friendly_name:"CommitGroupSubscribeStatusSubscribeMutation",variables:{input:{subscribe_location:"FEED_SETTINGS",group_id:n.id,actor_id:await W()}},doc_id:"4771392912988139"}):await O({fb_api_req_friendly_name:"CommitActorSubscribeStatusSubscribeMutation",variables:{input:{subscribe_location:"FEED_SETTINGS",subscribee_id:n.id,actor_id:await W()}},doc_id:"7750648234952596"}),f=A(r);return console.log(f),ee(f,"id",!0)===n.id}async function he(n){const r=n.type==="Group"?await O({fb_api_req_friendly_name:"CommitGroupSubscribeStatusUnsubscribeMutation",variables:{input:{subscribe_location:"FEED_SETTINGS",group_id:n.id,actor_id:await W()}},doc_id:"4841019119329325"}):await O({fb_api_req_friendly_name:"CommitActorSubscribeStatusUnsubscribeMutation",variables:{input:{subscribe_location:"FEED_SETTINGS",unsubscribee_id:n.id,actor_id:await W()}},doc_id:"7531739850199826"}),f=A(r);return console.log(f),ee(f,"id",!0)===n.id}async function we(n=""){var d,g,F,x,m,h;const r=await W();if(!n){const l=await O({fb_api_req_friendly_name:"ProfileCometTopAppSectionQuery",variables:{collectionToken:btoa("app_collection:"+r+":2356318349:33"),feedbackSource:65,feedLocation:"COMET_MEDIA_VIEWER",scale:1,sectionToken:btoa("app_section:"+r+":2356318349"),userID:r,__relay_internal__pv__CometUFIReactionsEnableShortNamerelayprovider:!1,__relay_internal__pv__FBReelsMediaFooter_comet_enable_reels_ads_gkrelayprovider:!1},doc_id:"8449649991761948"}),u=A(l),p=(h=(m=(x=(F=(g=(d=u==null?void 0:u.data)==null?void 0:d.node)==null?void 0:g.all_collections)==null?void 0:F.nodes)==null?void 0:x.find(o=>(o==null?void 0:o.id)&&atob(o.id).includes("2356318349:33")))==null?void 0:m.style_renderer)==null?void 0:h.collection;console.log(u);const{edges:k=[],page_info:w={}}=z(p);if(k.length>0)return k.map(o=>{var y,b,L,C,T,S,M,q,e;return{type:(b=(y=o==null?void 0:o.node)==null?void 0:y.node)==null?void 0:b.__typename,status:"Following",id:(C=(L=o==null?void 0:o.node)==null?void 0:L.node)==null?void 0:C.id,name:(S=(T=o==null?void 0:o.node)==null?void 0:T.title)==null?void 0:S.text,avatar:(q=(M=o==null?void 0:o.node)==null?void 0:M.image)==null?void 0:q.uri,url:(e=o==null?void 0:o.node)==null?void 0:e.url,cursor:w.end_cursor||o.cursor,isFavorite:!1}})}const f=await O({fb_api_req_friendly_name:"ProfileCometAppCollectionListRendererPaginationQuery",variables:{count:8,cursor:n,scale:1,search:null,id:btoa("app_collection:"+r+":2356318349:33")},doc_id:"8710009249031910"}),E=A(f);console.log(E);const{edges:_=[],page_info:a={}}=z(E);return _.map(l=>{var u,p,k,w,o,y,b,L,C,T,S;return{type:(p=(u=l==null?void 0:l.node)==null?void 0:u.node)==null?void 0:p.__typename,status:"Following",id:(w=(k=l==null?void 0:l.node)==null?void 0:k.node)==null?void 0:w.id,name:(y=(o=l==null?void 0:l.node)==null?void 0:o.title)==null?void 0:y.text,avatar:(L=(b=l==null?void 0:l.node)==null?void 0:b.image)==null?void 0:L.uri,url:(C=l==null?void 0:l.node)==null?void 0:C.url,cursor:a.end_cursor||l.cursor,isFavorite:!1,desc:((S=(T=l==null?void 0:l.node)==null?void 0:T.subtitle_text)==null?void 0:S.text)||""}})}function _e(){const{ti:n}=te(),{message:r,notification:f}=ne();return{onClickBulkActions:async({data:a,key:d,actionFn:g,loadingText:F,successText:x,successDesc:m,successDescItem:h,waitTime:l=[2e3,5e3],requireVIP:u=!0})=>{if(u&&!await $()||!(a!=null&&a.length))return;const p=d+":waiting";V(d);let k=!1,w=[];for(let o=0;o{r.loading({key:d,content:n({en:"Stopping...",vi:"Đang dừng..."}),duration:0}),k=!0}}),await g(a[o])&&w.push(a[o]),!k);o++)if(l&&oi.jsx("li",{children:h(o)},y))}):m==null?void 0:m(w,a)})},onClickAction:async({key:a,id:d,record:g,loadingText:F,successText:x,failedText:m,actionFn:h,onSuccess:l,requireVIP:u=!1})=>{if(u&&!await $())return!1;V(a),a+=":"+d;try{if(r.loading({key:a,content:F(g),duration:0}),await h())return l==null||l(),r.success({key:a,content:x(g)}),!0;throw new Error("Facebook response error")}catch(p){return r.destroy(a),f.open({type:"error",message:m(g),description:p.message}),!1}finally{}}}}function Pe(){const{ti:n}=te(),{message:r}=ne(),{onClickAction:f,onClickBulkActions:E}=_e(),[_,a]=P("Follows.data",[]),[d,g]=B.useState(!1),[F,x]=P("Follows.loadingFollowBulk",!1),[m,h]=P("Follows.loadingUnFollowBulk",!1),[l,u]=P("Follows.loadingRecord",{}),[p,k]=B.useMemo(()=>[_.filter(e=>e.status===j.FOLLOWING),_.filter(e=>e.status===j.UNFOLLOWED)],[_]),w=B.useRef(null);B.useEffect(()=>{y()},[]);const o=B.useRef(!1),y=async(e=!1)=>{if(o.current||d)return;o.current=!0;const t="Follows:onReload";r.loading({key:t,content:n({en:"Loading following...",vi:"Đang tải người bạn theo dõi..."}),duration:0}),g(!0);const s=e?[]:_,c=new Set(s.map(v=>v.id));for(const[v,N]of[[pe,n({en:"Loading following (option 1)... ",vi:"Đang tải người theo dõi (cách 1)... "})],[we,n({en:"Loading following (option 2)... ",vi:"Đang tải người theo dõi (cách 2)... "})]]){let G="";for(;;){const U=await v(G);if(!(U!=null&&U.length))break;let Q=!1;for(let R of U)c.has(R.id)||(s.push(R),c.add(R.id),Q=!0);if(!Q)break;a([...s.map((R,le)=>({...R,i:le+1}))]),G=U[U.length-1].cursor,r.loading({key:t,content:N+s.length,duration:0}),await ie(300)}}r.success({key:t,content:n({en:"Finish loading follows: ",vi:"Tải xong danh sách theo dõi: "})+s.length}),g(!1),o.current=!1},b=(e,t)=>{var c,v;a(N=>{const G=N.find(U=>U.id===e.id);return G?(G.status=t,[...N]):N});const s=(c=w.current)==null?void 0:c.getDataSelected();s&&((v=w.current)==null||v.setDataSelected(s.filter(N=>N.id!==e.id)))},L=e=>(u({...l,[e.id]:!0}),f({record:e,id:e.id,key:"Follows:onClickFollow",actionFn:()=>me(e),loadingText:()=>n({en:"Following...",vi:"Đang theo dõi..."})+" "+e.name,successText:()=>n({en:"Followed",vi:"Đã theo dõi"})+" "+e.name,failedText:()=>n({en:"Failed to follow",vi:"Lỗi theo dõi"})+" "+e.name,onSuccess:()=>{u({...l,[e.id]:!1}),b(e,j.FOLLOWING)}})),C=e=>(u({...l,[e.id]:!0}),f({record:e,id:e.id,key:"Follows:onClickUnFollow",actionFn:()=>he(e),loadingText:()=>n({en:"Unfollowing...",vi:"Đang bỏ theo dõi..."})+" "+e.name,successText:()=>n({en:"Unfollowed",vi:"Đã bỏ theo dõi"})+" "+e.name,failedText:()=>n({en:"Failed to unfollow",vi:"Lỗi bỏ theo dõi"})+" "+e.name,onSuccess:()=>{u({...l,[e.id]:!1}),b(e,j.UNFOLLOWED)}})),T=e=>{h(!0),E({data:e,key:"Follows:onClickUnFollowBulk",actionFn:t=>C(t),loadingText:t=>n({en:"Unfollowing...",vi:"Đang bỏ theo dõi..."})+t.name,successText:(t,s)=>n({en:"Unfollow finished: ",vi:"Đã bỏ theo dõi xong: "})+`${t.length} / ${s.length}`,successDescItem:t=>i.jsx("a",{target:"_blank",href:Y(t.id),children:t.name}),waitTime:300}).finally(()=>{h(!1)})},S=e=>{x(!0),E({data:e,key:"Follows:onClickFollowBulk",actionFn:t=>L(t),loadingText:t=>n({en:"Following...",vi:"Đang theo dõi..."})+t.name,successText:(t,s)=>n({en:"Follow finished: ",vi:"Đã theo dõi xong: "})+` ${t.length} / ${s.length}`,successDescItem:t=>i.jsx("a",{target:"_blank",href:Y(t.id),children:t.name}),waitTime:300}).finally(()=>{x(!1)})},M=e=>{const t=e.length?e.filter(c=>c.status===j.FOLLOWING):p,s=e.length?e.filter(c=>c.status===j.UNFOLLOWED):k;return i.jsxs(i.Fragment,{children:[i.jsx(I,{type:"primary",icon:d?i.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):i.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>y(!0),children:n({en:"Reload",vi:"Tải lại"})}),i.jsx(ce,{data:e.length?e:p,options:[{key:"uid",label:".txt (uid)",prepareData:c=>({fileName:"followings_uid.txt",data:c.map(v=>v.id).join(` +import{aA as i,r as B,aB as I}from"./index-BBriuzNA.js";import{D as O,E as A,G as z,P as W,I as ee,u as te,d as ne,k as $,t as V,U as ae,M as ie,g as P,b as H,j as se,L as J,c as K,T as D,o as X,i as Y}from"./MyApp-CmkiOnMb.js";import re from"./MyTable-C-6hHnGo.js";import{E as ce}from"./ExportButton-DABx3myg.js";import{A as de}from"./index-CbmP82sr.js";import{I as ue}from"./index-Dm20K0UU.js";import{R as fe}from"./row-C0Wk6t4-.js";import{T as ge}from"./index-Bumumc8Y.js";import"./index-NjHtWr7u.js";import"./Table-By6CV266.js";import"./addEventListener-w7NT04KM.js";import"./index-CKsES7YN.js";import"./PurePanel-yY9muMEs.js";import"./SearchOutlined-DvnHgzkc.js";import"./index-tTPNrueW.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./useBreakpoint-CDLrV-mr.js";import"./responsiveObserver-Bb1LONna.js";import"./Pagination-slfcHA-i.js";import"./index-BbXfI1Nu.js";import"./EyeOutlined-Du2MtFRM.js";import"./file-download-Dys_FsHc.js";import"./index-Dg6R6lHP.js";var oe=(n=>(n.USER="User",n.PAGE="Page",n.GROUP="Group",n))(oe||{}),j=(n=>(n.FOLLOWING="Following",n.UNFOLLOWED="UnFollowed",n))(j||{});const Z={Following:{en:"Following",vi:"Đang theo dõi"},UnFollowed:{en:"Unfollowed",vi:"Đã bỏ theo dõi"}};async function pe(n=""){const r=await O({fb_api_req_friendly_name:"CometFeedPreferencesUnfollowProfileGridRefetchQuery",variables:{after_cursor:n,included_types:["USER","PAGE","GROUP"],no_memorialized_profiles:null,num_profiles:30,profile_picture_scale:2,query_substring:""},doc_id:"5699463850111622"}),f=A(r),{edges:E=[],page_info:_={}}=z(f);return E.map(a=>{var d,g,F,x,m,h;return{type:(d=a.node)==null?void 0:d.__typename,status:"Following",id:(g=a.node)==null?void 0:g.id,name:(F=a.node)==null?void 0:F.name,avatar:(m=(x=a.node)==null?void 0:x.profile_picture)==null?void 0:m.uri,url:(h=a.node)==null?void 0:h.url,cursor:a.cursor}})}async function me(n){const r=n.type==="Group"?await O({fb_api_req_friendly_name:"CommitGroupSubscribeStatusSubscribeMutation",variables:{input:{subscribe_location:"FEED_SETTINGS",group_id:n.id,actor_id:await W()}},doc_id:"4771392912988139"}):await O({fb_api_req_friendly_name:"CommitActorSubscribeStatusSubscribeMutation",variables:{input:{subscribe_location:"FEED_SETTINGS",subscribee_id:n.id,actor_id:await W()}},doc_id:"7750648234952596"}),f=A(r);return console.log(f),ee(f,"id",!0)===n.id}async function he(n){const r=n.type==="Group"?await O({fb_api_req_friendly_name:"CommitGroupSubscribeStatusUnsubscribeMutation",variables:{input:{subscribe_location:"FEED_SETTINGS",group_id:n.id,actor_id:await W()}},doc_id:"4841019119329325"}):await O({fb_api_req_friendly_name:"CommitActorSubscribeStatusUnsubscribeMutation",variables:{input:{subscribe_location:"FEED_SETTINGS",unsubscribee_id:n.id,actor_id:await W()}},doc_id:"7531739850199826"}),f=A(r);return console.log(f),ee(f,"id",!0)===n.id}async function we(n=""){var d,g,F,x,m,h;const r=await W();if(!n){const l=await O({fb_api_req_friendly_name:"ProfileCometTopAppSectionQuery",variables:{collectionToken:btoa("app_collection:"+r+":2356318349:33"),feedbackSource:65,feedLocation:"COMET_MEDIA_VIEWER",scale:1,sectionToken:btoa("app_section:"+r+":2356318349"),userID:r,__relay_internal__pv__CometUFIReactionsEnableShortNamerelayprovider:!1,__relay_internal__pv__FBReelsMediaFooter_comet_enable_reels_ads_gkrelayprovider:!1},doc_id:"8449649991761948"}),u=A(l),p=(h=(m=(x=(F=(g=(d=u==null?void 0:u.data)==null?void 0:d.node)==null?void 0:g.all_collections)==null?void 0:F.nodes)==null?void 0:x.find(o=>(o==null?void 0:o.id)&&atob(o.id).includes("2356318349:33")))==null?void 0:m.style_renderer)==null?void 0:h.collection;console.log(u);const{edges:k=[],page_info:w={}}=z(p);if(k.length>0)return k.map(o=>{var y,b,L,C,T,S,M,q,e;return{type:(b=(y=o==null?void 0:o.node)==null?void 0:y.node)==null?void 0:b.__typename,status:"Following",id:(C=(L=o==null?void 0:o.node)==null?void 0:L.node)==null?void 0:C.id,name:(S=(T=o==null?void 0:o.node)==null?void 0:T.title)==null?void 0:S.text,avatar:(q=(M=o==null?void 0:o.node)==null?void 0:M.image)==null?void 0:q.uri,url:(e=o==null?void 0:o.node)==null?void 0:e.url,cursor:w.end_cursor||o.cursor,isFavorite:!1}})}const f=await O({fb_api_req_friendly_name:"ProfileCometAppCollectionListRendererPaginationQuery",variables:{count:8,cursor:n,scale:1,search:null,id:btoa("app_collection:"+r+":2356318349:33")},doc_id:"8710009249031910"}),E=A(f);console.log(E);const{edges:_=[],page_info:a={}}=z(E);return _.map(l=>{var u,p,k,w,o,y,b,L,C,T,S;return{type:(p=(u=l==null?void 0:l.node)==null?void 0:u.node)==null?void 0:p.__typename,status:"Following",id:(w=(k=l==null?void 0:l.node)==null?void 0:k.node)==null?void 0:w.id,name:(y=(o=l==null?void 0:l.node)==null?void 0:o.title)==null?void 0:y.text,avatar:(L=(b=l==null?void 0:l.node)==null?void 0:b.image)==null?void 0:L.uri,url:(C=l==null?void 0:l.node)==null?void 0:C.url,cursor:a.end_cursor||l.cursor,isFavorite:!1,desc:((S=(T=l==null?void 0:l.node)==null?void 0:T.subtitle_text)==null?void 0:S.text)||""}})}function _e(){const{ti:n}=te(),{message:r,notification:f}=ne();return{onClickBulkActions:async({data:a,key:d,actionFn:g,loadingText:F,successText:x,successDesc:m,successDescItem:h,waitTime:l=[2e3,5e3],requireVIP:u=!0})=>{if(u&&!await $()||!(a!=null&&a.length))return;const p=d+":waiting";V(d);let k=!1,w=[];for(let o=0;o{r.loading({key:d,content:n({en:"Stopping...",vi:"Đang dừng..."}),duration:0}),k=!0}}),await g(a[o])&&w.push(a[o]),!k);o++)if(l&&oi.jsx("li",{children:h(o)},y))}):m==null?void 0:m(w,a)})},onClickAction:async({key:a,id:d,record:g,loadingText:F,successText:x,failedText:m,actionFn:h,onSuccess:l,requireVIP:u=!1})=>{if(u&&!await $())return!1;V(a),a+=":"+d;try{if(r.loading({key:a,content:F(g),duration:0}),await h())return l==null||l(),r.success({key:a,content:x(g)}),!0;throw new Error("Facebook response error")}catch(p){return r.destroy(a),f.open({type:"error",message:m(g),description:p.message}),!1}finally{}}}}function Pe(){const{ti:n}=te(),{message:r}=ne(),{onClickAction:f,onClickBulkActions:E}=_e(),[_,a]=P("Follows.data",[]),[d,g]=B.useState(!1),[F,x]=P("Follows.loadingFollowBulk",!1),[m,h]=P("Follows.loadingUnFollowBulk",!1),[l,u]=P("Follows.loadingRecord",{}),[p,k]=B.useMemo(()=>[_.filter(e=>e.status===j.FOLLOWING),_.filter(e=>e.status===j.UNFOLLOWED)],[_]),w=B.useRef(null);B.useEffect(()=>{y()},[]);const o=B.useRef(!1),y=async(e=!1)=>{if(o.current||d)return;o.current=!0;const t="Follows:onReload";r.loading({key:t,content:n({en:"Loading following...",vi:"Đang tải người bạn theo dõi..."}),duration:0}),g(!0);const s=e?[]:_,c=new Set(s.map(v=>v.id));for(const[v,N]of[[pe,n({en:"Loading following (option 1)... ",vi:"Đang tải người theo dõi (cách 1)... "})],[we,n({en:"Loading following (option 2)... ",vi:"Đang tải người theo dõi (cách 2)... "})]]){let G="";for(;;){const U=await v(G);if(!(U!=null&&U.length))break;let Q=!1;for(let R of U)c.has(R.id)||(s.push(R),c.add(R.id),Q=!0);if(!Q)break;a([...s.map((R,le)=>({...R,i:le+1}))]),G=U[U.length-1].cursor,r.loading({key:t,content:N+s.length,duration:0}),await ie(300)}}r.success({key:t,content:n({en:"Finish loading follows: ",vi:"Tải xong danh sách theo dõi: "})+s.length}),g(!1),o.current=!1},b=(e,t)=>{var c,v;a(N=>{const G=N.find(U=>U.id===e.id);return G?(G.status=t,[...N]):N});const s=(c=w.current)==null?void 0:c.getDataSelected();s&&((v=w.current)==null||v.setDataSelected(s.filter(N=>N.id!==e.id)))},L=e=>(u({...l,[e.id]:!0}),f({record:e,id:e.id,key:"Follows:onClickFollow",actionFn:()=>me(e),loadingText:()=>n({en:"Following...",vi:"Đang theo dõi..."})+" "+e.name,successText:()=>n({en:"Followed",vi:"Đã theo dõi"})+" "+e.name,failedText:()=>n({en:"Failed to follow",vi:"Lỗi theo dõi"})+" "+e.name,onSuccess:()=>{u({...l,[e.id]:!1}),b(e,j.FOLLOWING)}})),C=e=>(u({...l,[e.id]:!0}),f({record:e,id:e.id,key:"Follows:onClickUnFollow",actionFn:()=>he(e),loadingText:()=>n({en:"Unfollowing...",vi:"Đang bỏ theo dõi..."})+" "+e.name,successText:()=>n({en:"Unfollowed",vi:"Đã bỏ theo dõi"})+" "+e.name,failedText:()=>n({en:"Failed to unfollow",vi:"Lỗi bỏ theo dõi"})+" "+e.name,onSuccess:()=>{u({...l,[e.id]:!1}),b(e,j.UNFOLLOWED)}})),T=e=>{h(!0),E({data:e,key:"Follows:onClickUnFollowBulk",actionFn:t=>C(t),loadingText:t=>n({en:"Unfollowing...",vi:"Đang bỏ theo dõi..."})+t.name,successText:(t,s)=>n({en:"Unfollow finished: ",vi:"Đã bỏ theo dõi xong: "})+`${t.length} / ${s.length}`,successDescItem:t=>i.jsx("a",{target:"_blank",href:Y(t.id),children:t.name}),waitTime:300}).finally(()=>{h(!1)})},S=e=>{x(!0),E({data:e,key:"Follows:onClickFollowBulk",actionFn:t=>L(t),loadingText:t=>n({en:"Following...",vi:"Đang theo dõi..."})+t.name,successText:(t,s)=>n({en:"Follow finished: ",vi:"Đã theo dõi xong: "})+` ${t.length} / ${s.length}`,successDescItem:t=>i.jsx("a",{target:"_blank",href:Y(t.id),children:t.name}),waitTime:300}).finally(()=>{x(!1)})},M=e=>{const t=e.length?e.filter(c=>c.status===j.FOLLOWING):p,s=e.length?e.filter(c=>c.status===j.UNFOLLOWED):k;return i.jsxs(i.Fragment,{children:[i.jsx(I,{type:"primary",icon:d?i.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):i.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>y(!0),children:n({en:"Reload",vi:"Tải lại"})}),i.jsx(ce,{data:e.length?e:p,options:[{key:"uid",label:".txt (uid)",prepareData:c=>({fileName:"followings_uid.txt",data:c.map(v=>v.id).join(` `)})},{key:"uid_name",label:".csv (uid+name)",prepareData:c=>({fileName:"followings_uid_name.csv",data:X(c.map(v=>({uid:v.id,name:v.name})))})},{key:"json",label:".json",prepareData:c=>({fileName:"followings.json",data:JSON.stringify(c,null,2)})},{key:"csv",label:".csv",prepareData:c=>({fileName:"followings.csv",data:X(c)})}]}),i.jsx(D,{title:n({en:"Unfollow "+t.length+" selected",vi:"Bỏ theo dõi "+t.length+" người đang chọn"}),children:i.jsx(I,{type:"default",danger:!0,icon:i.jsx("i",{className:"fa-solid fa-trash"}),disabled:t.length===0,loading:m,onClick:()=>T(t),children:n({en:"Unfollow",vi:"Bỏ theo dõi"})+" "+t.length})}),i.jsx(D,{title:n({en:"Follow "+s.length+" selected",vi:"Theo dõi "+s.length+" người đang chọn"}),children:i.jsx(I,{type:"default",icon:i.jsx("i",{className:"fa-solid fa-plus"}),disabled:s.length===0,loading:F,onClick:()=>S(s),children:n({en:"Follow",vi:"Theo dõi"})+" "+s.length})}),i.jsx(D,{title:n({en:"View on Facebook",vi:"Xem trên Facebook"}),children:i.jsx(I,{type:"default",icon:i.jsx("i",{className:"fa-solid fa-arrow-up-right-from-square"}),onClick:()=>window.open("https://www.facebook.com/me/following","_blank")})})]})},q=[{title:"#",dataIndex:"i",width:50,sorter:(e,t)=>e.i-t.i},{title:n({en:"Name",vi:"Tên"}),key:"name",dataIndex:"name",sorter:(e,t)=>(e.name||"").localeCompare(t.name||""),render:(e,t,s)=>i.jsxs(H,{align:"center",style:{maxWidth:400},children:[i.jsx(de,{shape:"square",src:i.jsx(ue,{src:se(t.id),fallback:t.avatar}),size:50}),i.jsxs(H,{direction:"vertical",style:{marginLeft:"10px"},size:0,children:[i.jsx("a",{href:t.url,target:"_blank",children:i.jsx("b",{children:t.name})}),i.jsx("span",{style:{opacity:.5},children:t.id})]})]}),onSearch:(e,t,s)=>J(e,s.name)||J(e,s.id),width:"auto"},{title:n({en:"Desc",vi:"Mô tả"}),key:"desc",dataIndex:"desc",render:(e,t,s)=>i.jsx("p",{style:{maxWidth:300,minWidth:50},children:e}),sorter:(e,t)=>(e.desc||"").localeCompare(t.desc||"")},{title:n({en:"Type",vi:"Loại"}),key:"type",dataIndex:"type",filters:Object.entries(oe).map(([e,t])=>({text:t+" ("+_.filter(s=>s.type===t).length+")",value:t})),onFilter:(e,t)=>t.type===e,width:120},{title:n({en:"Status",vi:"Trạng thái"}),key:"status",dataIndex:"status",render:(e,t,s)=>{const c=n(Z[t.status]);return t.status===j.UNFOLLOWED?i.jsx(K,{color:"error",children:c}):c},filters:Object.entries(Z).map(([e,t])=>({text:n(t)+" ("+_.filter(s=>s.status===e).length+")",value:e})),onFilter:(e,t)=>t.status===e,width:150},{title:n({en:"Action",vi:"Hành động"}),key:"action",dataIndex:"action",render:(e,t,s)=>t.status===j.FOLLOWING?i.jsx(D,{title:n({en:"UnFollow",vi:"Bỏ theo dõi"}),mouseEnterDelay:.5,children:i.jsx(I,{danger:!0,type:"default",icon:i.jsx("i",{className:"fa-solid fa-trash"}),onClick:()=>C(t),loading:l[t.id]})}):i.jsx(D,{title:n({en:"Follow",vi:"Theo dõi"}),mouseEnterDelay:.5,children:i.jsx(I,{type:"text",onClick:()=>L(t),icon:i.jsx("i",{className:"fa-regular fa-square-plus fa-xl"}),loading:l[t.id]})}),align:"right",width:100}];return i.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[i.jsxs(fe,{align:"middle",style:{margin:"16px"},children:[i.jsx(ge.Title,{level:3,style:{margin:0},children:n({en:"Following",vi:"Đang theo dõi"})}),i.jsx(K,{style:{marginLeft:"10px",fontWeight:"bold",color:"#888"},children:_.filter(e=>e.status===j.FOLLOWING).length})]}),i.jsx(re,{ref:w,data:_,columns:q,renderTitle:M,size:"small",searchable:!0,selectable:!0,keyExtractor:e=>e==null?void 0:e.id})]})}export{Pe as default}; diff --git a/public/assets/index-VHrAsB-Q.js b/public/assets/index-Bumumc8Y.js similarity index 99% rename from public/assets/index-VHrAsB-Q.js rename to public/assets/index-Bumumc8Y.js index cc4dfbd..9651c74 100644 --- a/public/assets/index-VHrAsB-Q.js +++ b/public/assets/index-Bumumc8Y.js @@ -1,4 +1,4 @@ -import{bd as Gt,o as _,r as a,bo as Kt,T as Ae,g as Ee,F as Ye,D as Q,E as pt,aL as Ut,H as gt,a3 as Xt,$ as T,e as Ze,X as fe,d as se,n as Ne,j as ve,h as Je,Z as Qe,bf as qt,I as He,a7 as mt,aM as Yt,aN as vt,aO as bt,aP as ht,v as ke,N as Zt,bp as Jt,q as we,w as nt,W as Te,bq as Qt,Q as kt,as as en,k as tn,bm as nn,t as yt,aQ as rn}from"./index--trdnQFa.js";import{m as Re,R as xt,T as et}from"./MyApp-BHr373cy.js";const St=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var Ct=function(t){if(Gt()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},on=function(t,n){if(!Ct(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function rt(e,t){return!Array.isArray(e)&&t!==void 0?on(e,t):Ct(e)}function qe(e,t,n){return _({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Et=(e,t)=>t||e,an=["outlined","borderless","filled"],$t=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=a.useContext(Kt);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=an.includes(r);return[r,o]};var ln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},sn=function(t,n){return a.createElement(Ae,Ee({},t,{ref:n,icon:ln}))},cn=a.forwardRef(sn);function dn(e){return Ye(e,{inputAffixPadding:e.paddingXXS})}const un=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:s,fontSizeLG:c,lineHeightLG:p,paddingSM:d,controlPaddingHorizontalSM:i,controlPaddingHorizontal:g,colorFillAlter:m,colorPrimaryHover:x,colorPrimary:S,controlOutlineWidth:I,controlOutline:F,colorErrorOutline:P,colorWarningOutline:R,colorBgContainer:f}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((l-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((s-c*p)/2*10)/10-o,paddingInline:d-o,paddingInlineSM:i-o,paddingInlineLG:g-o,addonBg:m,activeBorderColor:S,hoverBorderColor:x,activeShadow:`0 0 0 ${I}px ${F}`,errorActiveShadow:`0 0 0 ${I}px ${P}`,warningActiveShadow:`0 0 0 ${I}px ${R}`,hoverBg:f,activeBg:f,inputFontSize:n,inputFontSizeLG:c,inputFontSizeSM:n}},fn=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),tt=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},fn(Ye(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),wt=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ot=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),pn=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},tt(e))}),ot(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ot(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),at=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),gn=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},at(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),at(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},tt(e))}})}),mn=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),Rt=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),it=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Rt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vn=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},tt(e))}),it(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),it(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),lt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),bn=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},lt(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),lt(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),hn=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ot=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Q(t)} ${Q(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},It=e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),jt=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Q(e.paddingBlock)} ${Q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},hn(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Ot(e)),"&-sm":Object.assign({},It(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yn=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Ot(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},It(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Q(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Xt()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` +import{bd as Gt,o as _,r as a,bo as Kt,T as Ae,g as Ee,F as Ye,D as Q,E as pt,aL as Ut,H as gt,a3 as Xt,$ as T,e as Ze,X as fe,d as se,n as Ne,j as ve,h as Je,Z as Qe,bf as qt,I as He,a7 as mt,aM as Yt,aN as vt,aO as bt,aP as ht,v as ke,N as Zt,bp as Jt,q as we,w as nt,W as Te,bq as Qt,Q as kt,as as en,k as tn,bm as nn,t as yt,aQ as rn}from"./index-BBriuzNA.js";import{m as Re,R as xt,T as et}from"./MyApp-CmkiOnMb.js";const St=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var Ct=function(t){if(Gt()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},on=function(t,n){if(!Ct(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function rt(e,t){return!Array.isArray(e)&&t!==void 0?on(e,t):Ct(e)}function qe(e,t,n){return _({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Et=(e,t)=>t||e,an=["outlined","borderless","filled"],$t=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=a.useContext(Kt);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=an.includes(r);return[r,o]};var ln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},sn=function(t,n){return a.createElement(Ae,Ee({},t,{ref:n,icon:ln}))},cn=a.forwardRef(sn);function dn(e){return Ye(e,{inputAffixPadding:e.paddingXXS})}const un=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:s,fontSizeLG:c,lineHeightLG:p,paddingSM:d,controlPaddingHorizontalSM:i,controlPaddingHorizontal:g,colorFillAlter:m,colorPrimaryHover:x,colorPrimary:S,controlOutlineWidth:I,controlOutline:F,colorErrorOutline:P,colorWarningOutline:R,colorBgContainer:f}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((l-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((s-c*p)/2*10)/10-o,paddingInline:d-o,paddingInlineSM:i-o,paddingInlineLG:g-o,addonBg:m,activeBorderColor:S,hoverBorderColor:x,activeShadow:`0 0 0 ${I}px ${F}`,errorActiveShadow:`0 0 0 ${I}px ${P}`,warningActiveShadow:`0 0 0 ${I}px ${R}`,hoverBg:f,activeBg:f,inputFontSize:n,inputFontSizeLG:c,inputFontSizeSM:n}},fn=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),tt=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},fn(Ye(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),wt=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ot=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),pn=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},tt(e))}),ot(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ot(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),at=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),gn=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},at(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),at(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},tt(e))}})}),mn=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),Rt=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),it=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Rt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vn=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},tt(e))}),it(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),it(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),lt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),bn=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},lt(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),lt(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),hn=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ot=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Q(t)} ${Q(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},It=e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),jt=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Q(e.paddingBlock)} ${Q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},hn(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Ot(e)),"&-sm":Object.assign({},It(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yn=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Ot(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},It(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Q(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Xt()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range diff --git a/public/assets/index-DYW0YRm8.js b/public/assets/index-C9vPYMV7.js similarity index 99% rename from public/assets/index-DYW0YRm8.js rename to public/assets/index-C9vPYMV7.js index fcc2fb6..a95efc1 100644 --- a/public/assets/index-DYW0YRm8.js +++ b/public/assets/index-C9vPYMV7.js @@ -1,3 +1,3 @@ -import{r as n,T as Bt,g as re,j as L,$ as Dt,w as et,d as Q,l as At,e as Ae,X as F,o as U,W as te,k as kt,h as tt,u as Wt,n as Te,C as Ht,O as Gt,t as jt,E as Xt,F as Kt,D as h,H as ft,a2 as Vt,aX as bt,I as Ft,a7 as Ut,ab as qt,aN as Yt}from"./index--trdnQFa.js";import{Z as Zt,_ as Qt,R as De,$ as Jt,m as at,x as nt,a0 as ea}from"./MyApp-BHr373cy.js";import{D as ta}from"./Dropdown-DUpNeMO8.js";var aa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},na=function(t,a){return n.createElement(Bt,re({},t,{ref:a,icon:aa}))},ra=n.forwardRef(na);const Re=n.createContext(null);var ia=function(t){var a=t.activeTabOffset,r=t.horizontal,i=t.rtl,l=t.indicator,c=l===void 0?{}:l,o=c.size,s=c.align,d=s===void 0?"center":s,v=n.useState(),f=L(v,2),y=f[0],R=f[1],N=n.useRef(),E=Dt.useCallback(function(b){return typeof o=="function"?o(b):typeof o=="number"?o:b},[o]);function z(){et.cancel(N.current)}return n.useEffect(function(){var b={};if(a)if(r){b.width=E(a.width);var u=i?"right":"left";d==="start"&&(b[u]=a[u]),d==="center"&&(b[u]=a[u]+a.width/2,b.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(b[u]=a[u]+a.width,b.transform="translateX(-100%)")}else b.height=E(a.height),d==="start"&&(b.top=a.top),d==="center"&&(b.top=a.top+a.height/2,b.transform="translateY(-50%)"),d==="end"&&(b.top=a.top+a.height,b.transform="translateY(-100%)");return z(),N.current=et(function(){R(b)}),z},[a,r,i,d,E]),{style:y}},rt={width:0,height:0,left:0,top:0};function oa(e,t,a){return n.useMemo(function(){for(var r,i=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||rt,c=l.left+l.width,o=0;oC?(x=P,W.current="x"):(x=$,W.current="y"),t(-x,-x)&&p.preventDefault()}var _=n.useRef(null);_.current={onTouchStart:T,onTouchMove:M,onTouchEnd:D,onWheel:A},n.useEffect(function(){function p(m){_.current.onTouchStart(m)}function P(m){_.current.onTouchMove(m)}function $(m){_.current.onTouchEnd(m)}function x(m){_.current.onWheel(m)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",p,{passive:!0}),e.current.addEventListener("wheel",x,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",$)}},[])}function mt(e){var t=n.useState(0),a=L(t,2),r=a[0],i=a[1],l=n.useRef(0),c=n.useRef();return c.current=e,At(function(){var o;(o=c.current)===null||o===void 0||o.call(c)},[r]),function(){l.current===r&&(l.current+=1,i(l.current))}}function sa(e){var t=n.useRef([]),a=n.useState({}),r=L(a,2),i=r[1],l=n.useRef(typeof e=="function"?e():e),c=mt(function(){var s=l.current;t.current.forEach(function(d){s=d(s)}),t.current=[],l.current=s,i({})});function o(s){t.current.push(s),c()}return[l.current,o]}var ct={width:0,height:0,left:0,top:0,right:0};function da(e,t,a,r,i,l,c){var o=c.tabs,s=c.tabPosition,d=c.rtl,v,f,y;return["top","bottom"].includes(s)?(v="width",f=d?"right":"left",y=Math.abs(a)):(v="height",f="top",y=-a),n.useMemo(function(){if(!o.length)return[0,0];for(var R=o.length,N=R,E=0;Ey+t){N=E-1;break}}for(var b=0,u=R-1;u>=0;u-=1){var T=e.get(o[u].key)||ct;if(T[f]=N?[0,0]:[b,N]},[e,t,r,i,l,y,s,o.map(function(R){return R.key}).join("_"),d])}function st(e){var t;return e instanceof Map?(t={},e.forEach(function(a,r){t[r]=a})):t=e,JSON.stringify(t)}var ua="TABS_DQ";function gt(e){return String(e).replace(/"/g,ua)}function ht(e,t,a,r){return!(!a||r||e===!1||e===void 0&&(t===!1||t===null))}var pt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.editable,i=e.locale,l=e.style;return!r||r.showAdd===!1?null:n.createElement("button",{ref:t,type:"button",className:"".concat(a,"-nav-add"),style:l,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(o){r.onEdit("add",{event:o})}},r.addIcon||"+")}),dt=n.forwardRef(function(e,t){var a=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l,c={};return Ae(i)==="object"&&!n.isValidElement(i)?c=i:c.right=i,a==="right"&&(l=c.right),a==="left"&&(l=c.left),l?n.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),va=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,c=e.mobile,o=e.more,s=o===void 0?{}:o,d=e.style,v=e.className,f=e.editable,y=e.tabBarGutter,R=e.rtl,N=e.removeAriaLabel,E=e.onTabClick,z=e.getPopupContainer,b=e.popupClassName,u=n.useState(!1),T=L(u,2),M=T[0],D=T[1],W=n.useState(null),A=L(W,2),_=A[0],p=A[1],P=s.icon,$=P===void 0?"More":P,x="".concat(r,"-more-popup"),m="".concat(a,"-dropdown"),C=_!==null?"".concat(x,"-").concat(_):null,q=l==null?void 0:l.dropdownAriaLabel;function ie(w,B){w.preventDefault(),w.stopPropagation(),f.onEdit("remove",{key:B,event:w})}var g=n.createElement(Zt,{onClick:function(B){var G=B.key,X=B.domEvent;E(G,X),D(!1)},prefixCls:"".concat(m,"-menu"),id:x,tabIndex:-1,role:"listbox","aria-activedescendant":C,selectedKeys:[_],"aria-label":q!==void 0?q:"expanded dropdown"},i.map(function(w){var B=w.closable,G=w.disabled,X=w.closeIcon,V=w.key,J=w.label,Z=ht(B,X,f,G);return n.createElement(Qt,{key:V,id:"".concat(x,"-").concat(V),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(V),disabled:G},n.createElement("span",null,J),Z&&n.createElement("button",{type:"button","aria-label":N||"remove",tabIndex:0,className:"".concat(m,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),ie(le,V)}},X||f.removeIcon||"×"))}));function j(w){for(var B=i.filter(function(Z){return!Z.disabled}),G=B.findIndex(function(Z){return Z.key===_})||0,X=B.length,V=0;VS?"left":"right"})}),m=L(x,2),C=m[0],q=m[1],ie=it(0,function(O,S){!$&&E&&E({direction:O>S?"top":"bottom"})}),g=L(ie,2),j=g[0],ae=g[1],H=n.useState([0,0]),K=L(H,2),oe=K[0],w=K[1],B=n.useState([0,0]),G=L(B,2),X=G[0],V=G[1],J=n.useState([0,0]),Z=L(J,2),fe=Z[0],le=Z[1],de=n.useState([0,0]),be=L(de,2),I=be[0],ne=be[1],ge=sa(new Map),ke=L(ge,2),St=ke[0],yt=ke[1],$e=oa(T,St,X[0]),Pe=we(oe,$),he=we(X,$),Ie=we(fe,$),We=we(I,$),He=Peue?ue:O}var ze=n.useRef(null),xt=n.useState(),Ge=L(xt,2),Se=Ge[0],je=Ge[1];function Me(){je(Date.now())}function Ne(){ze.current&&clearTimeout(ze.current)}ca(A,function(O,S){function k(Y,ve){Y(function(se){var xe=Le(se+ve);return xe})}return He?($?k(q,O):k(ae,S),Ne(),Me(),!0):!1}),n.useEffect(function(){return Ne(),Se&&(ze.current=setTimeout(function(){je(0)},100)),Ne},[Se]);var Ct=da($e,ee,$?C:j,he,Ie,We,Q(Q({},e),{},{tabs:T})),Xe=L(Ct,2),wt=Xe[0],Et=Xe[1],Ke=kt(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,S=$e.get(O)||{width:0,height:0,left:0,right:0,top:0};if($){var k=C;o?S.rightC+ee&&(k=S.right+S.width-ee):S.left<-C?k=-S.left:S.left+S.width>-C+ee&&(k=-(S.left+S.width-ee)),ae(0),q(Le(k))}else{var Y=j;S.top<-j?Y=-S.top:S.top+S.height>-j+ee&&(Y=-(S.top+S.height-ee)),q(0),ae(Le(Y))}}),ye={};f==="top"||f==="bottom"?ye[o?"marginRight":"marginLeft"]=y:ye.marginTop=y;var Ve=T.map(function(O,S){var k=O.key;return n.createElement(ba,{id:i,prefixCls:u,key:k,tab:O,style:S===0?void 0:ye,closable:O.closable,editable:d,active:k===c,renderWrapper:R,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(ve){N(k,ve)},onFocus:function(){Ke(k),Me(),A.current&&(o||(A.current.scrollLeft=0),A.current.scrollTop=0)}})}),Fe=function(){return yt(function(){var S,k=new Map,Y=(S=_.current)===null||S===void 0?void 0:S.getBoundingClientRect();return T.forEach(function(ve){var se,xe=ve.key,Je=(se=_.current)===null||se===void 0?void 0:se.querySelector('[data-node-key="'.concat(gt(xe),'"]'));if(Je){var Lt=ma(Je,Y),Ce=L(Lt,4),zt=Ce[0],Mt=Ce[1],Nt=Ce[2],Ot=Ce[3];k.set(xe,{width:zt,height:Mt,left:Nt,top:Ot})}}),k})};n.useEffect(function(){Fe()},[T.map(function(O){return O.key}).join("_")]);var _e=mt(function(){var O=me(M),S=me(D),k=me(W);w([O[0]-S[0]-k[0],O[1]-S[1]-k[1]]);var Y=me(P);le(Y);var ve=me(p);ne(ve);var se=me(_);V([se[0]-Y[0],se[1]-Y[1]]),Fe()}),Tt=T.slice(0,wt),Rt=T.slice(Et+1),Ue=[].concat(tt(Tt),tt(Rt)),qe=$e.get(c),Pt=ia({activeTabOffset:qe,horizontal:$,indicator:z,rtl:o}),It=Pt.style;n.useEffect(function(){Ke()},[c,ce,ue,st(qe),st($e),$]),n.useEffect(function(){_e()},[o]);var Ye=!!Ue.length,pe="".concat(u,"-nav-wrap"),Oe,Be,Ze,Qe;return $?o?(Be=C>0,Oe=C!==ue):(Oe=C<0,Be=C!==ce):(Ze=j<0,Qe=j!==ce),n.createElement(De,{onResize:_e},n.createElement("div",{ref:Wt(t,M),role:"tablist",className:U("".concat(u,"-nav"),a),style:r,onKeyDown:function(){Me()}},n.createElement(dt,{ref:D,position:"left",extra:s,prefixCls:u}),n.createElement(De,{onResize:_e},n.createElement("div",{className:U(pe,F(F(F(F({},"".concat(pe,"-ping-left"),Oe),"".concat(pe,"-ping-right"),Be),"".concat(pe,"-ping-top"),Ze),"".concat(pe,"-ping-bottom"),Qe)),ref:A},n.createElement(De,{onResize:_e},n.createElement("div",{ref:_,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat(C,"px, ").concat(j,"px)"),transition:Se?"none":void 0}},Ve,n.createElement(pt,{ref:P,prefixCls:u,locale:v,editable:d,style:Q(Q({},Ve.length===0?void 0:ye),{},{visibility:Ye?"hidden":null})}),n.createElement("div",{className:U("".concat(u,"-ink-bar"),F({},"".concat(u,"-ink-bar-animated"),l.inkBar)),style:It}))))),n.createElement(fa,re({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:p,prefixCls:u,tabs:Ue,className:!Ye&&_t,tabMoving:!!Se})),n.createElement(dt,{ref:W,position:"right",extra:s,prefixCls:u})))}),$t=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.className,i=e.style,l=e.id,c=e.active,o=e.tabKey,s=e.children;return n.createElement("div",{id:l&&"".concat(l,"-panel-").concat(o),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(o),"aria-hidden":!c,style:i,className:U(a,c&&"".concat(a,"-active"),r),ref:t},s)}),ga=["renderTabBar"],ha=["label","key"],pa=function(t){var a=t.renderTabBar,r=Te(t,ga),i=n.useContext(Re),l=i.tabs;if(a){var c=Q(Q({},r),{},{panes:l.map(function(o){var s=o.label,d=o.key,v=Te(o,ha);return n.createElement($t,re({tab:s,key:d,tabKey:d},v))})});return a(c,ut)}return n.createElement(ut,r)},$a=["key","forceRender","style","className","destroyInactiveTabPane"],Sa=function(t){var a=t.id,r=t.activeKey,i=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,o=n.useContext(Re),s=o.prefixCls,d=o.tabs,v=i.tabPane,f="".concat(s,"-tabpane");return n.createElement("div",{className:U("".concat(s,"-content-holder"))},n.createElement("div",{className:U("".concat(s,"-content"),"".concat(s,"-content-").concat(l),F({},"".concat(s,"-content-animated"),v))},d.map(function(y){var R=y.key,N=y.forceRender,E=y.style,z=y.className,b=y.destroyInactiveTabPane,u=Te(y,$a),T=R===r;return n.createElement(Ht,re({key:R,visible:T,forceRender:N,removeOnLeave:!!(c||b),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(M,D){var W=M.style,A=M.className;return n.createElement($t,re({},u,{prefixCls:f,id:a,tabKey:R,animated:v,active:T,style:Q(Q({},E),W),className:U(z,A),ref:D}))})})))};function ya(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Q({inkBar:!0},Ae(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var _a=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],vt=0,xa=n.forwardRef(function(e,t){var a=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,c=e.items,o=e.direction,s=e.activeKey,d=e.defaultActiveKey,v=e.editable,f=e.animated,y=e.tabPosition,R=y===void 0?"top":y,N=e.tabBarGutter,E=e.tabBarStyle,z=e.tabBarExtraContent,b=e.locale,u=e.more,T=e.destroyInactiveTabPane,M=e.renderTabBar,D=e.onChange,W=e.onTabClick,A=e.onTabScroll,_=e.getPopupContainer,p=e.popupClassName,P=e.indicator,$=Te(e,_a),x=n.useMemo(function(){return(c||[]).filter(function(I){return I&&Ae(I)==="object"&&"key"in I})},[c]),m=o==="rtl",C=ya(f),q=n.useState(!1),ie=L(q,2),g=ie[0],j=ie[1];n.useEffect(function(){j(Jt())},[]);var ae=at(function(){var I;return(I=x[0])===null||I===void 0?void 0:I.key},{value:s,defaultValue:d}),H=L(ae,2),K=H[0],oe=H[1],w=n.useState(function(){return x.findIndex(function(I){return I.key===K})}),B=L(w,2),G=B[0],X=B[1];n.useEffect(function(){var I=x.findIndex(function(ge){return ge.key===K});if(I===-1){var ne;I=Math.max(0,Math.min(G,x.length-1)),oe((ne=x[I])===null||ne===void 0?void 0:ne.key)}X(I)},[x.map(function(I){return I.key}).join("_"),K,G]);var V=at(null,{value:a}),J=L(V,2),Z=J[0],fe=J[1];n.useEffect(function(){a||(fe("rc-tabs-".concat(vt)),vt+=1)},[]);function le(I,ne){W==null||W(I,ne);var ge=I!==K;oe(I),ge&&(D==null||D(I))}var de={id:Z,activeKey:K,animated:C,tabPosition:R,rtl:m,mobile:g},be=Q(Q({},de),{},{editable:v,locale:b,more:u,tabBarGutter:N,onTabClick:le,onTabScroll:A,extra:z,style:E,panes:null,getPopupContainer:_,popupClassName:p,indicator:P});return n.createElement(Re.Provider,{value:{tabs:x,prefixCls:i}},n.createElement("div",re({ref:t,id:a,className:U(i,"".concat(i,"-").concat(R),F(F(F({},"".concat(i,"-mobile"),g),"".concat(i,"-editable"),v),"".concat(i,"-rtl"),m),l)},$),n.createElement(pa,re({},be,{renderTabBar:M})),n.createElement(Sa,re({destroyInactiveTabPane:T},de,{animated:C}))))});const Ca={motionAppear:!1,motionEnter:!0,motionLeave:!0};function wa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},a;return t===!1?a={inkBar:!1,tabPane:!1}:t===!0?a={inkBar:!0,tabPane:!0}:a=Object.assign({inkBar:!0},typeof t=="object"?t:{}),a.tabPane&&(a.tabPaneMotion=Object.assign(Object.assign({},Ca),{motionName:Gt(e,"switch")})),a}var Ea=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function Ra(e,t){if(e)return e;const a=jt(t).map(r=>{if(n.isValidElement(r)){const{key:i,props:l}=r,c=l||{},{tab:o}=c,s=Ea(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:o})}return null});return Ta(a)}const Pa=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[nt(e,"slide-up"),nt(e,"slide-down")]]},Ia=e=>{const{componentCls:t,tabsCardPadding:a,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:r,border:`${h(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:h(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:h(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${h(e.borderRadiusLG)} 0 0 ${h(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},La=e=>{const{componentCls:t,itemHoverColor:a,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ft(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${h(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Vt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${h(e.paddingXXS)} ${h(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},za=e=>{const{componentCls:t,margin:a,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:l,verticalItemMargin:c,calc:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${h(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, +import{r as n,T as Bt,g as re,j as L,$ as Dt,w as et,d as Q,l as At,e as Ae,X as F,o as U,W as te,k as kt,h as tt,u as Wt,n as Te,C as Ht,O as Gt,t as jt,E as Xt,F as Kt,D as h,H as ft,a2 as Vt,aX as bt,I as Ft,a7 as Ut,ab as qt,aN as Yt}from"./index-BBriuzNA.js";import{Z as Zt,_ as Qt,R as De,$ as Jt,m as at,x as nt,a0 as ea}from"./MyApp-CmkiOnMb.js";import{D as ta}from"./Dropdown-DxSI4NN9.js";var aa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},na=function(t,a){return n.createElement(Bt,re({},t,{ref:a,icon:aa}))},ra=n.forwardRef(na);const Re=n.createContext(null);var ia=function(t){var a=t.activeTabOffset,r=t.horizontal,i=t.rtl,l=t.indicator,c=l===void 0?{}:l,o=c.size,s=c.align,d=s===void 0?"center":s,v=n.useState(),f=L(v,2),y=f[0],R=f[1],N=n.useRef(),E=Dt.useCallback(function(b){return typeof o=="function"?o(b):typeof o=="number"?o:b},[o]);function z(){et.cancel(N.current)}return n.useEffect(function(){var b={};if(a)if(r){b.width=E(a.width);var u=i?"right":"left";d==="start"&&(b[u]=a[u]),d==="center"&&(b[u]=a[u]+a.width/2,b.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(b[u]=a[u]+a.width,b.transform="translateX(-100%)")}else b.height=E(a.height),d==="start"&&(b.top=a.top),d==="center"&&(b.top=a.top+a.height/2,b.transform="translateY(-50%)"),d==="end"&&(b.top=a.top+a.height,b.transform="translateY(-100%)");return z(),N.current=et(function(){R(b)}),z},[a,r,i,d,E]),{style:y}},rt={width:0,height:0,left:0,top:0};function oa(e,t,a){return n.useMemo(function(){for(var r,i=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||rt,c=l.left+l.width,o=0;oC?(x=P,W.current="x"):(x=$,W.current="y"),t(-x,-x)&&p.preventDefault()}var _=n.useRef(null);_.current={onTouchStart:T,onTouchMove:M,onTouchEnd:D,onWheel:A},n.useEffect(function(){function p(m){_.current.onTouchStart(m)}function P(m){_.current.onTouchMove(m)}function $(m){_.current.onTouchEnd(m)}function x(m){_.current.onWheel(m)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",p,{passive:!0}),e.current.addEventListener("wheel",x,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",$)}},[])}function mt(e){var t=n.useState(0),a=L(t,2),r=a[0],i=a[1],l=n.useRef(0),c=n.useRef();return c.current=e,At(function(){var o;(o=c.current)===null||o===void 0||o.call(c)},[r]),function(){l.current===r&&(l.current+=1,i(l.current))}}function sa(e){var t=n.useRef([]),a=n.useState({}),r=L(a,2),i=r[1],l=n.useRef(typeof e=="function"?e():e),c=mt(function(){var s=l.current;t.current.forEach(function(d){s=d(s)}),t.current=[],l.current=s,i({})});function o(s){t.current.push(s),c()}return[l.current,o]}var ct={width:0,height:0,left:0,top:0,right:0};function da(e,t,a,r,i,l,c){var o=c.tabs,s=c.tabPosition,d=c.rtl,v,f,y;return["top","bottom"].includes(s)?(v="width",f=d?"right":"left",y=Math.abs(a)):(v="height",f="top",y=-a),n.useMemo(function(){if(!o.length)return[0,0];for(var R=o.length,N=R,E=0;Ey+t){N=E-1;break}}for(var b=0,u=R-1;u>=0;u-=1){var T=e.get(o[u].key)||ct;if(T[f]=N?[0,0]:[b,N]},[e,t,r,i,l,y,s,o.map(function(R){return R.key}).join("_"),d])}function st(e){var t;return e instanceof Map?(t={},e.forEach(function(a,r){t[r]=a})):t=e,JSON.stringify(t)}var ua="TABS_DQ";function gt(e){return String(e).replace(/"/g,ua)}function ht(e,t,a,r){return!(!a||r||e===!1||e===void 0&&(t===!1||t===null))}var pt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.editable,i=e.locale,l=e.style;return!r||r.showAdd===!1?null:n.createElement("button",{ref:t,type:"button",className:"".concat(a,"-nav-add"),style:l,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(o){r.onEdit("add",{event:o})}},r.addIcon||"+")}),dt=n.forwardRef(function(e,t){var a=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l,c={};return Ae(i)==="object"&&!n.isValidElement(i)?c=i:c.right=i,a==="right"&&(l=c.right),a==="left"&&(l=c.left),l?n.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),va=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,c=e.mobile,o=e.more,s=o===void 0?{}:o,d=e.style,v=e.className,f=e.editable,y=e.tabBarGutter,R=e.rtl,N=e.removeAriaLabel,E=e.onTabClick,z=e.getPopupContainer,b=e.popupClassName,u=n.useState(!1),T=L(u,2),M=T[0],D=T[1],W=n.useState(null),A=L(W,2),_=A[0],p=A[1],P=s.icon,$=P===void 0?"More":P,x="".concat(r,"-more-popup"),m="".concat(a,"-dropdown"),C=_!==null?"".concat(x,"-").concat(_):null,q=l==null?void 0:l.dropdownAriaLabel;function ie(w,B){w.preventDefault(),w.stopPropagation(),f.onEdit("remove",{key:B,event:w})}var g=n.createElement(Zt,{onClick:function(B){var G=B.key,X=B.domEvent;E(G,X),D(!1)},prefixCls:"".concat(m,"-menu"),id:x,tabIndex:-1,role:"listbox","aria-activedescendant":C,selectedKeys:[_],"aria-label":q!==void 0?q:"expanded dropdown"},i.map(function(w){var B=w.closable,G=w.disabled,X=w.closeIcon,V=w.key,J=w.label,Z=ht(B,X,f,G);return n.createElement(Qt,{key:V,id:"".concat(x,"-").concat(V),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(V),disabled:G},n.createElement("span",null,J),Z&&n.createElement("button",{type:"button","aria-label":N||"remove",tabIndex:0,className:"".concat(m,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),ie(le,V)}},X||f.removeIcon||"×"))}));function j(w){for(var B=i.filter(function(Z){return!Z.disabled}),G=B.findIndex(function(Z){return Z.key===_})||0,X=B.length,V=0;VS?"left":"right"})}),m=L(x,2),C=m[0],q=m[1],ie=it(0,function(O,S){!$&&E&&E({direction:O>S?"top":"bottom"})}),g=L(ie,2),j=g[0],ae=g[1],H=n.useState([0,0]),K=L(H,2),oe=K[0],w=K[1],B=n.useState([0,0]),G=L(B,2),X=G[0],V=G[1],J=n.useState([0,0]),Z=L(J,2),fe=Z[0],le=Z[1],de=n.useState([0,0]),be=L(de,2),I=be[0],ne=be[1],ge=sa(new Map),ke=L(ge,2),St=ke[0],yt=ke[1],$e=oa(T,St,X[0]),Pe=we(oe,$),he=we(X,$),Ie=we(fe,$),We=we(I,$),He=Peue?ue:O}var ze=n.useRef(null),xt=n.useState(),Ge=L(xt,2),Se=Ge[0],je=Ge[1];function Me(){je(Date.now())}function Ne(){ze.current&&clearTimeout(ze.current)}ca(A,function(O,S){function k(Y,ve){Y(function(se){var xe=Le(se+ve);return xe})}return He?($?k(q,O):k(ae,S),Ne(),Me(),!0):!1}),n.useEffect(function(){return Ne(),Se&&(ze.current=setTimeout(function(){je(0)},100)),Ne},[Se]);var Ct=da($e,ee,$?C:j,he,Ie,We,Q(Q({},e),{},{tabs:T})),Xe=L(Ct,2),wt=Xe[0],Et=Xe[1],Ke=kt(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,S=$e.get(O)||{width:0,height:0,left:0,right:0,top:0};if($){var k=C;o?S.rightC+ee&&(k=S.right+S.width-ee):S.left<-C?k=-S.left:S.left+S.width>-C+ee&&(k=-(S.left+S.width-ee)),ae(0),q(Le(k))}else{var Y=j;S.top<-j?Y=-S.top:S.top+S.height>-j+ee&&(Y=-(S.top+S.height-ee)),q(0),ae(Le(Y))}}),ye={};f==="top"||f==="bottom"?ye[o?"marginRight":"marginLeft"]=y:ye.marginTop=y;var Ve=T.map(function(O,S){var k=O.key;return n.createElement(ba,{id:i,prefixCls:u,key:k,tab:O,style:S===0?void 0:ye,closable:O.closable,editable:d,active:k===c,renderWrapper:R,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(ve){N(k,ve)},onFocus:function(){Ke(k),Me(),A.current&&(o||(A.current.scrollLeft=0),A.current.scrollTop=0)}})}),Fe=function(){return yt(function(){var S,k=new Map,Y=(S=_.current)===null||S===void 0?void 0:S.getBoundingClientRect();return T.forEach(function(ve){var se,xe=ve.key,Je=(se=_.current)===null||se===void 0?void 0:se.querySelector('[data-node-key="'.concat(gt(xe),'"]'));if(Je){var Lt=ma(Je,Y),Ce=L(Lt,4),zt=Ce[0],Mt=Ce[1],Nt=Ce[2],Ot=Ce[3];k.set(xe,{width:zt,height:Mt,left:Nt,top:Ot})}}),k})};n.useEffect(function(){Fe()},[T.map(function(O){return O.key}).join("_")]);var _e=mt(function(){var O=me(M),S=me(D),k=me(W);w([O[0]-S[0]-k[0],O[1]-S[1]-k[1]]);var Y=me(P);le(Y);var ve=me(p);ne(ve);var se=me(_);V([se[0]-Y[0],se[1]-Y[1]]),Fe()}),Tt=T.slice(0,wt),Rt=T.slice(Et+1),Ue=[].concat(tt(Tt),tt(Rt)),qe=$e.get(c),Pt=ia({activeTabOffset:qe,horizontal:$,indicator:z,rtl:o}),It=Pt.style;n.useEffect(function(){Ke()},[c,ce,ue,st(qe),st($e),$]),n.useEffect(function(){_e()},[o]);var Ye=!!Ue.length,pe="".concat(u,"-nav-wrap"),Oe,Be,Ze,Qe;return $?o?(Be=C>0,Oe=C!==ue):(Oe=C<0,Be=C!==ce):(Ze=j<0,Qe=j!==ce),n.createElement(De,{onResize:_e},n.createElement("div",{ref:Wt(t,M),role:"tablist",className:U("".concat(u,"-nav"),a),style:r,onKeyDown:function(){Me()}},n.createElement(dt,{ref:D,position:"left",extra:s,prefixCls:u}),n.createElement(De,{onResize:_e},n.createElement("div",{className:U(pe,F(F(F(F({},"".concat(pe,"-ping-left"),Oe),"".concat(pe,"-ping-right"),Be),"".concat(pe,"-ping-top"),Ze),"".concat(pe,"-ping-bottom"),Qe)),ref:A},n.createElement(De,{onResize:_e},n.createElement("div",{ref:_,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat(C,"px, ").concat(j,"px)"),transition:Se?"none":void 0}},Ve,n.createElement(pt,{ref:P,prefixCls:u,locale:v,editable:d,style:Q(Q({},Ve.length===0?void 0:ye),{},{visibility:Ye?"hidden":null})}),n.createElement("div",{className:U("".concat(u,"-ink-bar"),F({},"".concat(u,"-ink-bar-animated"),l.inkBar)),style:It}))))),n.createElement(fa,re({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:p,prefixCls:u,tabs:Ue,className:!Ye&&_t,tabMoving:!!Se})),n.createElement(dt,{ref:W,position:"right",extra:s,prefixCls:u})))}),$t=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.className,i=e.style,l=e.id,c=e.active,o=e.tabKey,s=e.children;return n.createElement("div",{id:l&&"".concat(l,"-panel-").concat(o),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(o),"aria-hidden":!c,style:i,className:U(a,c&&"".concat(a,"-active"),r),ref:t},s)}),ga=["renderTabBar"],ha=["label","key"],pa=function(t){var a=t.renderTabBar,r=Te(t,ga),i=n.useContext(Re),l=i.tabs;if(a){var c=Q(Q({},r),{},{panes:l.map(function(o){var s=o.label,d=o.key,v=Te(o,ha);return n.createElement($t,re({tab:s,key:d,tabKey:d},v))})});return a(c,ut)}return n.createElement(ut,r)},$a=["key","forceRender","style","className","destroyInactiveTabPane"],Sa=function(t){var a=t.id,r=t.activeKey,i=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,o=n.useContext(Re),s=o.prefixCls,d=o.tabs,v=i.tabPane,f="".concat(s,"-tabpane");return n.createElement("div",{className:U("".concat(s,"-content-holder"))},n.createElement("div",{className:U("".concat(s,"-content"),"".concat(s,"-content-").concat(l),F({},"".concat(s,"-content-animated"),v))},d.map(function(y){var R=y.key,N=y.forceRender,E=y.style,z=y.className,b=y.destroyInactiveTabPane,u=Te(y,$a),T=R===r;return n.createElement(Ht,re({key:R,visible:T,forceRender:N,removeOnLeave:!!(c||b),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(M,D){var W=M.style,A=M.className;return n.createElement($t,re({},u,{prefixCls:f,id:a,tabKey:R,animated:v,active:T,style:Q(Q({},E),W),className:U(z,A),ref:D}))})})))};function ya(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Q({inkBar:!0},Ae(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var _a=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],vt=0,xa=n.forwardRef(function(e,t){var a=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,c=e.items,o=e.direction,s=e.activeKey,d=e.defaultActiveKey,v=e.editable,f=e.animated,y=e.tabPosition,R=y===void 0?"top":y,N=e.tabBarGutter,E=e.tabBarStyle,z=e.tabBarExtraContent,b=e.locale,u=e.more,T=e.destroyInactiveTabPane,M=e.renderTabBar,D=e.onChange,W=e.onTabClick,A=e.onTabScroll,_=e.getPopupContainer,p=e.popupClassName,P=e.indicator,$=Te(e,_a),x=n.useMemo(function(){return(c||[]).filter(function(I){return I&&Ae(I)==="object"&&"key"in I})},[c]),m=o==="rtl",C=ya(f),q=n.useState(!1),ie=L(q,2),g=ie[0],j=ie[1];n.useEffect(function(){j(Jt())},[]);var ae=at(function(){var I;return(I=x[0])===null||I===void 0?void 0:I.key},{value:s,defaultValue:d}),H=L(ae,2),K=H[0],oe=H[1],w=n.useState(function(){return x.findIndex(function(I){return I.key===K})}),B=L(w,2),G=B[0],X=B[1];n.useEffect(function(){var I=x.findIndex(function(ge){return ge.key===K});if(I===-1){var ne;I=Math.max(0,Math.min(G,x.length-1)),oe((ne=x[I])===null||ne===void 0?void 0:ne.key)}X(I)},[x.map(function(I){return I.key}).join("_"),K,G]);var V=at(null,{value:a}),J=L(V,2),Z=J[0],fe=J[1];n.useEffect(function(){a||(fe("rc-tabs-".concat(vt)),vt+=1)},[]);function le(I,ne){W==null||W(I,ne);var ge=I!==K;oe(I),ge&&(D==null||D(I))}var de={id:Z,activeKey:K,animated:C,tabPosition:R,rtl:m,mobile:g},be=Q(Q({},de),{},{editable:v,locale:b,more:u,tabBarGutter:N,onTabClick:le,onTabScroll:A,extra:z,style:E,panes:null,getPopupContainer:_,popupClassName:p,indicator:P});return n.createElement(Re.Provider,{value:{tabs:x,prefixCls:i}},n.createElement("div",re({ref:t,id:a,className:U(i,"".concat(i,"-").concat(R),F(F(F({},"".concat(i,"-mobile"),g),"".concat(i,"-editable"),v),"".concat(i,"-rtl"),m),l)},$),n.createElement(pa,re({},be,{renderTabBar:M})),n.createElement(Sa,re({destroyInactiveTabPane:T},de,{animated:C}))))});const Ca={motionAppear:!1,motionEnter:!0,motionLeave:!0};function wa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},a;return t===!1?a={inkBar:!1,tabPane:!1}:t===!0?a={inkBar:!0,tabPane:!0}:a=Object.assign({inkBar:!0},typeof t=="object"?t:{}),a.tabPane&&(a.tabPaneMotion=Object.assign(Object.assign({},Ca),{motionName:Gt(e,"switch")})),a}var Ea=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function Ra(e,t){if(e)return e;const a=jt(t).map(r=>{if(n.isValidElement(r)){const{key:i,props:l}=r,c=l||{},{tab:o}=c,s=Ea(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:o})}return null});return Ta(a)}const Pa=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[nt(e,"slide-up"),nt(e,"slide-down")]]},Ia=e=>{const{componentCls:t,tabsCardPadding:a,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:r,border:`${h(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:h(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:h(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${h(e.borderRadiusLG)} 0 0 ${h(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},La=e=>{const{componentCls:t,itemHoverColor:a,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ft(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${h(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Vt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${h(e.paddingXXS)} ${h(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},za=e=>{const{componentCls:t,margin:a,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:l,verticalItemMargin:c,calc:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${h(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:a,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:o(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:h(o(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${h(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:o(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${h(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ma=e=>{const{componentCls:t,cardPaddingSM:a,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${h(e.borderRadius)} ${h(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${h(e.borderRadius)} ${h(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${h(e.borderRadius)} ${h(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${h(e.borderRadius)} 0 0 ${h(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Na=e=>{const{componentCls:t,itemActiveColor:a,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:o,itemColor:s}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:a}},bt(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:o,textShadow:e.tabsActiveTextShadow},[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:l}}}},Oa=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:a,iconCls:r,cardGutter:i,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:a},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:h(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:h(e.marginXS)},marginLeft:{_skip_check_:!0,value:h(l(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ba=e=>{const{componentCls:t,tabsCardPadding:a,cardHeight:r,cardGutter:i,itemHoverColor:l,itemActiveColor:c,colorBorderSecondary:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ft(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${h(e.paddingXS)}`,background:"transparent",border:`${h(e.lineWidth)} ${e.lineType} ${o}`,borderRadius:`${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:c}},bt(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Na(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Da=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Aa=Xt("Tabs",e=>{const t=Kt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${h(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${h(e.horizontalItemGutter)}`});return[Ma(t),Oa(t),za(t),La(t),Ia(t),Ba(t),Pa(t)]},Da),ka=()=>null;var Wa=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,a,r,i,l,c,o,s,d,v,f;const{type:y,className:R,rootClassName:N,size:E,onEdit:z,hideAdd:b,centered:u,addIcon:T,removeIcon:M,moreIcon:D,more:W,popupClassName:A,children:_,items:p,animated:P,style:$,indicatorSize:x,indicator:m}=e,C=Wa(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:q}=C,{direction:ie,tabs:g,getPrefixCls:j,getPopupContainer:ae}=n.useContext(Ft),H=j("tabs",q),K=Ut(H),[oe,w,B]=Aa(H,K);let G;y==="editable-card"&&(G={onEdit:(de,be)=>{let{key:I,event:ne}=be;z==null||z(de==="add"?ne:I,de)},removeIcon:(t=M??(g==null?void 0:g.removeIcon))!==null&&t!==void 0?t:n.createElement(qt,null),addIcon:(T??(g==null?void 0:g.addIcon))||n.createElement(ra,null),showAdd:b!==!0});const X=j(),V=Yt(E),J=Ra(p,_),Z=wa(H,P),fe=Object.assign(Object.assign({},g==null?void 0:g.style),$),le={align:(a=m==null?void 0:m.align)!==null&&a!==void 0?a:(r=g==null?void 0:g.indicator)===null||r===void 0?void 0:r.align,size:(o=(l=(i=m==null?void 0:m.size)!==null&&i!==void 0?i:x)!==null&&l!==void 0?l:(c=g==null?void 0:g.indicator)===null||c===void 0?void 0:c.size)!==null&&o!==void 0?o:g==null?void 0:g.indicatorSize};return oe(n.createElement(xa,Object.assign({direction:ie,getPopupContainer:ae},C,{items:J,className:U({[`${H}-${V}`]:V,[`${H}-card`]:["card","editable-card"].includes(y),[`${H}-editable-card`]:y==="editable-card",[`${H}-centered`]:u},g==null?void 0:g.className,R,N,w,B,K),popupClassName:U(A,w,B,K),style:fe,editable:G,more:Object.assign({icon:(f=(v=(d=(s=g==null?void 0:g.more)===null||s===void 0?void 0:s.icon)!==null&&d!==void 0?d:g==null?void 0:g.moreIcon)!==null&&v!==void 0?v:D)!==null&&f!==void 0?f:n.createElement(ea,null),transitionName:`${X}-slide-up`},W),prefixCls:H,animated:Z,indicator:le})))};Ha.TabPane=ka;export{Ha as T}; diff --git a/public/assets/index-CETJ8txP.js b/public/assets/index-CKsES7YN.js similarity index 99% rename from public/assets/index-CETJ8txP.js rename to public/assets/index-CKsES7YN.js index 03353d3..cfe13d7 100644 --- a/public/assets/index-CETJ8txP.js +++ b/public/assets/index-CKsES7YN.js @@ -1,4 +1,4 @@ -import{r,o as Ve,$ as wt,e as pt,j as k,W as A,bs as Xn,d as ee,v as Un,aK as Nt,X as oe,g as Ye,n as St,Y as Gn,bt as Yn,h as Ge,u as qn,q as yt,w as nt,c as Qn,b as Zn,f as Jn,k as nn,p as rn,U as kn,Z as wn,bd as er,t as tr,J as Ut,a4 as Tt,E as yn,F as It,I as Gt,aQ as nr,H as Yt,a2 as At,a5 as In,D as Te,aL as rr,T as or,bf as ar,ab as ir,bm as lr,aM as cr,a7 as ur,aP as sr,aN as dr,aO as fr,M as vr,O as mr}from"./index--trdnQFa.js";import{F as gr,l as hr,$ as pr,m as Wt,R as En,p as Sr,s as br,v as Cr,q as wr,x as on}from"./MyApp-BHr373cy.js";import{i as an,g as yr}from"./PurePanel-CSR2tSBX.js";import{R as Ir,u as Er,e as Rr,f as xr}from"./index-VHrAsB-Q.js";import{R as $r}from"./SearchOutlined-D247roQH.js";var _t=function(t){var n=t.className,o=t.customizeIcon,a=t.customizeIconProps,i=t.children,l=t.onMouseDown,c=t.onClick,v=typeof o=="function"?o(a):o;return r.createElement("span",{className:n,onMouseDown:function(f){f.preventDefault(),l==null||l(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},v!==void 0?v:r.createElement("span",{className:Ve(n.split(/\s+/).map(function(m){return"".concat(m,"-icon")}))},i))},Mr=function(t,n,o,a,i){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,c=arguments.length>6?arguments[6]:void 0,v=arguments.length>7?arguments[7]:void 0,m=wt.useMemo(function(){if(pt(a)==="object")return a.clearIcon;if(i)return i},[a,i]),f=wt.useMemo(function(){return!!(!l&&a&&(o.length||c)&&!(v==="combobox"&&c===""))},[a,l,o.length,c,v]);return{allowClear:f,clearIcon:wt.createElement(_t,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},Rn=r.createContext(null);function Or(){return r.useContext(Rn)}function Dr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=r.useState(!1),n=k(t,2),o=n[0],a=n[1],i=r.useRef(null),l=function(){window.clearTimeout(i.current)};r.useEffect(function(){return l},[]);var c=function(m,f){l(),i.current=window.setTimeout(function(){a(m),f&&f()},e)};return[o,c,l]}function xn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=r.useRef(null),n=r.useRef(null);r.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function o(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},o]}function Pr(e,t,n,o){var a=r.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:o},r.useEffect(function(){function i(l){var c;if(!((c=a.current)!==null&&c!==void 0&&c.customizedTrigger)){var v=l.target;v.shadowRoot&&l.composed&&(v=l.composedPath()[0]||v),a.current.open&&e().filter(function(m){return m}).every(function(m){return!m.contains(v)&&m!==v})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function Tr(e){return![A.ESC,A.SHIFT,A.BACKSPACE,A.TAB,A.WIN_KEY,A.ALT,A.META,A.WIN_KEY_RIGHT,A.CTRL,A.SEMICOLON,A.EQUALS,A.CAPS_LOCK,A.CONTEXT_MENU,A.F1,A.F2,A.F3,A.F4,A.F5,A.F6,A.F7,A.F8,A.F9,A.F10,A.F11,A.F12].includes(e)}var Nr=function(t,n){var o,a=t.prefixCls,i=t.id,l=t.inputElement,c=t.disabled,v=t.tabIndex,m=t.autoFocus,f=t.autoComplete,s=t.editable,p=t.activeDescendantId,u=t.value,g=t.maxLength,d=t.onKeyDown,h=t.onMouseDown,C=t.onChange,b=t.onPaste,w=t.onCompositionStart,y=t.onCompositionEnd,Y=t.open,W=t.attrs,x=l||r.createElement("input",null),q=x,Q=q.ref,te=q.props,X=te.onKeyDown,U=te.onChange,ne=te.onMouseDown,_=te.onCompositionStart,re=te.onCompositionEnd,B=te.style;return Xn(!("maxLength"in x.props)),x=r.cloneElement(x,ee(ee(ee({type:"search"},te),{},{id:i,ref:Un(n,Q),disabled:c,tabIndex:v,autoComplete:f||"off",autoFocus:m,className:Ve("".concat(a,"-selection-search-input"),(o=x)===null||o===void 0||(o=o.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":Y||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":Y?p:void 0},W),{},{value:s?u:"",maxLength:g,readOnly:!s,unselectable:s?null:"on",style:ee(ee({},B),{},{opacity:s?null:0}),onKeyDown:function(I){d(I),X&&X(I)},onMouseDown:function(I){h(I),ne&&ne(I)},onChange:function(I){C(I),U&&U(I)},onCompositionStart:function(I){w(I),_&&_(I)},onCompositionEnd:function(I){y(I),re&&re(I)},onPaste:b})),x},$n=r.forwardRef(Nr);function Mn(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var _r=typeof window<"u"&&window.document&&window.document.documentElement,zr=_r;function Lr(e){return e!=null}function Hr(e){return!e&&e!==0}function ln(e){return["string","number"].includes(pt(e))}function On(e){var t=void 0;return e&&(ln(e.title)?t=e.title.toString():ln(e.label)&&(t=e.label.toString())),t}function Fr(e,t){zr?r.useLayoutEffect(e,t):r.useEffect(e,t)}function Br(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var cn=function(t){t.preventDefault(),t.stopPropagation()},Vr=function(t){var n=t.id,o=t.prefixCls,a=t.values,i=t.open,l=t.searchValue,c=t.autoClearSearchValue,v=t.inputRef,m=t.placeholder,f=t.disabled,s=t.mode,p=t.showSearch,u=t.autoFocus,g=t.autoComplete,d=t.activeDescendantId,h=t.tabIndex,C=t.removeIcon,b=t.maxTagCount,w=t.maxTagTextLength,y=t.maxTagPlaceholder,Y=y===void 0?function(H){return"+ ".concat(H.length," ...")}:y,W=t.tagRender,x=t.onToggleOpen,q=t.onRemove,Q=t.onInputChange,te=t.onInputPaste,X=t.onInputKeyDown,U=t.onInputMouseDown,ne=t.onInputCompositionStart,_=t.onInputCompositionEnd,re=r.useRef(null),B=r.useState(0),z=k(B,2),I=z[0],T=z[1],G=r.useState(!1),Z=k(G,2),be=Z[0],ce=Z[1],ue="".concat(o,"-selection"),de=i||s==="multiple"&&c===!1||s==="tags"?l:"",Ne=s==="tags"||s==="multiple"&&c===!1||p&&(i||be);Fr(function(){T(re.current.scrollWidth)},[de]);var j=function(R,L,J,se,ae){return r.createElement("span",{title:On(R),className:Ve("".concat(ue,"-item"),oe({},"".concat(ue,"-item-disabled"),J))},r.createElement("span",{className:"".concat(ue,"-item-content")},L),se&&r.createElement(_t,{className:"".concat(ue,"-item-remove"),onMouseDown:cn,onClick:ae,customizeIcon:C},"×"))},ve=function(R,L,J,se,ae,me){var we=function(_e){cn(_e),x(!i)};return r.createElement("span",{onMouseDown:we},W({label:L,value:R,disabled:J,closable:se,onClose:ae,isMaxTag:!!me}))},Ce=function(R){var L=R.disabled,J=R.label,se=R.value,ae=!f&&!L,me=J;if(typeof w=="number"&&(typeof J=="string"||typeof J=="number")){var we=String(me);we.length>w&&(me="".concat(we.slice(0,w),"..."))}var $e=function(Me){Me&&Me.stopPropagation(),q(R)};return typeof W=="function"?ve(se,me,L,ae,$e):j(R,me,L,ae,$e)},E=function(R){var L=typeof Y=="function"?Y(R):Y;return typeof W=="function"?ve(void 0,L,!1,!1,void 0,!0):j({title:L},L,!1)},S=r.createElement("div",{className:"".concat(ue,"-search"),style:{width:I},onFocus:function(){ce(!0)},onBlur:function(){ce(!1)}},r.createElement($n,{ref:v,open:i,prefixCls:o,id:n,inputElement:null,disabled:f,autoFocus:u,autoComplete:g,editable:Ne,activeDescendantId:d,value:de,onKeyDown:X,onMouseDown:U,onChange:Q,onPaste:te,onCompositionStart:ne,onCompositionEnd:_,tabIndex:h,attrs:Nt(t,!0)}),r.createElement("span",{ref:re,className:"".concat(ue,"-search-mirror"),"aria-hidden":!0},de," ")),D=r.createElement(gr,{prefixCls:"".concat(ue,"-overflow"),data:a,renderItem:Ce,renderRest:E,suffix:S,itemKey:Br,maxCount:b});return r.createElement(r.Fragment,null,D,!a.length&&!de&&r.createElement("span",{className:"".concat(ue,"-placeholder")},m))},Ar=function(t){var n=t.inputElement,o=t.prefixCls,a=t.id,i=t.inputRef,l=t.disabled,c=t.autoFocus,v=t.autoComplete,m=t.activeDescendantId,f=t.mode,s=t.open,p=t.values,u=t.placeholder,g=t.tabIndex,d=t.showSearch,h=t.searchValue,C=t.activeValue,b=t.maxLength,w=t.onInputKeyDown,y=t.onInputMouseDown,Y=t.onInputChange,W=t.onInputPaste,x=t.onInputCompositionStart,q=t.onInputCompositionEnd,Q=t.title,te=r.useState(!1),X=k(te,2),U=X[0],ne=X[1],_=f==="combobox",re=_||d,B=p[0],z=h||"";_&&C&&!U&&(z=C),r.useEffect(function(){_&&ne(!1)},[_,C]);var I=f!=="combobox"&&!s&&!d?!1:!!z,T=Q===void 0?On(B):Q,G=r.useMemo(function(){return B?null:r.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:I?{visibility:"hidden"}:void 0},u)},[B,I,u,o]);return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(o,"-selection-search")},r.createElement($n,{ref:i,prefixCls:o,id:a,open:s,inputElement:n,disabled:l,autoFocus:c,autoComplete:v,editable:re,activeDescendantId:m,value:z,onKeyDown:w,onMouseDown:y,onChange:function(be){ne(!0),Y(be)},onPaste:W,onCompositionStart:x,onCompositionEnd:q,tabIndex:g,attrs:Nt(t,!0),maxLength:_?b:void 0})),!_&&B?r.createElement("span",{className:"".concat(o,"-selection-item"),title:T,style:I?{visibility:"hidden"}:void 0},B.label):null,G)},Wr=function(t,n){var o=r.useRef(null),a=r.useRef(!1),i=t.prefixCls,l=t.open,c=t.mode,v=t.showSearch,m=t.tokenWithEnter,f=t.disabled,s=t.autoClearSearchValue,p=t.onSearch,u=t.onSearchSubmit,g=t.onToggleOpen,d=t.onInputKeyDown,h=t.domRef;r.useImperativeHandle(n,function(){return{focus:function(I){o.current.focus(I)},blur:function(){o.current.blur()}}});var C=xn(0),b=k(C,2),w=b[0],y=b[1],Y=function(I){var T=I.which;(T===A.UP||T===A.DOWN)&&I.preventDefault(),d&&d(I),T===A.ENTER&&c==="tags"&&!a.current&&!l&&(u==null||u(I.target.value)),Tr(T)&&g(!0)},W=function(){y(!0)},x=r.useRef(null),q=function(I){p(I,!0,a.current)!==!1&&g(!0)},Q=function(){a.current=!0},te=function(I){a.current=!1,c!=="combobox"&&q(I.target.value)},X=function(I){var T=I.target.value;if(m&&x.current&&/[\r\n]/.test(x.current)){var G=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");T=T.replace(G,x.current)}x.current=null,q(T)},U=function(I){var T=I.clipboardData,G=T==null?void 0:T.getData("text");x.current=G||""},ne=function(I){var T=I.target;if(T!==o.current){var G=document.body.style.msTouchAction!==void 0;G?setTimeout(function(){o.current.focus()}):o.current.focus()}},_=function(I){var T=w();I.target!==o.current&&!T&&!(c==="combobox"&&f)&&I.preventDefault(),(c!=="combobox"&&(!v||!T)||!l)&&(l&&s!==!1&&p("",!0,!1),g())},re={inputRef:o,onInputKeyDown:Y,onInputMouseDown:W,onInputChange:X,onInputPaste:U,onInputCompositionStart:Q,onInputCompositionEnd:te},B=c==="multiple"||c==="tags"?r.createElement(Vr,Ye({},t,re)):r.createElement(Ar,Ye({},t,re));return r.createElement("div",{ref:h,className:"".concat(i,"-selector"),onClick:ne,onMouseDown:_},B)},jr=r.forwardRef(Wr),Kr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Xr=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},Ur=function(t,n){var o=t.prefixCls;t.disabled;var a=t.visible,i=t.children,l=t.popupElement,c=t.animation,v=t.transitionName,m=t.dropdownStyle,f=t.dropdownClassName,s=t.direction,p=s===void 0?"ltr":s,u=t.placement,g=t.builtinPlacements,d=t.dropdownMatchSelectWidth,h=t.dropdownRender,C=t.dropdownAlign,b=t.getPopupContainer,w=t.empty,y=t.getTriggerDOMNode,Y=t.onPopupVisibleChange,W=t.onPopupMouseEnter,x=St(t,Kr),q="".concat(o,"-dropdown"),Q=l;h&&(Q=h(l));var te=r.useMemo(function(){return g||Xr(d)},[g,d]),X=c?"".concat(q,"-").concat(c):v,U=typeof d=="number",ne=r.useMemo(function(){return U?null:d===!1?"minWidth":"width"},[d,U]),_=m;U&&(_=ee(ee({},_),{},{width:d}));var re=r.useRef(null);return r.useImperativeHandle(n,function(){return{getPopupElement:function(){var z;return(z=re.current)===null||z===void 0?void 0:z.popupElement}}}),r.createElement(hr,Ye({},x,{showAction:Y?["click"]:[],hideAction:Y?["click"]:[],popupPlacement:u||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:te,prefixCls:q,popupTransitionName:X,popup:r.createElement("div",{onMouseEnter:W},Q),ref:re,stretch:ne,popupAlign:C,popupVisible:a,getPopupContainer:b,popupClassName:Ve(f,oe({},"".concat(q,"-empty"),w)),popupStyle:_,getTriggerDOMNode:y,onPopupVisibleChange:Y}),i)},Gr=r.forwardRef(Ur);function un(e,t){var n=e.key,o;return"value"in e&&(o=e.value),n??(o!==void 0?o:"rc-index-key-".concat(t))}function jt(e){return typeof e<"u"&&!Number.isNaN(e)}function Dn(e,t){var n=e||{},o=n.label,a=n.value,i=n.options,l=n.groupLabel,c=o||(t?"children":"label");return{label:c,value:a||"value",options:i||"options",groupLabel:l||c}}function Yr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,a=[],i=Dn(n,!1),l=i.label,c=i.value,v=i.options,m=i.groupLabel;function f(s,p){Array.isArray(s)&&s.forEach(function(u){if(p||!(v in u)){var g=u[c];a.push({key:un(u,a.length),groupOption:p,data:u,label:u[l],value:g})}else{var d=u[m];d===void 0&&o&&(d=u.label),a.push({key:un(u,a.length),group:!0,data:u,label:d}),f(u[v],!0)}})}return f(e,!1),a}function Kt(e){var t=ee({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Gn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var qr=function(t,n,o){if(!n||!n.length)return null;var a=!1,i=function c(v,m){var f=Yn(m),s=f[0],p=f.slice(1);if(!s)return[v];var u=v.split(s);return a=a||u.length>1,u.reduce(function(g,d){return[].concat(Ge(g),Ge(c(d,p)))},[]).filter(Boolean)},l=i(t,n);return a?typeof o<"u"?l.slice(0,o):l:null},qt=r.createContext(null);function Qr(e){var t=e.visible,n=e.values;if(!t)return null;var o=50;return r.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,o).map(function(a){var i=a.label,l=a.value;return["number","string"].includes(pt(i))?i:l}).join(", ")),n.length>o?", ...":null)}var Zr=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Jr=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Xt=function(t){return t==="tags"||t==="multiple"},kr=r.forwardRef(function(e,t){var n,o=e.id,a=e.prefixCls,i=e.className,l=e.showSearch,c=e.tagRender,v=e.direction,m=e.omitDomProps,f=e.displayValues,s=e.onDisplayValuesChange,p=e.emptyOptions,u=e.notFoundContent,g=u===void 0?"Not Found":u,d=e.onClear,h=e.mode,C=e.disabled,b=e.loading,w=e.getInputElement,y=e.getRawInputElement,Y=e.open,W=e.defaultOpen,x=e.onDropdownVisibleChange,q=e.activeValue,Q=e.onActiveValueChange,te=e.activeDescendantId,X=e.searchValue,U=e.autoClearSearchValue,ne=e.onSearch,_=e.onSearchSplit,re=e.tokenSeparators,B=e.allowClear,z=e.suffixIcon,I=e.clearIcon,T=e.OptionList,G=e.animation,Z=e.transitionName,be=e.dropdownStyle,ce=e.dropdownClassName,ue=e.dropdownMatchSelectWidth,de=e.dropdownRender,Ne=e.dropdownAlign,j=e.placement,ve=e.builtinPlacements,Ce=e.getPopupContainer,E=e.showAction,S=E===void 0?[]:E,D=e.onFocus,H=e.onBlur,R=e.onKeyUp,L=e.onKeyDown,J=e.onMouseDown,se=St(e,Zr),ae=Xt(h),me=(l!==void 0?l:ae)||h==="combobox",we=ee({},se);Jr.forEach(function(ie){delete we[ie]}),m==null||m.forEach(function(ie){delete we[ie]});var $e=r.useState(!1),_e=k($e,2),Me=_e[0],he=_e[1];r.useEffect(function(){he(pr())},[]);var Pe=r.useRef(null),Ie=r.useRef(null),pe=r.useRef(null),ge=r.useRef(null),ze=r.useRef(null),Oe=r.useRef(!1),Ue=Dr(),He=k(Ue,3),ye=He[0],Fe=He[1],dt=He[2];r.useImperativeHandle(t,function(){var ie,V;return{focus:(ie=ge.current)===null||ie===void 0?void 0:ie.focus,blur:(V=ge.current)===null||V===void 0?void 0:V.blur,scrollTo:function(We){var xe;return(xe=ze.current)===null||xe===void 0?void 0:xe.scrollTo(We)},nativeElement:Pe.current||Ie.current}});var Le=r.useMemo(function(){var ie;if(h!=="combobox")return X;var V=(ie=f[0])===null||ie===void 0?void 0:ie.value;return typeof V=="string"||typeof V=="number"?String(V):""},[X,h,f]),je=h==="combobox"&&typeof w=="function"&&w()||null,De=typeof y=="function"&&y(),Et=qn(Ie,De==null||(n=De.props)===null||n===void 0?void 0:n.ref),rt=r.useState(!1),ot=k(rt,2),Rt=ot[0],ft=ot[1];yt(function(){ft(!0)},[]);var vt=Wt(!1,{defaultValue:W,value:Y}),Ze=k(vt,2),at=Ze[0],mt=Ze[1],Se=Rt?at:!1,it=!g&&p;(C||it&&Se&&h==="combobox")&&(Se=!1);var qe=it?!1:Se,$=r.useCallback(function(ie){var V=ie!==void 0?ie:!Se;C||(mt(V),Se!==V&&(x==null||x(V)))},[C,Se,mt,x]),N=r.useMemo(function(){return(re||[]).some(function(ie){return[` +import{r,o as Ve,$ as wt,e as pt,j as k,W as A,bs as Xn,d as ee,v as Un,aK as Nt,X as oe,g as Ye,n as St,Y as Gn,bt as Yn,h as Ge,u as qn,q as yt,w as nt,c as Qn,b as Zn,f as Jn,k as nn,p as rn,U as kn,Z as wn,bd as er,t as tr,J as Ut,a4 as Tt,E as yn,F as It,I as Gt,aQ as nr,H as Yt,a2 as At,a5 as In,D as Te,aL as rr,T as or,bf as ar,ab as ir,bm as lr,aM as cr,a7 as ur,aP as sr,aN as dr,aO as fr,M as vr,O as mr}from"./index-BBriuzNA.js";import{F as gr,l as hr,$ as pr,m as Wt,R as En,p as Sr,s as br,v as Cr,q as wr,x as on}from"./MyApp-CmkiOnMb.js";import{i as an,g as yr}from"./PurePanel-yY9muMEs.js";import{R as Ir,u as Er,e as Rr,f as xr}from"./index-Bumumc8Y.js";import{R as $r}from"./SearchOutlined-DvnHgzkc.js";var _t=function(t){var n=t.className,o=t.customizeIcon,a=t.customizeIconProps,i=t.children,l=t.onMouseDown,c=t.onClick,v=typeof o=="function"?o(a):o;return r.createElement("span",{className:n,onMouseDown:function(f){f.preventDefault(),l==null||l(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},v!==void 0?v:r.createElement("span",{className:Ve(n.split(/\s+/).map(function(m){return"".concat(m,"-icon")}))},i))},Mr=function(t,n,o,a,i){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,c=arguments.length>6?arguments[6]:void 0,v=arguments.length>7?arguments[7]:void 0,m=wt.useMemo(function(){if(pt(a)==="object")return a.clearIcon;if(i)return i},[a,i]),f=wt.useMemo(function(){return!!(!l&&a&&(o.length||c)&&!(v==="combobox"&&c===""))},[a,l,o.length,c,v]);return{allowClear:f,clearIcon:wt.createElement(_t,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},Rn=r.createContext(null);function Or(){return r.useContext(Rn)}function Dr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=r.useState(!1),n=k(t,2),o=n[0],a=n[1],i=r.useRef(null),l=function(){window.clearTimeout(i.current)};r.useEffect(function(){return l},[]);var c=function(m,f){l(),i.current=window.setTimeout(function(){a(m),f&&f()},e)};return[o,c,l]}function xn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=r.useRef(null),n=r.useRef(null);r.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function o(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},o]}function Pr(e,t,n,o){var a=r.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:o},r.useEffect(function(){function i(l){var c;if(!((c=a.current)!==null&&c!==void 0&&c.customizedTrigger)){var v=l.target;v.shadowRoot&&l.composed&&(v=l.composedPath()[0]||v),a.current.open&&e().filter(function(m){return m}).every(function(m){return!m.contains(v)&&m!==v})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function Tr(e){return![A.ESC,A.SHIFT,A.BACKSPACE,A.TAB,A.WIN_KEY,A.ALT,A.META,A.WIN_KEY_RIGHT,A.CTRL,A.SEMICOLON,A.EQUALS,A.CAPS_LOCK,A.CONTEXT_MENU,A.F1,A.F2,A.F3,A.F4,A.F5,A.F6,A.F7,A.F8,A.F9,A.F10,A.F11,A.F12].includes(e)}var Nr=function(t,n){var o,a=t.prefixCls,i=t.id,l=t.inputElement,c=t.disabled,v=t.tabIndex,m=t.autoFocus,f=t.autoComplete,s=t.editable,p=t.activeDescendantId,u=t.value,g=t.maxLength,d=t.onKeyDown,h=t.onMouseDown,C=t.onChange,b=t.onPaste,w=t.onCompositionStart,y=t.onCompositionEnd,Y=t.open,W=t.attrs,x=l||r.createElement("input",null),q=x,Q=q.ref,te=q.props,X=te.onKeyDown,U=te.onChange,ne=te.onMouseDown,_=te.onCompositionStart,re=te.onCompositionEnd,B=te.style;return Xn(!("maxLength"in x.props)),x=r.cloneElement(x,ee(ee(ee({type:"search"},te),{},{id:i,ref:Un(n,Q),disabled:c,tabIndex:v,autoComplete:f||"off",autoFocus:m,className:Ve("".concat(a,"-selection-search-input"),(o=x)===null||o===void 0||(o=o.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":Y||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":Y?p:void 0},W),{},{value:s?u:"",maxLength:g,readOnly:!s,unselectable:s?null:"on",style:ee(ee({},B),{},{opacity:s?null:0}),onKeyDown:function(I){d(I),X&&X(I)},onMouseDown:function(I){h(I),ne&&ne(I)},onChange:function(I){C(I),U&&U(I)},onCompositionStart:function(I){w(I),_&&_(I)},onCompositionEnd:function(I){y(I),re&&re(I)},onPaste:b})),x},$n=r.forwardRef(Nr);function Mn(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var _r=typeof window<"u"&&window.document&&window.document.documentElement,zr=_r;function Lr(e){return e!=null}function Hr(e){return!e&&e!==0}function ln(e){return["string","number"].includes(pt(e))}function On(e){var t=void 0;return e&&(ln(e.title)?t=e.title.toString():ln(e.label)&&(t=e.label.toString())),t}function Fr(e,t){zr?r.useLayoutEffect(e,t):r.useEffect(e,t)}function Br(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var cn=function(t){t.preventDefault(),t.stopPropagation()},Vr=function(t){var n=t.id,o=t.prefixCls,a=t.values,i=t.open,l=t.searchValue,c=t.autoClearSearchValue,v=t.inputRef,m=t.placeholder,f=t.disabled,s=t.mode,p=t.showSearch,u=t.autoFocus,g=t.autoComplete,d=t.activeDescendantId,h=t.tabIndex,C=t.removeIcon,b=t.maxTagCount,w=t.maxTagTextLength,y=t.maxTagPlaceholder,Y=y===void 0?function(H){return"+ ".concat(H.length," ...")}:y,W=t.tagRender,x=t.onToggleOpen,q=t.onRemove,Q=t.onInputChange,te=t.onInputPaste,X=t.onInputKeyDown,U=t.onInputMouseDown,ne=t.onInputCompositionStart,_=t.onInputCompositionEnd,re=r.useRef(null),B=r.useState(0),z=k(B,2),I=z[0],T=z[1],G=r.useState(!1),Z=k(G,2),be=Z[0],ce=Z[1],ue="".concat(o,"-selection"),de=i||s==="multiple"&&c===!1||s==="tags"?l:"",Ne=s==="tags"||s==="multiple"&&c===!1||p&&(i||be);Fr(function(){T(re.current.scrollWidth)},[de]);var j=function(R,L,J,se,ae){return r.createElement("span",{title:On(R),className:Ve("".concat(ue,"-item"),oe({},"".concat(ue,"-item-disabled"),J))},r.createElement("span",{className:"".concat(ue,"-item-content")},L),se&&r.createElement(_t,{className:"".concat(ue,"-item-remove"),onMouseDown:cn,onClick:ae,customizeIcon:C},"×"))},ve=function(R,L,J,se,ae,me){var we=function(_e){cn(_e),x(!i)};return r.createElement("span",{onMouseDown:we},W({label:L,value:R,disabled:J,closable:se,onClose:ae,isMaxTag:!!me}))},Ce=function(R){var L=R.disabled,J=R.label,se=R.value,ae=!f&&!L,me=J;if(typeof w=="number"&&(typeof J=="string"||typeof J=="number")){var we=String(me);we.length>w&&(me="".concat(we.slice(0,w),"..."))}var $e=function(Me){Me&&Me.stopPropagation(),q(R)};return typeof W=="function"?ve(se,me,L,ae,$e):j(R,me,L,ae,$e)},E=function(R){var L=typeof Y=="function"?Y(R):Y;return typeof W=="function"?ve(void 0,L,!1,!1,void 0,!0):j({title:L},L,!1)},S=r.createElement("div",{className:"".concat(ue,"-search"),style:{width:I},onFocus:function(){ce(!0)},onBlur:function(){ce(!1)}},r.createElement($n,{ref:v,open:i,prefixCls:o,id:n,inputElement:null,disabled:f,autoFocus:u,autoComplete:g,editable:Ne,activeDescendantId:d,value:de,onKeyDown:X,onMouseDown:U,onChange:Q,onPaste:te,onCompositionStart:ne,onCompositionEnd:_,tabIndex:h,attrs:Nt(t,!0)}),r.createElement("span",{ref:re,className:"".concat(ue,"-search-mirror"),"aria-hidden":!0},de," ")),D=r.createElement(gr,{prefixCls:"".concat(ue,"-overflow"),data:a,renderItem:Ce,renderRest:E,suffix:S,itemKey:Br,maxCount:b});return r.createElement(r.Fragment,null,D,!a.length&&!de&&r.createElement("span",{className:"".concat(ue,"-placeholder")},m))},Ar=function(t){var n=t.inputElement,o=t.prefixCls,a=t.id,i=t.inputRef,l=t.disabled,c=t.autoFocus,v=t.autoComplete,m=t.activeDescendantId,f=t.mode,s=t.open,p=t.values,u=t.placeholder,g=t.tabIndex,d=t.showSearch,h=t.searchValue,C=t.activeValue,b=t.maxLength,w=t.onInputKeyDown,y=t.onInputMouseDown,Y=t.onInputChange,W=t.onInputPaste,x=t.onInputCompositionStart,q=t.onInputCompositionEnd,Q=t.title,te=r.useState(!1),X=k(te,2),U=X[0],ne=X[1],_=f==="combobox",re=_||d,B=p[0],z=h||"";_&&C&&!U&&(z=C),r.useEffect(function(){_&&ne(!1)},[_,C]);var I=f!=="combobox"&&!s&&!d?!1:!!z,T=Q===void 0?On(B):Q,G=r.useMemo(function(){return B?null:r.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:I?{visibility:"hidden"}:void 0},u)},[B,I,u,o]);return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(o,"-selection-search")},r.createElement($n,{ref:i,prefixCls:o,id:a,open:s,inputElement:n,disabled:l,autoFocus:c,autoComplete:v,editable:re,activeDescendantId:m,value:z,onKeyDown:w,onMouseDown:y,onChange:function(be){ne(!0),Y(be)},onPaste:W,onCompositionStart:x,onCompositionEnd:q,tabIndex:g,attrs:Nt(t,!0),maxLength:_?b:void 0})),!_&&B?r.createElement("span",{className:"".concat(o,"-selection-item"),title:T,style:I?{visibility:"hidden"}:void 0},B.label):null,G)},Wr=function(t,n){var o=r.useRef(null),a=r.useRef(!1),i=t.prefixCls,l=t.open,c=t.mode,v=t.showSearch,m=t.tokenWithEnter,f=t.disabled,s=t.autoClearSearchValue,p=t.onSearch,u=t.onSearchSubmit,g=t.onToggleOpen,d=t.onInputKeyDown,h=t.domRef;r.useImperativeHandle(n,function(){return{focus:function(I){o.current.focus(I)},blur:function(){o.current.blur()}}});var C=xn(0),b=k(C,2),w=b[0],y=b[1],Y=function(I){var T=I.which;(T===A.UP||T===A.DOWN)&&I.preventDefault(),d&&d(I),T===A.ENTER&&c==="tags"&&!a.current&&!l&&(u==null||u(I.target.value)),Tr(T)&&g(!0)},W=function(){y(!0)},x=r.useRef(null),q=function(I){p(I,!0,a.current)!==!1&&g(!0)},Q=function(){a.current=!0},te=function(I){a.current=!1,c!=="combobox"&&q(I.target.value)},X=function(I){var T=I.target.value;if(m&&x.current&&/[\r\n]/.test(x.current)){var G=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");T=T.replace(G,x.current)}x.current=null,q(T)},U=function(I){var T=I.clipboardData,G=T==null?void 0:T.getData("text");x.current=G||""},ne=function(I){var T=I.target;if(T!==o.current){var G=document.body.style.msTouchAction!==void 0;G?setTimeout(function(){o.current.focus()}):o.current.focus()}},_=function(I){var T=w();I.target!==o.current&&!T&&!(c==="combobox"&&f)&&I.preventDefault(),(c!=="combobox"&&(!v||!T)||!l)&&(l&&s!==!1&&p("",!0,!1),g())},re={inputRef:o,onInputKeyDown:Y,onInputMouseDown:W,onInputChange:X,onInputPaste:U,onInputCompositionStart:Q,onInputCompositionEnd:te},B=c==="multiple"||c==="tags"?r.createElement(Vr,Ye({},t,re)):r.createElement(Ar,Ye({},t,re));return r.createElement("div",{ref:h,className:"".concat(i,"-selector"),onClick:ne,onMouseDown:_},B)},jr=r.forwardRef(Wr),Kr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Xr=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},Ur=function(t,n){var o=t.prefixCls;t.disabled;var a=t.visible,i=t.children,l=t.popupElement,c=t.animation,v=t.transitionName,m=t.dropdownStyle,f=t.dropdownClassName,s=t.direction,p=s===void 0?"ltr":s,u=t.placement,g=t.builtinPlacements,d=t.dropdownMatchSelectWidth,h=t.dropdownRender,C=t.dropdownAlign,b=t.getPopupContainer,w=t.empty,y=t.getTriggerDOMNode,Y=t.onPopupVisibleChange,W=t.onPopupMouseEnter,x=St(t,Kr),q="".concat(o,"-dropdown"),Q=l;h&&(Q=h(l));var te=r.useMemo(function(){return g||Xr(d)},[g,d]),X=c?"".concat(q,"-").concat(c):v,U=typeof d=="number",ne=r.useMemo(function(){return U?null:d===!1?"minWidth":"width"},[d,U]),_=m;U&&(_=ee(ee({},_),{},{width:d}));var re=r.useRef(null);return r.useImperativeHandle(n,function(){return{getPopupElement:function(){var z;return(z=re.current)===null||z===void 0?void 0:z.popupElement}}}),r.createElement(hr,Ye({},x,{showAction:Y?["click"]:[],hideAction:Y?["click"]:[],popupPlacement:u||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:te,prefixCls:q,popupTransitionName:X,popup:r.createElement("div",{onMouseEnter:W},Q),ref:re,stretch:ne,popupAlign:C,popupVisible:a,getPopupContainer:b,popupClassName:Ve(f,oe({},"".concat(q,"-empty"),w)),popupStyle:_,getTriggerDOMNode:y,onPopupVisibleChange:Y}),i)},Gr=r.forwardRef(Ur);function un(e,t){var n=e.key,o;return"value"in e&&(o=e.value),n??(o!==void 0?o:"rc-index-key-".concat(t))}function jt(e){return typeof e<"u"&&!Number.isNaN(e)}function Dn(e,t){var n=e||{},o=n.label,a=n.value,i=n.options,l=n.groupLabel,c=o||(t?"children":"label");return{label:c,value:a||"value",options:i||"options",groupLabel:l||c}}function Yr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,a=[],i=Dn(n,!1),l=i.label,c=i.value,v=i.options,m=i.groupLabel;function f(s,p){Array.isArray(s)&&s.forEach(function(u){if(p||!(v in u)){var g=u[c];a.push({key:un(u,a.length),groupOption:p,data:u,label:u[l],value:g})}else{var d=u[m];d===void 0&&o&&(d=u.label),a.push({key:un(u,a.length),group:!0,data:u,label:d}),f(u[v],!0)}})}return f(e,!1),a}function Kt(e){var t=ee({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Gn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var qr=function(t,n,o){if(!n||!n.length)return null;var a=!1,i=function c(v,m){var f=Yn(m),s=f[0],p=f.slice(1);if(!s)return[v];var u=v.split(s);return a=a||u.length>1,u.reduce(function(g,d){return[].concat(Ge(g),Ge(c(d,p)))},[]).filter(Boolean)},l=i(t,n);return a?typeof o<"u"?l.slice(0,o):l:null},qt=r.createContext(null);function Qr(e){var t=e.visible,n=e.values;if(!t)return null;var o=50;return r.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,o).map(function(a){var i=a.label,l=a.value;return["number","string"].includes(pt(i))?i:l}).join(", ")),n.length>o?", ...":null)}var Zr=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Jr=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Xt=function(t){return t==="tags"||t==="multiple"},kr=r.forwardRef(function(e,t){var n,o=e.id,a=e.prefixCls,i=e.className,l=e.showSearch,c=e.tagRender,v=e.direction,m=e.omitDomProps,f=e.displayValues,s=e.onDisplayValuesChange,p=e.emptyOptions,u=e.notFoundContent,g=u===void 0?"Not Found":u,d=e.onClear,h=e.mode,C=e.disabled,b=e.loading,w=e.getInputElement,y=e.getRawInputElement,Y=e.open,W=e.defaultOpen,x=e.onDropdownVisibleChange,q=e.activeValue,Q=e.onActiveValueChange,te=e.activeDescendantId,X=e.searchValue,U=e.autoClearSearchValue,ne=e.onSearch,_=e.onSearchSplit,re=e.tokenSeparators,B=e.allowClear,z=e.suffixIcon,I=e.clearIcon,T=e.OptionList,G=e.animation,Z=e.transitionName,be=e.dropdownStyle,ce=e.dropdownClassName,ue=e.dropdownMatchSelectWidth,de=e.dropdownRender,Ne=e.dropdownAlign,j=e.placement,ve=e.builtinPlacements,Ce=e.getPopupContainer,E=e.showAction,S=E===void 0?[]:E,D=e.onFocus,H=e.onBlur,R=e.onKeyUp,L=e.onKeyDown,J=e.onMouseDown,se=St(e,Zr),ae=Xt(h),me=(l!==void 0?l:ae)||h==="combobox",we=ee({},se);Jr.forEach(function(ie){delete we[ie]}),m==null||m.forEach(function(ie){delete we[ie]});var $e=r.useState(!1),_e=k($e,2),Me=_e[0],he=_e[1];r.useEffect(function(){he(pr())},[]);var Pe=r.useRef(null),Ie=r.useRef(null),pe=r.useRef(null),ge=r.useRef(null),ze=r.useRef(null),Oe=r.useRef(!1),Ue=Dr(),He=k(Ue,3),ye=He[0],Fe=He[1],dt=He[2];r.useImperativeHandle(t,function(){var ie,V;return{focus:(ie=ge.current)===null||ie===void 0?void 0:ie.focus,blur:(V=ge.current)===null||V===void 0?void 0:V.blur,scrollTo:function(We){var xe;return(xe=ze.current)===null||xe===void 0?void 0:xe.scrollTo(We)},nativeElement:Pe.current||Ie.current}});var Le=r.useMemo(function(){var ie;if(h!=="combobox")return X;var V=(ie=f[0])===null||ie===void 0?void 0:ie.value;return typeof V=="string"||typeof V=="number"?String(V):""},[X,h,f]),je=h==="combobox"&&typeof w=="function"&&w()||null,De=typeof y=="function"&&y(),Et=qn(Ie,De==null||(n=De.props)===null||n===void 0?void 0:n.ref),rt=r.useState(!1),ot=k(rt,2),Rt=ot[0],ft=ot[1];yt(function(){ft(!0)},[]);var vt=Wt(!1,{defaultValue:W,value:Y}),Ze=k(vt,2),at=Ze[0],mt=Ze[1],Se=Rt?at:!1,it=!g&&p;(C||it&&Se&&h==="combobox")&&(Se=!1);var qe=it?!1:Se,$=r.useCallback(function(ie){var V=ie!==void 0?ie:!Se;C||(mt(V),Se!==V&&(x==null||x(V)))},[C,Se,mt,x]),N=r.useMemo(function(){return(re||[]).some(function(ie){return[` `,`\r `].includes(ie)})},[re]),P=r.useContext(qt)||{},F=P.maxCount,le=P.rawValues,fe=function(V,Ae,We){if(!(ae&&jt(F)&&(le==null?void 0:le.size)>=F)){var xe=!0,Be=V;Q==null||Q(null);var tt=qr(V,re,jt(F)?F-le.size:void 0),ct=We?null:tt;return h!=="combobox"&&ct&&(Be="",_==null||_(ct),$(!1),xe=!1),ne&&Le!==Be&&ne(Be,{source:Ae?"typing":"effect"}),xe}},Ke=function(V){!V||!V.trim()||ne(V,{source:"submit"})};r.useEffect(function(){!Se&&!ae&&h!=="combobox"&&fe("",!1,!1)},[Se]),r.useEffect(function(){at&&C&&mt(!1),C&&!Oe.current&&Fe(!1)},[C]);var Xe=xn(),Qe=k(Xe,2),Ee=Qe[0],Je=Qe[1],xt=function(V){var Ae=Ee(),We=V.which;if(We===A.ENTER&&(h!=="combobox"&&V.preventDefault(),Se||$(!0)),Je(!!Le),We===A.BACKSPACE&&!Ae&&ae&&!Le&&f.length){for(var xe=Ge(f),Be=null,tt=xe.length-1;tt>=0;tt-=1){var ct=xe[tt];if(!ct.disabled){xe.splice(tt,1),Be=ct;break}}Be&&s(xe,{type:"remove",values:[Be]})}for(var ut=arguments.length,Ct=new Array(ut>1?ut-1:0),st=1;st1?Ae-1:0),xe=1;xe1?tt-1:0),ut=1;ut"u"?"undefined":pt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Tn=function(e,t,n,o){var a=r.useRef(!1),i=r.useRef(null);function l(){clearTimeout(i.current),a.current=!0,i.current=setTimeout(function(){a.current=!1},50)}var c=r.useRef({top:e,bottom:t,left:n,right:o});return c.current.top=e,c.current.bottom=t,c.current.left=n,c.current.right=o,function(v,m){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=v?m<0&&c.current.left||m>0&&c.current.right:m<0&&c.current.top||m>0&&c.current.bottom;return f&&s?(clearTimeout(i.current),a.current=!1):(!s||a.current)&&l(),!a.current&&s}};function oo(e,t,n,o,a,i,l){var c=r.useRef(0),v=r.useRef(null),m=r.useRef(null),f=r.useRef(!1),s=Tn(t,n,o,a);function p(b,w){nt.cancel(v.current),c.current+=w,m.current=w,!s(!1,w)&&(sn||b.preventDefault(),v.current=nt(function(){var y=f.current?10:1;l(c.current*y),c.current=0}))}function u(b,w){l(w,!0),sn||b.preventDefault()}var g=r.useRef(null),d=r.useRef(null);function h(b){if(e){nt.cancel(d.current),d.current=nt(function(){g.current=null},2);var w=b.deltaX,y=b.deltaY,Y=b.shiftKey,W=w,x=y;(g.current==="sx"||!g.current&&Y&&y&&!w)&&(W=y,x=0,g.current="sx");var q=Math.abs(W),Q=Math.abs(x);g.current===null&&(g.current=i&&q>Q?"x":"y"),g.current==="y"?p(b,x):u(b,W)}}function C(b){e&&(f.current=b.detail===m.current)}return[h,C]}function ao(e,t,n,o){var a=r.useMemo(function(){return[new Map,[]]},[e,n.id,o]),i=k(a,2),l=i[0],c=i[1],v=function(f){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f,p=l.get(f),u=l.get(s);if(p===void 0||u===void 0)for(var g=e.length,d=c.length;d0&&arguments[0]!==void 0?arguments[0]:!1;f();var g=function(){c.current.forEach(function(h,C){if(h&&h.offsetParent){var b=Jn(h),w=b.offsetHeight;v.current.get(C)!==w&&v.current.set(C,b.offsetHeight)}}),l(function(h){return h+1})};u?g():m.current=nt(g)}function p(u,g){var d=e(u);c.current.get(d),g?(c.current.set(d,g),s()):c.current.delete(d)}return r.useEffect(function(){return f},[]),[p,s,v.current,i]}var dn=14/15;function co(e,t,n){var o=r.useRef(!1),a=r.useRef(0),i=r.useRef(0),l=r.useRef(null),c=r.useRef(null),v,m=function(u){if(o.current){var g=Math.ceil(u.touches[0].pageX),d=Math.ceil(u.touches[0].pageY),h=a.current-g,C=i.current-d,b=Math.abs(h)>Math.abs(C);b?a.current=g:i.current=d,n(b,b?h:C)&&u.preventDefault(),clearInterval(c.current),c.current=setInterval(function(){b?h*=dn:C*=dn;var w=Math.floor(b?h:C);(!n(b,w,!0)||Math.abs(w)<=.1)&&clearInterval(c.current)},16)}},f=function(){o.current=!1,v()},s=function(u){v(),u.touches.length===1&&!o.current&&(o.current=!0,a.current=Math.ceil(u.touches[0].pageX),i.current=Math.ceil(u.touches[0].pageY),l.current=u.target,l.current.addEventListener("touchmove",m),l.current.addEventListener("touchend",f))};v=function(){l.current&&(l.current.removeEventListener("touchmove",m),l.current.removeEventListener("touchend",f))},yt(function(){return e&&t.current.addEventListener("touchstart",s),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",s),v(),clearInterval(c.current)}},[e])}var uo=10;function so(e,t,n,o,a,i,l,c){var v=r.useRef(),m=r.useState(null),f=k(m,2),s=f[0],p=f[1];return yt(function(){if(s&&s.times=0;_-=1){var re=a(t[_]),B=n.get(re);if(B===void 0){b=!0;break}if(ne-=B,ne<=0)break}switch(Y){case"top":y=x-h;break;case"bottom":y=q-C+h;break;default:{var z=e.current.scrollTop,I=z+C;xI&&(w="bottom")}}y!==null&&l(y),y!==s.lastTop&&(b=!0)}b&&p(ee(ee({},s),{},{times:s.times+1,targetAlign:w,lastTop:y}))}},[s,e.current]),function(u){if(u==null){c();return}if(nt.cancel(v.current),typeof u=="number")l(u);else if(u&&pt(u)==="object"){var g,d=u.align;"index"in u?g=u.index:g=t.findIndex(function(b){return a(b)===u.key});var h=u.offset,C=h===void 0?0:h;p({times:0,index:g,offset:C,originAlign:d})}}}function fn(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var vn=r.forwardRef(function(e,t){var n=e.prefixCls,o=e.rtl,a=e.scrollOffset,i=e.scrollRange,l=e.onStartMove,c=e.onStopMove,v=e.onScroll,m=e.horizontal,f=e.spinSize,s=e.containerSize,p=e.style,u=e.thumbStyle,g=r.useState(!1),d=k(g,2),h=d[0],C=d[1],b=r.useState(null),w=k(b,2),y=w[0],Y=w[1],W=r.useState(null),x=k(W,2),q=x[0],Q=x[1],te=!o,X=r.useRef(),U=r.useRef(),ne=r.useState(!1),_=k(ne,2),re=_[0],B=_[1],z=r.useRef(),I=function(){clearTimeout(z.current),B(!0),z.current=setTimeout(function(){B(!1)},3e3)},T=i-s||0,G=s-f||0,Z=r.useMemo(function(){if(a===0||T===0)return 0;var E=a/T;return E*G},[a,T,G]),be=function(S){S.stopPropagation(),S.preventDefault()},ce=r.useRef({top:Z,dragging:h,pageY:y,startTop:q});ce.current={top:Z,dragging:h,pageY:y,startTop:q};var ue=function(S){C(!0),Y(fn(S,m)),Q(ce.current.top),l(),S.stopPropagation(),S.preventDefault()};r.useEffect(function(){var E=function(R){R.preventDefault()},S=X.current,D=U.current;return S.addEventListener("touchstart",E),D.addEventListener("touchstart",ue),function(){S.removeEventListener("touchstart",E),D.removeEventListener("touchstart",ue)}},[]);var de=r.useRef();de.current=T;var Ne=r.useRef();Ne.current=G,r.useEffect(function(){if(h){var E,S=function(R){var L=ce.current,J=L.dragging,se=L.pageY,ae=L.startTop;nt.cancel(E);var me=s/X.current.getBoundingClientRect().height;if(J){var we=(fn(R,m)-se)*me,$e=ae;!te&&m?$e-=we:$e+=we;var _e=de.current,Me=Ne.current,he=Me?$e/Me:0,Pe=Math.ceil(he*_e);Pe=Math.max(Pe,0),Pe=Math.min(Pe,_e),E=nt(function(){v(Pe,m)})}},D=function(){C(!1),c()};return window.addEventListener("mousemove",S),window.addEventListener("touchmove",S),window.addEventListener("mouseup",D),window.addEventListener("touchend",D),function(){window.removeEventListener("mousemove",S),window.removeEventListener("touchmove",S),window.removeEventListener("mouseup",D),window.removeEventListener("touchend",D),nt.cancel(E)}}},[h]),r.useEffect(function(){I()},[a]),r.useImperativeHandle(t,function(){return{delayHidden:I}});var j="".concat(n,"-scrollbar"),ve={position:"absolute",visibility:re?null:"hidden"},Ce={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return m?(ve.height=8,ve.left=0,ve.right=0,ve.bottom=0,Ce.height="100%",Ce.width=f,te?Ce.left=Z:Ce.right=Z):(ve.width=8,ve.top=0,ve.bottom=0,te?ve.right=0:ve.left=0,Ce.width="100%",Ce.height=f,Ce.top=Z),r.createElement("div",{ref:X,className:Ve(j,oe(oe(oe({},"".concat(j,"-horizontal"),m),"".concat(j,"-vertical"),!m),"".concat(j,"-visible"),re)),style:ee(ee({},ve),p),onMouseDown:be,onMouseMove:I},r.createElement("div",{ref:U,className:Ve("".concat(j,"-thumb"),oe({},"".concat(j,"-thumb-moving"),h)),style:ee(ee({},Ce),u),onMouseDown:ue}))}),fo=20;function mn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,fo),Math.floor(n)}var vo=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],mo=[],go={overflowY:"auto",overflowAnchor:"none"};function ho(e,t){var n=e.prefixCls,o=n===void 0?"rc-virtual-list":n,a=e.className,i=e.height,l=e.itemHeight,c=e.fullHeight,v=c===void 0?!0:c,m=e.style,f=e.data,s=e.children,p=e.itemKey,u=e.virtual,g=e.direction,d=e.scrollWidth,h=e.component,C=h===void 0?"div":h,b=e.onScroll,w=e.onVirtualScroll,y=e.onVisibleChange,Y=e.innerProps,W=e.extraRender,x=e.styles,q=St(e,vo),Q=r.useCallback(function(M){return typeof p=="function"?p(M):M==null?void 0:M[p]},[p]),te=lo(Q),X=k(te,4),U=X[0],ne=X[1],_=X[2],re=X[3],B=!!(u!==!1&&i&&l),z=r.useMemo(function(){return Object.values(_.maps).reduce(function(M,O){return M+O},0)},[_.id,_.maps]),I=B&&f&&(Math.max(l*f.length,z)>i||!!d),T=g==="rtl",G=Ve(o,oe({},"".concat(o,"-rtl"),T),a),Z=f||mo,be=r.useRef(),ce=r.useRef(),ue=r.useRef(),de=r.useState(0),Ne=k(de,2),j=Ne[0],ve=Ne[1],Ce=r.useState(0),E=k(Ce,2),S=E[0],D=E[1],H=r.useState(!1),R=k(H,2),L=R[0],J=R[1],se=function(){J(!0)},ae=function(){J(!1)},me={getKey:Q};function we(M){ve(function(O){var K;typeof M=="function"?K=M(O):K=M;var Re=Rt(K);return be.current.scrollTop=Re,Re})}var $e=r.useRef({start:0,end:Z.length}),_e=r.useRef(),Me=ro(Z,Q),he=k(Me,1),Pe=he[0];_e.current=Pe;var Ie=r.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:Z.length-1,offset:void 0};if(!I){var M;return{scrollHeight:((M=ce.current)===null||M===void 0?void 0:M.offsetHeight)||0,start:0,end:Z.length-1,offset:void 0}}for(var O=0,K,Re,et,zt=Z.length,gt=0;gt=j&&K===void 0&&(K=gt,Re=O),bt>j+i&&et===void 0&&(et=gt),O=bt}return K===void 0&&(K=0,Re=0,et=Math.ceil(i/l)),et===void 0&&(et=Z.length-1),et=Math.min(et+1,Z.length-1),{scrollHeight:O,start:K,end:et,offset:Re}},[I,B,j,Z,re,i]),pe=Ie.scrollHeight,ge=Ie.start,ze=Ie.end,Oe=Ie.offset;$e.current.start=ge,$e.current.end=ze;var Ue=r.useState({width:0,height:i}),He=k(Ue,2),ye=He[0],Fe=He[1],dt=function(O){Fe({width:O.offsetWidth,height:O.offsetHeight})},Le=r.useRef(),je=r.useRef(),De=r.useMemo(function(){return mn(ye.width,d)},[ye.width,d]),Et=r.useMemo(function(){return mn(ye.height,pe)},[ye.height,pe]),rt=pe-i,ot=r.useRef(rt);ot.current=rt;function Rt(M){var O=M;return Number.isNaN(ot.current)||(O=Math.min(O,ot.current)),O=Math.max(O,0),O}var ft=j<=0,vt=j>=rt,Ze=S<=0,at=S>=d,mt=Tn(ft,vt,Ze,at),Se=function(){return{x:T?-S:S,y:j}},it=r.useRef(Se()),qe=nn(function(M){if(w){var O=ee(ee({},Se()),M);(it.current.x!==O.x||it.current.y!==O.y)&&(w(O),it.current=O)}});function $(M,O){var K=M;O?(rn.flushSync(function(){D(K)}),qe()):we(K)}function N(M){var O=M.currentTarget.scrollTop;O!==j&&we(O),b==null||b(M),qe()}var P=function(O){var K=O,Re=d?d-ye.width:0;return K=Math.max(K,0),K=Math.min(K,Re),K},F=nn(function(M,O){O?(rn.flushSync(function(){D(function(K){var Re=K+(T?-M:M);return P(Re)})}),qe()):we(function(K){var Re=K+M;return Re})}),le=oo(B,ft,vt,Ze,at,!!d,F),fe=k(le,2),Ke=fe[0],Xe=fe[1];co(B,be,function(M,O,K){return mt(M,O,K)?!1:(Ke({preventDefault:function(){},deltaX:M?O:0,deltaY:M?0:O}),!0)}),yt(function(){function M(K){B&&K.preventDefault()}var O=be.current;return O.addEventListener("wheel",Ke),O.addEventListener("DOMMouseScroll",Xe),O.addEventListener("MozMousePixelScroll",M),function(){O.removeEventListener("wheel",Ke),O.removeEventListener("DOMMouseScroll",Xe),O.removeEventListener("MozMousePixelScroll",M)}},[B]),yt(function(){if(d){var M=P(S);D(M),qe({x:M})}},[ye.width,d]);var Qe=function(){var O,K;(O=Le.current)===null||O===void 0||O.delayHidden(),(K=je.current)===null||K===void 0||K.delayHidden()},Ee=so(be,Z,_,l,Q,function(){return ne(!0)},we,Qe);r.useImperativeHandle(t,function(){return{nativeElement:ue.current,getScrollInfo:Se,scrollTo:function(O){function K(Re){return Re&&pt(Re)==="object"&&("left"in Re||"top"in Re)}K(O)?(O.left!==void 0&&D(P(O.left)),Ee(O.top)):Ee(O)}}}),yt(function(){if(y){var M=Z.slice(ge,ze+1);y(M,Z)}},[ge,ze,Z]);var Je=ao(Z,Q,_,l),xt=W==null?void 0:W({start:ge,end:ze,virtual:I,offsetX:S,offsetY:Oe,rtl:T,getSize:Je}),$t=to(Z,ge,ze,d,S,U,s,me),lt=null;i&&(lt=ee(oe({},v?"height":"maxHeight",i),go),B&&(lt.overflowY="hidden",d&&(lt.overflowX="hidden"),L&&(lt.pointerEvents="none")));var ke={};return T&&(ke.dir="rtl"),r.createElement("div",Ye({ref:ue,style:ee(ee({},m),{},{position:"relative"}),className:G},ke,q),r.createElement(En,{onResize:dt},r.createElement(C,{className:"".concat(o,"-holder"),style:lt,ref:be,onScroll:N,onMouseEnter:Qe},r.createElement(Pn,{prefixCls:o,height:pe,offsetX:S,offsetY:Oe,scrollWidth:d,onInnerResize:ne,ref:ce,innerProps:Y,rtl:T,extra:xt},$t))),I&&pe>i&&r.createElement(vn,{ref:Le,prefixCls:o,scrollOffset:j,scrollRange:pe,rtl:T,onScroll:$,onStartMove:se,onStopMove:ae,spinSize:Et,containerSize:ye.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb}),I&&d>ye.width&&r.createElement(vn,{ref:je,prefixCls:o,scrollOffset:S,scrollRange:d,rtl:T,onScroll:$,onStartMove:se,onStopMove:ae,spinSize:De,containerSize:ye.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb}))}var Nn=r.forwardRef(ho);Nn.displayName="List";function po(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var So=["disabled","title","children","style","className"];function gn(e){return typeof e=="string"||typeof e=="number"}var bo=function(t,n){var o=Or(),a=o.prefixCls,i=o.id,l=o.open,c=o.multiple,v=o.mode,m=o.searchValue,f=o.toggleOpen,s=o.notFoundContent,p=o.onPopupScroll,u=r.useContext(qt),g=u.maxCount,d=u.flattenOptions,h=u.onActiveValue,C=u.defaultActiveFirstOption,b=u.onSelect,w=u.menuItemSelectedIcon,y=u.rawValues,Y=u.fieldNames,W=u.virtual,x=u.direction,q=u.listHeight,Q=u.listItemHeight,te=u.optionRender,X="".concat(a,"-item"),U=kn(function(){return d},[l,d],function(E,S){return S[0]&&E[1]!==S[1]}),ne=r.useRef(null),_=r.useMemo(function(){return c&&jt(g)&&(y==null?void 0:y.size)>=g},[c,g,y==null?void 0:y.size]),re=function(S){S.preventDefault()},B=function(S){var D;(D=ne.current)===null||D===void 0||D.scrollTo(typeof S=="number"?{index:S}:S)},z=function(S){for(var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=U.length,R=0;R1&&arguments[1]!==void 0?arguments[1]:!1;Z(S);var H={source:D?"keyboard":"mouse"},R=U[S];if(!R){h(null,-1,H);return}h(R.value,S,H)};r.useEffect(function(){be(C!==!1?z(0):-1)},[U.length,m]);var ce=r.useCallback(function(E){return y.has(E)&&v!=="combobox"},[v,Ge(y).toString(),y.size]);r.useEffect(function(){var E=setTimeout(function(){if(!c&&l&&y.size===1){var D=Array.from(y)[0],H=U.findIndex(function(R){var L=R.data;return L.value===D});H!==-1&&(be(H),B(H))}});if(l){var S;(S=ne.current)===null||S===void 0||S.scrollTo(void 0)}return function(){return clearTimeout(E)}},[l,m]);var ue=function(S){S!==void 0&&b(S,{selected:!y.has(S)}),c||f(!1)};if(r.useImperativeHandle(n,function(){return{onKeyDown:function(S){var D=S.which,H=S.ctrlKey;switch(D){case A.N:case A.P:case A.UP:case A.DOWN:{var R=0;if(D===A.UP?R=-1:D===A.DOWN?R=1:po()&&H&&(D===A.N?R=1:D===A.P&&(R=-1)),R!==0){var L=z(G+R,R);B(L),be(L,!0)}break}case A.ENTER:{var J,se=U[G];se&&!(se!=null&&(J=se.data)!==null&&J!==void 0&&J.disabled)&&!_?ue(se.value):ue(void 0),l&&S.preventDefault();break}case A.ESC:f(!1),l&&S.stopPropagation()}},onKeyUp:function(){},scrollTo:function(S){B(S)}}}),U.length===0)return r.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(X,"-empty"),onMouseDown:re},s);var de=Object.keys(Y).map(function(E){return Y[E]}),Ne=function(S){return S.label};function j(E,S){var D=E.group;return{role:D?"presentation":"option",id:"".concat(i,"_list_").concat(S)}}var ve=function(S){var D=U[S];if(!D)return null;var H=D.data||{},R=H.value,L=D.group,J=Nt(H,!0),se=Ne(D);return D?r.createElement("div",Ye({"aria-label":typeof se=="string"&&!L?se:null},J,{key:S},j(D,S),{"aria-selected":ce(R)}),R):null},Ce={role:"listbox",id:"".concat(i,"_list")};return r.createElement(r.Fragment,null,W&&r.createElement("div",Ye({},Ce,{style:{height:0,width:0,overflow:"hidden"}}),ve(G-1),ve(G),ve(G+1)),r.createElement(Nn,{itemKey:"key",ref:ne,data:U,height:q,itemHeight:Q,fullHeight:!1,onMouseDown:re,onScroll:p,virtual:W,direction:x,innerProps:W?null:Ce},function(E,S){var D=E.group,H=E.groupOption,R=E.data,L=E.label,J=E.value,se=R.key;if(D){var ae,me=(ae=R.title)!==null&&ae!==void 0?ae:gn(L)?L.toString():void 0;return r.createElement("div",{className:Ve(X,"".concat(X,"-group"),R.className),title:me},L!==void 0?L:se)}var we=R.disabled,$e=R.title;R.children;var _e=R.style,Me=R.className,he=St(R,So),Pe=wn(he,de),Ie=ce(J),pe=we||!Ie&&_,ge="".concat(X,"-option"),ze=Ve(X,ge,Me,oe(oe(oe(oe({},"".concat(ge,"-grouped"),H),"".concat(ge,"-active"),G===S&&!pe),"".concat(ge,"-disabled"),pe),"".concat(ge,"-selected"),Ie)),Oe=Ne(E),Ue=!w||typeof w=="function"||Ie,He=typeof Oe=="number"?Oe:Oe||J,ye=gn(He)?He.toString():void 0;return $e!==void 0&&(ye=$e),r.createElement("div",Ye({},Nt(Pe),W?{}:j(E,S),{"aria-selected":Ie,className:ze,title:ye,onMouseMove:function(){G===S||pe||be(S)},onClick:function(){pe||ue(J)},style:_e}),r.createElement("div",{className:"".concat(ge,"-content")},typeof te=="function"?te(E,{index:S}):He),r.isValidElement(w)||Ie,Ue&&r.createElement(_t,{className:"".concat(X,"-option-state"),customizeIcon:w,customizeIconProps:{value:J,disabled:pe,isSelected:Ie}},Ie?"✓":null))}))},Co=r.forwardRef(bo);const wo=function(e,t){var n=r.useRef({values:new Map,options:new Map}),o=r.useMemo(function(){var i=n.current,l=i.values,c=i.options,v=e.map(function(s){if(s.label===void 0){var p;return ee(ee({},s),{},{label:(p=l.get(s.value))===null||p===void 0?void 0:p.label})}return s}),m=new Map,f=new Map;return v.forEach(function(s){m.set(s.value,s),f.set(s.value,t.get(s.value)||c.get(s.value))}),n.current.values=m,n.current.options=f,v},[e,t]),a=r.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[o,a]};function Ft(e,t){return Mn(e).join("").toUpperCase().includes(t)}const yo=function(e,t,n,o,a){return r.useMemo(function(){if(!n||o===!1)return e;var i=t.options,l=t.label,c=t.value,v=[],m=typeof o=="function",f=n.toUpperCase(),s=m?o:function(u,g){return a?Ft(g[a],f):g[i]?Ft(g[l!=="children"?l:"label"],f):Ft(g[c],f)},p=m?function(u){return Kt(u)}:function(u){return u};return e.forEach(function(u){if(u[i]){var g=s(n,p(u));if(g)v.push(u);else{var d=u[i].filter(function(h){return s(n,p(h))});d.length&&v.push(ee(ee({},u),{},oe({},i,d)))}return}s(n,p(u))&&v.push(u)}),v},[e,o,a,n,t])};var hn=0,Io=er();function Eo(){var e;return Io?(e=hn,hn+=1):e="TEST_OR_SSR",e}function Ro(e){var t=r.useState(),n=k(t,2),o=n[0],a=n[1];return r.useEffect(function(){a("rc_select_".concat(Eo()))},[]),e||o}var xo=["children","value"],$o=["children"];function Mo(e){var t=e,n=t.key,o=t.props,a=o.children,i=o.value,l=St(o,xo);return ee({key:n,value:i!==void 0?i:n,children:a},l)}function _n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return tr(e).map(function(n,o){if(!r.isValidElement(n)||!n.type)return null;var a=n,i=a.type.isSelectOptGroup,l=a.key,c=a.props,v=c.children,m=St(c,$o);return t||!i?Mo(n):ee(ee({key:"__RC_SELECT_GRP__".concat(l===null?o:l,"__"),label:l},m),{},{options:_n(v)})}).filter(function(n){return n})}var Oo=function(t,n,o,a,i){return r.useMemo(function(){var l=t,c=!t;c&&(l=_n(n));var v=new Map,m=new Map,f=function(u,g,d){d&&typeof d=="string"&&u.set(g[d],g)},s=function p(u){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=0;d2&&arguments[2]!==void 0?arguments[2]:{},F=P.source,le=F===void 0?"keyboard":F;Rt(N),l&&o==="combobox"&&$!==null&&le==="keyboard"&&De(String($))},[l,o]),Ze=function(N,P,F){var le=function(){var ke,M=Pe(N);return[T?{label:M==null?void 0:M[j.label],value:N,key:(ke=M==null?void 0:M.key)!==null&&ke!==void 0?ke:N}:N,Kt(M)]};if(P&&u){var fe=le(),Ke=k(fe,2),Xe=Ke[0],Qe=Ke[1];u(Xe,Qe)}else if(!P&&g&&F!=="clear"){var Ee=le(),Je=k(Ee,2),xt=Je[0],$t=Je[1];g(xt,$t)}},at=pn(function($,N){var P,F=ue?N.selected:!0;F?P=ue?[].concat(Ge(he),[$]):[$]:P=he.filter(function(le){return le.value!==$}),Fe(P),Ze($,F),o==="combobox"?De(""):(!Xt||p)&&(S(""),De(""))}),mt=function(N,P){Fe(N);var F=P.type,le=P.values;(F==="remove"||F==="clear")&&le.forEach(function(fe){Ze(fe.value,!1,F)})},Se=function(N,P){if(S(N),De(null),P.source==="submit"){var F=(N||"").trim();if(F){var le=Array.from(new Set([].concat(Ge(pe),[F])));Fe(le),Ze(F,!0),S("")}return}P.source!=="blur"&&(o==="combobox"&&Fe(N),f==null||f(N))},it=function(N){var P=N;o!=="tags"&&(P=N.map(function(le){var fe=R.get(le);return fe==null?void 0:fe.value}).filter(function(le){return le!==void 0}));var F=Array.from(new Set([].concat(Ge(pe),Ge(P))));Fe(F),F.forEach(function(le){Ze(le,!0)})},qe=r.useMemo(function(){var $=te!==!1&&h!==!1;return ee(ee({},D),{},{flattenOptions:ye,onActiveValue:vt,defaultActiveFirstOption:ft,onSelect:at,menuItemSelectedIcon:Q,rawValues:pe,fieldNames:j,virtual:$,direction:X,listHeight:ne,listItemHeight:re,childrenAsData:de,maxCount:Z,optionRender:W})},[Z,D,ye,vt,ft,at,Q,pe,j,te,h,X,ne,re,de,W]);return r.createElement(qt.Provider,{value:qe},r.createElement(kr,Ye({},be,{id:ce,prefixCls:i,ref:t,omitDomProps:Po,mode:o,displayValues:Ie,onDisplayValuesChange:mt,direction:X,searchValue:E,onSearch:Se,autoClearSearchValue:p,onSearchSplit:it,dropdownMatchSelectWidth:h,OptionList:Co,emptyOptions:!ye.length,activeValue:je,activeDescendantId:"".concat(ce,"_list_").concat(ot)})))}),Jt=No;Jt.Option=Zt;Jt.OptGroup=Qt;const _o=()=>{const[,e]=Ut(),n=new Tt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},zo=()=>{const[,e]=Ut(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:c}=r.useMemo(()=>({borderColor:new Tt(t).onBackground(a).toHexShortString(),shadowColor:new Tt(n).onBackground(a).toHexShortString(),contentColor:new Tt(o).onBackground(a).toHexShortString()}),[t,n,o,a]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:i},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},Lo=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:a,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Ho=yn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,a=It(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[Lo(a)]});var Fo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:o,image:a=zn,description:i,children:l,imageStyle:c,style:v}=e,m=Fo(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:f,direction:s,empty:p}=r.useContext(Gt),u=f("empty",o),[g,d,h]=Ho(u),[C]=nr("Empty"),b=typeof i<"u"?i:C==null?void 0:C.description,w=typeof b=="string"?b:"empty";let y=null;return typeof a=="string"?y=r.createElement("img",{alt:w,src:a}):y=a,g(r.createElement("div",Object.assign({className:Ve(d,h,u,p==null?void 0:p.className,{[`${u}-normal`]:a===Ln,[`${u}-rtl`]:s==="rtl"},t,n),style:Object.assign(Object.assign({},p==null?void 0:p.style),v)},m),r.createElement("div",{className:`${u}-image`,style:c},y),b&&r.createElement("div",{className:`${u}-description`},b),l&&r.createElement("div",{className:`${u}-footer`},l)))};ht.PRESENTED_IMAGE_DEFAULT=zn;ht.PRESENTED_IMAGE_SIMPLE=Ln;const Bo=e=>{const{componentName:t}=e,{getPrefixCls:n}=r.useContext(Gt),o=n("empty");switch(t){case"Table":case"List":return wt.createElement(ht,{image:ht.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return wt.createElement(ht,{image:ht.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});default:return wt.createElement(ht,null)}},Vo=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Ao(e,t){return e||Vo(t)}const Sn=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},Wo=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,c=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Yt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${a}${c}bottomLeft, diff --git a/public/assets/index-DTxLlwd8.js b/public/assets/index-CbmP82sr.js similarity index 95% rename from public/assets/index-DTxLlwd8.js rename to public/assets/index-CbmP82sr.js index b5a1694..5385aa0 100644 --- a/public/assets/index-DTxLlwd8.js +++ b/public/assets/index-CbmP82sr.js @@ -1 +1 @@ -import{r as t,E as te,F as re,H as oe,D as ne,v as se,I as _,aN as ae,a7 as X,o as M,t as ie,Q as le}from"./index--trdnQFa.js";import{R as ce}from"./MyApp-BHr373cy.js";import{r as de}from"./responsiveObserver-DiDk9dGL.js";import{a as ge}from"./useBreakpoint-QbbjxHKX.js";import{P as ue}from"./index-CU7pBSDU.js";const B=t.createContext({}),me=e=>{const{antCls:n,componentCls:s,iconCls:r,avatarBg:l,avatarColor:z,containerSize:y,containerSizeLG:x,containerSizeSM:f,textFontSize:g,textFontSizeLG:O,textFontSizeSM:N,borderRadius:u,borderRadiusLG:m,borderRadiusSM:E,lineWidth:R,lineType:w}=e,o=(v,p,$)=>({width:v,height:v,borderRadius:"50%",[`&${s}-square`]:{borderRadius:$},[`&${s}-icon`]:{fontSize:p,[`> ${r}`]:{margin:0}}});return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},oe(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:z,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:l,border:`${ne(R)} ${w} transparent`,"&-image":{background:"transparent"},[`${n}-image-img`]:{display:"block"}}),o(y,g,u)),{"&-lg":Object.assign({},o(x,O,m)),"&-sm":Object.assign({},o(f,N,E)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},pe=e=>{const{componentCls:n,groupBorderColor:s,groupOverlapping:r,groupSpace:l}=e;return{[`${n}-group`]:{display:"inline-flex",[`${n}`]:{borderColor:s},"> *:not(:first-child)":{marginInlineStart:r}},[`${n}-group-popover`]:{[`${n} + ${n}`]:{marginInlineStart:l}}}},ve=e=>{const{controlHeight:n,controlHeightLG:s,controlHeightSM:r,fontSize:l,fontSizeLG:z,fontSizeXL:y,fontSizeHeading3:x,marginXS:f,marginXXS:g,colorBorderBg:O}=e;return{containerSize:n,containerSizeLG:s,containerSizeSM:r,textFontSize:Math.round((z+y)/2),textFontSizeLG:x,textFontSizeSM:l,groupSpace:g,groupOverlapping:-f,groupBorderColor:O}},q=te("Avatar",e=>{const{colorTextLightSolid:n,colorTextPlaceholder:s}=e,r=re(e,{avatarBg:s,avatarColor:n});return[me(r),pe(r)]},ve);var fe=function(e,n){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(s[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const[s,r]=t.useState(1),[l,z]=t.useState(!1),[y,x]=t.useState(!0),f=t.useRef(null),g=t.useRef(null),O=se(n,f),{getPrefixCls:N,avatar:u}=t.useContext(_),m=t.useContext(B),E=()=>{if(!g.current||!f.current)return;const a=g.current.offsetWidth,i=f.current.offsetWidth;if(a!==0&&i!==0){const{gap:C=4}=e;C*2{z(!0)},[]),t.useEffect(()=>{x(!0),r(1)},[e.src]),t.useEffect(E,[e.gap]);const R=()=>{const{onError:a}=e;(a==null?void 0:a())!==!1&&x(!1)},{prefixCls:w,shape:o,size:v,src:p,srcSet:$,icon:b,className:T,rootClassName:F,alt:I,draggable:j,children:S,crossOrigin:k}=e,h=fe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),c=ae(a=>{var i,C;return(C=(i=v??(m==null?void 0:m.size))!==null&&i!==void 0?i:a)!==null&&C!==void 0?C:"default"}),G=Object.keys(typeof c=="object"?c||{}:{}).some(a=>["xs","sm","md","lg","xl","xxl"].includes(a)),A=ge(G),L=t.useMemo(()=>{if(typeof c!="object")return{};const a=de.find(C=>A[C]),i=c[a];return i?{width:i,height:i,fontSize:i&&(b||S)?i/2:18}:{}},[A,c]),d=N("avatar",w),H=X(d),[Q,J,K]=q(d,H),U=M({[`${d}-lg`]:c==="large",[`${d}-sm`]:c==="small"}),V=t.isValidElement(p),Y=o||(m==null?void 0:m.shape)||"circle",Z=M(d,U,u==null?void 0:u.className,`${d}-${Y}`,{[`${d}-image`]:V||p&&y,[`${d}-icon`]:!!b},K,H,T,F,J),ee=typeof c=="number"?{width:c,height:c,fontSize:b?c/2:18}:{};let P;if(typeof p=="string"&&y)P=t.createElement("img",{src:p,draggable:j,srcSet:$,onError:R,alt:I,crossOrigin:k});else if(V)P=p;else if(b)P=b;else if(l||s!==1){const a=`scale(${s})`,i={msTransform:a,WebkitTransform:a,transform:a};P=t.createElement(ce,{onResize:E},t.createElement("span",{className:`${d}-string`,ref:g,style:Object.assign({},i)},S))}else P=t.createElement("span",{className:`${d}-string`,style:{opacity:0},ref:g},S);return delete h.onError,delete h.gap,Q(t.createElement("span",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ee),L),u==null?void 0:u.style),h.style),className:Z,ref:O}),P))},D=t.forwardRef(Se),W=e=>{const{size:n,shape:s}=t.useContext(B),r=t.useMemo(()=>({size:e.size||n,shape:e.shape||s}),[e.size,e.shape,n,s]);return t.createElement(B.Provider,{value:r},e.children)},he=e=>{var n,s,r;const{getPrefixCls:l,direction:z}=t.useContext(_),{prefixCls:y,className:x,rootClassName:f,style:g,maxCount:O,maxStyle:N,size:u,shape:m,maxPopoverPlacement:E,maxPopoverTrigger:R,children:w,max:o}=e,v=l("avatar",y),p=`${v}-group`,$=X(v),[b,T,F]=q(v,$),I=M(p,{[`${p}-rtl`]:z==="rtl"},F,$,x,f,T),j=ie(w).map((h,c)=>le(h,{key:`avatar-key-${c}`})),S=(o==null?void 0:o.count)||O,k=j.length;if(S&&S{const{antCls:n,componentCls:s,iconCls:r,avatarBg:l,avatarColor:z,containerSize:y,containerSizeLG:x,containerSizeSM:f,textFontSize:g,textFontSizeLG:O,textFontSizeSM:N,borderRadius:u,borderRadiusLG:m,borderRadiusSM:E,lineWidth:R,lineType:w}=e,o=(v,p,$)=>({width:v,height:v,borderRadius:"50%",[`&${s}-square`]:{borderRadius:$},[`&${s}-icon`]:{fontSize:p,[`> ${r}`]:{margin:0}}});return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},oe(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:z,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:l,border:`${ne(R)} ${w} transparent`,"&-image":{background:"transparent"},[`${n}-image-img`]:{display:"block"}}),o(y,g,u)),{"&-lg":Object.assign({},o(x,O,m)),"&-sm":Object.assign({},o(f,N,E)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},pe=e=>{const{componentCls:n,groupBorderColor:s,groupOverlapping:r,groupSpace:l}=e;return{[`${n}-group`]:{display:"inline-flex",[`${n}`]:{borderColor:s},"> *:not(:first-child)":{marginInlineStart:r}},[`${n}-group-popover`]:{[`${n} + ${n}`]:{marginInlineStart:l}}}},ve=e=>{const{controlHeight:n,controlHeightLG:s,controlHeightSM:r,fontSize:l,fontSizeLG:z,fontSizeXL:y,fontSizeHeading3:x,marginXS:f,marginXXS:g,colorBorderBg:O}=e;return{containerSize:n,containerSizeLG:s,containerSizeSM:r,textFontSize:Math.round((z+y)/2),textFontSizeLG:x,textFontSizeSM:l,groupSpace:g,groupOverlapping:-f,groupBorderColor:O}},q=te("Avatar",e=>{const{colorTextLightSolid:n,colorTextPlaceholder:s}=e,r=re(e,{avatarBg:s,avatarColor:n});return[me(r),pe(r)]},ve);var fe=function(e,n){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(s[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const[s,r]=t.useState(1),[l,z]=t.useState(!1),[y,x]=t.useState(!0),f=t.useRef(null),g=t.useRef(null),O=se(n,f),{getPrefixCls:N,avatar:u}=t.useContext(_),m=t.useContext(B),E=()=>{if(!g.current||!f.current)return;const a=g.current.offsetWidth,i=f.current.offsetWidth;if(a!==0&&i!==0){const{gap:C=4}=e;C*2{z(!0)},[]),t.useEffect(()=>{x(!0),r(1)},[e.src]),t.useEffect(E,[e.gap]);const R=()=>{const{onError:a}=e;(a==null?void 0:a())!==!1&&x(!1)},{prefixCls:w,shape:o,size:v,src:p,srcSet:$,icon:b,className:T,rootClassName:F,alt:I,draggable:j,children:S,crossOrigin:k}=e,h=fe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),c=ae(a=>{var i,C;return(C=(i=v??(m==null?void 0:m.size))!==null&&i!==void 0?i:a)!==null&&C!==void 0?C:"default"}),G=Object.keys(typeof c=="object"?c||{}:{}).some(a=>["xs","sm","md","lg","xl","xxl"].includes(a)),A=ge(G),L=t.useMemo(()=>{if(typeof c!="object")return{};const a=de.find(C=>A[C]),i=c[a];return i?{width:i,height:i,fontSize:i&&(b||S)?i/2:18}:{}},[A,c]),d=N("avatar",w),H=X(d),[Q,J,K]=q(d,H),U=M({[`${d}-lg`]:c==="large",[`${d}-sm`]:c==="small"}),V=t.isValidElement(p),Y=o||(m==null?void 0:m.shape)||"circle",Z=M(d,U,u==null?void 0:u.className,`${d}-${Y}`,{[`${d}-image`]:V||p&&y,[`${d}-icon`]:!!b},K,H,T,F,J),ee=typeof c=="number"?{width:c,height:c,fontSize:b?c/2:18}:{};let P;if(typeof p=="string"&&y)P=t.createElement("img",{src:p,draggable:j,srcSet:$,onError:R,alt:I,crossOrigin:k});else if(V)P=p;else if(b)P=b;else if(l||s!==1){const a=`scale(${s})`,i={msTransform:a,WebkitTransform:a,transform:a};P=t.createElement(ce,{onResize:E},t.createElement("span",{className:`${d}-string`,ref:g,style:Object.assign({},i)},S))}else P=t.createElement("span",{className:`${d}-string`,style:{opacity:0},ref:g},S);return delete h.onError,delete h.gap,Q(t.createElement("span",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ee),L),u==null?void 0:u.style),h.style),className:Z,ref:O}),P))},D=t.forwardRef(Se),W=e=>{const{size:n,shape:s}=t.useContext(B),r=t.useMemo(()=>({size:e.size||n,shape:e.shape||s}),[e.size,e.shape,n,s]);return t.createElement(B.Provider,{value:r},e.children)},he=e=>{var n,s,r;const{getPrefixCls:l,direction:z}=t.useContext(_),{prefixCls:y,className:x,rootClassName:f,style:g,maxCount:O,maxStyle:N,size:u,shape:m,maxPopoverPlacement:E,maxPopoverTrigger:R,children:w,max:o}=e,v=l("avatar",y),p=`${v}-group`,$=X(v),[b,T,F]=q(v,$),I=M(p,{[`${p}-rtl`]:z==="rtl"},F,$,x,f,T),j=ie(w).map((h,c)=>le(h,{key:`avatar-key-${c}`})),S=(o==null?void 0:o.count)||O,k=j.length;if(S&&Si.map(i=>__vite__fileDeps[i]); -import{r as l,t as ke,I as ue,M as Ue,Z as Ee,o as G,E as Fe,F as He,H as Me,D as b,a3 as ge,a2 as Le,aN as We,aU as Ve,aI as qe,aC as Ke,au as Z,av as Y,aT as M,aA as r,aB as ce,ax as Ce,aV as Xe,aW as Ae,aF as w}from"./index--trdnQFa.js";import{H as oe,E as te,V as j,D as Oe,W as Qe,u as Je,d as Ze,g as se,t as ee,L as Ye,b as W,X as et,z as tt,Y as at,Q as rt,B as nt}from"./MyApp-BHr373cy.js";import{g as st,C as ot}from"./videos-CpxHGGu6.js";import{A as it}from"./index-DTxLlwd8.js";import{T as Ie}from"./index-VHrAsB-Q.js";import{g as lt}from"./PurePanel-CSR2tSBX.js";import{S as xe}from"./index-CETJ8txP.js";import{I as ct}from"./index-BCUBacY9.js";import{T as De}from"./index-DYW0YRm8.js";import{I as Te}from"./index-CB9InVBI.js";import{A as ye}from"./index-fivsYW1W.js";const{Option:Se}=xe;function je(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const dt=(e,a)=>{var t;const{prefixCls:n,className:i,popupClassName:m,dropdownClassName:d,children:f,dataSource:y}=e,x=ke(f);let u;x.length===1&&l.isValidElement(x[0])&&!je(x[0])&&([u]=x);const L=u?()=>u:void 0;let _;x.length&&je(x[0])?_=f:_=y?y.map(S=>{if(l.isValidElement(S))return S;switch(typeof S){case"string":return l.createElement(Se,{key:S,value:S},S);case"object":{const{value:C}=S;return l.createElement(Se,{key:C,value:C},S.text)}default:return}}):[];const{getPrefixCls:v}=l.useContext(ue),g=v("select",n),[O]=Ue("SelectLike",(t=e.dropdownStyle)===null||t===void 0?void 0:t.zIndex);return l.createElement(xe,Object.assign({ref:a,suffixIcon:null},Ee(e,["dataSource","dropdownClassName"]),{prefixCls:g,popupClassName:m||d,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:O}),className:G(`${g}-auto-complete`,i),mode:xe.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:L}),_)},he=l.forwardRef(dt),ut=lt(he);he.Option=Se;he._InternalPanelDoNotUseOrYouWillBeFired=ut;var gt=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var{prefixCls:a,className:t,hoverable:n=!0}=e,i=gt(e,["prefixCls","className","hoverable"]);const{getPrefixCls:m}=l.useContext(ue),d=m("card",a),f=G(`${d}-grid`,t,{[`${d}-grid-hoverable`]:n});return l.createElement("div",Object.assign({},i,{className:f}))},ht=e=>{const{antCls:a,componentCls:t,headerHeight:n,cardPaddingBase:i,tabsMarginBottom:m}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${b(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${b(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${b(e.borderRadiusLG)} ${b(e.borderRadiusLG)} 0 0`},ge()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Le),{[` +const __vite__fileDeps=["./Tagged-BpaY0RYJ.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./MyApp-CmkiOnMb.js","./MyTable-C-6hHnGo.js","./index-NjHtWr7u.js","./Table-By6CV266.js","./index-Bumumc8Y.js","./addEventListener-w7NT04KM.js","./index-CKsES7YN.js","./PurePanel-yY9muMEs.js","./SearchOutlined-DvnHgzkc.js","./index-tTPNrueW.js","./index-4qwk-lHW.js","./Dropdown-DxSI4NN9.js","./useBreakpoint-CDLrV-mr.js","./responsiveObserver-Bb1LONna.js","./Pagination-slfcHA-i.js","./index-BbXfI1Nu.js","./EyeOutlined-Du2MtFRM.js","./row-C0Wk6t4-.js","./ExportButton-DABx3myg.js","./file-download-Dys_FsHc.js","./index-Dm20K0UU.js","./About-rI7IiLNs.js","./Stories-CtgzOA59.js","./Collection-B9SxfYr4.js","./index-B7udrguy.js","./index-uPrgDTc-.js","./icons-CG0UnJU2.js","./stories-B17I0-Ef.js","./index-BhyNApA-.js","./Albums-BbbQfFVD.js","./albums-BXb2vQdB.js","./Videos-CSQOUGHs.js","./videos-VQJKJ_Wq.js","./ImageLazyPreview-DbcS5lXO.js","./Photos-B_eAw90j.js","./Album-D1OPne59.js","./VideoWithMuted-CdYhYcjW.js","./Reels-lb_FCiY2.js","./LikedPages-Bsy9eM3i.js","./pages-BWB-tC3I.js","./JoinedGroups-Bc9669jg.js","./useForceStop-DOwcs-PE.js","./groups-DGwrOePX.js","./CheckedIns-Betwun6X.js","./GroupFiles-DQveYTaN.js","./GroupMembers-Chpl4Jw5.js","./index-CbmP82sr.js","./index-Dg6R6lHP.js","./PostMediaset-DKgg-CiD.js","./IGStories-BI3Jj1hq.js","./index-C9vPYMV7.js","./IGPosts-B6k1_Vjg.js","./IGReels-Bz59aqZM.js","./IGHighlights-B2M-y0e6.js","./highlights-DQPggAnb.js","./IGHighlightMedias-Cnz2RLCm.js","./TiktokUserVideos-CYeT8tUi.js","./ThreadsPosts-DTNKUpAv.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{r as l,t as ke,I as ue,M as Ue,Z as Ee,o as G,E as Fe,F as He,H as Me,D as b,a3 as ge,a2 as Le,aN as We,aU as Ve,aI as qe,aC as Ke,au as Z,av as Y,aT as M,aA as r,aB as ce,ax as Ce,aV as Xe,aW as Ae,aF as w}from"./index-BBriuzNA.js";import{H as oe,E as te,V as j,D as Oe,W as Qe,u as Je,d as Ze,g as se,t as ee,L as Ye,b as W,X as et,z as tt,Y as at,Q as rt,B as nt}from"./MyApp-CmkiOnMb.js";import{g as st,C as ot}from"./videos-VQJKJ_Wq.js";import{A as it}from"./index-CbmP82sr.js";import{T as Ie}from"./index-Bumumc8Y.js";import{g as lt}from"./PurePanel-yY9muMEs.js";import{S as xe}from"./index-CKsES7YN.js";import{I as ct}from"./index-BbXfI1Nu.js";import{T as De}from"./index-C9vPYMV7.js";import{I as Te}from"./index-Dm20K0UU.js";import{A as ye}from"./index-BhyNApA-.js";const{Option:Se}=xe;function je(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const dt=(e,a)=>{var t;const{prefixCls:n,className:i,popupClassName:m,dropdownClassName:d,children:f,dataSource:y}=e,x=ke(f);let u;x.length===1&&l.isValidElement(x[0])&&!je(x[0])&&([u]=x);const L=u?()=>u:void 0;let _;x.length&&je(x[0])?_=f:_=y?y.map(S=>{if(l.isValidElement(S))return S;switch(typeof S){case"string":return l.createElement(Se,{key:S,value:S},S);case"object":{const{value:C}=S;return l.createElement(Se,{key:C,value:C},S.text)}default:return}}):[];const{getPrefixCls:v}=l.useContext(ue),g=v("select",n),[O]=Ue("SelectLike",(t=e.dropdownStyle)===null||t===void 0?void 0:t.zIndex);return l.createElement(xe,Object.assign({ref:a,suffixIcon:null},Ee(e,["dataSource","dropdownClassName"]),{prefixCls:g,popupClassName:m||d,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:O}),className:G(`${g}-auto-complete`,i),mode:xe.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:L}),_)},he=l.forwardRef(dt),ut=lt(he);he.Option=Se;he._InternalPanelDoNotUseOrYouWillBeFired=ut;var gt=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var{prefixCls:a,className:t,hoverable:n=!0}=e,i=gt(e,["prefixCls","className","hoverable"]);const{getPrefixCls:m}=l.useContext(ue),d=m("card",a),f=G(`${d}-grid`,t,{[`${d}-grid-hoverable`]:n});return l.createElement("div",Object.assign({},i,{className:f}))},ht=e=>{const{antCls:a,componentCls:t,headerHeight:n,cardPaddingBase:i,tabsMarginBottom:m}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${b(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${b(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${b(e.borderRadiusLG)} ${b(e.borderRadiusLG)} 0 0`},ge()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Le),{[` > ${t}-typography, > ${t}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${a}-tabs-top`]:{clear:"both",marginBottom:m,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${b(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},mt=e=>{const{cardPaddingBase:a,colorBorderSecondary:t,cardShadow:n,lineWidth:i}=e;return{width:"33.33%",padding:a,border:0,borderRadius:0,boxShadow:` @@ -8,4 +8,4 @@ import{r as l,t as ke,I as ue,M as Ue,Z as Ee,o as G,E as Fe,F as He,H as Me,D a ${b(i)} ${b(i)} 0 0 ${t}, ${b(i)} 0 0 0 ${t} inset, 0 ${b(i)} 0 0 ${t} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},pt=e=>{const{componentCls:a,iconCls:t,actionsLiMargin:n,cardActionsIconSize:i,colorBorderSecondary:m,actionsBg:d}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:d,borderTop:`${b(e.lineWidth)} ${e.lineType} ${m}`,display:"flex",borderRadius:`0 0 ${b(e.borderRadiusLG)} ${b(e.borderRadiusLG)}`},ge()),{"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${a}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:b(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:i,lineHeight:b(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${b(e.lineWidth)} ${e.lineType} ${m}`}}})},ft=e=>Object.assign(Object.assign({margin:`${b(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},ge()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Le),"&-description":{color:e.colorTextDescription}}),bt=e=>{const{componentCls:a,cardPaddingBase:t,colorFillAlter:n}=e;return{[`${a}-head`]:{padding:`0 ${b(t)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${a}-body`]:{padding:`${b(e.padding)} ${b(t)}`}}},yt=e=>{const{componentCls:a}=e;return{overflow:"hidden",[`${a}-body`]:{userSelect:"none"}}},vt=e=>{const{antCls:a,componentCls:t,cardShadow:n,cardHeadPadding:i,colorBorderSecondary:m,boxShadowTertiary:d,cardPaddingBase:f,extraColor:y}=e;return{[t]:Object.assign(Object.assign({},Me(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:d},[`${t}-head`]:ht(e),[`${t}-extra`]:{marginInlineStart:"auto",color:y,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:f,borderRadius:`0 0 ${b(e.borderRadiusLG)} ${b(e.borderRadiusLG)}`},ge()),[`${t}-grid`]:mt(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${a}-image-mask`]:{borderRadius:`${b(e.borderRadiusLG)} ${b(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:pt(e),[`${t}-meta`]:ft(e)}),[`${t}-bordered`]:{border:`${b(e.lineWidth)} ${e.lineType} ${m}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${b(e.borderRadiusLG)} ${b(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:i}}},[`${t}-type-inner`]:bt(e),[`${t}-loading`]:yt(e),[`${t}-rtl`]:{direction:"rtl"}}},xt=e=>{const{componentCls:a,cardPaddingSM:t,headerHeightSM:n,headerFontSizeSM:i}=e;return{[`${a}-small`]:{[`> ${a}-head`]:{minHeight:n,padding:`0 ${b(t)}`,fontSize:i,[`> ${a}-head-wrapper`]:{[`> ${a}-extra`]:{fontSize:e.fontSize}}},[`> ${a}-body`]:{padding:t}},[`${a}-small${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},St=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),wt=Fe("Card",e=>{const a=He(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[vt(a),xt(a)]},St);var _e=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{actionClasses:a,actions:t=[],actionStyle:n}=e;return l.createElement("ul",{className:a,style:n},t.map((i,m)=>{const d=`action-${m}`;return l.createElement("li",{style:{width:`${100/t.length}%`},key:d},l.createElement("span",null,i))}))},At=l.forwardRef((e,a)=>{const{prefixCls:t,className:n,rootClassName:i,style:m,extra:d,headStyle:f={},bodyStyle:y={},title:x,loading:u,bordered:L=!0,size:_,type:v,cover:g,actions:O,tabList:S,children:C,activeTabKey:N,defaultActiveTabKey:z,tabBarExtraContent:c,hoverable:R,tabProps:k={},classNames:D,styles:U}=e,V=_e(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:H,direction:q,card:P}=l.useContext(ue),K=E=>{var T;(T=e.onTabChange)===null||T===void 0||T.call(e,E)},I=E=>{var T;return G((T=P==null?void 0:P.classNames)===null||T===void 0?void 0:T[E],D==null?void 0:D[E])},B=E=>{var T;return Object.assign(Object.assign({},(T=P==null?void 0:P.styles)===null||T===void 0?void 0:T[E]),U==null?void 0:U[E])},X=l.useMemo(()=>{let E=!1;return l.Children.forEach(C,T=>{T&&T.type&&T.type===ze&&(E=!0)}),E},[C]),p=H("card",t),[Q,ae,me]=wt(p),pe=l.createElement(Ve,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),ie=N!==void 0,fe=Object.assign(Object.assign({},k),{[ie?"activeKey":"defaultActiveKey"]:ie?N:z,tabBarExtraContent:c});let re;const F=We(_),le=!F||F==="default"?"large":F,ne=S?l.createElement(De,Object.assign({size:le},fe,{className:`${p}-head-tabs`,onChange:K,items:S.map(E=>{var{tab:T}=E,be=_e(E,["tab"]);return Object.assign({label:T},be)})})):null;if(x||d||ne){const E=G(`${p}-head`,I("header")),T=G(`${p}-head-title`,I("title")),be=G(`${p}-extra`,I("extra")),$e=Object.assign(Object.assign({},f),B("header"));re=l.createElement("div",{className:E,style:$e},l.createElement("div",{className:`${p}-head-wrapper`},x&&l.createElement("div",{className:T,style:B("title")},x),d&&l.createElement("div",{className:be,style:B("extra")},d)),ne)}const o=G(`${p}-cover`,I("cover")),s=g?l.createElement("div",{className:o,style:B("cover")},g):null,h=G(`${p}-body`,I("body")),A=Object.assign(Object.assign({},y),B("body")),$=l.createElement("div",{className:h,style:A},u?pe:C),J=G(`${p}-actions`,I("actions")),Be=O&&O.length?l.createElement(Ct,{actionClasses:J,actionStyle:B("actions"),actions:O}):null,Ne=Ee(V,["onTabChange"]),Ge=G(p,P==null?void 0:P.className,{[`${p}-loading`]:u,[`${p}-bordered`]:L,[`${p}-hoverable`]:R,[`${p}-contain-grid`]:X,[`${p}-contain-tabs`]:S&&S.length,[`${p}-${F}`]:F,[`${p}-type-${v}`]:!!v,[`${p}-rtl`]:q==="rtl"},n,i,ae,me),Re=Object.assign(Object.assign({},P==null?void 0:P.style),m);return Q(l.createElement("div",Object.assign({ref:a},Ne,{className:Ge,style:Re}),re,s,$,Be))});var It=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:a,className:t,avatar:n,title:i,description:m}=e,d=It(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:f}=l.useContext(ue),y=f("card",a),x=G(`${y}-meta`,t),u=n?l.createElement("div",{className:`${y}-meta-avatar`},n):null,L=i?l.createElement("div",{className:`${y}-meta-title`},i):null,_=m?l.createElement("div",{className:`${y}-meta-description`},m):null,v=L||_?l.createElement("div",{className:`${y}-meta-detail`},L,_):null;return l.createElement("div",Object.assign({},d,{className:x}),u,v)},de=At;de.Grid=ze;de.Meta=Tt;function wa(e={},a="https://www.instagram.com/graphql/query"){return Oe(e,a)}function Ca(e){return`https://www.instagram.com/${e}`}async function jt(e){var i,m;let a=await oe("https://www.instagram.com/web/search/topsearch/?query="+e),t=te(a);if(t.status!="ok")throw Error("Server response error");const n=(m=(i=t==null?void 0:t.users)==null?void 0:i.find(d=>{var f;return((f=d==null?void 0:d.user)==null?void 0:f.username)==e}))==null?void 0:m.user;if(!n)throw Error("Instagram user not found");return{avatar:n==null?void 0:n.profile_pic_url,avatarBig:n==null?void 0:n.profile_pic_url,id:n==null?void 0:n.id,name:(n==null?void 0:n.full_name)||(n==null?void 0:n.username),username:e,type:j.IGUser,url:`https://www.instagram.com/${n==null?void 0:n.username}`,raw:t}}function Aa(e){var a,t,n;return e!=null&&e.length?!e[0].width||!e[0].height?(a=e.find(i=>i.type=="101")||e[0])==null?void 0:a.url:(n=(t=e==null?void 0:e.sort((i,m)=>m.width*m.height-i.width*i.height))==null?void 0:t[0])==null?void 0:n.url:null}function _t(e=""){var a,t;return((a=/instagram.com\/stories\/([^\/]+)/.exec(e))==null?void 0:a[1])||((t=/instagram.com\/([^\/]+)/.exec(e))==null?void 0:t[1])}function Pt(e){const a=l.useRef();return l.useEffect(()=>{a.current=e},[e]),a.current}const ve={cfrsToken:null,fb_dtsg:null};async function Et(){var e;if(!ve.fb_dtsg)try{const a=await oe("https://www.threads.net"),t=new DOMParser().parseFromString(a,"text/html");ve.fb_dtsg=te(((e=t==null?void 0:t.querySelector("#__eqmc"))==null?void 0:e.textContent)||"{}").f}catch(a){console.log(a)}return ve.fb_dtsg}async function Lt(e={},a="https://www.threads.net/api/graphql"){const t=await Et();if(!t)throw new Error(Qe({en:"Cannot find dtsg token",vi:"Không lấy được dtsg token"}));return Oe(e,a,!0,{fb_dtsg:t})}function Ot(e=""){var a,t;return((a=/www.threads.net\/@([^\/]+)/.exec(e))==null?void 0:a[1])||((t=/instagram.com\/([^\/]+)/.exec(e))==null?void 0:t[1])}async function Dt(e=""){var n,i,m,d,f,y,x,u,L,_,v,g,O,S;const a=await Lt({fb_api_req_friendly_name:"BarcelonaUsernameHoverCardImplQuery",variables:{username:e,__relay_internal__pv__BarcelonaShouldShowFediverseM075Featuresrelayprovider:!1},doc_id:"7679337195500348"}),t=te(a);return console.log(t),{id:(i=(n=t==null?void 0:t.data)==null?void 0:n.user)==null?void 0:i.id,name:(d=(m=t==null?void 0:t.data)==null?void 0:m.user)==null?void 0:d.full_name,username:(y=(f=t==null?void 0:t.data)==null?void 0:f.user)==null?void 0:y.username,avatar:(u=(x=t==null?void 0:t.data)==null?void 0:x.user)==null?void 0:u.profile_pic_url,avatarBig:(S=(O=(g=(v=(_=(L=t==null?void 0:t.data)==null?void 0:L.user)==null?void 0:_.hd_profile_pic_versions)==null?void 0:v.sort)==null?void 0:g.call(v,(C,N)=>N.width*N.height-C.width*C.height))==null?void 0:O[0])==null?void 0:S.url,type:j.ThreadsUser,url:zt("@"+e),raw:t}}function zt(e=""){return`https://www.threads.net/${e}`}async function Bt(e){var a,t;try{const i=(a=(await oe(e)).match(/__UNIVERSAL_DATA_FOR_REHYDRATION__\" type=\"application\/json\">(.*?)<\/script>/))==null?void 0:a[1],m=te(i);console.log(m);const{user:d,stats:f}=m.__DEFAULT_SCOPE__["webapp.user-detail"].userInfo;return{id:d.id,nickname:d.nickname,secUid:d.secUid,uniqueId:d.uniqueId,avatar:d.avatarLarger||d.avatarMedium||d.avatarThumb,createTime:d.createTime,verified:d.verified,language:d.language,region:d.region,signature:d.signature,bioLink:(t=d.bioLink)==null?void 0:t.link,followerCount:f.followerCount,followingCount:f.followingCount,friendCount:f.friendCount,videoCount:f.videoCount,heartCount:f.heartCount}}catch(n){return console.log(n),null}}function Nt(e){var a;return console.log(e),{id:e.id,cover:e.cover,dynamicCover:e.dynamicCover,zoomCover:e.zoomCover,originCover:e.originCover,width:e.width,height:e.height,duration:e.duration,ratio:e.ratio,definition:e.definition,codecType:e.codecType,format:e.format,videoQuality:e.videoQuality,downloadAddr:e.downloadAddr,playAddr:e.playAddr,variants:((a=e.bitrateInfo)==null?void 0:a.map(t=>({bitrate:t.Bitrate,codecType:t.CodecType,gearName:t.GearName,width:t.PlayAddr.Width,height:t.PlayAddr.Height,dataSize:t.PlayAddr.DataSize,urls:t.PlayAddr.UrlList})))||[],raw:e}}async function Gt(e,a){const t=await oe(`https://douyin.wtf/api/tiktok/web/generate_xbogus?url=${e}&user_agent=${a}`),n=te(t||"{}");return console.log(n),n.data}async function Ia(e,a="0",t=30){var x;const n="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.53",i="https://www.tiktok.com/api/post/item_list/?"+new URLSearchParams({secUid:e,count:t.toString(),cursor:a.toString(),coverFormat:"2",aid:"1988",app_name:"tiktok_web",browser_language:"en-US",browser_name:"Mozilla",browser_online:"true",browser_platform:"MacIntel",browser_version:n,os:"mac",device_id:"7394501257615323277938",device_platform:"web_pc",region:"VN",screen_width:"1920",screen_height:"1080"}).toString(),m=await Gt(i,"Mozilla/"+n),d=await oe(m.url);console.log(d);const f=te(d),y=f==null?void 0:f.data;return((x=y==null?void 0:y.itemList)==null?void 0:x.map(u=>{var L,_,v,g,O,S,C,N,z,c,R,k,D,U,V,H,q,P,K,I,B,X,p;return{id:u.id,desc:u.desc,createTime:u.createTime,video:Nt(u.video),challenges:(L=u.challenges)==null?void 0:L.map(Q=>({id:Q.id,title:Q.title})),stats:{collectCount:(_=u.stats)==null?void 0:_.collectCount,commentCount:(v=u.stats)==null?void 0:v.commentCount,diggCount:(g=u.stats)==null?void 0:g.diggCount,playCount:(O=u.stats)==null?void 0:O.playCount,shareCount:(S=u.stats)==null?void 0:S.shareCount},author:{id:(C=u.author)==null?void 0:C.id,nickname:(N=u.author)==null?void 0:N.nickname,secUid:(z=u.author)==null?void 0:z.secUid,signature:(c=u.author)==null?void 0:c.signature,uniqueId:(R=u.author)==null?void 0:R.uniqueId,verified:(k=u.author)==null?void 0:k.verified,avatar:((D=u.author)==null?void 0:D.avatarLarger)||((U=u.author)==null?void 0:U.avatarMedium)||((V=u.author)==null?void 0:V.avatarThumb)},music:{id:(H=u.music)==null?void 0:H.id,author:(q=u.music)==null?void 0:q.author,title:(P=u.music)==null?void 0:P.title,playUrl:(K=u.music)==null?void 0:K.playUrl,original:(I=u.music)==null?void 0:I.original,cover:((B=u.music)==null?void 0:B.coverLarger)||((X=u.music)==null?void 0:X.coverMedium)||((p=u.music)==null?void 0:p.coverThumb)},cursor:y==null?void 0:y.cursor,raw:y}}))||[]}const Rt=""+new URL("fb_get_id-CRQt-p2p.png",import.meta.url).href,$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAMAAADwSaEZAAAC91BMVEVHcEz0Cp9zGfx6F/rtE577hBb3E5VgGUXVN5SZF/x7GPveAMFvF/38MmbeAMCAGfz8lQXaAMf7dAj9dAP8Yxj7TDr9twT7rwn7UTT3B5r8mAf8kgb9hQP8QUj9IYf9qwPPANT8vQX//v7////9AWL+Ab7/9fv9AGf+zQD+yQD9Am3+Abn+AbJvFf3+AsP/6/D+AYL+AnT9Anv+JHSBF/14F/3+wQD+IXr+AYn+AF/+HYH+Fof+xQD+LGb+Qzr9SzX+Xyb+uAD+E5D+US/WANj+WCr+vgD+qgL+J27+uwD+AJD+jBPjANf+pAL+LlX+M07/+fqKF/3+lgH+kATQAdr+OVzrFNb+AJz96Pr+AJb+AKPcANaRF/3+ghL9Aqr9Kl3+ggL+rwDKAt3+EWf+igH+OT/+tAD8XAbrANXxA9H+bRv+Okn+M2L+egLwAMagF/z+nQD+ZyH+eyL+biz0GsP+Zy/EAd3+ehX3CcmoF/v+IlL9P0P/+vb+Epi5At7+lQ/+dCf+E3DFGvj+hB3+CbDzAKv+dBj+SB/+Dlz/y+r+K879ZQHoAL/gFNyxGfv+Flv+K2z+9ufzALr+QSr+Kkz+bAL+cwL9IoiwA+CECe7mAM7vFs7+4eTSHPP+OzX+SFH9HWT+nAj+E63cGu7+sD36Hav+MUf+M0P+WDb7HqD+RkH1AJ6oBOLABOH+Hln8UQ/lGuj+EqT+FXz+3fX+UD39IJaeBOOhDPG6Gvr+VBf+19L+Yjj9IpB4DfaSBeX8D8H+ydX3G7b+uxbfAMiRC/H+O1P9E7ivDe//s97+Yxj9UMP+Crf+8dz3G9L2yvn4AI//acz9L6P7OtLoG93+Q1nsALT9P3i4Cej43vz+XVz9QbjwGt/+xLX+kM72rPL+iZn+nT/+6cj+qbP+VnD+l2j+LX/+qR/7Krz5euP+c0j8Q5P+jE6/NPb+Y43eg/f6Vtf+b7fqTeX+26r+o4n+t3/+g3X+hqvhYe7+W6X+0Gv+d2T+eH/+13zfzAvcAAAAInRSTlMAxJxAQD91Ag7+cH7Xoa+9jM9wweVwwHDB5aur1dXV1eXlAqe68wAACsdJREFUeF5k1E9IYmsYx/EzU0xNDcUs7+7ioTNwPfMX48p1F62khcFQWtJiVrlpNhLNwhZRizPoXbixkjaKi6iB6z14bwu7EoWJkakRiRfdKkNorZrl/T3POaeXvF9L5AU/Pr7vi5JosG9o9MVro8PXh2iL+of6C+3v729ubq6urn779m15efnTp48ffx4Z7h8UgqCGLOj/lJCQIYFCk5OTxy+He7iBgT5BjY8fjguqR2JISJPH6GX/AAT8m2M9FRIsh2NreusEsWRBcAREzc9PHs8fUxiu1xrnHA4HJEpIDAmHIWRS4XB4BDtnWUIianraf3LyNzrdF5JwCJqix9Q2dRyGdjUyaAw28JQlQZ34mdo/3bym7WboQTGDZFjh7TC6uhpmbKDvEeX3+58/p6lOr6+vQdEemY5ocWoRMbbEFuqXwA2+YKmXOiWKJAERIdoOBAJLVDjK2BPatiFALCGiPn/+IqgINyNaDJhBIouxKKyNjWcYbLSXgnVz32mWSrVazduTruulUrPdPQ8EVgwtiq6iGwij9TmmIRFlWTedks0my7L5JDIXPFi3ldrnK1TU0Ajb65eGGOKpmPq9U7PJNlIeaUSTJpb09sqbN9ExUCpTe3vPpFE/siiMVWLKChyLzPcuaV/HxsbsdtXSnkhQGEIY66bGw1h/HqUnjzGlqepf7faoqm4sLGzsoZ8kUiwKFghyas323V0Vfe2tWu22m7q5g3rLrqoqrDnCLqQvHCB0YOy80ryLRPgSrGBb0Bgej6s2FZ5POyNrYW5ub/bi4kJixaAOOmx57yORqZnFOFO5N2NWAqS1rpdPqa2CImuPsAOrtQPaMJvsveNbGliBlSPDjgSIB2evemHJep6s2Vmfj7A1KIDWUIcOXcFcEcwFK5cj6QwPSoi5ajWHQywqpJUNyudmzGhnbWenRIM1aa54nKic/QypnF3U1elWYK0gI40tt/vC6XRKOyK+PnfCImqdeuS1vGzkVbXOu5Ziy+10vnsnJXeScPCcvOc7cckWqDwkEWksql3jxtZxiDodWJEsJ1kfpKRRJBnpAJOboOLBYC6fz68n1hMJvCVRL5bLxZbllSFAAzZXAGpruE0L2B9GyUikaUNtooKgElQ6nSgWvIoNKd5Ckb2WIiM9gUMsy6gAi6kPFnaJSjLqwjo6YiqNihrG4DCPTSsuoDI0b5EOsUgjFpyW9V76F11SMyV6RxfUEUtot4HTJ4YtvFQa69Ba5XKKrNk6fwJboN4Do2Zo13V6XxFWKpXeTe+GQhXNxkEhil8UEnOIKZ+vQusabT1bv0jnKH4eD8aDukxYKrWLQpnQREYzf228WqGg8X1HhTRLfE8r5OtOy2IsyLW8GMJTh5QJZTITE9mGMZV2WwmhStm0Gxbldlc8hLlMClgw1wq2aKOAybKnnslks9mYK+b64eHf6EZ2AoWohkK4UvcRhZwVWnjrMq1Xr6T8EUqhCk2mfM/GYrHfUIw3zHPrcrlIY++WL4kWYgqHmFEw69s/TQsYObsoU3mLyZTvkH6lfvAZNsA+cL5Qgw+iThR6R5gMDBQsYGB2+av9V4a9hLSV9mEAPwO142ag9D6372Oi9LbJ2EDtzSRWMk1HNKHiYhZiS6pCVGgUEUyGNghq6UKLt01oUpAaXGRA2oVxFlIIVMhmIASEQBqNBVuE4o3eFvM8/zfnHNt5ootE/Pn83/O+x5A3Cqu2SdwvuUCR9erL5AzvAa/sS1LcD3+fsrCZblVqskTIOjCO6XaP4eEe4zPLng0ddY7eO75qvQYKOQ/MQkxRlZXatMyFPlli3myNpHXTy7XNoqPBMc/lL/4j1HlgKApMLGJ0bGgylrVyi6+1qmxyyZZQ0W1w4j3gor0HhVRNqzUTSzBC0qWENarkBaupAcd29CS8IVreCVUFjGsWJqUwMAiADCcIrXmQlMeT59lZ6uoCZ3rz88DQ7N18VZj7QcfgXBIMEAIhg2aWUyudEs8nHp5kc5fJKU8u5/twWLbWulyAsFCCAUKePp2NcmuEVtra2oLBzs41uQBrzSUOno1Z51p434SRc77T67gAxC4xxCaeApoFEWWz0IrdHrQHg0GhK/KpZnCIcOi3xyWz2sJhH6JjgGARg0Tq8WM2I6Yyl+OvRTIpg6M3FpHbkC9Gq9KHMXE1w3qx05pIiP2ZtYKYwzHucDjs9l1577IaTZHTp92Te+RmLAZtxDcCDD19unVag4OMj48Tqwht1I3XOZhnSc7pzUejmUymxO15WXdpDNjo6OjISJabVsd4NilJ4sS8G3XDdUzcsSu/GVqNIspbhQV/szWRSIiWBW4xsXOaQMOIK8Lb14ZrwYWQW7XIpJH8Crm1fARPOTm2ZQKBluXbtYhPt4gN03IRg7axsOAk54y7Fjkov04ll5aSvNYyZHMjkhhIJAZGs1zXyIiJQUIWkAibbCw7l50Sl2sjue8fE1vSynhgDTQOMCUMmlhVmlASWfG3y5JAwNnn7FvMeQHoEm8qq5mUB5mYmCC2xrZLCsOBOK8N/8UsdHR0JC1IEZJ/2R9g+vr6inxRqtFLfop2ItSE20RvYiOYEtZ5zbAe5thiZ3LSP+n3D/n9gfuB3t6+3mLOGqLnteZ2o3Nzc8EgOJwacnJrWR1BOKTCOkg9fLjDArmpoakhfCH3kV56b4vb27sfF+PPEHLwZmfJrbLu3iiaCfarZliTRRZI93cj/RLd60MWFxfjiqPW1jYLziOXbBMbzueDBUynJicHZW1edXe3dLe0tPS39PTj0dOj+ikuTg5nzd5Gbk3WsitBjMUuaro1NdVd4MXfuqUCb7BlcHCwB1EcPXIOXctVIMkBbF+fL1zCSNHqlkULzdxB6vmorwemPH1cajy75D55uTPy2L4xYLB+12gJ1X2rPs01eDTTJLnX1FTPmJ5wTle8ro7aRytXLNI8MJCIxcLheWKmdevOjoV5NHNTck8inslRc1HbtXJIS35Cx65c/EMTCxSsO02FCia0NfPk7t27TxADNLgAT1r8Y+lsLGH7NhKbn79y7U9gtEDBanqdrpBY0lsfZoy8mnml8pYpFrdzEa4utMgKtltjayzmVthRZZHCaDNp/fjICfKGvgr6yEP9OLLSht3W2Noas1UD+147ss/CbK8LYBDzzSdR8w+ob2UlV7BDOgVzV1++cu0b7bCyQMFqaGi4/jldsqiKrOtfvhTZxvYNBoE1ttYIdlArM3uJdf32iw8FUDpAwqyqP/EmtxdxTe3QPB6FTT8/oJUfoSUjCnX7dnt7+4sPn7cKhXQ6/eir4KVCYWunuBHgDnFINcFsl6f5KclhhalaQtXW1t6Q/PbCzGsJtgmOLW9Q2CBSTWFjwA7y45ufxAKmU2SM3LhRW9vejsLXGxq47+pNTa+Wau4as1X/r1xDykyLlJIu6BEPHDRwphZQg9rnBKtxrx9QHxEeAsYZlWVAV6+aHNuZGrAhfVBiKbwXwZAYE4P+iGJisZZyVM5eVSLLiSaTflHNoap9V05LtB9kSN1SjoQaPSmntJtSrV+qGRgsI+WHGqQYLVMyPZaTbhj062q4jaf2WfxgtOz/KMb1UtSZs2eY/2pSrYmrZlb7+QAmhKEwguUnjksxZe2LzlEjBg0YtBJ28lg5IFjUzFnLThz/5QIsAzO5Ujeumon5nUdPHivjhCXmX0CYR7onC0e9AAAAAElFTkSuQmCC",kt=l.lazy(()=>w(()=>import("./Tagged-DMRglDWE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url)),Ut=l.lazy(()=>w(()=>import("./About-BcXrxgjq.js"),__vite__mapDeps([24,1,2,3]),import.meta.url)),Ft=l.lazy(()=>w(()=>import("./Stories-Cd_fHXUc.js"),__vite__mapDeps([25,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,29,30,31,23,8]),import.meta.url)),Ht=l.lazy(()=>w(()=>import("./Albums-B4AwMLXs.js"),__vite__mapDeps([32,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,33,31,23,8]),import.meta.url)),Mt=l.lazy(()=>w(()=>import("./Videos-Csu7HQR5.js"),__vite__mapDeps([34,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,35,36,23,8]),import.meta.url)),Wt=l.lazy(()=>w(()=>import("./Photos-BePgNF2g.js"),__vite__mapDeps([37,1,2,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28]),import.meta.url)),Vt=l.lazy(()=>w(()=>import("./Album-BpsKpRpm.js"),__vite__mapDeps([38,1,2,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,33,35,39,23,8]),import.meta.url)),qt=l.lazy(()=>w(()=>import("./Reels-tf46zqUU.js"),__vite__mapDeps([40,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,35]),import.meta.url)),Kt=l.lazy(()=>w(()=>import("./LikedPages-Dxytc2a9.js"),__vite__mapDeps([41,1,2,3,21,22,13,14,10,26,5,12,18,7,19,11,27,17,15,16,9,20,28,42,31,23,8]),import.meta.url)),Xt=l.lazy(()=>w(()=>import("./JoinedGroups-rxqInn3t.js"),__vite__mapDeps([43,1,2,3,44,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,45,23,31]),import.meta.url)),Qt=l.lazy(()=>w(()=>import("./CheckedIns-8WVaxpsF.js"),__vite__mapDeps([46,1,2,3,44,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,31]),import.meta.url)),Jt=l.lazy(()=>w(()=>import("./GroupFiles-D5TDbajV.js"),__vite__mapDeps([47,1,2,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,23,8]),import.meta.url)),Zt=l.lazy(()=>w(()=>import("./GroupMembers-DssH4ITR.js"),__vite__mapDeps([48,1,2,44,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,45,49,50,23,31]),import.meta.url)),Yt=l.lazy(()=>w(()=>import("./PostMediaset-DztbuulE.js"),__vite__mapDeps([51,1,2,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,35,29,39,31]),import.meta.url)),ea=l.lazy(()=>w(()=>import("./IGStories-CbiUgCWA.js"),__vite__mapDeps([52,1,2,29,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,39,23,8,31,35,49,50,53]),import.meta.url)),ta=l.lazy(()=>w(()=>import("./IGPosts-C6qr4Cso.js"),__vite__mapDeps([54,1,2,3,29,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,39,23,8,35,49,50,53,31]),import.meta.url)),aa=l.lazy(()=>w(()=>import("./IGReels-CPoWE3Jh.js"),__vite__mapDeps([55,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,39,23,8,35,49,50,53,31]),import.meta.url)),ra=l.lazy(()=>w(()=>import("./IGHighlights-CUpz2Uzb.js"),__vite__mapDeps([56,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,57,23,8,35,49,50,53,31]),import.meta.url)),na=l.lazy(()=>w(()=>import("./IGHighlightMedias-BFJbJEwN.js"),__vite__mapDeps([58,1,2,29,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,57,39,23,8,35,49,50,53,31]),import.meta.url)),sa=l.lazy(()=>w(()=>import("./TiktokUserVideos-D76xfnxs.js"),__vite__mapDeps([59,1,2,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,23,8,31,35,49,50,53]),import.meta.url)),oa=l.lazy(()=>w(()=>import("./ThreadsPosts-CCOkjPqs.js"),__vite__mapDeps([60,1,2,3,29,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,39,23,8,35,49,50,53,31]),import.meta.url)),we=[{key:"Tagged",label:{en:"📌 Tagged",vi:"📌 Lượt tag"},closable:!1},{key:"Stories",label:{en:"❤️ Stories",vi:"❤️ Tin"},closable:!1},{key:"Photos",label:{en:"📷 Photos",vi:"📷 Ảnh"},closable:!1},{key:"Videos",label:{en:"🎬 Videos",vi:"🎬 Video"},closable:!1},{key:"Albums",label:"🏞️ Albums",closable:!1},{key:"Reels",label:"🌈 Reels",closable:!1},{key:"Liked Pages",label:{en:"👍 Liked",vi:"👍 Thích"},closable:!1},{key:"Joined Groups",label:{en:"👥 Groups",vi:"👥 Nhóm"},closable:!1},{key:"Check In",label:"🌎 Check in",closable:!1},{key:"Files",label:"📁 Files",closable:!1},{key:"Members",label:{en:"👤 Members",vi:"👤 Thành viên"},closable:!1}],ia=[{key:"Post Media",label:{en:"📝 Post Media",vi:"📝 Bài viết"},closable:!0},...we],Pe=[{key:"IG Stories",label:{en:"❤️ Stories",vi:"❤️ Tin"},closable:!1},{key:"IG Highlights",label:"🌟 Highlight",closable:!1},{key:"IG Posts",label:"📝 Posts",closable:!1},{key:"IG Reels",label:"🌈 Reels",closable:!1}],la=[{key:"Tiktok User Videos",label:"🎬 Videos",closable:!1}],ca=[{key:"Threads",label:"📝 Threads",closable:!1}];function da(){var F,le,ne;const e=qe(),{ti:a}=Je(),{message:t}=Ze(),n=Ke(),i=((F=n.state)==null?void 0:F.targetId)||"",m=((le=n.state)==null?void 0:le.platform)||"",d=Z(Y.platform),f=Z(Y.setPlatform),y=Z(Y.bulkSearchHistory),x=Z(Y.addBulkSearchHistory),u=Z(Y.clearBulkSearchHistory),L=Z(Y.deleteBulkSearchHistory),[_,v]=l.useState(!1),[g,O]=l.useState(m||d||M.Facebook),[S,C]=se(`BulkDownloader.${g}.activeTab`,""),[N,z]=se(`BulkDownloader.${g}.tabs`,g===M.Facebook?we:Pe),[c,R]=se(`BulkDownloader.${g}.about`,null),[k,D]=se(`BulkDownloader.${g}.targetId`,g===m?i:""),[U,V]=se(`BulkDownloader.${g}.${c==null?void 0:c.id}.postId`,""),[H,q]=l.useState("");l.useEffect(()=>{ee("BulkDownloader:onLoad")},[]);const P=l.useMemo(()=>{var s,h;const o=((h=(s=y==null?void 0:y.filter(A=>A.platform===g&&Ye(H,A.targetId+A.name)))==null?void 0:s.reverse())==null?void 0:h.map(A=>({value:A.targetId,label:r.jsxs(W,{style:{width:"100%",position:"relative"},children:[r.jsx(it,{size:"small",src:A.avatar}),r.jsxs("span",{children:[A.name," ",A.targetId!==A.name?` (${A.targetId})`:""]}),r.jsx(ce,{onClick:$=>{$.stopPropagation(),$.preventDefault(),L(g,A.targetId)},icon:r.jsx("i",{className:"fa-solid fa-xmark"}),style:{position:"absolute",right:0,top:0,height:"100%"}})]})})))||[];return o.length&&o.push({value:"",disabled:!0,label:r.jsx(W,{align:"center",style:{width:"100%",justifyContent:"flex-end"},children:r.jsx(ce,{danger:!0,type:"text",icon:r.jsx("i",{className:"fa-solid fa-trash-can"}),onClick:()=>u(g),children:a({en:"Clear",vi:"Clear"})})})}),o},[y,k,g,H]),K=Pt(S),I=(c==null?void 0:c.type)||j.User,B=l.useMemo(()=>{switch(I){case j.User:return{icon:r.jsx("i",{className:"fa-solid fa-user"}),name:"User"};case j.Group:return{icon:r.jsx("i",{className:"fa-solid fa-people-group"}),name:"Group"};case j.Page:return{icon:r.jsx("i",{className:"fa-solid fa-pager"}),name:"Page"};case j.IGUser:return{icon:r.jsx("i",{className:"fa-brands fa-instagram"}),name:"Instagram"};case j.TikTokUser:return{icon:r.jsx("i",{className:"fa-brands fa-tiktok"}),name:"TikTok"};case j.ThreadsUser:return{icon:r.jsx("i",{className:"fa-solid fa-at"}),name:"Threads"};default:return{icon:r.jsx("i",{className:"fa-solid fa-question"}),name:"Unknow"}}},[I]);l.useEffect(()=>{f(g)},[g,f]),l.useEffect(()=>{i&&ae(i)},[i]);const X=o=>{ee("BulkDownloader:onChangePlatform:"+o),O(o)},p=l.useMemo(()=>g===M.Facebook?{placeholder:a({en:"Enter facebook URL/ID",vi:"Nhập URL/ID facebook"}),canDownload:a({en:"Can download: Post Media / Story / Photos / Videos / Reels / Albums / Group's Files / Joined Groups / Liked Pages / Checkin",vi:"Có thể tải: Bài viết / Story / Ảnh / Videos / Reels / Albums / Group Files / Nhóm tham gia / Trang đã thích / Checkin"}),tip:a({en:r.jsxs(r.Fragment,{children:["Tip: Use"," ",r.jsx("b",{children:r.jsx("a",{href:Ce.FB_AIO.webstore,target:"_blank",children:"Facebook all in one"})})," ","extension to get ID"]}),vi:r.jsxs(r.Fragment,{children:["Gợi ý: Sử dụng extension"," ",r.jsx("b",{children:r.jsx("a",{href:Ce.FB_AIO.webstore,target:"_blank",children:"Facebook all in one"})})," ","để lấy ID"]})}),tipImg:Rt,async onSearch(o){v(!0);let s;if(!/^\d+$/.test(o)){const h=`BulkDownloader.onSearch.${o}`;t.loading({key:h,duration:0,content:a({en:"Finding uid...",vi:"Đang tìm uid..."})});const A=await et(o);if(A){t.loading({key:h,content:a({en:"Found video. Getting download link...",vi:"Tìm thấy video. Đang tìm link tải..."}),duration:0});const J=await st(A);J?(t.success({key:h,content:a({en:"Found video download link",vi:"Tìm thấy link tải video"})}),e("/video-downloader",{state:{url:o,info:J}})):t.error({key:h,content:a({en:"Can not found video download link",vi:"Không tìm thấy link tải video"})}),v(!1);return}const $=await tt(o);if($){let J=o;o=$,D(o),t.success({key:h,content:a({en:"Found uid: ",vi:"Tìm thấy uid: "})+o}),s=await at(J),s&&t.success({content:a({en:"Found post id: ",vi:"Tìm thấy id bài viết: "})+s})}else{t.error({key:h,content:a({en:"Can not find uid: ",vi:"Không tìm thấy uid: "})+o}),v(!1);return}}rt(o).then(h=>{console.log(h),R(h),V(s||""),z(s?ia:we),s&&C("Post Media"),x({platform:g,targetId:o,name:h.name,avatar:h.avatar})}).catch(h=>{t.error(h.message)}).finally(()=>v(!1))}}:g===M.Instagram?{placeholder:a({en:"Enter insta URL",vi:"Nhập URL instagram"}),canDownload:a({en:"Can download: IG Stories / IG Highlights / IG Posts / IG Reels",vi:"Có thể tải: Story / Highlight / IG Posts / IG Reels"}),onSearch(o){if(v(!0),o.includes("instagram.com")){const s=_t(o);if(s)o=s,D(o);else{t.error({content:a({en:"Can not find username: ",vi:"Không tìm thấy tên người dùng: "})+o}),v(!1);return}}jt(o).then(s=>{R(s),z(Pe),x({platform:g,targetId:o,name:(s==null?void 0:s.name)||(s==null?void 0:s.username),avatar:s==null?void 0:s.avatar}),console.log(s)}).catch(s=>{t.error(s.message+" - "+a({en:"Please make sure you are logged in to Instagram.",vi:"Vui lòng kiểm tra bạn đã đăng nhập Instagram."}))}).finally(()=>v(!1))}}:g===M.Threads?{placeholder:a({en:"Enter threads URL",vi:"Nhập URL threads"}),canDownload:a({en:"Can download: Threads / Replies / Reposts",vi:"Có thể tải: Threads / Replies / Reposts"}),onSearch(o){if(v(!0),o.includes("https://")){const s=Ot(o);if(s)o=s,D(o);else{t.error({content:a({en:"Can not find username: ",vi:"Không tìm thấy tên người dùng: "})+o}),v(!1);return}}Dt(o).then(s=>{R(s),z(ca),x({platform:g,targetId:o,name:s==null?void 0:s.name,avatar:(s==null?void 0:s.avatarBig)||(s==null?void 0:s.avatar)}),console.log(s)}).catch(s=>{t.error(s.message+" - "+a({en:"Please make sure you are logged in to Threads.",vi:"Vui lòng kiểm tra bạn đã đăng nhập Threads."}))}).finally(()=>v(!1))}}:{placeholder:a({en:"Enter tiktok user URL",vi:"Nhập URL nguời dùng tiktok"}),canDownload:a({en:"Can download: All profile's videos",vi:"Có thể tải: Tất cả video trang cá nhân"}),async onSearch(o){v(!0);const s=await Bt(o);if(console.log(s),!s)t.error({content:a({en:"Can not find user info: ",vi:"Không tìm thấy thông tin người dùng: "})+o});else{const h={id:s.id,name:s.nickname,avatar:s.avatar,username:s.secUid,url:"https://www.tiktok.com/@"+s.nickname,type:j.TikTokUser,raw:s};z(la),x({platform:g,targetId:o,name:h.name,avatar:h.avatar}),R(h)}v(!1)}},[g,a]),Q=o=>{var s,h;switch(o.key){case"About":return I===j.User&&r.jsx(Ut,{target:c});case"Tagged":return r.jsx(kt,{target:c});case"Stories":return r.jsx(Ft,{target:c});case"Photos":return r.jsx(Wt,{target:c});case"Videos":return r.jsx(Mt,{target:c});case"Albums":return r.jsx(Ht,{target:c,onOpenAlbum:ie});case"Reels":return I!==j.Group&&r.jsx(qt,{target:c});case"Joined Groups":return I!==j.Group&&r.jsx(Xt,{target:c});case"Liked Pages":return I===j.User&&r.jsx(Kt,{target:c});case"Check In":return I===j.User&&r.jsx(Qt,{target:c});case"Files":return I===j.Group&&r.jsx(Jt,{target:c});case"Members":return I===j.Group&&r.jsx(Zt,{target:c});case"Post Media":return r.jsx(Yt,{target:c,postId:U});case"IG Stories":return r.jsx(ea,{target:c});case"IG Posts":return r.jsx(ta,{target:c});case"IG Reels":return r.jsx(aa,{target:c});case"IG Highlights":return r.jsx(ra,{target:c,onOpenHighlight:fe});case"Tiktok User Videos":return r.jsx(sa,{target:c});case"Threads":return r.jsx(oa,{target:c});default:return o.key.startsWith("Album-")?r.jsx(Vt,{target:c,album:(s=o.props)==null?void 0:s.album}):o.key.startsWith("IG Highlight-")?r.jsx(na,{target:c,highlight:(h=o.props)==null?void 0:h.highlight}):null}},ae=async(o=k)=>{var h;const s=o==null?void 0:o.trim();(s==null?void 0:s.length)!=0&&(ee("BulkDownloader:onSearch_"+g+":"+s),D(s),(h=p==null?void 0:p.onSearch)==null||h.call(p,s))},me=o=>{ee("BulkDownloader:onChangeTab:"+o),C(o)},pe=(o,s)=>{if(s==="remove"){const h=N.filter(A=>A.key!==o);z(h),C(K||"")}},ie=o=>{let s="Album-"+o.id;ee("BulkDownloader:onOpenAlbum"),z(h=>[...h,{key:s,label:"Album: "+o.name,closable:!0,props:{album:o}}]),C(s)},fe=o=>{let s="IG Highlight-"+o.id;ee("BulkDownloader:onOpenIGHighlight"),z(h=>[...h,{key:s,label:"IG Highlight: "+o.title,closable:!0,props:{highlight:o}}]),C(s)},re=c?N.map(o=>{const s=Q(o);return{key:o.key,label:a(o.label),closable:o.closable,children:s}}).filter(o=>o.children):[];return r.jsxs(W,{style:{width:"100%",height:"100%"},direction:"vertical",children:[r.jsxs(W,{direction:"vertical",style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:[r.jsx(Ie.Title,{level:3,style:{margin:0},children:a({en:"Bulk Downloader",vi:"Tải Hàng Loạt"})}),r.jsx(W.Compact,{children:Object.entries(M).map(([o,s])=>r.jsx(nt,{count:o===M.Threads?a({en:"New",vi:"Mới"}):"",color:"purple",style:{color:"white",zIndex:2},children:r.jsx(ce,{size:"middle",type:g===s?"primary":"default",onClick:()=>X(s),icon:r.jsx("i",{className:Xe[o]||`fa-brands fa-${s.toLocaleLowerCase()} fa-lg`}),children:s})},o))}),r.jsx(he,{value:k,options:P,onSelect:ae,onSearch:q,style:{width:350,marginBottom:5},children:r.jsx(ct.Search,{placeholder:p.placeholder,size:"large",style:{width:350},onChange:o=>{var s;return D((s=o.target.value)==null?void 0:s.trim())},onSearch:()=>ae(),enterButton:_?null:r.jsx("i",{className:"fa-solid fa-magnifying-glass"}),loading:_})}),c?r.jsxs(de,{style:{maxWidth:500,paddingRight:40},actions:[],children:[r.jsx(ce,{type:"text",onClick:()=>{R(null),C(""),D("")},icon:r.jsx("i",{className:"fa fa-times"}),style:{position:"absolute",top:5,right:5}}),r.jsx(de.Meta,{avatar:r.jsx(Te,{src:c.avatarBig,style:{width:60,height:60,borderRadius:"50%",objectFit:"cover"},alt:c.name,fallback:(c==null?void 0:c.type)===j.IGUser?$t:c.avatar}),title:r.jsx("a",{href:c.url,target:"_blank",children:c.name||c.username}),description:r.jsxs(W,{children:[B.icon," ",B.name]})})]}):null]}),re.length?r.jsx(De,{defaultActiveKey:S,activeKey:S,type:"editable-card",centered:!0,hideAdd:!0,items:re,onChange:me,onEdit:pe}):r.jsxs(W,{direction:"vertical",align:"center",style:{width:"100%",marginTop:10},children:[(ne=Ae[g])!=null&&ne.length?r.jsx(ot,{defaultActiveKey:["1"],items:[{label:a({en:`Supported ${g} URL/ID format ?`,vi:`Các định dạng ${g} được hỗ trợ ?`}),children:Ae[g].map(({icon:o,name:s,url:h},A)=>r.jsxs(Ie.Text,{children:[r.jsx("i",{className:o})," ",r.jsx("b",{children:a(s)}),Array.isArray(h)?r.jsx("ul",{children:h.map($=>r.jsx("li",{children:$},$))}):r.jsx(r.Fragment,{children:"u"})]},A))}]}):null,p.canDownload&&r.jsx(ye,{type:"success",showIcon:!0,message:p.canDownload}),r.jsx(ye,{type:"warning",showIcon:!0,message:a({vi:r.jsxs(r.Fragment,{children:["FB AIO giúp bạn ",r.jsx("span",{className:"highlight",children:"tải nhanh"})," các"," ",r.jsx("span",{className:"highlight",children:"ảnh/video yêu thích"})," từ Facebook, Instagram, Threads.",r.jsx("br",{}),"Chúng tôi ",r.jsx("span",{className:"highlight",children:"không khuyến khích"})," ","tải để sao chép trái phép hoặc"," ",r.jsx("span",{className:"highlight",children:"vi phạm pháp luật."}),r.jsx("br",{}),"FB AIO ",r.jsx("span",{className:"highlight",children:"không chịu trách nhiệm"})," ","cho các vấn đề pháp lý phát sinh từ việc sử dụng sai mục đích."]}),en:r.jsxs(r.Fragment,{children:["FB AIO lets you"," ",r.jsx("span",{className:"highlight",children:"quickly download"})," your"," ",r.jsx("span",{className:"highlight",children:"favorite photos/videos"})," from Facebook, Instagram, Threads.",r.jsx("br",{}),"We ",r.jsx("span",{className:"highlight",children:"do not encourage"})," ","downloading for illegal copying or"," ",r.jsx("span",{className:"highlight",children:"violating the law"}),".",r.jsx("br",{}),"FB AIO is"," ",r.jsx("span",{className:"highlight",children:"not liable for any legal issues"})," ","arising from misuse."]})})}),p.tip?r.jsxs(r.Fragment,{children:[r.jsx(ye,{type:"info",showIcon:!0,message:p.tip,style:{marginTop:50}}),r.jsx(Te,{src:p.tipImg,height:200})]}):null]})]})}const Ta=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"}));export{Ca as a,Ia as b,Lt as c,zt as d,wa as f,Aa as g,Ta as i}; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},pt=e=>{const{componentCls:a,iconCls:t,actionsLiMargin:n,cardActionsIconSize:i,colorBorderSecondary:m,actionsBg:d}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:d,borderTop:`${b(e.lineWidth)} ${e.lineType} ${m}`,display:"flex",borderRadius:`0 0 ${b(e.borderRadiusLG)} ${b(e.borderRadiusLG)}`},ge()),{"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${a}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:b(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:i,lineHeight:b(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${b(e.lineWidth)} ${e.lineType} ${m}`}}})},ft=e=>Object.assign(Object.assign({margin:`${b(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},ge()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Le),"&-description":{color:e.colorTextDescription}}),bt=e=>{const{componentCls:a,cardPaddingBase:t,colorFillAlter:n}=e;return{[`${a}-head`]:{padding:`0 ${b(t)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${a}-body`]:{padding:`${b(e.padding)} ${b(t)}`}}},yt=e=>{const{componentCls:a}=e;return{overflow:"hidden",[`${a}-body`]:{userSelect:"none"}}},vt=e=>{const{antCls:a,componentCls:t,cardShadow:n,cardHeadPadding:i,colorBorderSecondary:m,boxShadowTertiary:d,cardPaddingBase:f,extraColor:y}=e;return{[t]:Object.assign(Object.assign({},Me(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:d},[`${t}-head`]:ht(e),[`${t}-extra`]:{marginInlineStart:"auto",color:y,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:f,borderRadius:`0 0 ${b(e.borderRadiusLG)} ${b(e.borderRadiusLG)}`},ge()),[`${t}-grid`]:mt(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${a}-image-mask`]:{borderRadius:`${b(e.borderRadiusLG)} ${b(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:pt(e),[`${t}-meta`]:ft(e)}),[`${t}-bordered`]:{border:`${b(e.lineWidth)} ${e.lineType} ${m}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${b(e.borderRadiusLG)} ${b(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:i}}},[`${t}-type-inner`]:bt(e),[`${t}-loading`]:yt(e),[`${t}-rtl`]:{direction:"rtl"}}},xt=e=>{const{componentCls:a,cardPaddingSM:t,headerHeightSM:n,headerFontSizeSM:i}=e;return{[`${a}-small`]:{[`> ${a}-head`]:{minHeight:n,padding:`0 ${b(t)}`,fontSize:i,[`> ${a}-head-wrapper`]:{[`> ${a}-extra`]:{fontSize:e.fontSize}}},[`> ${a}-body`]:{padding:t}},[`${a}-small${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},St=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),wt=Fe("Card",e=>{const a=He(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[vt(a),xt(a)]},St);var _e=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{actionClasses:a,actions:t=[],actionStyle:n}=e;return l.createElement("ul",{className:a,style:n},t.map((i,m)=>{const d=`action-${m}`;return l.createElement("li",{style:{width:`${100/t.length}%`},key:d},l.createElement("span",null,i))}))},At=l.forwardRef((e,a)=>{const{prefixCls:t,className:n,rootClassName:i,style:m,extra:d,headStyle:f={},bodyStyle:y={},title:x,loading:u,bordered:L=!0,size:_,type:v,cover:g,actions:O,tabList:S,children:C,activeTabKey:N,defaultActiveTabKey:z,tabBarExtraContent:c,hoverable:R,tabProps:k={},classNames:D,styles:U}=e,V=_e(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:H,direction:q,card:P}=l.useContext(ue),K=E=>{var T;(T=e.onTabChange)===null||T===void 0||T.call(e,E)},I=E=>{var T;return G((T=P==null?void 0:P.classNames)===null||T===void 0?void 0:T[E],D==null?void 0:D[E])},B=E=>{var T;return Object.assign(Object.assign({},(T=P==null?void 0:P.styles)===null||T===void 0?void 0:T[E]),U==null?void 0:U[E])},X=l.useMemo(()=>{let E=!1;return l.Children.forEach(C,T=>{T&&T.type&&T.type===ze&&(E=!0)}),E},[C]),p=H("card",t),[Q,ae,me]=wt(p),pe=l.createElement(Ve,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),ie=N!==void 0,fe=Object.assign(Object.assign({},k),{[ie?"activeKey":"defaultActiveKey"]:ie?N:z,tabBarExtraContent:c});let re;const F=We(_),le=!F||F==="default"?"large":F,ne=S?l.createElement(De,Object.assign({size:le},fe,{className:`${p}-head-tabs`,onChange:K,items:S.map(E=>{var{tab:T}=E,be=_e(E,["tab"]);return Object.assign({label:T},be)})})):null;if(x||d||ne){const E=G(`${p}-head`,I("header")),T=G(`${p}-head-title`,I("title")),be=G(`${p}-extra`,I("extra")),$e=Object.assign(Object.assign({},f),B("header"));re=l.createElement("div",{className:E,style:$e},l.createElement("div",{className:`${p}-head-wrapper`},x&&l.createElement("div",{className:T,style:B("title")},x),d&&l.createElement("div",{className:be,style:B("extra")},d)),ne)}const o=G(`${p}-cover`,I("cover")),s=g?l.createElement("div",{className:o,style:B("cover")},g):null,h=G(`${p}-body`,I("body")),A=Object.assign(Object.assign({},y),B("body")),$=l.createElement("div",{className:h,style:A},u?pe:C),J=G(`${p}-actions`,I("actions")),Be=O&&O.length?l.createElement(Ct,{actionClasses:J,actionStyle:B("actions"),actions:O}):null,Ne=Ee(V,["onTabChange"]),Ge=G(p,P==null?void 0:P.className,{[`${p}-loading`]:u,[`${p}-bordered`]:L,[`${p}-hoverable`]:R,[`${p}-contain-grid`]:X,[`${p}-contain-tabs`]:S&&S.length,[`${p}-${F}`]:F,[`${p}-type-${v}`]:!!v,[`${p}-rtl`]:q==="rtl"},n,i,ae,me),Re=Object.assign(Object.assign({},P==null?void 0:P.style),m);return Q(l.createElement("div",Object.assign({ref:a},Ne,{className:Ge,style:Re}),re,s,$,Be))});var It=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:a,className:t,avatar:n,title:i,description:m}=e,d=It(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:f}=l.useContext(ue),y=f("card",a),x=G(`${y}-meta`,t),u=n?l.createElement("div",{className:`${y}-meta-avatar`},n):null,L=i?l.createElement("div",{className:`${y}-meta-title`},i):null,_=m?l.createElement("div",{className:`${y}-meta-description`},m):null,v=L||_?l.createElement("div",{className:`${y}-meta-detail`},L,_):null;return l.createElement("div",Object.assign({},d,{className:x}),u,v)},de=At;de.Grid=ze;de.Meta=Tt;function wa(e={},a="https://www.instagram.com/graphql/query"){return Oe(e,a)}function Ca(e){return`https://www.instagram.com/${e}`}async function jt(e){var i,m;let a=await oe("https://www.instagram.com/web/search/topsearch/?query="+e),t=te(a);if(t.status!="ok")throw Error("Server response error");const n=(m=(i=t==null?void 0:t.users)==null?void 0:i.find(d=>{var f;return((f=d==null?void 0:d.user)==null?void 0:f.username)==e}))==null?void 0:m.user;if(!n)throw Error("Instagram user not found");return{avatar:n==null?void 0:n.profile_pic_url,avatarBig:n==null?void 0:n.profile_pic_url,id:n==null?void 0:n.id,name:(n==null?void 0:n.full_name)||(n==null?void 0:n.username),username:e,type:j.IGUser,url:`https://www.instagram.com/${n==null?void 0:n.username}`,raw:t}}function Aa(e){var a,t,n;return e!=null&&e.length?!e[0].width||!e[0].height?(a=e.find(i=>i.type=="101")||e[0])==null?void 0:a.url:(n=(t=e==null?void 0:e.sort((i,m)=>m.width*m.height-i.width*i.height))==null?void 0:t[0])==null?void 0:n.url:null}function _t(e=""){var a,t;return((a=/instagram.com\/stories\/([^\/]+)/.exec(e))==null?void 0:a[1])||((t=/instagram.com\/([^\/]+)/.exec(e))==null?void 0:t[1])}function Pt(e){const a=l.useRef();return l.useEffect(()=>{a.current=e},[e]),a.current}const ve={cfrsToken:null,fb_dtsg:null};async function Et(){var e;if(!ve.fb_dtsg)try{const a=await oe("https://www.threads.net"),t=new DOMParser().parseFromString(a,"text/html");ve.fb_dtsg=te(((e=t==null?void 0:t.querySelector("#__eqmc"))==null?void 0:e.textContent)||"{}").f}catch(a){console.log(a)}return ve.fb_dtsg}async function Lt(e={},a="https://www.threads.net/api/graphql"){const t=await Et();if(!t)throw new Error(Qe({en:"Cannot find dtsg token",vi:"Không lấy được dtsg token"}));return Oe(e,a,!0,{fb_dtsg:t})}function Ot(e=""){var a,t;return((a=/www.threads.net\/@([^\/]+)/.exec(e))==null?void 0:a[1])||((t=/instagram.com\/([^\/]+)/.exec(e))==null?void 0:t[1])}async function Dt(e=""){var n,i,m,d,f,y,x,u,L,_,v,g,O,S;const a=await Lt({fb_api_req_friendly_name:"BarcelonaUsernameHoverCardImplQuery",variables:{username:e,__relay_internal__pv__BarcelonaShouldShowFediverseM075Featuresrelayprovider:!1},doc_id:"7679337195500348"}),t=te(a);return console.log(t),{id:(i=(n=t==null?void 0:t.data)==null?void 0:n.user)==null?void 0:i.id,name:(d=(m=t==null?void 0:t.data)==null?void 0:m.user)==null?void 0:d.full_name,username:(y=(f=t==null?void 0:t.data)==null?void 0:f.user)==null?void 0:y.username,avatar:(u=(x=t==null?void 0:t.data)==null?void 0:x.user)==null?void 0:u.profile_pic_url,avatarBig:(S=(O=(g=(v=(_=(L=t==null?void 0:t.data)==null?void 0:L.user)==null?void 0:_.hd_profile_pic_versions)==null?void 0:v.sort)==null?void 0:g.call(v,(C,N)=>N.width*N.height-C.width*C.height))==null?void 0:O[0])==null?void 0:S.url,type:j.ThreadsUser,url:zt("@"+e),raw:t}}function zt(e=""){return`https://www.threads.net/${e}`}async function Bt(e){var a,t;try{const i=(a=(await oe(e)).match(/__UNIVERSAL_DATA_FOR_REHYDRATION__\" type=\"application\/json\">(.*?)<\/script>/))==null?void 0:a[1],m=te(i);console.log(m);const{user:d,stats:f}=m.__DEFAULT_SCOPE__["webapp.user-detail"].userInfo;return{id:d.id,nickname:d.nickname,secUid:d.secUid,uniqueId:d.uniqueId,avatar:d.avatarLarger||d.avatarMedium||d.avatarThumb,createTime:d.createTime,verified:d.verified,language:d.language,region:d.region,signature:d.signature,bioLink:(t=d.bioLink)==null?void 0:t.link,followerCount:f.followerCount,followingCount:f.followingCount,friendCount:f.friendCount,videoCount:f.videoCount,heartCount:f.heartCount}}catch(n){return console.log(n),null}}function Nt(e){var a;return console.log(e),{id:e.id,cover:e.cover,dynamicCover:e.dynamicCover,zoomCover:e.zoomCover,originCover:e.originCover,width:e.width,height:e.height,duration:e.duration,ratio:e.ratio,definition:e.definition,codecType:e.codecType,format:e.format,videoQuality:e.videoQuality,downloadAddr:e.downloadAddr,playAddr:e.playAddr,variants:((a=e.bitrateInfo)==null?void 0:a.map(t=>({bitrate:t.Bitrate,codecType:t.CodecType,gearName:t.GearName,width:t.PlayAddr.Width,height:t.PlayAddr.Height,dataSize:t.PlayAddr.DataSize,urls:t.PlayAddr.UrlList})))||[],raw:e}}async function Gt(e,a){const t=await oe(`https://douyin.wtf/api/tiktok/web/generate_xbogus?url=${e}&user_agent=${a}`),n=te(t||"{}");return console.log(n),n.data}async function Ia(e,a="0",t=30){var x;const n="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.53",i="https://www.tiktok.com/api/post/item_list/?"+new URLSearchParams({secUid:e,count:t.toString(),cursor:a.toString(),coverFormat:"2",aid:"1988",app_name:"tiktok_web",browser_language:"en-US",browser_name:"Mozilla",browser_online:"true",browser_platform:"MacIntel",browser_version:n,os:"mac",device_id:"7394501257615323277938",device_platform:"web_pc",region:"VN",screen_width:"1920",screen_height:"1080"}).toString(),m=await Gt(i,"Mozilla/"+n),d=await oe(m.url);console.log(d);const f=te(d),y=f==null?void 0:f.data;return((x=y==null?void 0:y.itemList)==null?void 0:x.map(u=>{var L,_,v,g,O,S,C,N,z,c,R,k,D,U,V,H,q,P,K,I,B,X,p;return{id:u.id,desc:u.desc,createTime:u.createTime,video:Nt(u.video),challenges:(L=u.challenges)==null?void 0:L.map(Q=>({id:Q.id,title:Q.title})),stats:{collectCount:(_=u.stats)==null?void 0:_.collectCount,commentCount:(v=u.stats)==null?void 0:v.commentCount,diggCount:(g=u.stats)==null?void 0:g.diggCount,playCount:(O=u.stats)==null?void 0:O.playCount,shareCount:(S=u.stats)==null?void 0:S.shareCount},author:{id:(C=u.author)==null?void 0:C.id,nickname:(N=u.author)==null?void 0:N.nickname,secUid:(z=u.author)==null?void 0:z.secUid,signature:(c=u.author)==null?void 0:c.signature,uniqueId:(R=u.author)==null?void 0:R.uniqueId,verified:(k=u.author)==null?void 0:k.verified,avatar:((D=u.author)==null?void 0:D.avatarLarger)||((U=u.author)==null?void 0:U.avatarMedium)||((V=u.author)==null?void 0:V.avatarThumb)},music:{id:(H=u.music)==null?void 0:H.id,author:(q=u.music)==null?void 0:q.author,title:(P=u.music)==null?void 0:P.title,playUrl:(K=u.music)==null?void 0:K.playUrl,original:(I=u.music)==null?void 0:I.original,cover:((B=u.music)==null?void 0:B.coverLarger)||((X=u.music)==null?void 0:X.coverMedium)||((p=u.music)==null?void 0:p.coverThumb)},cursor:y==null?void 0:y.cursor,raw:y}}))||[]}const Rt=""+new URL("fb_get_id-CRQt-p2p.png",import.meta.url).href,$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAMAAADwSaEZAAAC91BMVEVHcEz0Cp9zGfx6F/rtE577hBb3E5VgGUXVN5SZF/x7GPveAMFvF/38MmbeAMCAGfz8lQXaAMf7dAj9dAP8Yxj7TDr9twT7rwn7UTT3B5r8mAf8kgb9hQP8QUj9IYf9qwPPANT8vQX//v7////9AWL+Ab7/9fv9AGf+zQD+yQD9Am3+Abn+AbJvFf3+AsP/6/D+AYL+AnT9Anv+JHSBF/14F/3+wQD+IXr+AYn+AF/+HYH+Fof+xQD+LGb+Qzr9SzX+Xyb+uAD+E5D+US/WANj+WCr+vgD+qgL+J27+uwD+AJD+jBPjANf+pAL+LlX+M07/+fqKF/3+lgH+kATQAdr+OVzrFNb+AJz96Pr+AJb+AKPcANaRF/3+ghL9Aqr9Kl3+ggL+rwDKAt3+EWf+igH+OT/+tAD8XAbrANXxA9H+bRv+Okn+M2L+egLwAMagF/z+nQD+ZyH+eyL+biz0GsP+Zy/EAd3+ehX3CcmoF/v+IlL9P0P/+vb+Epi5At7+lQ/+dCf+E3DFGvj+hB3+CbDzAKv+dBj+SB/+Dlz/y+r+K879ZQHoAL/gFNyxGfv+Flv+K2z+9ufzALr+QSr+Kkz+bAL+cwL9IoiwA+CECe7mAM7vFs7+4eTSHPP+OzX+SFH9HWT+nAj+E63cGu7+sD36Hav+MUf+M0P+WDb7HqD+RkH1AJ6oBOLABOH+Hln8UQ/lGuj+EqT+FXz+3fX+UD39IJaeBOOhDPG6Gvr+VBf+19L+Yjj9IpB4DfaSBeX8D8H+ydX3G7b+uxbfAMiRC/H+O1P9E7ivDe//s97+Yxj9UMP+Crf+8dz3G9L2yvn4AI//acz9L6P7OtLoG93+Q1nsALT9P3i4Cej43vz+XVz9QbjwGt/+xLX+kM72rPL+iZn+nT/+6cj+qbP+VnD+l2j+LX/+qR/7Krz5euP+c0j8Q5P+jE6/NPb+Y43eg/f6Vtf+b7fqTeX+26r+o4n+t3/+g3X+hqvhYe7+W6X+0Gv+d2T+eH/+13zfzAvcAAAAInRSTlMAxJxAQD91Ag7+cH7Xoa+9jM9wweVwwHDB5aur1dXV1eXlAqe68wAACsdJREFUeF5k1E9IYmsYx/EzU0xNDcUs7+7ioTNwPfMX48p1F62khcFQWtJiVrlpNhLNwhZRizPoXbixkjaKi6iB6z14bwu7EoWJkakRiRfdKkNorZrl/T3POaeXvF9L5AU/Pr7vi5JosG9o9MVro8PXh2iL+of6C+3v729ubq6urn779m15efnTp48ffx4Z7h8UgqCGLOj/lJCQIYFCk5OTxy+He7iBgT5BjY8fjguqR2JISJPH6GX/AAT8m2M9FRIsh2NreusEsWRBcAREzc9PHs8fUxiu1xrnHA4HJEpIDAmHIWRS4XB4BDtnWUIianraf3LyNzrdF5JwCJqix9Q2dRyGdjUyaAw28JQlQZ34mdo/3bym7WboQTGDZFjh7TC6uhpmbKDvEeX3+58/p6lOr6+vQdEemY5ocWoRMbbEFuqXwA2+YKmXOiWKJAERIdoOBAJLVDjK2BPatiFALCGiPn/+IqgINyNaDJhBIouxKKyNjWcYbLSXgnVz32mWSrVazduTruulUrPdPQ8EVgwtiq6iGwij9TmmIRFlWTedks0my7L5JDIXPFi3ldrnK1TU0Ajb65eGGOKpmPq9U7PJNlIeaUSTJpb09sqbN9ExUCpTe3vPpFE/siiMVWLKChyLzPcuaV/HxsbsdtXSnkhQGEIY66bGw1h/HqUnjzGlqepf7faoqm4sLGzsoZ8kUiwKFghyas323V0Vfe2tWu22m7q5g3rLrqoqrDnCLqQvHCB0YOy80ryLRPgSrGBb0Bgej6s2FZ5POyNrYW5ub/bi4kJixaAOOmx57yORqZnFOFO5N2NWAqS1rpdPqa2CImuPsAOrtQPaMJvsveNbGliBlSPDjgSIB2evemHJep6s2Vmfj7A1KIDWUIcOXcFcEcwFK5cj6QwPSoi5ajWHQywqpJUNyudmzGhnbWenRIM1aa54nKic/QypnF3U1elWYK0gI40tt/vC6XRKOyK+PnfCImqdeuS1vGzkVbXOu5Ziy+10vnsnJXeScPCcvOc7cckWqDwkEWksql3jxtZxiDodWJEsJ1kfpKRRJBnpAJOboOLBYC6fz68n1hMJvCVRL5bLxZbllSFAAzZXAGpruE0L2B9GyUikaUNtooKgElQ6nSgWvIoNKd5Ckb2WIiM9gUMsy6gAi6kPFnaJSjLqwjo6YiqNihrG4DCPTSsuoDI0b5EOsUgjFpyW9V76F11SMyV6RxfUEUtot4HTJ4YtvFQa69Ba5XKKrNk6fwJboN4Do2Zo13V6XxFWKpXeTe+GQhXNxkEhil8UEnOIKZ+vQusabT1bv0jnKH4eD8aDukxYKrWLQpnQREYzf228WqGg8X1HhTRLfE8r5OtOy2IsyLW8GMJTh5QJZTITE9mGMZV2WwmhStm0Gxbldlc8hLlMClgw1wq2aKOAybKnnslks9mYK+b64eHf6EZ2AoWohkK4UvcRhZwVWnjrMq1Xr6T8EUqhCk2mfM/GYrHfUIw3zHPrcrlIY++WL4kWYgqHmFEw69s/TQsYObsoU3mLyZTvkH6lfvAZNsA+cL5Qgw+iThR6R5gMDBQsYGB2+av9V4a9hLSV9mEAPwO142ag9D6372Oi9LbJ2EDtzSRWMk1HNKHiYhZiS6pCVGgUEUyGNghq6UKLt01oUpAaXGRA2oVxFlIIVMhmIASEQBqNBVuE4o3eFvM8/zfnHNt5ootE/Pn83/O+x5A3Cqu2SdwvuUCR9erL5AzvAa/sS1LcD3+fsrCZblVqskTIOjCO6XaP4eEe4zPLng0ddY7eO75qvQYKOQ/MQkxRlZXatMyFPlli3myNpHXTy7XNoqPBMc/lL/4j1HlgKApMLGJ0bGgylrVyi6+1qmxyyZZQ0W1w4j3gor0HhVRNqzUTSzBC0qWENarkBaupAcd29CS8IVreCVUFjGsWJqUwMAiADCcIrXmQlMeT59lZ6uoCZ3rz88DQ7N18VZj7QcfgXBIMEAIhg2aWUyudEs8nHp5kc5fJKU8u5/twWLbWulyAsFCCAUKePp2NcmuEVtra2oLBzs41uQBrzSUOno1Z51p434SRc77T67gAxC4xxCaeApoFEWWz0IrdHrQHg0GhK/KpZnCIcOi3xyWz2sJhH6JjgGARg0Tq8WM2I6Yyl+OvRTIpg6M3FpHbkC9Gq9KHMXE1w3qx05pIiP2ZtYKYwzHucDjs9l1577IaTZHTp92Te+RmLAZtxDcCDD19unVag4OMj48Tqwht1I3XOZhnSc7pzUejmUymxO15WXdpDNjo6OjISJabVsd4NilJ4sS8G3XDdUzcsSu/GVqNIspbhQV/szWRSIiWBW4xsXOaQMOIK8Lb14ZrwYWQW7XIpJH8Crm1fARPOTm2ZQKBluXbtYhPt4gN03IRg7axsOAk54y7Fjkov04ll5aSvNYyZHMjkhhIJAZGs1zXyIiJQUIWkAibbCw7l50Sl2sjue8fE1vSynhgDTQOMCUMmlhVmlASWfG3y5JAwNnn7FvMeQHoEm8qq5mUB5mYmCC2xrZLCsOBOK8N/8UsdHR0JC1IEZJ/2R9g+vr6inxRqtFLfop2ItSE20RvYiOYEtZ5zbAe5thiZ3LSP+n3D/n9gfuB3t6+3mLOGqLnteZ2o3Nzc8EgOJwacnJrWR1BOKTCOkg9fLjDArmpoakhfCH3kV56b4vb27sfF+PPEHLwZmfJrbLu3iiaCfarZliTRRZI93cj/RLd60MWFxfjiqPW1jYLziOXbBMbzueDBUynJicHZW1edXe3dLe0tPS39PTj0dOj+ikuTg5nzd5Gbk3WsitBjMUuaro1NdVd4MXfuqUCb7BlcHCwB1EcPXIOXctVIMkBbF+fL1zCSNHqlkULzdxB6vmorwemPH1cajy75D55uTPy2L4xYLB+12gJ1X2rPs01eDTTJLnX1FTPmJ5wTle8ro7aRytXLNI8MJCIxcLheWKmdevOjoV5NHNTck8inslRc1HbtXJIS35Cx65c/EMTCxSsO02FCia0NfPk7t27TxADNLgAT1r8Y+lsLGH7NhKbn79y7U9gtEDBanqdrpBY0lsfZoy8mnml8pYpFrdzEa4utMgKtltjayzmVthRZZHCaDNp/fjICfKGvgr6yEP9OLLSht3W2Noas1UD+147ss/CbK8LYBDzzSdR8w+ob2UlV7BDOgVzV1++cu0b7bCyQMFqaGi4/jldsqiKrOtfvhTZxvYNBoE1ttYIdlArM3uJdf32iw8FUDpAwqyqP/EmtxdxTe3QPB6FTT8/oJUfoSUjCnX7dnt7+4sPn7cKhXQ6/eir4KVCYWunuBHgDnFINcFsl6f5KclhhalaQtXW1t6Q/PbCzGsJtgmOLW9Q2CBSTWFjwA7y45ufxAKmU2SM3LhRW9vejsLXGxq47+pNTa+Wau4as1X/r1xDykyLlJIu6BEPHDRwphZQg9rnBKtxrx9QHxEeAsYZlWVAV6+aHNuZGrAhfVBiKbwXwZAYE4P+iGJisZZyVM5eVSLLiSaTflHNoap9V05LtB9kSN1SjoQaPSmntJtSrV+qGRgsI+WHGqQYLVMyPZaTbhj062q4jaf2WfxgtOz/KMb1UtSZs2eY/2pSrYmrZlb7+QAmhKEwguUnjksxZe2LzlEjBg0YtBJ28lg5IFjUzFnLThz/5QIsAzO5Ujeumon5nUdPHivjhCXmX0CYR7onC0e9AAAAAElFTkSuQmCC",kt=l.lazy(()=>w(()=>import("./Tagged-BpaY0RYJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url)),Ut=l.lazy(()=>w(()=>import("./About-rI7IiLNs.js"),__vite__mapDeps([24,1,2,3]),import.meta.url)),Ft=l.lazy(()=>w(()=>import("./Stories-CtgzOA59.js"),__vite__mapDeps([25,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,29,30,31,23,8]),import.meta.url)),Ht=l.lazy(()=>w(()=>import("./Albums-BbbQfFVD.js"),__vite__mapDeps([32,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,33,31,23,8]),import.meta.url)),Mt=l.lazy(()=>w(()=>import("./Videos-CSQOUGHs.js"),__vite__mapDeps([34,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,35,36,23,8]),import.meta.url)),Wt=l.lazy(()=>w(()=>import("./Photos-B_eAw90j.js"),__vite__mapDeps([37,1,2,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28]),import.meta.url)),Vt=l.lazy(()=>w(()=>import("./Album-D1OPne59.js"),__vite__mapDeps([38,1,2,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,33,35,39,23,8]),import.meta.url)),qt=l.lazy(()=>w(()=>import("./Reels-lb_FCiY2.js"),__vite__mapDeps([40,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,35]),import.meta.url)),Kt=l.lazy(()=>w(()=>import("./LikedPages-Bsy9eM3i.js"),__vite__mapDeps([41,1,2,3,21,22,13,14,10,26,5,12,18,7,19,11,27,17,15,16,9,20,28,42,31,23,8]),import.meta.url)),Xt=l.lazy(()=>w(()=>import("./JoinedGroups-Bc9669jg.js"),__vite__mapDeps([43,1,2,3,44,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,45,23,31]),import.meta.url)),Qt=l.lazy(()=>w(()=>import("./CheckedIns-Betwun6X.js"),__vite__mapDeps([46,1,2,3,44,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,31]),import.meta.url)),Jt=l.lazy(()=>w(()=>import("./GroupFiles-DQveYTaN.js"),__vite__mapDeps([47,1,2,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,23,8]),import.meta.url)),Zt=l.lazy(()=>w(()=>import("./GroupMembers-Chpl4Jw5.js"),__vite__mapDeps([48,1,2,44,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,45,49,50,23,31]),import.meta.url)),Yt=l.lazy(()=>w(()=>import("./PostMediaset-DKgg-CiD.js"),__vite__mapDeps([51,1,2,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,35,29,39,31]),import.meta.url)),ea=l.lazy(()=>w(()=>import("./IGStories-BI3Jj1hq.js"),__vite__mapDeps([52,1,2,29,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,39,23,8,31,35,49,50,53]),import.meta.url)),ta=l.lazy(()=>w(()=>import("./IGPosts-B6k1_Vjg.js"),__vite__mapDeps([54,1,2,3,29,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,39,23,8,35,49,50,53,31]),import.meta.url)),aa=l.lazy(()=>w(()=>import("./IGReels-Bz59aqZM.js"),__vite__mapDeps([55,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,39,23,8,35,49,50,53,31]),import.meta.url)),ra=l.lazy(()=>w(()=>import("./IGHighlights-B2M-y0e6.js"),__vite__mapDeps([56,1,2,3,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,57,23,8,35,49,50,53,31]),import.meta.url)),na=l.lazy(()=>w(()=>import("./IGHighlightMedias-Cnz2RLCm.js"),__vite__mapDeps([58,1,2,29,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,57,39,23,8,35,49,50,53,31]),import.meta.url)),sa=l.lazy(()=>w(()=>import("./TiktokUserVideos-CYeT8tUi.js"),__vite__mapDeps([59,1,2,26,5,22,3,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,23,8,31,35,49,50,53]),import.meta.url)),oa=l.lazy(()=>w(()=>import("./ThreadsPosts-DTNKUpAv.js"),__vite__mapDeps([60,1,2,3,29,26,5,22,13,14,10,12,18,7,19,11,27,17,15,16,9,20,28,39,23,8,35,49,50,53,31]),import.meta.url)),we=[{key:"Tagged",label:{en:"📌 Tagged",vi:"📌 Lượt tag"},closable:!1},{key:"Stories",label:{en:"❤️ Stories",vi:"❤️ Tin"},closable:!1},{key:"Photos",label:{en:"📷 Photos",vi:"📷 Ảnh"},closable:!1},{key:"Videos",label:{en:"🎬 Videos",vi:"🎬 Video"},closable:!1},{key:"Albums",label:"🏞️ Albums",closable:!1},{key:"Reels",label:"🌈 Reels",closable:!1},{key:"Liked Pages",label:{en:"👍 Liked",vi:"👍 Thích"},closable:!1},{key:"Joined Groups",label:{en:"👥 Groups",vi:"👥 Nhóm"},closable:!1},{key:"Check In",label:"🌎 Check in",closable:!1},{key:"Files",label:"📁 Files",closable:!1},{key:"Members",label:{en:"👤 Members",vi:"👤 Thành viên"},closable:!1}],ia=[{key:"Post Media",label:{en:"📝 Post Media",vi:"📝 Bài viết"},closable:!0},...we],Pe=[{key:"IG Stories",label:{en:"❤️ Stories",vi:"❤️ Tin"},closable:!1},{key:"IG Highlights",label:"🌟 Highlight",closable:!1},{key:"IG Posts",label:"📝 Posts",closable:!1},{key:"IG Reels",label:"🌈 Reels",closable:!1}],la=[{key:"Tiktok User Videos",label:"🎬 Videos",closable:!1}],ca=[{key:"Threads",label:"📝 Threads",closable:!1}];function da(){var F,le,ne;const e=qe(),{ti:a}=Je(),{message:t}=Ze(),n=Ke(),i=((F=n.state)==null?void 0:F.targetId)||"",m=((le=n.state)==null?void 0:le.platform)||"",d=Z(Y.platform),f=Z(Y.setPlatform),y=Z(Y.bulkSearchHistory),x=Z(Y.addBulkSearchHistory),u=Z(Y.clearBulkSearchHistory),L=Z(Y.deleteBulkSearchHistory),[_,v]=l.useState(!1),[g,O]=l.useState(m||d||M.Facebook),[S,C]=se(`BulkDownloader.${g}.activeTab`,""),[N,z]=se(`BulkDownloader.${g}.tabs`,g===M.Facebook?we:Pe),[c,R]=se(`BulkDownloader.${g}.about`,null),[k,D]=se(`BulkDownloader.${g}.targetId`,g===m?i:""),[U,V]=se(`BulkDownloader.${g}.${c==null?void 0:c.id}.postId`,""),[H,q]=l.useState("");l.useEffect(()=>{ee("BulkDownloader:onLoad")},[]);const P=l.useMemo(()=>{var s,h;const o=((h=(s=y==null?void 0:y.filter(A=>A.platform===g&&Ye(H,A.targetId+A.name)))==null?void 0:s.reverse())==null?void 0:h.map(A=>({value:A.targetId,label:r.jsxs(W,{style:{width:"100%",position:"relative"},children:[r.jsx(it,{size:"small",src:A.avatar}),r.jsxs("span",{children:[A.name," ",A.targetId!==A.name?` (${A.targetId})`:""]}),r.jsx(ce,{onClick:$=>{$.stopPropagation(),$.preventDefault(),L(g,A.targetId)},icon:r.jsx("i",{className:"fa-solid fa-xmark"}),style:{position:"absolute",right:0,top:0,height:"100%"}})]})})))||[];return o.length&&o.push({value:"",disabled:!0,label:r.jsx(W,{align:"center",style:{width:"100%",justifyContent:"flex-end"},children:r.jsx(ce,{danger:!0,type:"text",icon:r.jsx("i",{className:"fa-solid fa-trash-can"}),onClick:()=>u(g),children:a({en:"Clear",vi:"Clear"})})})}),o},[y,k,g,H]),K=Pt(S),I=(c==null?void 0:c.type)||j.User,B=l.useMemo(()=>{switch(I){case j.User:return{icon:r.jsx("i",{className:"fa-solid fa-user"}),name:"User"};case j.Group:return{icon:r.jsx("i",{className:"fa-solid fa-people-group"}),name:"Group"};case j.Page:return{icon:r.jsx("i",{className:"fa-solid fa-pager"}),name:"Page"};case j.IGUser:return{icon:r.jsx("i",{className:"fa-brands fa-instagram"}),name:"Instagram"};case j.TikTokUser:return{icon:r.jsx("i",{className:"fa-brands fa-tiktok"}),name:"TikTok"};case j.ThreadsUser:return{icon:r.jsx("i",{className:"fa-solid fa-at"}),name:"Threads"};default:return{icon:r.jsx("i",{className:"fa-solid fa-question"}),name:"Unknow"}}},[I]);l.useEffect(()=>{f(g)},[g,f]),l.useEffect(()=>{i&&ae(i)},[i]);const X=o=>{ee("BulkDownloader:onChangePlatform:"+o),O(o)},p=l.useMemo(()=>g===M.Facebook?{placeholder:a({en:"Enter facebook URL/ID",vi:"Nhập URL/ID facebook"}),canDownload:a({en:"Can download: Post Media / Story / Photos / Videos / Reels / Albums / Group's Files / Joined Groups / Liked Pages / Checkin",vi:"Có thể tải: Bài viết / Story / Ảnh / Videos / Reels / Albums / Group Files / Nhóm tham gia / Trang đã thích / Checkin"}),tip:a({en:r.jsxs(r.Fragment,{children:["Tip: Use"," ",r.jsx("b",{children:r.jsx("a",{href:Ce.FB_AIO.webstore,target:"_blank",children:"Facebook all in one"})})," ","extension to get ID"]}),vi:r.jsxs(r.Fragment,{children:["Gợi ý: Sử dụng extension"," ",r.jsx("b",{children:r.jsx("a",{href:Ce.FB_AIO.webstore,target:"_blank",children:"Facebook all in one"})})," ","để lấy ID"]})}),tipImg:Rt,async onSearch(o){v(!0);let s;if(!/^\d+$/.test(o)){const h=`BulkDownloader.onSearch.${o}`;t.loading({key:h,duration:0,content:a({en:"Finding uid...",vi:"Đang tìm uid..."})});const A=await et(o);if(A){t.loading({key:h,content:a({en:"Found video. Getting download link...",vi:"Tìm thấy video. Đang tìm link tải..."}),duration:0});const J=await st(A);J?(t.success({key:h,content:a({en:"Found video download link",vi:"Tìm thấy link tải video"})}),e("/video-downloader",{state:{url:o,info:J}})):t.error({key:h,content:a({en:"Can not found video download link",vi:"Không tìm thấy link tải video"})}),v(!1);return}const $=await tt(o);if($){let J=o;o=$,D(o),t.success({key:h,content:a({en:"Found uid: ",vi:"Tìm thấy uid: "})+o}),s=await at(J),s&&t.success({content:a({en:"Found post id: ",vi:"Tìm thấy id bài viết: "})+s})}else{t.error({key:h,content:a({en:"Can not find uid: ",vi:"Không tìm thấy uid: "})+o}),v(!1);return}}rt(o).then(h=>{console.log(h),R(h),V(s||""),z(s?ia:we),s&&C("Post Media"),x({platform:g,targetId:o,name:h.name,avatar:h.avatar})}).catch(h=>{t.error(h.message)}).finally(()=>v(!1))}}:g===M.Instagram?{placeholder:a({en:"Enter insta URL",vi:"Nhập URL instagram"}),canDownload:a({en:"Can download: IG Stories / IG Highlights / IG Posts / IG Reels",vi:"Có thể tải: Story / Highlight / IG Posts / IG Reels"}),onSearch(o){if(v(!0),o.includes("instagram.com")){const s=_t(o);if(s)o=s,D(o);else{t.error({content:a({en:"Can not find username: ",vi:"Không tìm thấy tên người dùng: "})+o}),v(!1);return}}jt(o).then(s=>{R(s),z(Pe),x({platform:g,targetId:o,name:(s==null?void 0:s.name)||(s==null?void 0:s.username),avatar:s==null?void 0:s.avatar}),console.log(s)}).catch(s=>{t.error(s.message+" - "+a({en:"Please make sure you are logged in to Instagram.",vi:"Vui lòng kiểm tra bạn đã đăng nhập Instagram."}))}).finally(()=>v(!1))}}:g===M.Threads?{placeholder:a({en:"Enter threads URL",vi:"Nhập URL threads"}),canDownload:a({en:"Can download: Threads / Replies / Reposts",vi:"Có thể tải: Threads / Replies / Reposts"}),onSearch(o){if(v(!0),o.includes("https://")){const s=Ot(o);if(s)o=s,D(o);else{t.error({content:a({en:"Can not find username: ",vi:"Không tìm thấy tên người dùng: "})+o}),v(!1);return}}Dt(o).then(s=>{R(s),z(ca),x({platform:g,targetId:o,name:s==null?void 0:s.name,avatar:(s==null?void 0:s.avatarBig)||(s==null?void 0:s.avatar)}),console.log(s)}).catch(s=>{t.error(s.message+" - "+a({en:"Please make sure you are logged in to Threads.",vi:"Vui lòng kiểm tra bạn đã đăng nhập Threads."}))}).finally(()=>v(!1))}}:{placeholder:a({en:"Enter tiktok user URL",vi:"Nhập URL nguời dùng tiktok"}),canDownload:a({en:"Can download: All profile's videos",vi:"Có thể tải: Tất cả video trang cá nhân"}),async onSearch(o){v(!0);const s=await Bt(o);if(console.log(s),!s)t.error({content:a({en:"Can not find user info: ",vi:"Không tìm thấy thông tin người dùng: "})+o});else{const h={id:s.id,name:s.nickname,avatar:s.avatar,username:s.secUid,url:"https://www.tiktok.com/@"+s.nickname,type:j.TikTokUser,raw:s};z(la),x({platform:g,targetId:o,name:h.name,avatar:h.avatar}),R(h)}v(!1)}},[g,a]),Q=o=>{var s,h;switch(o.key){case"About":return I===j.User&&r.jsx(Ut,{target:c});case"Tagged":return r.jsx(kt,{target:c});case"Stories":return r.jsx(Ft,{target:c});case"Photos":return r.jsx(Wt,{target:c});case"Videos":return r.jsx(Mt,{target:c});case"Albums":return r.jsx(Ht,{target:c,onOpenAlbum:ie});case"Reels":return I!==j.Group&&r.jsx(qt,{target:c});case"Joined Groups":return I!==j.Group&&r.jsx(Xt,{target:c});case"Liked Pages":return I===j.User&&r.jsx(Kt,{target:c});case"Check In":return I===j.User&&r.jsx(Qt,{target:c});case"Files":return I===j.Group&&r.jsx(Jt,{target:c});case"Members":return I===j.Group&&r.jsx(Zt,{target:c});case"Post Media":return r.jsx(Yt,{target:c,postId:U});case"IG Stories":return r.jsx(ea,{target:c});case"IG Posts":return r.jsx(ta,{target:c});case"IG Reels":return r.jsx(aa,{target:c});case"IG Highlights":return r.jsx(ra,{target:c,onOpenHighlight:fe});case"Tiktok User Videos":return r.jsx(sa,{target:c});case"Threads":return r.jsx(oa,{target:c});default:return o.key.startsWith("Album-")?r.jsx(Vt,{target:c,album:(s=o.props)==null?void 0:s.album}):o.key.startsWith("IG Highlight-")?r.jsx(na,{target:c,highlight:(h=o.props)==null?void 0:h.highlight}):null}},ae=async(o=k)=>{var h;const s=o==null?void 0:o.trim();(s==null?void 0:s.length)!=0&&(ee("BulkDownloader:onSearch_"+g+":"+s),D(s),(h=p==null?void 0:p.onSearch)==null||h.call(p,s))},me=o=>{ee("BulkDownloader:onChangeTab:"+o),C(o)},pe=(o,s)=>{if(s==="remove"){const h=N.filter(A=>A.key!==o);z(h),C(K||"")}},ie=o=>{let s="Album-"+o.id;ee("BulkDownloader:onOpenAlbum"),z(h=>[...h,{key:s,label:"Album: "+o.name,closable:!0,props:{album:o}}]),C(s)},fe=o=>{let s="IG Highlight-"+o.id;ee("BulkDownloader:onOpenIGHighlight"),z(h=>[...h,{key:s,label:"IG Highlight: "+o.title,closable:!0,props:{highlight:o}}]),C(s)},re=c?N.map(o=>{const s=Q(o);return{key:o.key,label:a(o.label),closable:o.closable,children:s}}).filter(o=>o.children):[];return r.jsxs(W,{style:{width:"100%",height:"100%"},direction:"vertical",children:[r.jsxs(W,{direction:"vertical",style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:[r.jsx(Ie.Title,{level:3,style:{margin:0},children:a({en:"Bulk Downloader",vi:"Tải Hàng Loạt"})}),r.jsx(W.Compact,{children:Object.entries(M).map(([o,s])=>r.jsx(nt,{count:o===M.Threads?a({en:"New",vi:"Mới"}):"",color:"purple",style:{color:"white",zIndex:2},children:r.jsx(ce,{size:"middle",type:g===s?"primary":"default",onClick:()=>X(s),icon:r.jsx("i",{className:Xe[o]||`fa-brands fa-${s.toLocaleLowerCase()} fa-lg`}),children:s})},o))}),r.jsx(he,{value:k,options:P,onSelect:ae,onSearch:q,style:{width:350,marginBottom:5},children:r.jsx(ct.Search,{placeholder:p.placeholder,size:"large",style:{width:350},onChange:o=>{var s;return D((s=o.target.value)==null?void 0:s.trim())},onSearch:()=>ae(),enterButton:_?null:r.jsx("i",{className:"fa-solid fa-magnifying-glass"}),loading:_})}),c?r.jsxs(de,{style:{maxWidth:500,paddingRight:40},actions:[],children:[r.jsx(ce,{type:"text",onClick:()=>{R(null),C(""),D("")},icon:r.jsx("i",{className:"fa fa-times"}),style:{position:"absolute",top:5,right:5}}),r.jsx(de.Meta,{avatar:r.jsx(Te,{src:c.avatarBig,style:{width:60,height:60,borderRadius:"50%",objectFit:"cover"},alt:c.name,fallback:(c==null?void 0:c.type)===j.IGUser?$t:c.avatar}),title:r.jsx("a",{href:c.url,target:"_blank",children:c.name||c.username}),description:r.jsxs(W,{children:[B.icon," ",B.name]})})]}):null]}),re.length?r.jsx(De,{defaultActiveKey:S,activeKey:S,type:"editable-card",centered:!0,hideAdd:!0,items:re,onChange:me,onEdit:pe}):r.jsxs(W,{direction:"vertical",align:"center",style:{width:"100%",marginTop:10},children:[(ne=Ae[g])!=null&&ne.length?r.jsx(ot,{defaultActiveKey:["1"],items:[{label:a({en:`Supported ${g} URL/ID format ?`,vi:`Các định dạng ${g} được hỗ trợ ?`}),children:Ae[g].map(({icon:o,name:s,url:h},A)=>r.jsxs(Ie.Text,{children:[r.jsx("i",{className:o})," ",r.jsx("b",{children:a(s)}),Array.isArray(h)?r.jsx("ul",{children:h.map($=>r.jsx("li",{children:$},$))}):r.jsx(r.Fragment,{children:"u"})]},A))}]}):null,p.canDownload&&r.jsx(ye,{type:"success",showIcon:!0,message:p.canDownload}),r.jsx(ye,{type:"warning",showIcon:!0,message:a({vi:r.jsxs(r.Fragment,{children:["FB AIO giúp bạn ",r.jsx("span",{className:"highlight",children:"tải nhanh"})," các"," ",r.jsx("span",{className:"highlight",children:"ảnh/video yêu thích"})," từ Facebook, Instagram, Threads.",r.jsx("br",{}),"Chúng tôi ",r.jsx("span",{className:"highlight",children:"không khuyến khích"})," ","tải để sao chép trái phép hoặc"," ",r.jsx("span",{className:"highlight",children:"vi phạm pháp luật."}),r.jsx("br",{}),"FB AIO ",r.jsx("span",{className:"highlight",children:"không chịu trách nhiệm"})," ","cho các vấn đề pháp lý phát sinh từ việc sử dụng sai mục đích."]}),en:r.jsxs(r.Fragment,{children:["FB AIO lets you"," ",r.jsx("span",{className:"highlight",children:"quickly download"})," your"," ",r.jsx("span",{className:"highlight",children:"favorite photos/videos"})," from Facebook, Instagram, Threads.",r.jsx("br",{}),"We ",r.jsx("span",{className:"highlight",children:"do not encourage"})," ","downloading for illegal copying or"," ",r.jsx("span",{className:"highlight",children:"violating the law"}),".",r.jsx("br",{}),"FB AIO is"," ",r.jsx("span",{className:"highlight",children:"not liable for any legal issues"})," ","arising from misuse."]})})}),p.tip?r.jsxs(r.Fragment,{children:[r.jsx(ye,{type:"info",showIcon:!0,message:p.tip,style:{marginTop:50}}),r.jsx(Te,{src:p.tipImg,height:200})]}):null]})]})}const Ta=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"}));export{Ca as a,Ia as b,Lt as c,zt as d,wa as f,Aa as g,Ta as i}; diff --git a/public/assets/index-l6SaavIj.js b/public/assets/index-DJG2H-VC.js similarity index 87% rename from public/assets/index-l6SaavIj.js rename to public/assets/index-DJG2H-VC.js index eb1115a..b18d0a7 100644 --- a/public/assets/index-l6SaavIj.js +++ b/public/assets/index-DJG2H-VC.js @@ -1,3 +1,3 @@ -const __vite__fileDeps=["./MyTable-BTHATUSD.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./MyApp-BHr373cy.js","./index-X7jfXLlB.js","./Table-GiCOcILW.js","./index-VHrAsB-Q.js","./addEventListener-KkFh1sjE.js","./index-CETJ8txP.js","./PurePanel-CSR2tSBX.js","./SearchOutlined-D247roQH.js","./index-DmA8T0X5.js","./index-BI67OZir.js","./Dropdown-DUpNeMO8.js","./useBreakpoint-QbbjxHKX.js","./responsiveObserver-DiDk9dGL.js","./Pagination-CPGTHysj.js","./index-BCUBacY9.js","./EyeOutlined-BALW2cms.js","./row-DQoT4CfJ.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{aI as X,r as T,aA as t,aB as g,aF as Q,aS as K,aT as Z}from"./index--trdnQFa.js";import{d as C}from"./dayjs.min-DH5lmvCP.js";import{d as ee,u as ne,g as V,t as v,b as j,f as E,T as x,c as L,L as te,i as M,o as ie,k as $,M as I,U as P}from"./MyApp-BHr373cy.js";import{u as se}from"./useForceStop-B53S8Rhf.js";import{E as ae}from"./ExportButton-C-PwJSin.js";import{g as re,U as u,a as oe,S as k,l as le,b as ce}from"./groups-DwKzy7u6.js";import{A as de}from"./index-DTxLlwd8.js";import{T as Y}from"./index-VHrAsB-Q.js";import{R as ue}from"./row-DQoT4CfJ.js";import{P as pe}from"./index-CB2nR54F.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./responsiveObserver-DiDk9dGL.js";import"./useBreakpoint-QbbjxHKX.js";import"./index-CU7pBSDU.js";const me=T.lazy(()=>Q(()=>import("./MyTable-BTHATUSD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url));function Fe(){const{message:d,notification:f}=ee(),A=X(),{ti:i}=ne(),U=se(),[m,D]=V("Groups.data",[]),[B,F]=V("Groups.finished",!1),[w,R]=T.useState(!1),S=T.useRef(null);T.useEffect(()=>{B||O(!1)},[]);const O=async(e=!1)=>{var o;if(w&&!e)return;const n=U.start(),s=e?[]:[...m],l=new Set(s.map(a=>a.id)),c="Groups:onReload";v(c),R(!0),F(!1);try{for(const[a,r]of[[re,u.ADMIN],[oe,u.MEMBER]]){const p=s[s.length-1];let N=e?"":(p==null?void 0:p.userType)===r?p==null?void 0:p.cursor:"";for(;!n.value();){d.loading({key:c,content:i({en:"Loading groups...",vi:"Đang tải nhóm..."})+s.length,duration:0});const h=await a({cursor:N}),y=h==null?void 0:h.filter(G=>!l.has(G.id));if(h.forEach(G=>l.add(G.id)),!(y!=null&&y.length))break;s.push(...y),N=(o=s==null?void 0:s[(s==null?void 0:s.length)-1])==null?void 0:o.cursor,D([...s])}}d.success({key:c,content:(n.value()?i({en:"Load groups stopped ",vi:"Dừng tải nhóm "}):i({en:"Load groups completed ",vi:"Tải xong nhóm "}))+s.length}),F(!n.value())}catch(a){d.error({content:i({en:"Failed to load groups: ",vi:"Lỗi tải nhóm: "})+a.message})}finally{R(!1)}},H=async e=>{if(!await $()||!(e!=null&&e.length))return;const n="Groups:onClickLeaveSelectedGroups",s="Groups:onClickLeaveSelectedGroups:waiting";v(n);let l=!1,c=[];for(let o=0;o{d.loading({key:n,content:i({en:"Stopping...",vi:"Đang dừng..."}),duration:0}),l=!0}}),await b(e[o])&&c.push(e[o]),!l);o++)if(ot.jsx("li",{children:t.jsx("a",{target:"_blank",href:M(o.id),children:o.name})},o.id))})})},b=async e=>{const n="Groups:onClickLeaveGroup";v(n),d.loading({key:n,content:i({en:"Leaving group... "+e.name,vi:"Đang rời nhóm..."+e.name}),duration:0});const s=await le(e.id);return s?(f.destroy(n),d.success({key:n,content:i({en:"Left group "+e.name,vi:"Đã rời nhóm "+e.name})}),D(l=>K(l,c=>{const o=c.findIndex(a=>a.id==e.id);return c[o].userType=u.NOT_JOINED,c}))):(d.destroy(n),f.open({type:"error",key:n,message:i({en:"Failed to leave group",vi:"Lỗi rời nhóm"}),description:e.name,duration:0,btn:t.jsxs(j,{children:[t.jsx(g,{type:"default",onClick:()=>b(e),children:i({en:"Retry",vi:"Thử lại"})}),t.jsx(g,{type:"primary",onClick:()=>window.open(M(e.id)),children:i({en:"View group",vi:"Xem nhóm"})})]})})),s},J=async e=>{var o,a;if(!await $())return;const n="Groups:onClickFindNoAdminGroups",s=n+":waiting";v(n),d.loading({key:n,duration:0,content:i({en:"Finding groups no admin... ",vi:"Đang tìm nhóm không có admin... "})});let l=[],c=!1;for(let r=0;r{c=!0}}),(await ce(p.id)).adminCount===0&&(l.push(p),(a=(o=S.current)==null?void 0:o.setDataSelected)==null||a.call(o,[...l])),rt.jsx("li",{children:t.jsx("a",{target:"_blank",href:M(r.id),children:r.name})},r.id))})})},W=e=>{A("/bulk-downloader",{state:{targetId:e.id,platform:Z.Facebook}})},z=e=>{var c,o;const n=e!=null&&e.length?[...e]:[...m],s=((c=n==null?void 0:n.map(a=>m.find(r=>r.id===a.id)))==null?void 0:c.filter(a=>a&&a.userType!==u.NOT_JOINED))||[],l=((o=n==null?void 0:n.map(a=>m.find(r=>r.id===a.id)))==null?void 0:o.filter(a=>a&&a.userType!==u.ADMIN))||[];return t.jsxs(t.Fragment,{children:[t.jsx(g,{type:"primary",icon:w?t.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):t.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>O(!0),children:i({en:"Reload",vi:"Tải lại"})}),t.jsx(ae,{data:n,options:[{key:"id",label:".txt (group id)",prepareData:a=>({fileName:"your_groups_id"+C().format("YYYY-MM-DD-HHmmss")+".txt",data:a==null?void 0:a.map(r=>r.id).join(` +const __vite__fileDeps=["./MyTable-C-6hHnGo.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./MyApp-CmkiOnMb.js","./index-NjHtWr7u.js","./Table-By6CV266.js","./index-Bumumc8Y.js","./addEventListener-w7NT04KM.js","./index-CKsES7YN.js","./PurePanel-yY9muMEs.js","./SearchOutlined-DvnHgzkc.js","./index-tTPNrueW.js","./index-4qwk-lHW.js","./Dropdown-DxSI4NN9.js","./useBreakpoint-CDLrV-mr.js","./responsiveObserver-Bb1LONna.js","./Pagination-slfcHA-i.js","./index-BbXfI1Nu.js","./EyeOutlined-Du2MtFRM.js","./row-C0Wk6t4-.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{aI as X,r as T,aA as t,aB as g,aF as Q,aS as K,aT as Z}from"./index-BBriuzNA.js";import{d as C}from"./dayjs.min-Qbr7UE_g.js";import{d as ee,u as ne,g as V,t as v,b as j,f as E,T as x,c as L,L as te,i as M,o as ie,k as $,M as I,U as P}from"./MyApp-CmkiOnMb.js";import{u as se}from"./useForceStop-DOwcs-PE.js";import{E as ae}from"./ExportButton-DABx3myg.js";import{g as re,U as u,a as oe,S as k,l as le,b as ce}from"./groups-DGwrOePX.js";import{A as de}from"./index-CbmP82sr.js";import{T as Y}from"./index-Bumumc8Y.js";import{R as ue}from"./row-C0Wk6t4-.js";import{P as pe}from"./index-BM7CeakW.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./responsiveObserver-Bb1LONna.js";import"./useBreakpoint-CDLrV-mr.js";import"./index-Dg6R6lHP.js";const me=T.lazy(()=>Q(()=>import("./MyTable-C-6hHnGo.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url));function Fe(){const{message:d,notification:f}=ee(),A=X(),{ti:i}=ne(),U=se(),[m,D]=V("Groups.data",[]),[B,F]=V("Groups.finished",!1),[w,R]=T.useState(!1),S=T.useRef(null);T.useEffect(()=>{B||O(!1)},[]);const O=async(e=!1)=>{var o;if(w&&!e)return;const n=U.start(),s=e?[]:[...m],l=new Set(s.map(a=>a.id)),c="Groups:onReload";v(c),R(!0),F(!1);try{for(const[a,r]of[[re,u.ADMIN],[oe,u.MEMBER]]){const p=s[s.length-1];let N=e?"":(p==null?void 0:p.userType)===r?p==null?void 0:p.cursor:"";for(;!n.value();){d.loading({key:c,content:i({en:"Loading groups...",vi:"Đang tải nhóm..."})+s.length,duration:0});const h=await a({cursor:N}),y=h==null?void 0:h.filter(G=>!l.has(G.id));if(h.forEach(G=>l.add(G.id)),!(y!=null&&y.length))break;s.push(...y),N=(o=s==null?void 0:s[(s==null?void 0:s.length)-1])==null?void 0:o.cursor,D([...s])}}d.success({key:c,content:(n.value()?i({en:"Load groups stopped ",vi:"Dừng tải nhóm "}):i({en:"Load groups completed ",vi:"Tải xong nhóm "}))+s.length}),F(!n.value())}catch(a){d.error({content:i({en:"Failed to load groups: ",vi:"Lỗi tải nhóm: "})+a.message})}finally{R(!1)}},H=async e=>{if(!await $()||!(e!=null&&e.length))return;const n="Groups:onClickLeaveSelectedGroups",s="Groups:onClickLeaveSelectedGroups:waiting";v(n);let l=!1,c=[];for(let o=0;o{d.loading({key:n,content:i({en:"Stopping...",vi:"Đang dừng..."}),duration:0}),l=!0}}),await b(e[o])&&c.push(e[o]),!l);o++)if(ot.jsx("li",{children:t.jsx("a",{target:"_blank",href:M(o.id),children:o.name})},o.id))})})},b=async e=>{const n="Groups:onClickLeaveGroup";v(n),d.loading({key:n,content:i({en:"Leaving group... "+e.name,vi:"Đang rời nhóm..."+e.name}),duration:0});const s=await le(e.id);return s?(f.destroy(n),d.success({key:n,content:i({en:"Left group "+e.name,vi:"Đã rời nhóm "+e.name})}),D(l=>K(l,c=>{const o=c.findIndex(a=>a.id==e.id);return c[o].userType=u.NOT_JOINED,c}))):(d.destroy(n),f.open({type:"error",key:n,message:i({en:"Failed to leave group",vi:"Lỗi rời nhóm"}),description:e.name,duration:0,btn:t.jsxs(j,{children:[t.jsx(g,{type:"default",onClick:()=>b(e),children:i({en:"Retry",vi:"Thử lại"})}),t.jsx(g,{type:"primary",onClick:()=>window.open(M(e.id)),children:i({en:"View group",vi:"Xem nhóm"})})]})})),s},J=async e=>{var o,a;if(!await $())return;const n="Groups:onClickFindNoAdminGroups",s=n+":waiting";v(n),d.loading({key:n,duration:0,content:i({en:"Finding groups no admin... ",vi:"Đang tìm nhóm không có admin... "})});let l=[],c=!1;for(let r=0;r{c=!0}}),(await ce(p.id)).adminCount===0&&(l.push(p),(a=(o=S.current)==null?void 0:o.setDataSelected)==null||a.call(o,[...l])),rt.jsx("li",{children:t.jsx("a",{target:"_blank",href:M(r.id),children:r.name})},r.id))})})},W=e=>{A("/bulk-downloader",{state:{targetId:e.id,platform:Z.Facebook}})},z=e=>{var c,o;const n=e!=null&&e.length?[...e]:[...m],s=((c=n==null?void 0:n.map(a=>m.find(r=>r.id===a.id)))==null?void 0:c.filter(a=>a&&a.userType!==u.NOT_JOINED))||[],l=((o=n==null?void 0:n.map(a=>m.find(r=>r.id===a.id)))==null?void 0:o.filter(a=>a&&a.userType!==u.ADMIN))||[];return t.jsxs(t.Fragment,{children:[t.jsx(g,{type:"primary",icon:w?t.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):t.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>O(!0),children:i({en:"Reload",vi:"Tải lại"})}),t.jsx(ae,{data:n,options:[{key:"id",label:".txt (group id)",prepareData:a=>({fileName:"your_groups_id"+C().format("YYYY-MM-DD-HHmmss")+".txt",data:a==null?void 0:a.map(r=>r.id).join(` `)})},{key:"json",label:".json",prepareData:a=>({fileName:"your_groups"+C().format("YYYY-MM-DD-HHmmss")+".json",data:JSON.stringify(a==null?void 0:a.map(r=>({...r,last_visited:E(r.lastVisitedTime,i({en:"en-US",vi:"vi-VN"}))})),null,4)})},{key:"csv",label:".csv",prepareData:a=>({fileName:"your_groups"+C().format("YYYY-MM-DD-HHmmss")+".csv",data:ie(a)})}]}),t.jsx(x,{title:i({en:`Leave ${s.length} selected groups`,vi:`Rời ${s.length} nhóm được chọn`}),children:t.jsx(pe,{title:i({en:`Leave ${s.length} groups`,vi:`Rời ${s.length} nhóm`}),description:i({en:`Are your sure want to Leave ${s.length} groups?`,vi:`Bản có chãc muốn rời ${s.length} nhóm?`}),onConfirm:()=>H(s),okText:i({en:"Leave groups",vi:"Rời nhóm"}),cancelText:i({en:"No",vi:"Huỷ"}),children:t.jsx(g,{danger:!0,disabled:s.length<=0,icon:t.jsx("i",{className:"fa-regular fa-trash-can"}),children:s.length})})}),t.jsx(x,{title:i({en:`Find groups that have no admin in ${l.length} selected groups`,vi:`Tìm nhóm không có admin quản lý trong ${l.length} nhóm được chọn`}),children:t.jsx(g,{icon:t.jsx("i",{className:"fa-solid fa-user-large-slash"}),onClick:()=>J(l),disabled:l.length<=0,children:l.length})}),t.jsx(x,{title:i({en:"View on Facebook",vi:"Xem trên Facebook"}),children:t.jsx(g,{icon:t.jsx("i",{className:"fa-solid fa-external-link"}),onClick:()=>window.open("https://www.facebook.com/groups/joins","_blank")})})]})},_=e=>{switch(e){case u.MEMBER:return{color:"default",text:i({en:"Member",vi:"Thành viên"})};case u.ADMIN:return{color:"success",text:"Admin"};case u.NOT_JOINED:return{color:"error",text:i({en:"Left group",vi:"Đã rời nhóm"})};case u.PENDING:return{color:"warning",text:i({en:"Pending",vi:"Đang chờ"})};default:return{color:"default",text:"?"}}},q=[{title:"#",key:"index",dataIndex:"index"},{title:i({en:"Group",vi:"Nhóm"}),key:"group",dataIndex:"group",sorter:(e,n)=>e.name.localeCompare(n.name),render:(e,n,s)=>t.jsxs(j,{style:{maxWidth:400},align:"start",children:[t.jsx(de,{src:n.avatar,size:45}),t.jsxs(j,{direction:"vertical",size:0,children:[t.jsx(Y.Link,{href:n.url,target:"_blank",children:t.jsx("b",{children:n.name})}),t.jsx("span",{style:{opacity:.7},children:n.id})]})]})},{title:i({en:"Last visit",vi:"Lần xem gần nhất"}),key:"lastVisitedTime",dataIndex:"lastVisitedTime",sorter:(e,n)=>e.lastVisitedTime-n.lastVisitedTime,render:(e,n,s)=>E(n.lastVisitedTime,i({en:"en-US",vi:"vi-VN"})),align:"right"},{title:i({en:"Type",vi:"Loại"}),key:"type",dataIndex:"userType",render:(e,n,s)=>{const{color:l,text:c}=_(n.userType);return t.jsxs(t.Fragment,{children:[n.subspaceType==k.TOP_LEVEL_GROUP&&t.jsxs(t.Fragment,{children:[t.jsx(x,{title:i({en:"Your most interested group",vi:"Nhóm bạn quan tâm nhất"}),children:t.jsx(L,{color:"purple",children:"Top level"})}),t.jsx("br",{})]}),t.jsx(L,{color:l,children:c})]})},filters:[...Object.values(u).map(e=>{const{text:n}=_(e);return{text:n+" ("+m.filter(s=>s.userType==e).length+")",value:e}}),{text:"Top level ("+m.filter(e=>e.subspaceType==k.TOP_LEVEL_GROUP).length+")",value:k.TOP_LEVEL_GROUP}],onFilter:(e,n)=>e==k.TOP_LEVEL_GROUP?n.subspaceType==e:n.userType==e,align:"right"},{title:i({en:"Action",vi:"Hành động"}),key:"action",render:(e,n,s)=>t.jsxs(j.Compact,{style:{minWidth:30},children:[t.jsx(x,{title:i({en:"Bulk Downloader",vi:"Tải hàng loạt"}),children:t.jsx(g,{type:"default",onClick:()=>W(n),icon:t.jsx("i",{className:"fa-solid fa-download"})})}),n.userType!==u.NOT_JOINED?t.jsx(x,{title:i({en:"Leave group",vi:"Rời nhóm"}),children:t.jsx(g,{danger:!0,onClick:()=>b(n),icon:t.jsx("i",{className:"fa-regular fa-trash-can"})})}):null]}),align:"right"}];return t.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[t.jsxs(ue,{align:"middle",style:{margin:"16px"},children:[t.jsx(Y.Title,{level:3,style:{margin:0},children:i({en:"Groups manager",vi:"Quản lý nhóm"})}),t.jsx(L,{style:{marginLeft:"10px",fontWeight:"bold",color:"#888"},children:m.length})]}),t.jsx(me,{ref:S,data:[...m].sort((e,n)=>n.subspaceType.localeCompare(e.subspaceType)).map((e,n)=>({...e,index:n+1})),columns:q,renderTitle:z,size:"small",searchable:!0,selectable:!0,onSearchRow:(e,n)=>te(e,(n==null?void 0:n.name)+(n==null?void 0:n.id)+E(n==null?void 0:n.lastVisitedTime,i({en:"en-US",vi:"vi-VN"}))),keyExtractor:e=>e==null?void 0:e.id})]})}export{Fe as default}; diff --git a/public/assets/index-CU7pBSDU.js b/public/assets/index-Dg6R6lHP.js similarity index 97% rename from public/assets/index-CU7pBSDU.js rename to public/assets/index-Dg6R6lHP.js index 1a3079f..8a6406c 100644 --- a/public/assets/index-CU7pBSDU.js +++ b/public/assets/index-Dg6R6lHP.js @@ -1 +1 @@ -import{E as z,F as D,G as M,H as R,r as a,I as $,o as O,O as H,Q as V,W as A}from"./index--trdnQFa.js";import{ae as F,aj as L,n as G,af as K,ak as Q,m as U,T as X}from"./MyApp-BHr373cy.js";const b=e=>e?typeof e=="function"?e():e:null,Y=e=>{const{componentCls:n,popoverColor:o,titleMinWidth:t,fontWeightStrong:r,innerPadding:l,boxShadowSecondary:i,colorTextHeading:c,borderRadiusLG:d,zIndexPopup:f,titleMarginBottom:p,colorBgElevated:v,popoverBg:u,titleBorderBottom:g,innerContentPadding:y,titlePadding:m}=e;return[{[n]:Object.assign(Object.assign({},R(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:f,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":v,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:u,backgroundClip:"padding-box",borderRadius:d,boxShadow:i,padding:l},[`${n}-title`]:{minWidth:t,marginBottom:p,color:c,fontWeight:r,borderBottom:g,padding:m},[`${n}-inner-content`]:{color:o,padding:y}})},F(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},Z=e=>{const{componentCls:n}=e;return{[n]:L.map(o=>{const t=e[`${o}6`];return{[`&${n}-${o}`]:{"--antd-arrow-background-color":t,[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{background:"transparent"}}}})}},q=e=>{const{lineWidth:n,controlHeight:o,fontHeight:t,padding:r,wireframe:l,zIndexPopupBase:i,borderRadiusLG:c,marginXS:d,lineType:f,colorSplit:p,paddingSM:v}=e,u=o-t,g=u/2,y=u/2-n,m=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},G(e)),K({contentRadius:c,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${g}px ${m}px ${y}px`:0,titleBorderBottom:l?`${n}px ${f} ${p}`:"none",innerContentPadding:l?`${v}px ${m}px`:0})},S=z("Popover",e=>{const{colorBgElevated:n,colorText:o}=e,t=D(e,{popoverBg:n,popoverColor:o});return[Y(t),Z(t),M(t,"zoom-big")]},q,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var J=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r!n&&!o?null:a.createElement(a.Fragment,null,n&&a.createElement("div",{className:`${e}-title`},b(n)),a.createElement("div",{className:`${e}-inner-content`},b(o))),te=e=>{const{hashId:n,prefixCls:o,className:t,style:r,placement:l="top",title:i,content:c,children:d}=e;return a.createElement("div",{className:O(n,o,`${o}-pure`,`${o}-placement-${l}`,t),style:r},a.createElement("div",{className:`${o}-arrow`}),a.createElement(Q,Object.assign({},e,{className:n,prefixCls:o}),d||ee(o,i,c)))},ne=e=>{const{prefixCls:n,className:o}=e,t=J(e,["prefixCls","className"]),{getPrefixCls:r}=a.useContext($),l=r("popover",n),[i,c,d]=S(l);return i(a.createElement(te,Object.assign({},t,{prefixCls:l,hashId:c,className:O(o,d)})))};var oe=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{let{title:n,content:o,prefixCls:t}=e;return a.createElement(a.Fragment,null,n&&a.createElement("div",{className:`${t}-title`},b(n)),a.createElement("div",{className:`${t}-inner-content`},b(o)))},ae=a.forwardRef((e,n)=>{var o,t;const{prefixCls:r,title:l,content:i,overlayClassName:c,placement:d="top",trigger:f="hover",children:p,mouseEnterDelay:v=.1,mouseLeaveDelay:u=.1,onOpenChange:g,overlayStyle:y={}}=e,m=oe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:P}=a.useContext($),x=P("popover",r),[E,B,N]=S(x),j=P(),k=O(c,B,N),[I,T]=U(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(t=e.defaultOpen)!==null&&t!==void 0?t:e.defaultVisible}),w=(s,C)=>{T(s,!0),g==null||g(s,C)},W=s=>{s.keyCode===A.ESC&&w(!1,s)},_=s=>{w(s)};return E(a.createElement(X,Object.assign({placement:d,trigger:f,mouseEnterDelay:v,mouseLeaveDelay:u,overlayStyle:y},m,{prefixCls:x,overlayClassName:k,ref:n,open:I,onOpenChange:_,overlay:l||i?a.createElement(re,{prefixCls:x,title:l,content:i}):null,transitionName:H(j,"zoom-big",m.transitionName),"data-popover-inject":!0}),V(p,{onKeyDown:s=>{var C,h;a.isValidElement(p)&&((h=p==null?void 0:(C=p.props).onKeyDown)===null||h===void 0||h.call(C,s)),W(s)}})))}),le=ae;le._InternalPanelDoNotUseOrYouWillBeFired=ne;export{le as P,ne as a,b as g}; +import{E as z,F as D,G as M,H as R,r as a,I as $,o as O,O as H,Q as V,W as A}from"./index-BBriuzNA.js";import{ae as F,aj as L,n as G,af as K,ak as Q,m as U,T as X}from"./MyApp-CmkiOnMb.js";const b=e=>e?typeof e=="function"?e():e:null,Y=e=>{const{componentCls:n,popoverColor:o,titleMinWidth:t,fontWeightStrong:r,innerPadding:l,boxShadowSecondary:i,colorTextHeading:c,borderRadiusLG:d,zIndexPopup:f,titleMarginBottom:p,colorBgElevated:v,popoverBg:u,titleBorderBottom:g,innerContentPadding:y,titlePadding:m}=e;return[{[n]:Object.assign(Object.assign({},R(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:f,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":v,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:u,backgroundClip:"padding-box",borderRadius:d,boxShadow:i,padding:l},[`${n}-title`]:{minWidth:t,marginBottom:p,color:c,fontWeight:r,borderBottom:g,padding:m},[`${n}-inner-content`]:{color:o,padding:y}})},F(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},Z=e=>{const{componentCls:n}=e;return{[n]:L.map(o=>{const t=e[`${o}6`];return{[`&${n}-${o}`]:{"--antd-arrow-background-color":t,[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{background:"transparent"}}}})}},q=e=>{const{lineWidth:n,controlHeight:o,fontHeight:t,padding:r,wireframe:l,zIndexPopupBase:i,borderRadiusLG:c,marginXS:d,lineType:f,colorSplit:p,paddingSM:v}=e,u=o-t,g=u/2,y=u/2-n,m=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},G(e)),K({contentRadius:c,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${g}px ${m}px ${y}px`:0,titleBorderBottom:l?`${n}px ${f} ${p}`:"none",innerContentPadding:l?`${v}px ${m}px`:0})},S=z("Popover",e=>{const{colorBgElevated:n,colorText:o}=e,t=D(e,{popoverBg:n,popoverColor:o});return[Y(t),Z(t),M(t,"zoom-big")]},q,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var J=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r!n&&!o?null:a.createElement(a.Fragment,null,n&&a.createElement("div",{className:`${e}-title`},b(n)),a.createElement("div",{className:`${e}-inner-content`},b(o))),te=e=>{const{hashId:n,prefixCls:o,className:t,style:r,placement:l="top",title:i,content:c,children:d}=e;return a.createElement("div",{className:O(n,o,`${o}-pure`,`${o}-placement-${l}`,t),style:r},a.createElement("div",{className:`${o}-arrow`}),a.createElement(Q,Object.assign({},e,{className:n,prefixCls:o}),d||ee(o,i,c)))},ne=e=>{const{prefixCls:n,className:o}=e,t=J(e,["prefixCls","className"]),{getPrefixCls:r}=a.useContext($),l=r("popover",n),[i,c,d]=S(l);return i(a.createElement(te,Object.assign({},t,{prefixCls:l,hashId:c,className:O(o,d)})))};var oe=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{let{title:n,content:o,prefixCls:t}=e;return a.createElement(a.Fragment,null,n&&a.createElement("div",{className:`${t}-title`},b(n)),a.createElement("div",{className:`${t}-inner-content`},b(o)))},ae=a.forwardRef((e,n)=>{var o,t;const{prefixCls:r,title:l,content:i,overlayClassName:c,placement:d="top",trigger:f="hover",children:p,mouseEnterDelay:v=.1,mouseLeaveDelay:u=.1,onOpenChange:g,overlayStyle:y={}}=e,m=oe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:P}=a.useContext($),x=P("popover",r),[E,B,N]=S(x),j=P(),k=O(c,B,N),[I,T]=U(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(t=e.defaultOpen)!==null&&t!==void 0?t:e.defaultVisible}),w=(s,C)=>{T(s,!0),g==null||g(s,C)},W=s=>{s.keyCode===A.ESC&&w(!1,s)},_=s=>{w(s)};return E(a.createElement(X,Object.assign({placement:d,trigger:f,mouseEnterDelay:v,mouseLeaveDelay:u,overlayStyle:y},m,{prefixCls:x,overlayClassName:k,ref:n,open:I,onOpenChange:_,overlay:l||i?a.createElement(re,{prefixCls:x,title:l,content:i}):null,transitionName:H(j,"zoom-big",m.transitionName),"data-popover-inject":!0}),V(p,{onKeyDown:s=>{var C,h;a.isValidElement(p)&&((h=p==null?void 0:(C=p.props).onKeyDown)===null||h===void 0||h.call(C,s)),W(s)}})))}),le=ae;le._InternalPanelDoNotUseOrYouWillBeFired=ne;export{le as P,ne as a,b as g}; diff --git a/public/assets/index-DlkwBJMX.js b/public/assets/index-DhqkrVsj.js similarity index 91% rename from public/assets/index-DlkwBJMX.js rename to public/assets/index-DhqkrVsj.js index 7715a4f..a38f0c3 100644 --- a/public/assets/index-DlkwBJMX.js +++ b/public/assets/index-DhqkrVsj.js @@ -1 +1 @@ -import{as as c}from"./index--trdnQFa.js";var p={exports:{}},i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=i,m=y;function a(){}function n(){}n.resetWarningCache=a;var T=function(){function e(f,h,l,P,v,s){if(s!==m){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:a};return t.PropTypes=t,t};p.exports=T();var u=p.exports;const _=c(u);export{_ as P}; +import{as as c}from"./index-BBriuzNA.js";var p={exports:{}},i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=i,m=y;function a(){}function n(){}n.resetWarningCache=a;var T=function(){function e(f,h,l,P,v,s){if(s!==m){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:a};return t.PropTypes=t,t};p.exports=T();var u=p.exports;const _=c(u);export{_ as P}; diff --git a/public/assets/index-CB9InVBI.js b/public/assets/index-Dm20K0UU.js similarity index 99% rename from public/assets/index-CB9InVBI.js rename to public/assets/index-Dm20K0UU.js index 71a0fbe..24aee90 100644 --- a/public/assets/index-CB9InVBI.js +++ b/public/assets/index-Dm20K0UU.js @@ -1 +1 @@ -import{r as a,o as ne,X as ae,C as ct,P as lt,d as T,W as $e,j as k,V as ut,w as ft,n as Se,$ as de,g as q,bx as vt,h as mt,e as Ge,T as xe,E as dt,F as Ze,a4 as ge,by as gt,G as ht,aa as pt,a2 as wt,D as Ue,ab as Ct,I as Ke,a7 as Qe,M as qe,O as Ee,bn as He}from"./index--trdnQFa.js";import{R as St}from"./EyeOutlined-BALW2cms.js";import{g as Je,a as we,b as bt}from"./addEventListener-KkFh1sjE.js";import{m as _e,al as xt,a2 as It}from"./MyApp-BHr373cy.js";var Ie=a.createContext(null),yt=function(e){var o=e.visible,n=e.maskTransitionName,r=e.getContainer,i=e.prefixCls,f=e.rootClassName,s=e.icons,l=e.countRender,m=e.showSwitch,d=e.showProgress,c=e.current,S=e.transform,h=e.count,g=e.scale,x=e.minScale,M=e.maxScale,C=e.closeIcon,L=e.onSwitchLeft,E=e.onSwitchRight,R=e.onClose,u=e.onZoomIn,I=e.onZoomOut,p=e.onRotateRight,v=e.onRotateLeft,b=e.onFlipX,y=e.onFlipY,w=e.onReset,N=e.toolbarRender,z=e.zIndex,$=e.image,j=a.useContext(Ie),H=s.rotateLeft,V=s.rotateRight,B=s.zoomIn,D=s.zoomOut,W=s.close,K=s.left,Q=s.right,F=s.flipX,ie=s.flipY,se="".concat(i,"-operations-operation");a.useEffect(function(){var O=function(Y){Y.keyCode===$e.ESC&&R()};return o&&window.addEventListener("keydown",O),function(){window.removeEventListener("keydown",O)}},[o]);var J=[{icon:ie,onClick:y,type:"flipY"},{icon:F,onClick:b,type:"flipX"},{icon:H,onClick:v,type:"rotateLeft"},{icon:V,onClick:p,type:"rotateRight"},{icon:D,onClick:I,type:"zoomOut",disabled:g<=x},{icon:B,onClick:u,type:"zoomIn",disabled:g===M}],A=J.map(function(O){var P,Y=O.icon,X=O.onClick,G=O.type,re=O.disabled;return a.createElement("div",{className:ne(se,(P={},ae(P,"".concat(i,"-operations-operation-").concat(G),!0),ae(P,"".concat(i,"-operations-operation-disabled"),!!re),P)),onClick:X,key:G},Y)}),Z=a.createElement("div",{className:"".concat(i,"-operations")},A);return a.createElement(ct,{visible:o,motionName:n},function(O){var P=O.className,Y=O.style;return a.createElement(lt,{open:!0,getContainer:r??document.body},a.createElement("div",{className:ne("".concat(i,"-operations-wrapper"),P,f),style:T(T({},Y),{},{zIndex:z})},C===null?null:a.createElement("button",{className:"".concat(i,"-close"),onClick:R},C||W),m&&a.createElement(a.Fragment,null,a.createElement("div",{className:ne("".concat(i,"-switch-left"),ae({},"".concat(i,"-switch-left-disabled"),c===0)),onClick:L},K),a.createElement("div",{className:ne("".concat(i,"-switch-right"),ae({},"".concat(i,"-switch-right-disabled"),c===h-1)),onClick:E},Q)),a.createElement("div",{className:"".concat(i,"-footer")},d&&a.createElement("div",{className:"".concat(i,"-progress")},l?l(c+1,h):"".concat(c+1," / ").concat(h)),N?N(Z,T(T({icons:{flipYIcon:A[0],flipXIcon:A[1],rotateLeftIcon:A[2],rotateRightIcon:A[3],zoomOutIcon:A[4],zoomInIcon:A[5]},actions:{onFlipY:y,onFlipX:b,onRotateLeft:v,onRotateRight:p,onZoomOut:I,onZoomIn:u,onReset:w,onClose:R},transform:S},j?{current:c,total:h}:{}),{},{image:$})):Z)))})},Pe={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Rt(t,e,o,n){var r=a.useRef(null),i=a.useRef([]),f=a.useState(Pe),s=k(f,2),l=s[0],m=s[1],d=function(g){m(Pe),ut(Pe,l)||n==null||n({transform:Pe,action:g})},c=function(g,x){r.current===null&&(i.current=[],r.current=ft(function(){m(function(M){var C=M;return i.current.forEach(function(L){C=T(T({},C),L)}),r.current=null,n==null||n({transform:C,action:x}),C})})),i.current.push(T(T({},l),g))},S=function(g,x,M,C,L){var E=t.current,R=E.width,u=E.height,I=E.offsetWidth,p=E.offsetHeight,v=E.offsetLeft,b=E.offsetTop,y=g,w=l.scale*g;w>o?(w=o,y=o/l.scale):wn){if(e>0)return ae({},t,i);if(e<0&&rn)return ae({},t,e<0?i:-i);return{}}function et(t,e,o,n){var r=Je(),i=r.width,f=r.height,s=null;return t<=i&&e<=f?s={x:0,y:0}:(t>i||e>f)&&(s=T(T({},Ve("x",o,t,i)),Ve("y",n,e,f))),s}var Ce=1,Mt=1;function Pt(t,e,o,n,r,i,f){var s=r.rotate,l=r.scale,m=r.x,d=r.y,c=a.useState(!1),S=k(c,2),h=S[0],g=S[1],x=a.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),M=function(u){!e||u.button!==0||(u.preventDefault(),u.stopPropagation(),x.current={diffX:u.pageX-m,diffY:u.pageY-d,transformX:m,transformY:d},g(!0))},C=function(u){o&&h&&i({x:u.pageX-x.current.diffX,y:u.pageY-x.current.diffY},"move")},L=function(){if(o&&h){g(!1);var u=x.current,I=u.transformX,p=u.transformY,v=m!==I&&d!==p;if(!v)return;var b=t.current.offsetWidth*l,y=t.current.offsetHeight*l,w=t.current.getBoundingClientRect(),N=w.left,z=w.top,$=s%180!==0,j=et($?y:b,$?b:y,N,z);j&&i(T({},j),"dragRebound")}},E=function(u){if(!(!o||u.deltaY==0)){var I=Math.abs(u.deltaY/100),p=Math.min(I,Mt),v=Ce+p*n;u.deltaY>0&&(v=Ce/v),f(v,"wheel",u.clientX,u.clientY)}};return a.useEffect(function(){var R,u,I,p;if(e){I=we(window,"mouseup",L,!1),p=we(window,"mousemove",C,!1);try{window.top!==window.self&&(R=we(window.top,"mouseup",L,!1),u=we(window.top,"mousemove",C,!1))}catch{}}return function(){var v,b,y,w;(v=I)===null||v===void 0||v.remove(),(b=p)===null||b===void 0||b.remove(),(y=R)===null||y===void 0||y.remove(),(w=u)===null||w===void 0||w.remove()}},[o,h,m,d,s,e]),{isMoving:h,onMouseDown:M,onMouseMove:C,onMouseUp:L,onWheel:E}}function Et(t){return new Promise(function(e){var o=document.createElement("img");o.onerror=function(){return e(!1)},o.onload=function(){return e(!0)},o.src=t})}function tt(t){var e=t.src,o=t.isCustomPlaceholder,n=t.fallback,r=a.useState(o?"loading":"normal"),i=k(r,2),f=i[0],s=i[1],l=a.useRef(!1),m=f==="error";a.useEffect(function(){var h=!0;return Et(e).then(function(g){!g&&h&&s("error")}),function(){h=!1}},[e]),a.useEffect(function(){o&&!l.current?s("loading"):m&&s("normal")},[e]);var d=function(){s("normal")},c=function(g){l.current=!1,f==="loading"&&g!==null&&g!==void 0&&g.complete&&(g.naturalWidth||g.naturalHeight)&&(l.current=!0,d())},S=m&&n?{src:n}:{onLoad:d,src:e};return[c,S,f]}function Ne(t,e){var o=t.x-e.x,n=t.y-e.y;return Math.hypot(o,n)}function Nt(t,e,o,n){var r=Ne(t,o),i=Ne(e,n);if(r===0&&i===0)return[t.x,t.y];var f=r/(r+i),s=t.x+f*(e.x-t.x),l=t.y+f*(e.y-t.y);return[s,l]}function Tt(t,e,o,n,r,i,f){var s=r.rotate,l=r.scale,m=r.x,d=r.y,c=a.useState(!1),S=k(c,2),h=S[0],g=S[1],x=a.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),M=function(u){x.current=T(T({},x.current),u)},C=function(u){if(e){u.stopPropagation(),g(!0);var I=u.touches,p=I===void 0?[]:I;p.length>1?M({point1:{x:p[0].clientX,y:p[0].clientY},point2:{x:p[1].clientX,y:p[1].clientY},eventType:"touchZoom"}):M({point1:{x:p[0].clientX-m,y:p[0].clientY-d},eventType:"move"})}},L=function(u){var I=u.touches,p=I===void 0?[]:I,v=x.current,b=v.point1,y=v.point2,w=v.eventType;if(p.length>1&&w==="touchZoom"){var N={x:p[0].clientX,y:p[0].clientY},z={x:p[1].clientX,y:p[1].clientY},$=Nt(b,y,N,z),j=k($,2),H=j[0],V=j[1],B=Ne(N,z)/Ne(b,y);f(B,"touchZoom",H,V,!0),M({point1:N,point2:z,eventType:"touchZoom"})}else w==="move"&&(i({x:p[0].clientX-b.x,y:p[0].clientY-b.y},"move"),M({eventType:"move"}))},E=function(){if(o){if(h&&g(!1),M({eventType:"none"}),n>l)return i({x:0,y:0,scale:n},"touchZoom");var u=t.current.offsetWidth*l,I=t.current.offsetHeight*l,p=t.current.getBoundingClientRect(),v=p.left,b=p.top,y=s%180!==0,w=et(y?I:u,y?u:I,v,b);w&&i(T({},w),"dragRebound")}};return a.useEffect(function(){var R;return o&&e&&(R=we(window,"touchmove",function(u){return u.preventDefault()},{passive:!1})),function(){var u;(u=R)===null||u===void 0||u.remove()}},[o,e]),{isTouching:h,onTouchStart:C,onTouchMove:L,onTouchEnd:E}}var Ot=["fallback","src","imgRef"],Lt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],$t=function(e){var o=e.fallback,n=e.src,r=e.imgRef,i=Se(e,Ot),f=tt({src:n,fallback:o}),s=k(f,2),l=s[0],m=s[1];return de.createElement("img",q({ref:function(c){r.current=c,l(c)}},i,m))},ot=function(e){var o=e.prefixCls,n=e.src,r=e.alt,i=e.imageInfo,f=e.fallback,s=e.movable,l=s===void 0?!0:s,m=e.onClose,d=e.visible,c=e.icons,S=c===void 0?{}:c,h=e.rootClassName,g=e.closeIcon,x=e.getContainer,M=e.current,C=M===void 0?0:M,L=e.count,E=L===void 0?1:L,R=e.countRender,u=e.scaleStep,I=u===void 0?.5:u,p=e.minScale,v=p===void 0?1:p,b=e.maxScale,y=b===void 0?50:b,w=e.transitionName,N=w===void 0?"zoom":w,z=e.maskTransitionName,$=z===void 0?"fade":z,j=e.imageRender,H=e.imgCommonProps,V=e.toolbarRender,B=e.onTransform,D=e.onChange,W=Se(e,Lt),K=a.useRef(),Q=a.useContext(Ie),F=Q&&E>1,ie=Q&&E>=1,se=a.useState(!0),J=k(se,2),A=J[0],Z=J[1],O=Rt(K,v,y,B),P=O.transform,Y=O.resetTransform,X=O.updateTransform,G=O.dispatchZoomChange,re=Pt(K,l,d,I,P,X,G),he=re.isMoving,be=re.onMouseDown,pe=re.onWheel,ee=Tt(K,l,d,v,P,X,G),te=ee.isTouching,oe=ee.onTouchStart,ue=ee.onTouchMove,me=ee.onTouchEnd,ce=P.rotate,le=P.scale,Te=ne(ae({},"".concat(o,"-moving"),he));a.useEffect(function(){A||Z(!0)},[A]);var Oe=function(){Y("close")},Le=function(){G(Ce+I,"zoomIn")},fe=function(){G(Ce/(Ce+I),"zoomOut")},ve=function(){X({rotate:ce+90},"rotateRight")},ye=function(){X({rotate:ce-90},"rotateLeft")},Re=function(){X({flipX:!P.flipX},"flipX")},Me=function(){X({flipY:!P.flipY},"flipY")},rt=function(){Y("reset")},Ae=function(_){_==null||_.preventDefault(),_==null||_.stopPropagation(),C>0&&(Z(!1),Y("prev"),D==null||D(C-1,C))},De=function(_){_==null||_.preventDefault(),_==null||_.stopPropagation(),C({position:t||"absolute",inset:0}),to=t=>{const{iconCls:e,motionDurationSlow:o,paddingXXS:n,marginXXS:r,prefixCls:i,colorTextLightSolid:f}=t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:f,background:new ge("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${o}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},wt),{padding:`0 ${Ue(n)}`,[e]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},oo=t=>{const{previewCls:e,modalMaskBg:o,paddingSM:n,marginXL:r,margin:i,paddingLG:f,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:m,iconCls:d,colorTextLightSolid:c}=t,S=new ge(o).setAlpha(.1),h=S.clone().setAlpha(.2);return{[`${e}-footer`]:{position:"fixed",bottom:r,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:t.previewOperationColor},[`${e}-progress`]:{marginBottom:i},[`${e}-close`]:{position:"fixed",top:r,right:{_skip_check_:!0,value:r},display:"flex",color:c,backgroundColor:S.toRgbString(),borderRadius:"50%",padding:n,outline:0,border:0,cursor:"pointer",transition:`all ${m}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${d}`]:{fontSize:t.previewOperationSize}},[`${e}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ue(f)}`,backgroundColor:S.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:n,padding:n,cursor:"pointer",transition:`all ${m}`,userSelect:"none",[`&:not(${e}-operations-operation-disabled):hover > ${d}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:t.previewOperationSize}}}}},no=t=>{const{modalMaskBg:e,iconCls:o,previewOperationColorDisabled:n,previewCls:r,zIndexPopup:i,motionDurationSlow:f}=t,s=new ge(e).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:t.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:t.imagePreviewSwitchSize,height:t.imagePreviewSwitchSize,marginTop:t.calc(t.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:t.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${f}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:n,background:"transparent",cursor:"not-allowed",[`> ${o}`]:{cursor:"not-allowed"}}},[`> ${o}`]:{fontSize:t.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:t.marginSM},[`${r}-switch-right`]:{insetInlineEnd:t.marginSM}}},ao=t=>{const{motionEaseOut:e,previewCls:o,motionDurationSlow:n,componentCls:r}=t;return[{[`${r}-preview-root`]:{[o]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${o}-body`]:Object.assign(Object.assign({},ke()),{overflow:"hidden"}),[`${o}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${n} ${e} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ke()),{transition:`transform ${n} ${e} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${o}-moving`]:{[`${o}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${o}-wrap`]:{zIndex:t.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",zIndex:t.calc(t.zIndexPopup).add(1).equal()},"&":[oo(t),no(t)]}]},ro=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",display:"inline-block",[`${e}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${e}-img-placeholder`]:{backgroundColor:t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${e}-mask`]:Object.assign({},to(t)),[`${e}-mask:hover`]:{opacity:1},[`${e}-placeholder`]:Object.assign({},ke())}}},io=t=>{const{previewCls:e}=t;return{[`${e}-root`]:ht(t,"zoom"),"&":pt(t,!0)}},so=t=>({zIndexPopup:t.zIndexPopupBase+80,previewOperationColor:new ge(t.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ge(t.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ge(t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:t.fontSizeIcon*1.5}),nt=dt("Image",t=>{const e=`${t.componentCls}-preview`,o=Ze(t,{previewCls:e,modalMaskBg:new ge("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:t.controlHeightLG});return[ro(o),ao(o),gt(Ze(o,{componentCls:e})),io(o)]},so);var co=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r{var{previewPrefixCls:e,preview:o}=t,n=co(t,["previewPrefixCls","preview"]);const{getPrefixCls:r}=a.useContext(Ke),i=r("image",e),f=`${i}-preview`,s=r(),l=Qe(i),[m,d,c]=nt(i,l),[S]=qe("ImagePreview",typeof o=="object"?o.zIndex:void 0),h=a.useMemo(()=>{var g;if(o===!1)return o;const x=typeof o=="object"?o:{},M=ne(d,c,l,(g=x.rootClassName)!==null&&g!==void 0?g:"");return Object.assign(Object.assign({},x),{transitionName:Ee(s,"zoom",x.transitionName),maskTransitionName:Ee(s,"fade",x.maskTransitionName),rootClassName:M,zIndex:S})},[o]);return m(a.createElement(je.PreviewGroup,Object.assign({preview:h,previewPrefixCls:f,icons:at},n)))},uo=lo;var Fe=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r{var e;const{prefixCls:o,preview:n,className:r,rootClassName:i,style:f}=t,s=Fe(t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:m=He,getPopupContainer:d,image:c}=a.useContext(Ke),S=l("image",o),h=l(),g=m.Image||He.Image,x=Qe(S),[M,C,L]=nt(S,x),E=ne(i,C,L,x),R=ne(r,C,c==null?void 0:c.className),[u]=qe("ImagePreview",typeof n=="object"?n.zIndex:void 0),I=a.useMemo(()=>{var v;if(n===!1)return n;const b=typeof n=="object"?n:{},{getContainer:y,closeIcon:w}=b,N=Fe(b,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:a.createElement("div",{className:`${S}-mask-info`},a.createElement(St,null),g==null?void 0:g.preview),icons:at},N),{getContainer:y??d,transitionName:Ee(h,"zoom",b.transitionName),maskTransitionName:Ee(h,"fade",b.maskTransitionName),zIndex:u,closeIcon:w??((v=c==null?void 0:c.preview)===null||v===void 0?void 0:v.closeIcon)})},[n,g,(e=c==null?void 0:c.preview)===null||e===void 0?void 0:e.closeIcon]),p=Object.assign(Object.assign({},c==null?void 0:c.style),f);return M(a.createElement(je,Object.assign({prefixCls:S,preview:I,rootClassName:E,className:R,style:p},s)))};fo.PreviewGroup=uo;export{fo as I}; +import{r as a,o as ne,X as ae,C as ct,P as lt,d as T,W as $e,j as k,V as ut,w as ft,n as Se,$ as de,g as q,bx as vt,h as mt,e as Ge,T as xe,E as dt,F as Ze,a4 as ge,by as gt,G as ht,aa as pt,a2 as wt,D as Ue,ab as Ct,I as Ke,a7 as Qe,M as qe,O as Ee,bn as He}from"./index-BBriuzNA.js";import{R as St}from"./EyeOutlined-Du2MtFRM.js";import{g as Je,a as we,b as bt}from"./addEventListener-w7NT04KM.js";import{m as _e,al as xt,a2 as It}from"./MyApp-CmkiOnMb.js";var Ie=a.createContext(null),yt=function(e){var o=e.visible,n=e.maskTransitionName,r=e.getContainer,i=e.prefixCls,f=e.rootClassName,s=e.icons,l=e.countRender,m=e.showSwitch,d=e.showProgress,c=e.current,S=e.transform,h=e.count,g=e.scale,x=e.minScale,M=e.maxScale,C=e.closeIcon,L=e.onSwitchLeft,E=e.onSwitchRight,R=e.onClose,u=e.onZoomIn,I=e.onZoomOut,p=e.onRotateRight,v=e.onRotateLeft,b=e.onFlipX,y=e.onFlipY,w=e.onReset,N=e.toolbarRender,z=e.zIndex,$=e.image,j=a.useContext(Ie),H=s.rotateLeft,V=s.rotateRight,B=s.zoomIn,D=s.zoomOut,W=s.close,K=s.left,Q=s.right,F=s.flipX,ie=s.flipY,se="".concat(i,"-operations-operation");a.useEffect(function(){var O=function(Y){Y.keyCode===$e.ESC&&R()};return o&&window.addEventListener("keydown",O),function(){window.removeEventListener("keydown",O)}},[o]);var J=[{icon:ie,onClick:y,type:"flipY"},{icon:F,onClick:b,type:"flipX"},{icon:H,onClick:v,type:"rotateLeft"},{icon:V,onClick:p,type:"rotateRight"},{icon:D,onClick:I,type:"zoomOut",disabled:g<=x},{icon:B,onClick:u,type:"zoomIn",disabled:g===M}],A=J.map(function(O){var P,Y=O.icon,X=O.onClick,G=O.type,re=O.disabled;return a.createElement("div",{className:ne(se,(P={},ae(P,"".concat(i,"-operations-operation-").concat(G),!0),ae(P,"".concat(i,"-operations-operation-disabled"),!!re),P)),onClick:X,key:G},Y)}),Z=a.createElement("div",{className:"".concat(i,"-operations")},A);return a.createElement(ct,{visible:o,motionName:n},function(O){var P=O.className,Y=O.style;return a.createElement(lt,{open:!0,getContainer:r??document.body},a.createElement("div",{className:ne("".concat(i,"-operations-wrapper"),P,f),style:T(T({},Y),{},{zIndex:z})},C===null?null:a.createElement("button",{className:"".concat(i,"-close"),onClick:R},C||W),m&&a.createElement(a.Fragment,null,a.createElement("div",{className:ne("".concat(i,"-switch-left"),ae({},"".concat(i,"-switch-left-disabled"),c===0)),onClick:L},K),a.createElement("div",{className:ne("".concat(i,"-switch-right"),ae({},"".concat(i,"-switch-right-disabled"),c===h-1)),onClick:E},Q)),a.createElement("div",{className:"".concat(i,"-footer")},d&&a.createElement("div",{className:"".concat(i,"-progress")},l?l(c+1,h):"".concat(c+1," / ").concat(h)),N?N(Z,T(T({icons:{flipYIcon:A[0],flipXIcon:A[1],rotateLeftIcon:A[2],rotateRightIcon:A[3],zoomOutIcon:A[4],zoomInIcon:A[5]},actions:{onFlipY:y,onFlipX:b,onRotateLeft:v,onRotateRight:p,onZoomOut:I,onZoomIn:u,onReset:w,onClose:R},transform:S},j?{current:c,total:h}:{}),{},{image:$})):Z)))})},Pe={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Rt(t,e,o,n){var r=a.useRef(null),i=a.useRef([]),f=a.useState(Pe),s=k(f,2),l=s[0],m=s[1],d=function(g){m(Pe),ut(Pe,l)||n==null||n({transform:Pe,action:g})},c=function(g,x){r.current===null&&(i.current=[],r.current=ft(function(){m(function(M){var C=M;return i.current.forEach(function(L){C=T(T({},C),L)}),r.current=null,n==null||n({transform:C,action:x}),C})})),i.current.push(T(T({},l),g))},S=function(g,x,M,C,L){var E=t.current,R=E.width,u=E.height,I=E.offsetWidth,p=E.offsetHeight,v=E.offsetLeft,b=E.offsetTop,y=g,w=l.scale*g;w>o?(w=o,y=o/l.scale):wn){if(e>0)return ae({},t,i);if(e<0&&rn)return ae({},t,e<0?i:-i);return{}}function et(t,e,o,n){var r=Je(),i=r.width,f=r.height,s=null;return t<=i&&e<=f?s={x:0,y:0}:(t>i||e>f)&&(s=T(T({},Ve("x",o,t,i)),Ve("y",n,e,f))),s}var Ce=1,Mt=1;function Pt(t,e,o,n,r,i,f){var s=r.rotate,l=r.scale,m=r.x,d=r.y,c=a.useState(!1),S=k(c,2),h=S[0],g=S[1],x=a.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),M=function(u){!e||u.button!==0||(u.preventDefault(),u.stopPropagation(),x.current={diffX:u.pageX-m,diffY:u.pageY-d,transformX:m,transformY:d},g(!0))},C=function(u){o&&h&&i({x:u.pageX-x.current.diffX,y:u.pageY-x.current.diffY},"move")},L=function(){if(o&&h){g(!1);var u=x.current,I=u.transformX,p=u.transformY,v=m!==I&&d!==p;if(!v)return;var b=t.current.offsetWidth*l,y=t.current.offsetHeight*l,w=t.current.getBoundingClientRect(),N=w.left,z=w.top,$=s%180!==0,j=et($?y:b,$?b:y,N,z);j&&i(T({},j),"dragRebound")}},E=function(u){if(!(!o||u.deltaY==0)){var I=Math.abs(u.deltaY/100),p=Math.min(I,Mt),v=Ce+p*n;u.deltaY>0&&(v=Ce/v),f(v,"wheel",u.clientX,u.clientY)}};return a.useEffect(function(){var R,u,I,p;if(e){I=we(window,"mouseup",L,!1),p=we(window,"mousemove",C,!1);try{window.top!==window.self&&(R=we(window.top,"mouseup",L,!1),u=we(window.top,"mousemove",C,!1))}catch{}}return function(){var v,b,y,w;(v=I)===null||v===void 0||v.remove(),(b=p)===null||b===void 0||b.remove(),(y=R)===null||y===void 0||y.remove(),(w=u)===null||w===void 0||w.remove()}},[o,h,m,d,s,e]),{isMoving:h,onMouseDown:M,onMouseMove:C,onMouseUp:L,onWheel:E}}function Et(t){return new Promise(function(e){var o=document.createElement("img");o.onerror=function(){return e(!1)},o.onload=function(){return e(!0)},o.src=t})}function tt(t){var e=t.src,o=t.isCustomPlaceholder,n=t.fallback,r=a.useState(o?"loading":"normal"),i=k(r,2),f=i[0],s=i[1],l=a.useRef(!1),m=f==="error";a.useEffect(function(){var h=!0;return Et(e).then(function(g){!g&&h&&s("error")}),function(){h=!1}},[e]),a.useEffect(function(){o&&!l.current?s("loading"):m&&s("normal")},[e]);var d=function(){s("normal")},c=function(g){l.current=!1,f==="loading"&&g!==null&&g!==void 0&&g.complete&&(g.naturalWidth||g.naturalHeight)&&(l.current=!0,d())},S=m&&n?{src:n}:{onLoad:d,src:e};return[c,S,f]}function Ne(t,e){var o=t.x-e.x,n=t.y-e.y;return Math.hypot(o,n)}function Nt(t,e,o,n){var r=Ne(t,o),i=Ne(e,n);if(r===0&&i===0)return[t.x,t.y];var f=r/(r+i),s=t.x+f*(e.x-t.x),l=t.y+f*(e.y-t.y);return[s,l]}function Tt(t,e,o,n,r,i,f){var s=r.rotate,l=r.scale,m=r.x,d=r.y,c=a.useState(!1),S=k(c,2),h=S[0],g=S[1],x=a.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),M=function(u){x.current=T(T({},x.current),u)},C=function(u){if(e){u.stopPropagation(),g(!0);var I=u.touches,p=I===void 0?[]:I;p.length>1?M({point1:{x:p[0].clientX,y:p[0].clientY},point2:{x:p[1].clientX,y:p[1].clientY},eventType:"touchZoom"}):M({point1:{x:p[0].clientX-m,y:p[0].clientY-d},eventType:"move"})}},L=function(u){var I=u.touches,p=I===void 0?[]:I,v=x.current,b=v.point1,y=v.point2,w=v.eventType;if(p.length>1&&w==="touchZoom"){var N={x:p[0].clientX,y:p[0].clientY},z={x:p[1].clientX,y:p[1].clientY},$=Nt(b,y,N,z),j=k($,2),H=j[0],V=j[1],B=Ne(N,z)/Ne(b,y);f(B,"touchZoom",H,V,!0),M({point1:N,point2:z,eventType:"touchZoom"})}else w==="move"&&(i({x:p[0].clientX-b.x,y:p[0].clientY-b.y},"move"),M({eventType:"move"}))},E=function(){if(o){if(h&&g(!1),M({eventType:"none"}),n>l)return i({x:0,y:0,scale:n},"touchZoom");var u=t.current.offsetWidth*l,I=t.current.offsetHeight*l,p=t.current.getBoundingClientRect(),v=p.left,b=p.top,y=s%180!==0,w=et(y?I:u,y?u:I,v,b);w&&i(T({},w),"dragRebound")}};return a.useEffect(function(){var R;return o&&e&&(R=we(window,"touchmove",function(u){return u.preventDefault()},{passive:!1})),function(){var u;(u=R)===null||u===void 0||u.remove()}},[o,e]),{isTouching:h,onTouchStart:C,onTouchMove:L,onTouchEnd:E}}var Ot=["fallback","src","imgRef"],Lt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],$t=function(e){var o=e.fallback,n=e.src,r=e.imgRef,i=Se(e,Ot),f=tt({src:n,fallback:o}),s=k(f,2),l=s[0],m=s[1];return de.createElement("img",q({ref:function(c){r.current=c,l(c)}},i,m))},ot=function(e){var o=e.prefixCls,n=e.src,r=e.alt,i=e.imageInfo,f=e.fallback,s=e.movable,l=s===void 0?!0:s,m=e.onClose,d=e.visible,c=e.icons,S=c===void 0?{}:c,h=e.rootClassName,g=e.closeIcon,x=e.getContainer,M=e.current,C=M===void 0?0:M,L=e.count,E=L===void 0?1:L,R=e.countRender,u=e.scaleStep,I=u===void 0?.5:u,p=e.minScale,v=p===void 0?1:p,b=e.maxScale,y=b===void 0?50:b,w=e.transitionName,N=w===void 0?"zoom":w,z=e.maskTransitionName,$=z===void 0?"fade":z,j=e.imageRender,H=e.imgCommonProps,V=e.toolbarRender,B=e.onTransform,D=e.onChange,W=Se(e,Lt),K=a.useRef(),Q=a.useContext(Ie),F=Q&&E>1,ie=Q&&E>=1,se=a.useState(!0),J=k(se,2),A=J[0],Z=J[1],O=Rt(K,v,y,B),P=O.transform,Y=O.resetTransform,X=O.updateTransform,G=O.dispatchZoomChange,re=Pt(K,l,d,I,P,X,G),he=re.isMoving,be=re.onMouseDown,pe=re.onWheel,ee=Tt(K,l,d,v,P,X,G),te=ee.isTouching,oe=ee.onTouchStart,ue=ee.onTouchMove,me=ee.onTouchEnd,ce=P.rotate,le=P.scale,Te=ne(ae({},"".concat(o,"-moving"),he));a.useEffect(function(){A||Z(!0)},[A]);var Oe=function(){Y("close")},Le=function(){G(Ce+I,"zoomIn")},fe=function(){G(Ce/(Ce+I),"zoomOut")},ve=function(){X({rotate:ce+90},"rotateRight")},ye=function(){X({rotate:ce-90},"rotateLeft")},Re=function(){X({flipX:!P.flipX},"flipX")},Me=function(){X({flipY:!P.flipY},"flipY")},rt=function(){Y("reset")},Ae=function(_){_==null||_.preventDefault(),_==null||_.stopPropagation(),C>0&&(Z(!1),Y("prev"),D==null||D(C-1,C))},De=function(_){_==null||_.preventDefault(),_==null||_.stopPropagation(),C({position:t||"absolute",inset:0}),to=t=>{const{iconCls:e,motionDurationSlow:o,paddingXXS:n,marginXXS:r,prefixCls:i,colorTextLightSolid:f}=t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:f,background:new ge("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${o}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},wt),{padding:`0 ${Ue(n)}`,[e]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},oo=t=>{const{previewCls:e,modalMaskBg:o,paddingSM:n,marginXL:r,margin:i,paddingLG:f,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:m,iconCls:d,colorTextLightSolid:c}=t,S=new ge(o).setAlpha(.1),h=S.clone().setAlpha(.2);return{[`${e}-footer`]:{position:"fixed",bottom:r,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:t.previewOperationColor},[`${e}-progress`]:{marginBottom:i},[`${e}-close`]:{position:"fixed",top:r,right:{_skip_check_:!0,value:r},display:"flex",color:c,backgroundColor:S.toRgbString(),borderRadius:"50%",padding:n,outline:0,border:0,cursor:"pointer",transition:`all ${m}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${d}`]:{fontSize:t.previewOperationSize}},[`${e}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ue(f)}`,backgroundColor:S.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:n,padding:n,cursor:"pointer",transition:`all ${m}`,userSelect:"none",[`&:not(${e}-operations-operation-disabled):hover > ${d}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:t.previewOperationSize}}}}},no=t=>{const{modalMaskBg:e,iconCls:o,previewOperationColorDisabled:n,previewCls:r,zIndexPopup:i,motionDurationSlow:f}=t,s=new ge(e).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:t.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:t.imagePreviewSwitchSize,height:t.imagePreviewSwitchSize,marginTop:t.calc(t.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:t.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${f}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:n,background:"transparent",cursor:"not-allowed",[`> ${o}`]:{cursor:"not-allowed"}}},[`> ${o}`]:{fontSize:t.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:t.marginSM},[`${r}-switch-right`]:{insetInlineEnd:t.marginSM}}},ao=t=>{const{motionEaseOut:e,previewCls:o,motionDurationSlow:n,componentCls:r}=t;return[{[`${r}-preview-root`]:{[o]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${o}-body`]:Object.assign(Object.assign({},ke()),{overflow:"hidden"}),[`${o}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${n} ${e} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ke()),{transition:`transform ${n} ${e} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${o}-moving`]:{[`${o}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${o}-wrap`]:{zIndex:t.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",zIndex:t.calc(t.zIndexPopup).add(1).equal()},"&":[oo(t),no(t)]}]},ro=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",display:"inline-block",[`${e}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${e}-img-placeholder`]:{backgroundColor:t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${e}-mask`]:Object.assign({},to(t)),[`${e}-mask:hover`]:{opacity:1},[`${e}-placeholder`]:Object.assign({},ke())}}},io=t=>{const{previewCls:e}=t;return{[`${e}-root`]:ht(t,"zoom"),"&":pt(t,!0)}},so=t=>({zIndexPopup:t.zIndexPopupBase+80,previewOperationColor:new ge(t.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ge(t.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ge(t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:t.fontSizeIcon*1.5}),nt=dt("Image",t=>{const e=`${t.componentCls}-preview`,o=Ze(t,{previewCls:e,modalMaskBg:new ge("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:t.controlHeightLG});return[ro(o),ao(o),gt(Ze(o,{componentCls:e})),io(o)]},so);var co=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r{var{previewPrefixCls:e,preview:o}=t,n=co(t,["previewPrefixCls","preview"]);const{getPrefixCls:r}=a.useContext(Ke),i=r("image",e),f=`${i}-preview`,s=r(),l=Qe(i),[m,d,c]=nt(i,l),[S]=qe("ImagePreview",typeof o=="object"?o.zIndex:void 0),h=a.useMemo(()=>{var g;if(o===!1)return o;const x=typeof o=="object"?o:{},M=ne(d,c,l,(g=x.rootClassName)!==null&&g!==void 0?g:"");return Object.assign(Object.assign({},x),{transitionName:Ee(s,"zoom",x.transitionName),maskTransitionName:Ee(s,"fade",x.maskTransitionName),rootClassName:M,zIndex:S})},[o]);return m(a.createElement(je.PreviewGroup,Object.assign({preview:h,previewPrefixCls:f,icons:at},n)))},uo=lo;var Fe=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r{var e;const{prefixCls:o,preview:n,className:r,rootClassName:i,style:f}=t,s=Fe(t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:m=He,getPopupContainer:d,image:c}=a.useContext(Ke),S=l("image",o),h=l(),g=m.Image||He.Image,x=Qe(S),[M,C,L]=nt(S,x),E=ne(i,C,L,x),R=ne(r,C,c==null?void 0:c.className),[u]=qe("ImagePreview",typeof n=="object"?n.zIndex:void 0),I=a.useMemo(()=>{var v;if(n===!1)return n;const b=typeof n=="object"?n:{},{getContainer:y,closeIcon:w}=b,N=Fe(b,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:a.createElement("div",{className:`${S}-mask-info`},a.createElement(St,null),g==null?void 0:g.preview),icons:at},N),{getContainer:y??d,transitionName:Ee(h,"zoom",b.transitionName),maskTransitionName:Ee(h,"fade",b.maskTransitionName),zIndex:u,closeIcon:w??((v=c==null?void 0:c.preview)===null||v===void 0?void 0:v.closeIcon)})},[n,g,(e=c==null?void 0:c.preview)===null||e===void 0?void 0:e.closeIcon]),p=Object.assign(Object.assign({},c==null?void 0:c.style),f);return M(a.createElement(je,Object.assign({prefixCls:S,preview:I,rootClassName:E,className:R,style:p},s)))};fo.PreviewGroup=uo;export{fo as I}; diff --git a/public/assets/index-FqgPeFV_.js b/public/assets/index-FqgPeFV_.js new file mode 100644 index 0000000..b57e114 --- /dev/null +++ b/public/assets/index-FqgPeFV_.js @@ -0,0 +1,2 @@ +const __vite__fileDeps=["./RecentStories-Bs7uYjS2.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./MyApp-CmkiOnMb.js","./Collection-B9SxfYr4.js","./index-NjHtWr7u.js","./file-download-Dys_FsHc.js","./index-4qwk-lHW.js","./Dropdown-DxSI4NN9.js","./PurePanel-yY9muMEs.js","./index-tTPNrueW.js","./index-BbXfI1Nu.js","./index-Bumumc8Y.js","./EyeOutlined-Du2MtFRM.js","./SearchOutlined-DvnHgzkc.js","./index-B7udrguy.js","./Pagination-slfcHA-i.js","./useBreakpoint-CDLrV-mr.js","./responsiveObserver-Bb1LONna.js","./index-CKsES7YN.js","./row-C0Wk6t4-.js","./index-uPrgDTc-.js","./RecentStoryViewer-DiqVKsiv.js","./stories-B17I0-Ef.js","./StoryViewers-suc5mL0p.js","./index-CbmP82sr.js","./index-Dg6R6lHP.js","./VideoWithMuted-CdYhYcjW.js","./index-Dm20K0UU.js","./addEventListener-w7NT04KM.js","./index-BhyNApA-.js","./ArchivedStories-DHTp8NWF.js","./index-BM7CeakW.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{aA as e,r as i,aF as a}from"./index-BBriuzNA.js";import{u as o,b as l}from"./MyApp-CmkiOnMb.js";import{T as c}from"./index-C9vPYMV7.js";import"./Dropdown-DxSI4NN9.js";const n=i.lazy(()=>a(()=>import("./RecentStories-Bs7uYjS2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),d=i.lazy(()=>a(()=>import("./ArchivedStories-DHTp8NWF.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,28,29,32,26]),import.meta.url)),r={Recent:"recent",Archived:"archived"};function v(){const{ti:t}=o(),s=[{key:r.Recent,label:t({en:"Today",vi:"Hôm nay"}),closable:!1,children:e.jsx(n,{})},{key:r.Archived,label:t({en:"Archived",vi:"Kho lưu trữ"}),closable:!1,children:e.jsx(d,{})}];return e.jsxs(l,{direction:"vertical",style:{width:"100%"},children:[e.jsx("h1",{style:{textAlign:"left"},children:t({en:"Story",vi:"Tin"})}),e.jsx(c,{hideAdd:!0,type:"editable-card",items:s})]})}export{v as default}; diff --git a/public/assets/index-X7jfXLlB.js b/public/assets/index-NjHtWr7u.js similarity index 98% rename from public/assets/index-X7jfXLlB.js rename to public/assets/index-NjHtWr7u.js index 063ce26..69421dc 100644 --- a/public/assets/index-X7jfXLlB.js +++ b/public/assets/index-NjHtWr7u.js @@ -1 +1 @@ -import{at as S,as as N,r as c}from"./index--trdnQFa.js";var _="Expected a function",F=NaN,$="[object Symbol]",M=/^\s+|\s+$/g,W=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,B=/^0o[0-7]+$/i,D=parseInt,P=typeof S=="object"&&S&&S.Object===Object&&S,G=typeof self=="object"&&self&&self.Object===Object&&self,U=P||G||Function("return this")(),H=Object.prototype,J=H.toString,X=Math.max,q=Math.min,O=function(){return U.Date.now()};function K(e,t,n){var r,f,a,u,s,d,o=0,E=!1,l=!1,b=!0;if(typeof e!="function")throw new TypeError(_);t=L(t)||0,k(n)&&(E=!!n.leading,l="maxWait"in n,a=l?X(L(n.maxWait)||0,t):a,b="trailing"in n?!!n.trailing:b);function I(i){var y=r,x=f;return r=f=void 0,o=i,u=e.apply(x,y),u}function m(i){return o=i,s=setTimeout(p,t),E?I(i):u}function v(i){var y=i-d,x=i-o,C=t-y;return l?q(C,a-x):C}function g(i){var y=i-d,x=i-o;return d===void 0||y>=t||y<0||l&&x>=a}function p(){var i=O();if(g(i))return R(i);s=setTimeout(p,v(i))}function R(i){return s=void 0,b&&r?I(i):(r=f=void 0,u)}function h(){s!==void 0&&clearTimeout(s),o=0,r=d=f=s=void 0}function j(){return s===void 0?u:R(O())}function T(){var i=O(),y=g(i);if(r=arguments,f=this,d=i,y){if(s===void 0)return m(d);if(l)return s=setTimeout(p,t),I(d)}return s===void 0&&(s=setTimeout(p,t)),u}return T.cancel=h,T.flush=j,T}function k(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Q(e){return!!e&&typeof e=="object"}function Y(e){return typeof e=="symbol"||Q(e)&&J.call(e)==$}function L(e){if(typeof e=="number")return e;if(Y(e))return F;if(k(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=k(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(M,"");var n=w.test(e);return n||B.test(e)?D(e.slice(2),n?2:8):W.test(e)?F:+e}var Z=K;const A=N(Z);var z=typeof window<"u"?c.useLayoutEffect:c.useEffect;function te(e,t){const n=c.useRef(e);z(()=>{n.current=e},[e]),c.useEffect(()=>{const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function V(e){const t=c.useRef(e);t.current=e,c.useEffect(()=>()=>{t.current()},[])}function ne(e,t=500,n){const r=c.useRef();V(()=>{r.current&&r.current.cancel()});const f=c.useMemo(()=>{const a=A(e,t,n),u=(...s)=>a(...s);return u.cancel=()=>{a.cancel()},u.isPending=()=>!!r.current,u.flush=()=>a.flush(),u},[e,t,n]);return c.useEffect(()=>{r.current=A(e,t,n)},[e,t,n]),f}function re({threshold:e=0,root:t=null,rootMargin:n="0%",freezeOnceVisible:r=!1,initialIsIntersecting:f=!1,onChange:a}={}){var u;const[s,d]=c.useState(null),[o,E]=c.useState(()=>({isIntersecting:f,entry:void 0})),l=c.useRef();l.current=a;const b=((u=o.entry)==null?void 0:u.isIntersecting)&&r;c.useEffect(()=>{if(!s||!("IntersectionObserver"in window)||b)return;let v;const g=new IntersectionObserver(p=>{const R=Array.isArray(g.thresholds)?g.thresholds:[g.thresholds];p.forEach(h=>{const j=h.isIntersecting&&R.some(T=>h.intersectionRatio>=T);E({isIntersecting:j,entry:h}),l.current&&l.current(j,h),j&&r&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:n});return g.observe(s),()=>{g.disconnect()}},[s,JSON.stringify(e),t,n,b,r]);const I=c.useRef(null);c.useEffect(()=>{var v;!s&&((v=o.entry)!=null&&v.target)&&!r&&!b&&I.current!==o.entry.target&&(I.current=o.entry.target,E({isIntersecting:f,entry:void 0}))},[s,o.entry,r,b,f]);const m=[d,!!o.isIntersecting,o.entry];return m.ref=m[0],m.isIntersecting=m[1],m.entry=m[2],m}export{te as a,ne as b,re as u}; +import{at as S,as as N,r as c}from"./index-BBriuzNA.js";var _="Expected a function",F=NaN,$="[object Symbol]",M=/^\s+|\s+$/g,W=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,B=/^0o[0-7]+$/i,D=parseInt,P=typeof S=="object"&&S&&S.Object===Object&&S,G=typeof self=="object"&&self&&self.Object===Object&&self,U=P||G||Function("return this")(),H=Object.prototype,J=H.toString,X=Math.max,q=Math.min,O=function(){return U.Date.now()};function K(e,t,n){var r,f,a,u,s,d,o=0,E=!1,l=!1,b=!0;if(typeof e!="function")throw new TypeError(_);t=L(t)||0,k(n)&&(E=!!n.leading,l="maxWait"in n,a=l?X(L(n.maxWait)||0,t):a,b="trailing"in n?!!n.trailing:b);function I(i){var y=r,x=f;return r=f=void 0,o=i,u=e.apply(x,y),u}function m(i){return o=i,s=setTimeout(p,t),E?I(i):u}function v(i){var y=i-d,x=i-o,C=t-y;return l?q(C,a-x):C}function g(i){var y=i-d,x=i-o;return d===void 0||y>=t||y<0||l&&x>=a}function p(){var i=O();if(g(i))return R(i);s=setTimeout(p,v(i))}function R(i){return s=void 0,b&&r?I(i):(r=f=void 0,u)}function h(){s!==void 0&&clearTimeout(s),o=0,r=d=f=s=void 0}function j(){return s===void 0?u:R(O())}function T(){var i=O(),y=g(i);if(r=arguments,f=this,d=i,y){if(s===void 0)return m(d);if(l)return s=setTimeout(p,t),I(d)}return s===void 0&&(s=setTimeout(p,t)),u}return T.cancel=h,T.flush=j,T}function k(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Q(e){return!!e&&typeof e=="object"}function Y(e){return typeof e=="symbol"||Q(e)&&J.call(e)==$}function L(e){if(typeof e=="number")return e;if(Y(e))return F;if(k(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=k(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(M,"");var n=w.test(e);return n||B.test(e)?D(e.slice(2),n?2:8):W.test(e)?F:+e}var Z=K;const A=N(Z);var z=typeof window<"u"?c.useLayoutEffect:c.useEffect;function te(e,t){const n=c.useRef(e);z(()=>{n.current=e},[e]),c.useEffect(()=>{const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function V(e){const t=c.useRef(e);t.current=e,c.useEffect(()=>()=>{t.current()},[])}function ne(e,t=500,n){const r=c.useRef();V(()=>{r.current&&r.current.cancel()});const f=c.useMemo(()=>{const a=A(e,t,n),u=(...s)=>a(...s);return u.cancel=()=>{a.cancel()},u.isPending=()=>!!r.current,u.flush=()=>a.flush(),u},[e,t,n]);return c.useEffect(()=>{r.current=A(e,t,n)},[e,t,n]),f}function re({threshold:e=0,root:t=null,rootMargin:n="0%",freezeOnceVisible:r=!1,initialIsIntersecting:f=!1,onChange:a}={}){var u;const[s,d]=c.useState(null),[o,E]=c.useState(()=>({isIntersecting:f,entry:void 0})),l=c.useRef();l.current=a;const b=((u=o.entry)==null?void 0:u.isIntersecting)&&r;c.useEffect(()=>{if(!s||!("IntersectionObserver"in window)||b)return;let v;const g=new IntersectionObserver(p=>{const R=Array.isArray(g.thresholds)?g.thresholds:[g.thresholds];p.forEach(h=>{const j=h.isIntersecting&&R.some(T=>h.intersectionRatio>=T);E({isIntersecting:j,entry:h}),l.current&&l.current(j,h),j&&r&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:n});return g.observe(s),()=>{g.disconnect()}},[s,JSON.stringify(e),t,n,b,r]);const I=c.useRef(null);c.useEffect(()=>{var v;!s&&((v=o.entry)!=null&&v.target)&&!r&&!b&&I.current!==o.entry.target&&(I.current=o.entry.target,E({isIntersecting:f,entry:void 0}))},[s,o.entry,r,b,f]);const m=[d,!!o.isIntersecting,o.entry];return m.ref=m[0],m.isIntersecting=m[1],m.entry=m[2],m}export{te as a,ne as b,re as u}; diff --git a/public/assets/index-DM74e2Au.js b/public/assets/index-drlxkLo6.js similarity index 89% rename from public/assets/index-DM74e2Au.js rename to public/assets/index-drlxkLo6.js index 444bc7f..06430b7 100644 --- a/public/assets/index-DM74e2Au.js +++ b/public/assets/index-drlxkLo6.js @@ -1,3 +1,3 @@ -const __vite__fileDeps=["./MyTable-BTHATUSD.js","./index--trdnQFa.js","./index-DfqnkV-X.css","./MyApp-BHr373cy.js","./index-X7jfXLlB.js","./Table-GiCOcILW.js","./index-VHrAsB-Q.js","./addEventListener-KkFh1sjE.js","./index-CETJ8txP.js","./PurePanel-CSR2tSBX.js","./SearchOutlined-D247roQH.js","./index-DmA8T0X5.js","./index-BI67OZir.js","./Dropdown-DUpNeMO8.js","./useBreakpoint-QbbjxHKX.js","./responsiveObserver-DiDk9dGL.js","./Pagination-CPGTHysj.js","./index-BCUBacY9.js","./EyeOutlined-BALW2cms.js","./row-DQoT4CfJ.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{aI as ee,r as y,aA as i,aB as m,aF as ne,aS as C,aT as ie}from"./index--trdnQFa.js";import{d as te,u as ae,g as V,t as j,b as v,c as N,i as P,T as x,L as se,o as le,B as oe,k as re,M as ce,U as de}from"./MyApp-BHr373cy.js";import{u as ge}from"./useForceStop-B53S8Rhf.js";import{E as he}from"./ExportButton-C-PwJSin.js";import{d as U}from"./dayjs.min-DH5lmvCP.js";import{g as ue,U as c,a as me,u as pe,b as xe,d as fe}from"./pages-BoKNAMFY.js";import{I as W}from"./index-CB9InVBI.js";import{T as L}from"./index-VHrAsB-Q.js";import{R as ve}from"./row-DQoT4CfJ.js";import{P as E}from"./index-CB2nR54F.js";import"./file-download-DYjmaN3D.js";import"./index-BI67OZir.js";import"./Dropdown-DUpNeMO8.js";import"./PurePanel-CSR2tSBX.js";import"./EyeOutlined-BALW2cms.js";import"./addEventListener-KkFh1sjE.js";import"./responsiveObserver-DiDk9dGL.js";import"./index-CU7pBSDU.js";const ye=y.lazy(()=>ne(()=>import("./MyTable-BTHATUSD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url));function Ae(){const{message:g,notification:T}=te(),K=ee(),{ti:t}=ae(),z=ge(),[F,f]=V("Pages.data",[]),[q,B]=V("Pages.finished",!1),[M,$]=y.useState(!1),p=y.useMemo(()=>F.map((e,n)=>({...e,index:n+1})),[F]);y.useEffect(()=>{q||S(!1)},[]);const S=async(e=!1)=>{var u;if(M&&!e)return;const n=z.start(),a=e?[]:[...p],o=new Set(a.map(d=>d.id)),l="Pages:onReload";j(l),$(!0),B(!1);try{g.loading({key:l,content:t({en:"Loading invited pages...",vi:"Đang tải trang được mời..."}),duration:0});const s=(await ue()).filter(h=>!o.has(h.id));s!=null&&s.length&&(a.push(...s),f([...a]));const r=a.filter(h=>h.userType!==c.INVITED).pop();let D=e?"":r==null?void 0:r.cursor;for(;!n.value();){g.loading({key:l,content:t({en:"Loading pages...",vi:"Đang tải trang..."})+a.length,duration:0});const h=await me(D),k=h==null?void 0:h.filter(w=>!o.has(w.id));if(h.forEach(w=>o.add(w.id)),!(k!=null&&k.length))break;a.push(...k),D=(u=a==null?void 0:a[(a==null?void 0:a.length)-1])==null?void 0:u.cursor,f([...a])}g.success({key:l,content:(n.value()?t({en:"Load pages stopped ",vi:"Dừng tải trang "}):t({en:"Load pages completed ",vi:"Tải xong trang "}))+a.length}),B(!n.value())}catch(d){g.error({content:t({en:"Failed to load pages: ",vi:"Lỗi tải trang: "})+d.message})}finally{$(!1)}},b=async({pages:e,key:n,actionFn:a,loadingText:o,successText:l})=>{if(!await re()||!(e!=null&&e.length))return;const u=n+":waiting";j(n);let d=!1,s=[];for(let r=0;r{g.loading({key:n,content:t({en:"Stopping...",vi:"Đang dừng..."}),duration:0}),d=!0}}),await a(e[r])&&s.push(e[r]),!d);r++)if(ri.jsx("li",{children:i.jsx("a",{target:"_blank",href:P(r.id),children:r.name})},r.id))})})},I=async({record:e,key:n,actionFn:a,loadingText:o,successText:l,failedText:u,onSuccess:d})=>{j(n),g.loading({key:n,content:o,duration:0});const s=await a();return s?(T.destroy(n),g.success({key:n,content:l}),d==null||d()):(g.destroy(n),T.open({type:"error",key:n,message:u,description:e.name,duration:0,btn:i.jsxs(v,{children:[i.jsx(m,{type:"default",onClick:()=>a(),children:t({en:"Retry",vi:"Thử lại"})}),i.jsx(m,{type:"primary",onClick:()=>window.open(P(e.id)),children:t({en:"View page",vi:"Xem trang"})})]})})),s},Q=async e=>{b({key:"Pages:onClickUnlikeSelectedPages",pages:e,actionFn:A,loadingText:t({en:"Unliking pages... ",vi:"Đang bỏ thích trang... "}),successText:t({en:"Unliked pages done: ",vi:"Bỏ thích trang xong: "})})},A=e=>I({record:e,key:"Pages:onClickUnlikePage",actionFn:()=>pe(e.id),loadingText:t({en:"Unliking page... ",vi:"Đang bỏ thích trang..."})+e.name,successText:t({en:"Unliked page ",vi:"Đã bỏ thích trang "})+e.name,failedText:t({en:"Failed to unlike page",vi:"Lỗi bỏ thích trang"}),onSuccess:()=>{f(n=>C(n,a=>{const o=a.findIndex(l=>l.id==e.id);return a[o].userType=c.UNLIKED,a}))}}),G=async e=>{b({key:"Pages:onClickUnfollowSelectedPages",pages:e,actionFn:R,loadingText:t({en:"Unfollowing pages... ",vi:"Đang bỏ theo dõi trang... "}),successText:t({en:"Unfollowed pages done: ",vi:"Bỏ theo dõi trang xong: "})})},R=e=>I({record:e,key:"Pages:onClickUnfollowPage",actionFn:()=>xe(e.id),loadingText:t({en:"Unfollowing page... ",vi:"Đang bỏ theo dõi trang..."})+e.name,successText:t({en:"Unfollowed page ",vi:"Đã bỏ theo dõi trang "})+e.name,failedText:t({en:"Failed to unfollow page",vi:"Lỗi bỏ theo dõi trang"}),onSuccess:()=>{f(n=>C(n,a=>{const o=a.findIndex(l=>l.id==e.id);return a[o].userType=c.UNFOLLOWED,a}))}}),J=async e=>{b({key:"Pages:onClickDeclineSelectedInvites",pages:e,actionFn:Y,loadingText:t({en:"Removing invite... ",vi:"Đang từ chối lời mời... "}),successText:t({en:"Declined invites done: ",vi:"Từ chối lời mời xong: "})})},Y=async e=>I({record:e,key:"Pages:onClickDeclineInvite",actionFn:()=>fe(e.inviteId),loadingText:t({en:"Declining invite... ",vi:"Đang từ chối lời mời..."})+e.name,successText:t({en:"Declined invite ",vi:"Đã từ chối lời mời "})+e.name,failedText:t({en:"Failed to remove invite",vi:"Lỗi từ chối lời mời"}),onSuccess:()=>{f(n=>C(n,a=>{const o=a.findIndex(l=>l.id==e.id);return a[o].userType=c.DECLINED,a}))}}),X=e=>{K("/bulk-downloader",{state:{targetId:e.id,platform:ie.Facebook}})},Z=e=>{var u,d;const n=e!=null&&e.length?[...e]:[...p],a=((u=n==null?void 0:n.map(s=>p.find(r=>r.id===s.id)))==null?void 0:u.filter(s=>(s==null?void 0:s.userType)===c.LIKED||(s==null?void 0:s.userType)===c.ADMIN))||[],o=(a==null?void 0:a.filter(s=>s==null?void 0:s.canLike))||[],l=((d=n==null?void 0:n.map(s=>p.find(r=>r.id===s.id)))==null?void 0:d.filter(s=>(s==null?void 0:s.userType)===c.INVITED))||[];return i.jsxs(i.Fragment,{children:[i.jsx(x,{color:"red",title:t({en:"WARNING: Reload many times may cause temporarily blocked by facebook",vi:"LƯU Ý: Tải lại nhiều lần có thể bị facebook chặn tạm thời"}),children:i.jsx(m,{type:"primary",icon:M?i.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):i.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>S(!0),children:t({en:"Reload",vi:"Tải lại"})})}),i.jsx(he,{data:n,options:[{key:"id",label:".txt (page id)",prepareData:s=>({fileName:"your_pages_id"+U().format("YYYY-MM-DD-HHmmss")+".txt",data:s==null?void 0:s.map(r=>r.id).join(` +const __vite__fileDeps=["./MyTable-C-6hHnGo.js","./index-BBriuzNA.js","./index-DfqnkV-X.css","./MyApp-CmkiOnMb.js","./index-NjHtWr7u.js","./Table-By6CV266.js","./index-Bumumc8Y.js","./addEventListener-w7NT04KM.js","./index-CKsES7YN.js","./PurePanel-yY9muMEs.js","./SearchOutlined-DvnHgzkc.js","./index-tTPNrueW.js","./index-4qwk-lHW.js","./Dropdown-DxSI4NN9.js","./useBreakpoint-CDLrV-mr.js","./responsiveObserver-Bb1LONna.js","./Pagination-slfcHA-i.js","./index-BbXfI1Nu.js","./EyeOutlined-Du2MtFRM.js","./row-C0Wk6t4-.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{aI as ee,r as y,aA as i,aB as m,aF as ne,aS as C,aT as ie}from"./index-BBriuzNA.js";import{d as te,u as ae,g as V,t as j,b as v,c as N,i as P,T as x,L as se,o as le,B as oe,k as re,M as ce,U as de}from"./MyApp-CmkiOnMb.js";import{u as ge}from"./useForceStop-DOwcs-PE.js";import{E as he}from"./ExportButton-DABx3myg.js";import{d as U}from"./dayjs.min-Qbr7UE_g.js";import{g as ue,U as c,a as me,u as pe,b as xe,d as fe}from"./pages-BWB-tC3I.js";import{I as W}from"./index-Dm20K0UU.js";import{T as L}from"./index-Bumumc8Y.js";import{R as ve}from"./row-C0Wk6t4-.js";import{P as E}from"./index-BM7CeakW.js";import"./file-download-Dys_FsHc.js";import"./index-4qwk-lHW.js";import"./Dropdown-DxSI4NN9.js";import"./PurePanel-yY9muMEs.js";import"./EyeOutlined-Du2MtFRM.js";import"./addEventListener-w7NT04KM.js";import"./responsiveObserver-Bb1LONna.js";import"./index-Dg6R6lHP.js";const ye=y.lazy(()=>ne(()=>import("./MyTable-C-6hHnGo.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url));function Ae(){const{message:g,notification:T}=te(),K=ee(),{ti:t}=ae(),z=ge(),[F,f]=V("Pages.data",[]),[q,B]=V("Pages.finished",!1),[M,$]=y.useState(!1),p=y.useMemo(()=>F.map((e,n)=>({...e,index:n+1})),[F]);y.useEffect(()=>{q||S(!1)},[]);const S=async(e=!1)=>{var u;if(M&&!e)return;const n=z.start(),a=e?[]:[...p],o=new Set(a.map(d=>d.id)),l="Pages:onReload";j(l),$(!0),B(!1);try{g.loading({key:l,content:t({en:"Loading invited pages...",vi:"Đang tải trang được mời..."}),duration:0});const s=(await ue()).filter(h=>!o.has(h.id));s!=null&&s.length&&(a.push(...s),f([...a]));const r=a.filter(h=>h.userType!==c.INVITED).pop();let D=e?"":r==null?void 0:r.cursor;for(;!n.value();){g.loading({key:l,content:t({en:"Loading pages...",vi:"Đang tải trang..."})+a.length,duration:0});const h=await me(D),k=h==null?void 0:h.filter(w=>!o.has(w.id));if(h.forEach(w=>o.add(w.id)),!(k!=null&&k.length))break;a.push(...k),D=(u=a==null?void 0:a[(a==null?void 0:a.length)-1])==null?void 0:u.cursor,f([...a])}g.success({key:l,content:(n.value()?t({en:"Load pages stopped ",vi:"Dừng tải trang "}):t({en:"Load pages completed ",vi:"Tải xong trang "}))+a.length}),B(!n.value())}catch(d){g.error({content:t({en:"Failed to load pages: ",vi:"Lỗi tải trang: "})+d.message})}finally{$(!1)}},b=async({pages:e,key:n,actionFn:a,loadingText:o,successText:l})=>{if(!await re()||!(e!=null&&e.length))return;const u=n+":waiting";j(n);let d=!1,s=[];for(let r=0;r{g.loading({key:n,content:t({en:"Stopping...",vi:"Đang dừng..."}),duration:0}),d=!0}}),await a(e[r])&&s.push(e[r]),!d);r++)if(ri.jsx("li",{children:i.jsx("a",{target:"_blank",href:P(r.id),children:r.name})},r.id))})})},I=async({record:e,key:n,actionFn:a,loadingText:o,successText:l,failedText:u,onSuccess:d})=>{j(n),g.loading({key:n,content:o,duration:0});const s=await a();return s?(T.destroy(n),g.success({key:n,content:l}),d==null||d()):(g.destroy(n),T.open({type:"error",key:n,message:u,description:e.name,duration:0,btn:i.jsxs(v,{children:[i.jsx(m,{type:"default",onClick:()=>a(),children:t({en:"Retry",vi:"Thử lại"})}),i.jsx(m,{type:"primary",onClick:()=>window.open(P(e.id)),children:t({en:"View page",vi:"Xem trang"})})]})})),s},Q=async e=>{b({key:"Pages:onClickUnlikeSelectedPages",pages:e,actionFn:A,loadingText:t({en:"Unliking pages... ",vi:"Đang bỏ thích trang... "}),successText:t({en:"Unliked pages done: ",vi:"Bỏ thích trang xong: "})})},A=e=>I({record:e,key:"Pages:onClickUnlikePage",actionFn:()=>pe(e.id),loadingText:t({en:"Unliking page... ",vi:"Đang bỏ thích trang..."})+e.name,successText:t({en:"Unliked page ",vi:"Đã bỏ thích trang "})+e.name,failedText:t({en:"Failed to unlike page",vi:"Lỗi bỏ thích trang"}),onSuccess:()=>{f(n=>C(n,a=>{const o=a.findIndex(l=>l.id==e.id);return a[o].userType=c.UNLIKED,a}))}}),G=async e=>{b({key:"Pages:onClickUnfollowSelectedPages",pages:e,actionFn:R,loadingText:t({en:"Unfollowing pages... ",vi:"Đang bỏ theo dõi trang... "}),successText:t({en:"Unfollowed pages done: ",vi:"Bỏ theo dõi trang xong: "})})},R=e=>I({record:e,key:"Pages:onClickUnfollowPage",actionFn:()=>xe(e.id),loadingText:t({en:"Unfollowing page... ",vi:"Đang bỏ theo dõi trang..."})+e.name,successText:t({en:"Unfollowed page ",vi:"Đã bỏ theo dõi trang "})+e.name,failedText:t({en:"Failed to unfollow page",vi:"Lỗi bỏ theo dõi trang"}),onSuccess:()=>{f(n=>C(n,a=>{const o=a.findIndex(l=>l.id==e.id);return a[o].userType=c.UNFOLLOWED,a}))}}),J=async e=>{b({key:"Pages:onClickDeclineSelectedInvites",pages:e,actionFn:Y,loadingText:t({en:"Removing invite... ",vi:"Đang từ chối lời mời... "}),successText:t({en:"Declined invites done: ",vi:"Từ chối lời mời xong: "})})},Y=async e=>I({record:e,key:"Pages:onClickDeclineInvite",actionFn:()=>fe(e.inviteId),loadingText:t({en:"Declining invite... ",vi:"Đang từ chối lời mời..."})+e.name,successText:t({en:"Declined invite ",vi:"Đã từ chối lời mời "})+e.name,failedText:t({en:"Failed to remove invite",vi:"Lỗi từ chối lời mời"}),onSuccess:()=>{f(n=>C(n,a=>{const o=a.findIndex(l=>l.id==e.id);return a[o].userType=c.DECLINED,a}))}}),X=e=>{K("/bulk-downloader",{state:{targetId:e.id,platform:ie.Facebook}})},Z=e=>{var u,d;const n=e!=null&&e.length?[...e]:[...p],a=((u=n==null?void 0:n.map(s=>p.find(r=>r.id===s.id)))==null?void 0:u.filter(s=>(s==null?void 0:s.userType)===c.LIKED||(s==null?void 0:s.userType)===c.ADMIN))||[],o=(a==null?void 0:a.filter(s=>s==null?void 0:s.canLike))||[],l=((d=n==null?void 0:n.map(s=>p.find(r=>r.id===s.id)))==null?void 0:d.filter(s=>(s==null?void 0:s.userType)===c.INVITED))||[];return i.jsxs(i.Fragment,{children:[i.jsx(x,{color:"red",title:t({en:"WARNING: Reload many times may cause temporarily blocked by facebook",vi:"LƯU Ý: Tải lại nhiều lần có thể bị facebook chặn tạm thời"}),children:i.jsx(m,{type:"primary",icon:M?i.jsx("i",{className:"fa-solid fa-rotate-right fa-spin"}):i.jsx("i",{className:"fa-solid fa-rotate-right"}),onClick:()=>S(!0),children:t({en:"Reload",vi:"Tải lại"})})}),i.jsx(he,{data:n,options:[{key:"id",label:".txt (page id)",prepareData:s=>({fileName:"your_pages_id"+U().format("YYYY-MM-DD-HHmmss")+".txt",data:s==null?void 0:s.map(r=>r.id).join(` `)})},{key:"json",label:".json",prepareData:s=>({fileName:"your_pages"+U().format("YYYY-MM-DD-HHmmss")+".json",data:JSON.stringify(s,null,4)})},{key:"csv",label:".csv",prepareData:s=>({fileName:"your_pages"+U().format("YYYY-MM-DD-HHmmss")+".csv",data:le(s)})}]}),i.jsx(x,{title:t({en:`Unlike ${o.length} selected pages`,vi:`Bỏ thích ${o.length} trang được chọn`}),children:i.jsx(E,{title:t({en:`Unlike ${o.length} pages`,vi:`Bỏ thích ${o.length} trang`}),description:t({en:`Are your sure want to unlike ${o.length} pages?`,vi:`Bản có chãc muốn bỏ thích ${o.length} trang?`}),onConfirm:()=>Q(o),okText:t({en:"Unlike pages",vi:"Bỏ thích trang"}),cancelText:t({en:"No",vi:"Huỷ"}),children:i.jsx(m,{danger:!0,disabled:o.length<=0,icon:i.jsx("i",{className:"fa-solid fa-thumbs-down"}),children:o.length})})}),i.jsx(x,{title:t({en:`Unfollow ${a.length} selected pages`,vi:`Bỏ theo dõi ${a.length} trang được chọn`}),children:i.jsx(E,{title:t({en:`Unfollow ${a.length} pages`,vi:`Bỏ theo dõi ${a.length} trang`}),description:t({en:`Are your sure want to unfollow ${a.length} pages?`,vi:`Bản có chãc muốn bỏ theo dõi ${a.length} trang?`}),onConfirm:()=>G(a),okText:t({en:"Yes",vi:"Có"}),cancelText:t({en:"No",vi:"Huỷ"}),children:i.jsx(m,{danger:!0,disabled:a.length<=0,icon:i.jsx("i",{className:"fa-solid fa-eye-slash"}),children:a.length})})}),l.length>0&&i.jsx(x,{title:t({en:`Decline ${l.length} selected invites`,vi:`Từ chối ${l.length} lời mời được chọn`}),children:i.jsx(E,{title:t({en:`Decline ${l.length} invites`,vi:`Từ chối ${l.length} lời mời`}),description:t({en:`Are your sure want to decline ${l.length} invites?`,vi:`Bản có chãc muốn từ chối ${l.length} lời mời?`}),onConfirm:()=>J(l),okText:t({en:"Yes",vi:"Có"}),cancelText:t({en:"No",vi:"Huỷ"}),children:i.jsx(m,{danger:!0,disabled:l.length<=0,icon:i.jsx("i",{className:"fa-solid fa-xmark"}),children:l.length})})}),i.jsx(x,{title:t({en:"Manage on Facebook",vi:"Quản lý trên Facebook"}),children:i.jsx(oe,{count:t({en:"New",vi:"Mới"}),color:"purple",style:{color:"white"},children:i.jsx(m,{onClick:()=>{j("Pages:openManageOnFacebook"),window.open("https://www.facebook.com/me/allactivity?category_key=LIKEDINTERESTS","_blank")},icon:i.jsx("i",{className:"fa-solid fa-up-right-from-square"})})})})]})},H=e=>{switch(e){case c.ADMIN:return{color:"success",text:t({en:"Admin",vi:"Admin"})};case c.LIKED:return{color:"default",text:t({en:"Liked",vi:"Đã thích"})};case c.INVITED:return{color:"warning",text:t({en:"Invited",vi:"Lời mời"})};case c.DECLINED:return{color:"error",text:t({en:"Declined",vi:"Từ chối"})};case c.UNLIKED:return{color:"error",text:t({en:"Unliked",vi:"Bỏ thích"})};case c.UNFOLLOWED:return{color:"error",text:t({en:"Unfollowed",vi:"Bỏ theo dõi"})};default:return{color:"default",text:"?"}}},O=y.useMemo(()=>Array.from(p.map(e=>e.category).reduce((e,n)=>{let a=e.get(n)||0;return e.set(n,++a)},new Map).entries()).sort((e,n)=>n[1]-e[1]).map(([e,n])=>({text:e+" ("+n+")",value:e})),[p]),_=[{title:"#",key:"index",dataIndex:"index",sorter:(e,n)=>e.index-n.index,width:60},{title:t({en:"Image",vi:"Ảnh"}),key:"image",dataIndex:"image",render:(e,n,a)=>i.jsx(W,{src:n.image,width:50,height:50,style:{objectFit:"contain",borderRadius:5}})},{title:t({en:"Page",vi:"Trang"}),key:"name",dataIndex:"name",render:(e,n,a)=>i.jsxs(v,{direction:"vertical",size:0,style:{maxWidth:300},children:[i.jsx(L.Link,{href:n.url,target:"_blank",children:i.jsx("b",{children:n.name||"???"})}),i.jsx("span",{style:{opacity:.5},children:n.id})]}),sorter:(e,n)=>e.name.localeCompare(n.name)},{title:t({en:"Category",vi:"Danh mục"})+" ("+O.length+")",key:"category",dataIndex:"category",filters:O,onFilter:(e,n)=>n.category==e,filterSearch:!0},{title:t({en:"Type",vi:"Loại"}),key:"type",dataIndex:"userType",render:(e,n,a)=>{const{color:o,text:l}=H(n.userType);return n.inviterId?i.jsxs(v,{children:[i.jsx(N,{color:o,children:l}),i.jsx(W,{src:n.inviterAvatar,width:40,height:40,style:{borderRadius:5}}),i.jsxs(v,{direction:"vertical",size:0,children:[i.jsx(L.Link,{href:P(n.inviterId),target:"_blank",children:i.jsx("b",{children:n.inviterName})}),i.jsx("span",{style:{opacity:.5},children:n.inviterId})]})]}):i.jsx(N,{color:o,children:l})},filters:Object.values(c).map(e=>{const{text:n}=H(e);return{text:n+" ("+p.filter(a=>a.userType==e).length+")",value:e}}),onFilter:(e,n)=>n.userType==e,align:"left"},{title:t({en:"Action",vi:"Hành động"}),key:"action",render:(e,n,a)=>i.jsxs(v.Compact,{style:{minWidth:30},children:[n.userType===c.LIKED||n.userType===c.ADMIN?i.jsxs(i.Fragment,{children:[n.canLike?i.jsx(x,{title:t({en:"Unlike page",vi:"Bỏ thích"}),children:i.jsx(m,{onClick:()=>A(n),icon:i.jsx("i",{className:"fa-solid fa-thumbs-down"})})}):null,i.jsx(x,{title:t({en:"Unfollow page",vi:"Bỏ theo dõi"}),children:i.jsx(m,{onClick:()=>R(n),icon:i.jsx("i",{className:"fa-solid fa-eye-slash"})})})]}):null,n.userType===c.INVITED?i.jsx(x,{title:t({en:"Decline invite",vi:"Từ chối"}),children:i.jsx(m,{danger:!0,onClick:()=>Y(n),icon:i.jsx("i",{className:"fa-solid fa-xmark"})})}):null,i.jsx(x,{title:t({en:"Bulk Downloader",vi:"Tải hàng loạt"}),children:i.jsx(m,{type:"default",onClick:()=>X(n),icon:i.jsx("i",{className:"fa-solid fa-download"})})})]}),width:100,align:"right"}];return i.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[i.jsxs(ve,{align:"middle",style:{margin:"16px"},children:[i.jsx(L.Title,{level:3,style:{margin:0},children:t({en:"Pages manager",vi:"Quản lý trang"})}),i.jsx(N,{style:{marginLeft:"10px",fontWeight:"bold",color:"#888"},children:p.length})]}),i.jsx(ye,{data:p,columns:_.map((e,n)=>({...e,index:n})),renderTitle:Z,size:"small",searchable:!0,selectable:!0,onSearchRow:(e,n)=>se(e,(n==null?void 0:n.name)+(n==null?void 0:n.id)),keyExtractor:e=>(e==null?void 0:e.id)+(e==null?void 0:e.userType)})]})}export{Ae as default}; diff --git a/public/assets/index-DmA8T0X5.js b/public/assets/index-tTPNrueW.js similarity index 98% rename from public/assets/index-DmA8T0X5.js rename to public/assets/index-tTPNrueW.js index af03c69..375480b 100644 --- a/public/assets/index-DmA8T0X5.js +++ b/public/assets/index-tTPNrueW.js @@ -1,4 +1,4 @@ -import{r as n,n as U,j as Y,o as N,X as G,g as ee,d as T,E as re,F as ae,H as M,a1 as te,D as H,$ as ne,I as F,aP as le,aO as oe,a7 as W,bC as se,aq as ie,Z as ce,h as q}from"./index--trdnQFa.js";import{m as de}from"./MyApp-BHr373cy.js";var ue=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],be=n.forwardRef(function(e,r){var a=e.prefixCls,t=a===void 0?"rc-checkbox":a,i=e.className,I=e.style,m=e.checked,h=e.disabled,S=e.defaultChecked,C=S===void 0?!1:S,u=e.type,x=u===void 0?"checkbox":u,j=e.title,s=e.onChange,O=U(e,ue),v=n.useRef(null),b=n.useRef(null),l=de(C,{value:m}),w=Y(l,2),P=w[0],y=w[1];n.useImperativeHandle(r,function(){return{focus:function(d){var p;(p=v.current)===null||p===void 0||p.focus(d)},blur:function(){var d;(d=v.current)===null||d===void 0||d.blur()},input:v.current,nativeElement:b.current}});var f=N(t,i,G(G({},"".concat(t,"-checked"),P),"".concat(t,"-disabled"),h)),c=function(d){h||("checked"in e||y(d.target.checked),s==null||s({target:T(T({},e),{},{type:x,checked:d.target.checked}),stopPropagation:function(){d.stopPropagation()},preventDefault:function(){d.preventDefault()},nativeEvent:d.nativeEvent}))};return n.createElement("span",{className:f,title:j,style:I,ref:b},n.createElement("input",ee({},O,{className:"".concat(t,"-input"),ref:v,onChange:c,disabled:h,checked:!!P,type:x})),n.createElement("span",{className:"".concat(t,"-inner")}))});const fe=e=>{const{checkboxCls:r}=e,a=`${r}-wrapper`;return[{[`${r}-group`]:Object.assign(Object.assign({},M(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[a]:Object.assign(Object.assign({},M(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${a}`]:{marginInlineStart:0},[`&${a}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[r]:Object.assign(Object.assign({},M(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${r}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${r}-inner`]:Object.assign({},te(e))},[`${r}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${H(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` +import{r as n,n as U,j as Y,o as N,X as G,g as ee,d as T,E as re,F as ae,H as M,a1 as te,D as H,$ as ne,I as F,aP as le,aO as oe,a7 as W,bC as se,aq as ie,Z as ce,h as q}from"./index-BBriuzNA.js";import{m as de}from"./MyApp-CmkiOnMb.js";var ue=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],be=n.forwardRef(function(e,r){var a=e.prefixCls,t=a===void 0?"rc-checkbox":a,i=e.className,I=e.style,m=e.checked,h=e.disabled,S=e.defaultChecked,C=S===void 0?!1:S,u=e.type,x=u===void 0?"checkbox":u,j=e.title,s=e.onChange,O=U(e,ue),v=n.useRef(null),b=n.useRef(null),l=de(C,{value:m}),w=Y(l,2),P=w[0],y=w[1];n.useImperativeHandle(r,function(){return{focus:function(d){var p;(p=v.current)===null||p===void 0||p.focus(d)},blur:function(){var d;(d=v.current)===null||d===void 0||d.blur()},input:v.current,nativeElement:b.current}});var f=N(t,i,G(G({},"".concat(t,"-checked"),P),"".concat(t,"-disabled"),h)),c=function(d){h||("checked"in e||y(d.target.checked),s==null||s({target:T(T({},e),{},{type:x,checked:d.target.checked}),stopPropagation:function(){d.stopPropagation()},preventDefault:function(){d.preventDefault()},nativeEvent:d.nativeEvent}))};return n.createElement("span",{className:f,title:j,style:I,ref:b},n.createElement("input",ee({},O,{className:"".concat(t,"-input"),ref:v,onChange:c,disabled:h,checked:!!P,type:x})),n.createElement("span",{className:"".concat(t,"-inner")}))});const fe=e=>{const{checkboxCls:r}=e,a=`${r}-wrapper`;return[{[`${r}-group`]:Object.assign(Object.assign({},M(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[a]:Object.assign(Object.assign({},M(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${a}`]:{marginInlineStart:0},[`&${a}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[r]:Object.assign(Object.assign({},M(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${r}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${r}-inner`]:Object.assign({},te(e))},[`${r}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${H(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${a}:not(${a}-disabled), ${r}:not(${r}-disabled) `]:{[`&:hover ${r}-inner`]:{borderColor:e.colorPrimary}},[`${a}:not(${a}-disabled)`]:{[`&:hover ${r}-checked:not(${r}-disabled) ${r}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${r}-checked:not(${r}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${r}-checked`]:{[`${r}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` diff --git a/public/assets/index-CJGqVaEE.js b/public/assets/index-uPrgDTc-.js similarity index 98% rename from public/assets/index-CJGqVaEE.js rename to public/assets/index-uPrgDTc-.js index c70415f..d6a32af 100644 --- a/public/assets/index-CJGqVaEE.js +++ b/public/assets/index-uPrgDTc-.js @@ -1 +1 @@ -import{E as I,F as M,H as j,D as d,r as c,I as E,o as P}from"./index--trdnQFa.js";const B=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:a,colorSplit:r,lineWidth:i,textPaddingInline:s,orientationMargin:l,verticalMarginInline:o}=t;return{[e]:Object.assign(Object.assign({},j(t)),{borderBlockStart:`${d(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:o,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${d(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${d(t.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${d(t.dividerHorizontalWithTextGutterMargin)} 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${d(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${d(i)} 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:a}}})}},H=t=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:t.marginXS}),N=I("Divider",t=>{const e=M(t,{dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG,sizePaddingEdgeHorizontal:0});return[B(e)]},H,{unitless:{orientationMargin:!0}});var W=function(t,e){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{getPrefixCls:e,direction:a,divider:r}=c.useContext(E),{prefixCls:i,type:s="horizontal",orientation:l="center",orientationMargin:o,className:b,rootClassName:$,children:g,dashed:u,plain:x,style:v}=t,y=W(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),n=e("divider",i),[S,w,z]=N(n),h=!!g,f=l==="left"&&o!=null,m=l==="right"&&o!=null,C=P(n,r==null?void 0:r.className,w,z,`${n}-${s}`,{[`${n}-with-text`]:h,[`${n}-with-text-${l}`]:h,[`${n}-dashed`]:!!u,[`${n}-plain`]:!!x,[`${n}-rtl`]:a==="rtl",[`${n}-no-default-orientation-margin-left`]:f,[`${n}-no-default-orientation-margin-right`]:m},b,$),p=c.useMemo(()=>typeof o=="number"?o:/^\d+$/.test(o)?Number(o):o,[o]),O=Object.assign(Object.assign({},f&&{marginLeft:p}),m&&{marginRight:p});return S(c.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},r==null?void 0:r.style),v)},y,{role:"separator"}),g&&s!=="vertical"&&c.createElement("span",{className:`${n}-inner-text`,style:O},g)))};export{k as D}; +import{E as I,F as M,H as j,D as d,r as c,I as E,o as P}from"./index-BBriuzNA.js";const B=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:a,colorSplit:r,lineWidth:i,textPaddingInline:s,orientationMargin:l,verticalMarginInline:o}=t;return{[e]:Object.assign(Object.assign({},j(t)),{borderBlockStart:`${d(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:o,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${d(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${d(t.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${d(t.dividerHorizontalWithTextGutterMargin)} 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${d(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${d(i)} 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:a}}})}},H=t=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:t.marginXS}),N=I("Divider",t=>{const e=M(t,{dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG,sizePaddingEdgeHorizontal:0});return[B(e)]},H,{unitless:{orientationMargin:!0}});var W=function(t,e){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{getPrefixCls:e,direction:a,divider:r}=c.useContext(E),{prefixCls:i,type:s="horizontal",orientation:l="center",orientationMargin:o,className:b,rootClassName:$,children:g,dashed:u,plain:x,style:v}=t,y=W(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),n=e("divider",i),[S,w,z]=N(n),h=!!g,f=l==="left"&&o!=null,m=l==="right"&&o!=null,C=P(n,r==null?void 0:r.className,w,z,`${n}-${s}`,{[`${n}-with-text`]:h,[`${n}-with-text-${l}`]:h,[`${n}-dashed`]:!!u,[`${n}-plain`]:!!x,[`${n}-rtl`]:a==="rtl",[`${n}-no-default-orientation-margin-left`]:f,[`${n}-no-default-orientation-margin-right`]:m},b,$),p=c.useMemo(()=>typeof o=="number"?o:/^\d+$/.test(o)?Number(o):o,[o]),O=Object.assign(Object.assign({},f&&{marginLeft:p}),m&&{marginRight:p});return S(c.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},r==null?void 0:r.style),v)},y,{role:"separator"}),g&&s!=="vertical"&&c.createElement("span",{className:`${n}-inner-text`,style:O},g)))};export{k as D}; diff --git a/public/assets/messages-6ucXfJYj.js b/public/assets/messages-BLu7ptC2.js similarity index 98% rename from public/assets/messages-6ucXfJYj.js rename to public/assets/messages-BLu7ptC2.js index 338f162..8ba775a 100644 --- a/public/assets/messages-6ucXfJYj.js +++ b/public/assets/messages-BLu7ptC2.js @@ -1,4 +1,4 @@ -import{d as x}from"./dayjs.min-DH5lmvCP.js";import{D as g,E as y,j as D,M as E,S as q,Q as U}from"./MyApp-BHr373cy.js";const O="YYYY-MM-DD",I=x("2004-01-01",O);async function Y({threadId:t="",progressCallback:o,checkStopFn:d}){var a;const e=[],r=await k({threadId:t});if(r.length)for(e.push(...r),o==null||o(e);;)try{const s=(a=e[0])==null?void 0:a.id,i=await M({threadId:t,msgId:s,direction:"up",limit:200});if(i.pop(),!(i!=null&&i.length)||d!=null&&d())break;e.unshift(...i),o==null||o(e),await E(500)}catch(s){console.error(s);break}return e}async function $(){return(await Promise.all([g("viewer(){message_threads{count,nodes{customization_info{emoji,outgoing_bubble_color,participant_customizations{participant_id,nickname}},all_participants{nodes{messaging_actor{name,id,profile_picture}}},thread_type,name,messages_count,image,id}}}").then(e=>y(e||"{}")),g({queries:{o0:{doc_id:"1475048592613093",query_params:{limit:500,before:Date.now(),tags:["ARCHIVED"],includeDeliveryReceipts:!0,includeSeqID:!1}}}},"https://www.facebook.com/api/graphqlbatch/").then(e=>{var r,a,s;return(s=(a=y(((r=e==null?void 0:e.split(` +import{d as x}from"./dayjs.min-Qbr7UE_g.js";import{D as g,E as y,j as D,M as E,S as q,Q as U}from"./MyApp-CmkiOnMb.js";const O="YYYY-MM-DD",I=x("2004-01-01",O);async function Y({threadId:t="",progressCallback:o,checkStopFn:d}){var a;const e=[],r=await k({threadId:t});if(r.length)for(e.push(...r),o==null||o(e);;)try{const s=(a=e[0])==null?void 0:a.id,i=await M({threadId:t,msgId:s,direction:"up",limit:200});if(i.pop(),!(i!=null&&i.length)||d!=null&&d())break;e.unshift(...i),o==null||o(e),await E(500)}catch(s){console.error(s);break}return e}async function $(){return(await Promise.all([g("viewer(){message_threads{count,nodes{customization_info{emoji,outgoing_bubble_color,participant_customizations{participant_id,nickname}},all_participants{nodes{messaging_actor{name,id,profile_picture}}},thread_type,name,messages_count,image,id}}}").then(e=>y(e||"{}")),g({queries:{o0:{doc_id:"1475048592613093",query_params:{limit:500,before:Date.now(),tags:["ARCHIVED"],includeDeliveryReceipts:!0,includeSeqID:!1}}}},"https://www.facebook.com/api/graphqlbatch/").then(e=>{var r,a,s;return(s=(a=y(((r=e==null?void 0:e.split(` `))==null?void 0:r[0])||"{}"))==null?void 0:a.o0)==null?void 0:s.data})])).map(e=>{var r,a;return(a=(r=e==null?void 0:e.viewer)==null?void 0:r.message_threads)==null?void 0:a.nodes}).filter(Boolean).flat().map((e,r)=>({...e,recent:r})).map(e=>{var s,i,c,l,n,u;let r=e.all_participants.nodes.map(m=>{var f,p,h;return{id:m.messaging_actor.id,name:m.messaging_actor.name,avatar:((f=m.messaging_actor.profile_picture)==null?void 0:f.uri)||((h=(p=m.messaging_actor.avatar)==null?void 0:p.big_image_src)==null?void 0:h.uri)||D(m.messaging_actor.id)}}),a={recent:e.recent,type:e.thread_type,id:((s=e.thread_key)==null?void 0:s.other_user_id)||((i=e.thread_key)==null?void 0:i.thread_fbid)||(e.id?(l=(c=atob(e.id))==null?void 0:c.split(":"))==null?void 0:l[1]:""),count:e.messages_count,name:e.name||((n=r[0])==null?void 0:n.name)||"-no data-",participants:r,image:(u=e.image)==null?void 0:u.uri};return{...a,url:`https://www.facebook.com/messages/t/${a.id}`,isGroup:a.type==="GROUP"||a.type==="COMMUNITY_GROUP"}})}async function v({threadId:t,startTime:o=I.valueOf(),endTime:d=x().valueOf(),progress:e}){var s;let r=1e3*Math.round((o+d)/2/1e3);e==null||e(r);let a=await k({threadId:t,time:r,limit:1});if(Math.abs(d-o)<=1e3){for(;;)try{const i=await M({threadId:t,msgId:(s=a==null?void 0:a[0])==null?void 0:s.id,direction:"up"});if((i==null?void 0:i.length)>1)a=i;else break}catch(i){console.error(i);break}return a}return a!=null&&a.length?await v({threadId:t,startTime:o,endTime:r-1,progress:e}):await v({threadId:t,startTime:r+1,endTime:d,progress:e})}async function M({threadId:t,msgId:o,direction:d="down",limit:e=50}){var r,a;try{const s=await g({other_user_fbid:t,message_id:o,direction:d,limit:e,__a:1},"https://www.facebook.com/ajax/mercury/search_context.php"),i=y(s.substr(9));if(i!=null&&i.errorSummary)throw new Error(i==null?void 0:i.errorSummary);return((a=(r=i==null?void 0:i.payload)==null?void 0:r.graphql_payload)==null?void 0:a.map(A))||[]}catch(s){return q.fire({icon:"error",title:"Error while fetching messages",text:s.message}),[]}}async function k({threadId:t,time:o=null,limit:d=50}){var e;try{const r=await g({queries:{o0:{doc_id:"1526314457427586",query_params:{id:t,message_limit:d,load_messages:1,load_read_receipts:!0,before:o}}}},"https://www.facebook.com/api/graphqlbatch/"),a=y(r.split(` `)[0]);if(a.o0.data.message_thread)return((e=a.o0.data.message_thread.messages)==null?void 0:e.nodes.map(A))||[]}catch(r){console.error(r.message)}return[]}function A(t){var o,d,e,r,a,s,i,c,l;return{id:t==null?void 0:t.message_id,sender:(o=t==null?void 0:t.message_sender)==null?void 0:o.id,time:Number(t==null?void 0:t.timestamp_precise),text:((d=t==null?void 0:t.message)==null?void 0:d.text)||((r=(e=t==null?void 0:t.extensible_attachment)==null?void 0:e.story_attachment)==null?void 0:r.url)||((i=(s=(a=t==null?void 0:t.extensible_attachment)==null?void 0:a.story_attachment)==null?void 0:s.description)==null?void 0:i.text)||(t==null?void 0:t.snippet),sticker:(c=t==null?void 0:t.sticker)==null?void 0:c.url,replied_to_message:t==null?void 0:t.replied_to_message,attachments:(l=t==null?void 0:t.blob_attachments)==null?void 0:l.map(n=>{var u,m,f,p,h,w,_,b;return n.__typename==="MessageVideo"?{type:"video",uri:n.playable_url,thumbnail:((u=n.large_image)==null?void 0:u.uri)||((m=n.inbox_image)==null?void 0:m.uri)||((f=n.chat_image)==null?void 0:f.uri)}:n.__typename==="MessageImage"?{type:"image",uri:((p=n.large_preview)==null?void 0:p.uri)||((h=n.preview)==null?void 0:h.uri)||((w=n.thumbnail)==null?void 0:w.uri)}:n.__typename==="MessageFile"?{type:"file",uri:n.url,filename:n.filename}:n.__typename==="MessageAnimatedImage"?{type:"gif",uri:((_=n==null?void 0:n.animated_image)==null?void 0:_.uri)||((b=n==null?void 0:n.preview_image)==null?void 0:b.uri),filename:n.filename}:null}).filter(Boolean)}}async function j(t=""){var d,e,r,a,s,i;return!!((i=(s=(a=(r=(e=(d=(await U(t)).raw)==null?void 0:d.data)==null?void 0:e.node)==null?void 0:r.comet_hovercard_renderer)==null?void 0:a.user)==null?void 0:s.primaryActions)!=null&&i.find(c=>(c==null?void 0:c.profile_action_type)=="MESSAGE"))}function G({msgs:t,threadId:o="",threadName:d="",myUid:e=""}){return` diff --git a/public/assets/pages-BoKNAMFY.js b/public/assets/pages-BWB-tC3I.js similarity index 98% rename from public/assets/pages-BoKNAMFY.js rename to public/assets/pages-BWB-tC3I.js index 23ca73f..5605448 100644 --- a/public/assets/pages-BoKNAMFY.js +++ b/public/assets/pages-BWB-tC3I.js @@ -1 +1 @@ -import{D as m,P as F,E as f,G as M,i as O}from"./MyApp-BHr373cy.js";async function S({uid:t="",cursor:o}){const a=await m({fb_api_req_friendly_name:"ProfileCometAppCollectionGridRendererPaginationQuery",variables:{count:8,scale:1,cursor:o??null,id:btoa(`app_collection:${t}:2409997254:96`)},doc_id:"2983410188445167"}),n=f(a);console.log(n);const{edges:r=[],page_info:i={}}=M(n);return r.map(l=>{var _,s,c,u,e;return{id:((_=l.node.node)==null?void 0:_.id)||atob(l.node.id).split(":").at(-1),name:l.node.title.text,subTitle:(s=l.node.subtitle_text)==null?void 0:s.text,url:l.node.url,image:l.node.image.uri,cursor:l.cursor,total:((e=(u=(c=n==null?void 0:n.data)==null?void 0:c.node)==null?void 0:u.items)==null?void 0:e.count)||0}})}var R=(t=>(t.ADMIN="admin",t.LIKED="liked",t.UNLIKED="unliked",t.UNFOLLOWED="unfollowed",t.INVITED="invited",t.DECLINED="declined",t))(R||{});async function h(t=""){const o=await m({fb_api_req_friendly_name:"PagesCometAllLikedPagesSectionPaginationQuery",variables:{cursor:t||null,count:20,ranking_model:"INTEGRITY_SIGNALS",scale:2,id:await F(),__relay_internal__pv__StoriesRingrelayprovider:!1},doc_id:"7763290630455552"}),a=f(o),{edges:n=[],page_info:r={}}=M(a);return console.log(a),n.map(i=>{var l,_,s,c,u,e,p,d,b,v,y,w,k,L,P,I,C,E,D,x,N;return{id:((_=(l=i==null?void 0:i.node)==null?void 0:l.node)==null?void 0:_.id)||((s=i==null?void 0:i.node)==null?void 0:s.id),name:((u=(c=i==null?void 0:i.node)==null?void 0:c.title)==null?void 0:u.text)||((e=i==null?void 0:i.node)==null?void 0:e.name),url:(p=i==null?void 0:i.node)==null?void 0:p.url,image:((b=(d=i==null?void 0:i.node)==null?void 0:d.image)==null?void 0:b.uri)||((y=(v=i==null?void 0:i.node)==null?void 0:v.profile_picture)==null?void 0:y.uri),cursor:i==null?void 0:i.cursor,userType:(w=i==null?void 0:i.node)!=null&&w.is_viewer_admin?"admin":"liked",category:(k=i==null?void 0:i.node)==null?void 0:k.category_name,verified:(L=i==null?void 0:i.node)==null?void 0:L.is_verified,ctaLabel:(C=(I=(P=i==null?void 0:i.node)==null?void 0:P.comet_page_cta_renderer)==null?void 0:I.label)==null?void 0:C.text,ctaSubtext:(D=(E=i==null?void 0:i.node)==null?void 0:E.comet_page_cta_renderer)==null?void 0:D.subtext,canLike:(x=i==null?void 0:i.node)==null?void 0:x.can_viewer_like,subscribe_status:(N=i==null?void 0:i.node)==null?void 0:N.subscribe_status}})}async function A(t=""){var n,r,i;const o=await m({fb_api_req_friendly_name:"CometProfilePlusUnlikeMutation",variables:{input:{is_tracking_encrypted:!1,page_id:t,source:"page_profile",tracking:null,actor_id:"me",client_mutation_id:"1"},scale:3},doc_id:"5358677870817645"}),a=f(o);return((i=(r=(n=a==null?void 0:a.data)==null?void 0:n.page_unlike)==null?void 0:r.page)==null?void 0:i.id)===t}async function G(t=""){var n,r,i;const o=await m({fb_api_req_friendly_name:"CometUserUnfollowMutation",variables:{action_render_location:"WWW_COMET_PROFILE",input:{attribution_id_v2:"ProfileCometTimelineListViewRoot.react,comet.profile.timeline.list,via_cold_start,1724165629822,111511,250100865708545,,",is_tracking_encrypted:!1,subscribe_location:"PROFILE",tracking:null,unsubscribee_id:t,actor_id:"me"},scale:2},doc_id:"7959683157389920"}),a=f(o);return(i=(r=(n=a==null?void 0:a.data)==null?void 0:n.actor_unsubscribe)==null?void 0:r.unsubscribee)==null?void 0:i.id}async function Q(){var a,n,r;const t=await m({fb_api_req_friendly_name:"PageCometLaunchpointInvitesRootQuery",variables:{id:await F()},doc_id:"7224925170868877"}),o=f(t);return console.log(o),(r=(n=(a=o==null?void 0:o.data)==null?void 0:a.user)==null?void 0:n.profile_plus_follower_invites)==null?void 0:r.map(i=>{var _,s,c,u,e;const l=((_=i==null?void 0:i.delegate_page)==null?void 0:_.id)||(i==null?void 0:i.delegate_page_id);return{id:l,name:((s=i==null?void 0:i.delegate_page)==null?void 0:s.name)||"???",category:(c=i==null?void 0:i.delegate_page)==null?void 0:c.category_name,image:(u=i==null?void 0:i.delegate_page)==null?void 0:u.profile_picture_uri,url:O(l),userType:"invited",cursor:"",inviteId:i==null?void 0:i.follower_invite_id,inviterId:i==null?void 0:i.inviter_id,inviterName:i==null?void 0:i.inviter_name,inviterAvatar:(e=i==null?void 0:i.inviter_profile_photo)==null?void 0:e.uri}})}async function W(t=""){var n,r;const o=await m({fb_api_req_friendly_name:"CometProfilePlusDeclineFollowerInviteCommitMutation",variables:{input:{actor_id:"me",follower_invite_id:t,ref:"pending_invites"}},doc_id:"5270202713012831"}),a=f(o);return(r=(n=a==null?void 0:a.data)==null?void 0:n.decline_follower_invite)==null?void 0:r.follower_invite}export{R as U,h as a,G as b,S as c,W as d,Q as g,A as u}; +import{D as m,P as F,E as f,G as M,i as O}from"./MyApp-CmkiOnMb.js";async function S({uid:t="",cursor:o}){const a=await m({fb_api_req_friendly_name:"ProfileCometAppCollectionGridRendererPaginationQuery",variables:{count:8,scale:1,cursor:o??null,id:btoa(`app_collection:${t}:2409997254:96`)},doc_id:"2983410188445167"}),n=f(a);console.log(n);const{edges:r=[],page_info:i={}}=M(n);return r.map(l=>{var _,s,c,u,e;return{id:((_=l.node.node)==null?void 0:_.id)||atob(l.node.id).split(":").at(-1),name:l.node.title.text,subTitle:(s=l.node.subtitle_text)==null?void 0:s.text,url:l.node.url,image:l.node.image.uri,cursor:l.cursor,total:((e=(u=(c=n==null?void 0:n.data)==null?void 0:c.node)==null?void 0:u.items)==null?void 0:e.count)||0}})}var R=(t=>(t.ADMIN="admin",t.LIKED="liked",t.UNLIKED="unliked",t.UNFOLLOWED="unfollowed",t.INVITED="invited",t.DECLINED="declined",t))(R||{});async function h(t=""){const o=await m({fb_api_req_friendly_name:"PagesCometAllLikedPagesSectionPaginationQuery",variables:{cursor:t||null,count:20,ranking_model:"INTEGRITY_SIGNALS",scale:2,id:await F(),__relay_internal__pv__StoriesRingrelayprovider:!1},doc_id:"7763290630455552"}),a=f(o),{edges:n=[],page_info:r={}}=M(a);return console.log(a),n.map(i=>{var l,_,s,c,u,e,p,d,b,v,y,w,k,L,P,I,C,E,D,x,N;return{id:((_=(l=i==null?void 0:i.node)==null?void 0:l.node)==null?void 0:_.id)||((s=i==null?void 0:i.node)==null?void 0:s.id),name:((u=(c=i==null?void 0:i.node)==null?void 0:c.title)==null?void 0:u.text)||((e=i==null?void 0:i.node)==null?void 0:e.name),url:(p=i==null?void 0:i.node)==null?void 0:p.url,image:((b=(d=i==null?void 0:i.node)==null?void 0:d.image)==null?void 0:b.uri)||((y=(v=i==null?void 0:i.node)==null?void 0:v.profile_picture)==null?void 0:y.uri),cursor:i==null?void 0:i.cursor,userType:(w=i==null?void 0:i.node)!=null&&w.is_viewer_admin?"admin":"liked",category:(k=i==null?void 0:i.node)==null?void 0:k.category_name,verified:(L=i==null?void 0:i.node)==null?void 0:L.is_verified,ctaLabel:(C=(I=(P=i==null?void 0:i.node)==null?void 0:P.comet_page_cta_renderer)==null?void 0:I.label)==null?void 0:C.text,ctaSubtext:(D=(E=i==null?void 0:i.node)==null?void 0:E.comet_page_cta_renderer)==null?void 0:D.subtext,canLike:(x=i==null?void 0:i.node)==null?void 0:x.can_viewer_like,subscribe_status:(N=i==null?void 0:i.node)==null?void 0:N.subscribe_status}})}async function A(t=""){var n,r,i;const o=await m({fb_api_req_friendly_name:"CometProfilePlusUnlikeMutation",variables:{input:{is_tracking_encrypted:!1,page_id:t,source:"page_profile",tracking:null,actor_id:"me",client_mutation_id:"1"},scale:3},doc_id:"5358677870817645"}),a=f(o);return((i=(r=(n=a==null?void 0:a.data)==null?void 0:n.page_unlike)==null?void 0:r.page)==null?void 0:i.id)===t}async function G(t=""){var n,r,i;const o=await m({fb_api_req_friendly_name:"CometUserUnfollowMutation",variables:{action_render_location:"WWW_COMET_PROFILE",input:{attribution_id_v2:"ProfileCometTimelineListViewRoot.react,comet.profile.timeline.list,via_cold_start,1724165629822,111511,250100865708545,,",is_tracking_encrypted:!1,subscribe_location:"PROFILE",tracking:null,unsubscribee_id:t,actor_id:"me"},scale:2},doc_id:"7959683157389920"}),a=f(o);return(i=(r=(n=a==null?void 0:a.data)==null?void 0:n.actor_unsubscribe)==null?void 0:r.unsubscribee)==null?void 0:i.id}async function Q(){var a,n,r;const t=await m({fb_api_req_friendly_name:"PageCometLaunchpointInvitesRootQuery",variables:{id:await F()},doc_id:"7224925170868877"}),o=f(t);return console.log(o),(r=(n=(a=o==null?void 0:o.data)==null?void 0:a.user)==null?void 0:n.profile_plus_follower_invites)==null?void 0:r.map(i=>{var _,s,c,u,e;const l=((_=i==null?void 0:i.delegate_page)==null?void 0:_.id)||(i==null?void 0:i.delegate_page_id);return{id:l,name:((s=i==null?void 0:i.delegate_page)==null?void 0:s.name)||"???",category:(c=i==null?void 0:i.delegate_page)==null?void 0:c.category_name,image:(u=i==null?void 0:i.delegate_page)==null?void 0:u.profile_picture_uri,url:O(l),userType:"invited",cursor:"",inviteId:i==null?void 0:i.follower_invite_id,inviterId:i==null?void 0:i.inviter_id,inviterName:i==null?void 0:i.inviter_name,inviterAvatar:(e=i==null?void 0:i.inviter_profile_photo)==null?void 0:e.uri}})}async function W(t=""){var n,r;const o=await m({fb_api_req_friendly_name:"CometProfilePlusDeclineFollowerInviteCommitMutation",variables:{input:{actor_id:"me",follower_invite_id:t,ref:"pending_invites"}},doc_id:"5270202713012831"}),a=f(o);return(r=(n=a==null?void 0:a.data)==null?void 0:n.decline_follower_invite)==null?void 0:r.follower_invite}export{R as U,h as a,G as b,S as c,W as d,Q as g,A as u}; diff --git a/public/assets/responsiveObserver-DiDk9dGL.js b/public/assets/responsiveObserver-Bb1LONna.js similarity index 95% rename from public/assets/responsiveObserver-DiDk9dGL.js rename to public/assets/responsiveObserver-Bb1LONna.js index df17b12..3c4c17d 100644 --- a/public/assets/responsiveObserver-DiDk9dGL.js +++ b/public/assets/responsiveObserver-Bb1LONna.js @@ -1 +1 @@ -import{J as h,$ as l}from"./index--trdnQFa.js";const $=["xxl","xl","lg","md","sm","xs"],m=n=>({xs:`(max-width: ${n.screenXSMax}px)`,sm:`(min-width: ${n.screenSM}px)`,md:`(min-width: ${n.screenMD}px)`,lg:`(min-width: ${n.screenLG}px)`,xl:`(min-width: ${n.screenXL}px)`,xxl:`(min-width: ${n.screenXXL}px)`}),x=n=>{const e=n,t=[].concat($).reverse();return t.forEach((o,a)=>{const r=o.toUpperCase(),i=`screen${r}Min`,s=`screen${r}`;if(!(e[i]<=e[s]))throw new Error(`${i}<=${s} fails : !(${e[i]}<=${e[s]})`);if(a{const t=new Map;let o=-1,a={};return{matchHandlers:{},dispatch(r){return a=r,t.forEach(i=>i(a)),t.size>=1},subscribe(r){return t.size||this.register(),o+=1,t.set(o,r),r(a),o},unsubscribe(r){t.delete(r),t.size||this.unregister()},unregister(){Object.keys(e).forEach(r=>{const i=e[r],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),t.clear()},register(){Object.keys(e).forEach(r=>{const i=e[r],s=d=>{let{matches:p}=d;this.dispatch(Object.assign(Object.assign({},a),{[r]:p}))},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},responsiveMap:e}},[n])}export{$ as r,M as u}; +import{J as h,$ as l}from"./index-BBriuzNA.js";const $=["xxl","xl","lg","md","sm","xs"],m=n=>({xs:`(max-width: ${n.screenXSMax}px)`,sm:`(min-width: ${n.screenSM}px)`,md:`(min-width: ${n.screenMD}px)`,lg:`(min-width: ${n.screenLG}px)`,xl:`(min-width: ${n.screenXL}px)`,xxl:`(min-width: ${n.screenXXL}px)`}),x=n=>{const e=n,t=[].concat($).reverse();return t.forEach((o,a)=>{const r=o.toUpperCase(),i=`screen${r}Min`,s=`screen${r}`;if(!(e[i]<=e[s]))throw new Error(`${i}<=${s} fails : !(${e[i]}<=${e[s]})`);if(a{const t=new Map;let o=-1,a={};return{matchHandlers:{},dispatch(r){return a=r,t.forEach(i=>i(a)),t.size>=1},subscribe(r){return t.size||this.register(),o+=1,t.set(o,r),r(a),o},unsubscribe(r){t.delete(r),t.size||this.unregister()},unregister(){Object.keys(e).forEach(r=>{const i=e[r],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),t.clear()},register(){Object.keys(e).forEach(r=>{const i=e[r],s=d=>{let{matches:p}=d;this.dispatch(Object.assign(Object.assign({},a),{[r]:p}))},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},responsiveMap:e}},[n])}export{$ as r,M as u}; diff --git a/public/assets/row-DQoT4CfJ.js b/public/assets/row-C0Wk6t4-.js similarity index 96% rename from public/assets/row-DQoT4CfJ.js rename to public/assets/row-C0Wk6t4-.js index 00f8b96..aed6a1e 100644 --- a/public/assets/row-DQoT4CfJ.js +++ b/public/assets/row-C0Wk6t4-.js @@ -1 +1 @@ -import{r as i,E,F as P,D as _,I as B,o as q}from"./index--trdnQFa.js";import{u as K,r as g}from"./responsiveObserver-DiDk9dGL.js";const Q=i.createContext({}),U=n=>{const{componentCls:e}=n;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Y=n=>{const{componentCls:e}=n;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},Z=(n,e)=>{const{prefixCls:a,componentCls:t,gridColumns:o}=n,s={};for(let r=o;r>=0;r--)r===0?(s[`${t}${e}-${r}`]={display:"none"},s[`${t}-push-${r}`]={insetInlineStart:"auto"},s[`${t}-pull-${r}`]={insetInlineEnd:"auto"},s[`${t}${e}-push-${r}`]={insetInlineStart:"auto"},s[`${t}${e}-pull-${r}`]={insetInlineEnd:"auto"},s[`${t}${e}-offset-${r}`]={marginInlineStart:0},s[`${t}${e}-order-${r}`]={order:0}):(s[`${t}${e}-${r}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${r/o*100}%`,maxWidth:`${r/o*100}%`}],s[`${t}${e}-push-${r}`]={insetInlineStart:`${r/o*100}%`},s[`${t}${e}-pull-${r}`]={insetInlineEnd:`${r/o*100}%`},s[`${t}${e}-offset-${r}`]={marginInlineStart:`${r/o*100}%`},s[`${t}${e}-order-${r}`]={order:r});return s[`${t}${e}-flex`]={flex:`var(--${a}${e}-flex)`},s},j=(n,e)=>Z(n,e),z=(n,e,a)=>({[`@media (min-width: ${_(e)})`]:Object.assign({},j(n,a))}),ee=()=>({}),te=()=>({}),ne=E("Grid",U,ee),ae=E("Grid",n=>{const e=P(n,{gridColumns:24}),a={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[Y(e),j(e,""),j(e,"-xs"),Object.keys(a).map(t=>z(e,a[t],t)).reduce((t,o)=>Object.assign(Object.assign({},t),o),{})]},te);var re=function(n,e){var a={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(a[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(n);o{if(typeof n=="string"&&t(n),typeof n=="object")for(let s=0;s{o()},[JSON.stringify(n),e]),a}const ie=i.forwardRef((n,e)=>{const{prefixCls:a,justify:t,align:o,className:s,style:r,children:f,gutter:p=0,wrap:m}=n,R=re(n,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:k,direction:A}=i.useContext(B),[L,N]=i.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,V]=i.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=M(o,v),h=M(t,v),W=i.useRef(p),O=K();i.useEffect(()=>{const u=O.subscribe(b=>{V(b);const l=W.current||0;(!Array.isArray(l)&&typeof l=="object"||Array.isArray(l)&&(typeof l[0]=="object"||typeof l[1]=="object"))&&N(b)});return()=>O.unsubscribe(u)},[]);const H=()=>{const u=[void 0,void 0];return(Array.isArray(p)?p:[p,void 0]).forEach((l,I)=>{if(typeof l=="object")for(let S=0;S0?d[0]/-2:void 0;$&&(y.marginLeft=$,y.marginRight=$);const[G,x]=d;y.rowGap=x;const F=i.useMemo(()=>({gutter:[G,x],wrap:m}),[G,x,m]);return J(i.createElement(Q.Provider,{value:F},i.createElement("div",Object.assign({},R,{className:D,style:Object.assign(Object.assign({},y),r),ref:e}),f)))});export{ie as R,Q as a,ae as u}; +import{r as i,E,F as P,D as _,I as B,o as q}from"./index-BBriuzNA.js";import{u as K,r as g}from"./responsiveObserver-Bb1LONna.js";const Q=i.createContext({}),U=n=>{const{componentCls:e}=n;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Y=n=>{const{componentCls:e}=n;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},Z=(n,e)=>{const{prefixCls:a,componentCls:t,gridColumns:o}=n,s={};for(let r=o;r>=0;r--)r===0?(s[`${t}${e}-${r}`]={display:"none"},s[`${t}-push-${r}`]={insetInlineStart:"auto"},s[`${t}-pull-${r}`]={insetInlineEnd:"auto"},s[`${t}${e}-push-${r}`]={insetInlineStart:"auto"},s[`${t}${e}-pull-${r}`]={insetInlineEnd:"auto"},s[`${t}${e}-offset-${r}`]={marginInlineStart:0},s[`${t}${e}-order-${r}`]={order:0}):(s[`${t}${e}-${r}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${r/o*100}%`,maxWidth:`${r/o*100}%`}],s[`${t}${e}-push-${r}`]={insetInlineStart:`${r/o*100}%`},s[`${t}${e}-pull-${r}`]={insetInlineEnd:`${r/o*100}%`},s[`${t}${e}-offset-${r}`]={marginInlineStart:`${r/o*100}%`},s[`${t}${e}-order-${r}`]={order:r});return s[`${t}${e}-flex`]={flex:`var(--${a}${e}-flex)`},s},j=(n,e)=>Z(n,e),z=(n,e,a)=>({[`@media (min-width: ${_(e)})`]:Object.assign({},j(n,a))}),ee=()=>({}),te=()=>({}),ne=E("Grid",U,ee),ae=E("Grid",n=>{const e=P(n,{gridColumns:24}),a={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[Y(e),j(e,""),j(e,"-xs"),Object.keys(a).map(t=>z(e,a[t],t)).reduce((t,o)=>Object.assign(Object.assign({},t),o),{})]},te);var re=function(n,e){var a={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(a[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(n);o{if(typeof n=="string"&&t(n),typeof n=="object")for(let s=0;s{o()},[JSON.stringify(n),e]),a}const ie=i.forwardRef((n,e)=>{const{prefixCls:a,justify:t,align:o,className:s,style:r,children:f,gutter:p=0,wrap:m}=n,R=re(n,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:k,direction:A}=i.useContext(B),[L,N]=i.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,V]=i.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=M(o,v),h=M(t,v),W=i.useRef(p),O=K();i.useEffect(()=>{const u=O.subscribe(b=>{V(b);const l=W.current||0;(!Array.isArray(l)&&typeof l=="object"||Array.isArray(l)&&(typeof l[0]=="object"||typeof l[1]=="object"))&&N(b)});return()=>O.unsubscribe(u)},[]);const H=()=>{const u=[void 0,void 0];return(Array.isArray(p)?p:[p,void 0]).forEach((l,I)=>{if(typeof l=="object")for(let S=0;S0?d[0]/-2:void 0;$&&(y.marginLeft=$,y.marginRight=$);const[G,x]=d;y.rowGap=x;const F=i.useMemo(()=>({gutter:[G,x],wrap:m}),[G,x,m]);return J(i.createElement(Q.Provider,{value:F},i.createElement("div",Object.assign({},R,{className:D,style:Object.assign(Object.assign({},y),r),ref:e}),f)))});export{ie as R,Q as a,ae as u}; diff --git a/public/assets/stories-DtwI_s_2.js b/public/assets/stories-B17I0-Ef.js similarity index 98% rename from public/assets/stories-DtwI_s_2.js rename to public/assets/stories-B17I0-Ef.js index 18054c0..a291714 100644 --- a/public/assets/stories-DtwI_s_2.js +++ b/public/assets/stories-B17I0-Ef.js @@ -1,4 +1,4 @@ -import{D as P,P as it,E as T,G as st,O as mt}from"./MyApp-BHr373cy.js";async function wt(i=""){const u=await P({fb_api_req_friendly_name:"StoriesTrayRectangularQuery",variables:{blur:10,bucketsToFetch:5,cursor:i,scale:1,id:await it()},doc_id:"24539171939059864"}),s=T(u);console.log(s);const{edges:_=[],page_info:l={}}=st(s);return _.map(r=>{var f,y,o,n,t,c,m,E,S,A,L,V,k;const a=((f=r==null?void 0:r.node)==null?void 0:f.story_bucket_owner)||{};return{bucket_id:(y=r==null?void 0:r.node)==null?void 0:y.id,thumbnail:(c=(t=(n=(o=r==null?void 0:r.node)==null?void 0:o.thumbnail_story_to_show)==null?void 0:n.story_card_info)==null?void 0:t.story_thumbnail)==null?void 0:c.uri,owner:{id:a.id,name:a.name,avatar:((m=a.coverImage)==null?void 0:m.uri)||((E=a.profilePic)==null?void 0:E.uri)||((S=a.profile_picture)==null?void 0:S.uri)},stories:(V=(L=(A=r==null?void 0:r.node)==null?void 0:A.unified_stories)==null?void 0:L.edges)==null?void 0:V.map(I=>{var R,C;return{id:(R=I==null?void 0:I.node)==null?void 0:R.id,expiration_time:(C=I==null?void 0:I.node)==null?void 0:C.expiration_time}}),seen:(k=r==null?void 0:r.node)==null?void 0:k.is_bucket_seen_by_viewer,cursor:(r==null?void 0:r.cursor)||l.end_cursor}}).filter(r=>r.stories.length>0)}async function vt(i=""){var l,r,a,f,y;const u=await P({fb_api_req_friendly_name:"StoriesSuspenseContentPaneRootWithEntryPointQuery",variables:{blur:10,bucketID:i,feedbackSource:65,feedLocation:"COMET_MEDIA_VIEWER",focusCommentID:null,initialBucketID:i,initialLoad:!1,scale:1,shouldDeferLoad:!1,shouldEnableArmadilloStoryReply:!0,shouldEnableLiveInStories:!0,__relay_internal__pv__StoriesIsShareToStoryEnabledrelayprovider:!1,__relay_internal__pv__StoriesLWRVariantrelayprovider:"www_new_reactions"},doc_id:"8237681579610775"}),s=T((u==null?void 0:u.split(` +import{D as P,P as it,E as T,G as st,O as mt}from"./MyApp-CmkiOnMb.js";async function wt(i=""){const u=await P({fb_api_req_friendly_name:"StoriesTrayRectangularQuery",variables:{blur:10,bucketsToFetch:5,cursor:i,scale:1,id:await it()},doc_id:"24539171939059864"}),s=T(u);console.log(s);const{edges:_=[],page_info:l={}}=st(s);return _.map(r=>{var f,y,o,n,t,c,m,E,S,A,L,V,k;const a=((f=r==null?void 0:r.node)==null?void 0:f.story_bucket_owner)||{};return{bucket_id:(y=r==null?void 0:r.node)==null?void 0:y.id,thumbnail:(c=(t=(n=(o=r==null?void 0:r.node)==null?void 0:o.thumbnail_story_to_show)==null?void 0:n.story_card_info)==null?void 0:t.story_thumbnail)==null?void 0:c.uri,owner:{id:a.id,name:a.name,avatar:((m=a.coverImage)==null?void 0:m.uri)||((E=a.profilePic)==null?void 0:E.uri)||((S=a.profile_picture)==null?void 0:S.uri)},stories:(V=(L=(A=r==null?void 0:r.node)==null?void 0:A.unified_stories)==null?void 0:L.edges)==null?void 0:V.map(I=>{var R,C;return{id:(R=I==null?void 0:I.node)==null?void 0:R.id,expiration_time:(C=I==null?void 0:I.node)==null?void 0:C.expiration_time}}),seen:(k=r==null?void 0:r.node)==null?void 0:k.is_bucket_seen_by_viewer,cursor:(r==null?void 0:r.cursor)||l.end_cursor}}).filter(r=>r.stories.length>0)}async function vt(i=""){var l,r,a,f,y;const u=await P({fb_api_req_friendly_name:"StoriesSuspenseContentPaneRootWithEntryPointQuery",variables:{blur:10,bucketID:i,feedbackSource:65,feedLocation:"COMET_MEDIA_VIEWER",focusCommentID:null,initialBucketID:i,initialLoad:!1,scale:1,shouldDeferLoad:!1,shouldEnableArmadilloStoryReply:!0,shouldEnableLiveInStories:!0,__relay_internal__pv__StoriesIsShareToStoryEnabledrelayprovider:!1,__relay_internal__pv__StoriesLWRVariantrelayprovider:"www_new_reactions"},doc_id:"8237681579610775"}),s=T((u==null?void 0:u.split(` `)[0])||"{}");console.log(s);const _=((r=(l=s==null?void 0:s.data)==null?void 0:l.nodes)==null?void 0:r[0])||((a=s==null?void 0:s.data)==null?void 0:a.bucket);return(y=(f=_==null?void 0:_.unified_stories)==null?void 0:f.edges)==null?void 0:y.map(o=>{var m,E,S,A,L,V,k,I,R,C,O,Q,d,Y,B,F,H,U,z,J,K,N,X,Z,$,j,g,e,w,v,p,h,x,M,q,nt,W,tt,at,_t,ct;const n=((A=(S=(E=(m=o==null?void 0:o.node)==null?void 0:m.attachments)==null?void 0:E.sort((D,b)=>{var rt,ot,G,lt,ut,et,ft,yt;return(((ot=(rt=b==null?void 0:b.media)==null?void 0:rt.image)==null?void 0:ot.width)||0)*(((lt=(G=b==null?void 0:b.media)==null?void 0:G.image)==null?void 0:lt.height)||0)-(((et=(ut=D==null?void 0:D.media)==null?void 0:ut.image)==null?void 0:et.width)||0)*(((yt=(ft=D==null?void 0:D.media)==null?void 0:ft.image)==null?void 0:yt.height)||0)}))==null?void 0:S[0])==null?void 0:A.media)||{},t=((V=(L=o==null?void 0:o.node)==null?void 0:L.story_card_info)==null?void 0:V.feedback_summary)||{},c=[];for(let D of((R=(I=(k=o==null?void 0:o.node)==null?void 0:k.story_card_info)==null?void 0:I.viewerList_viewers)==null?void 0:R.edges)||[])for(let b of((C=D==null?void 0:D.feedback)==null?void 0:C.lightweight_reactions)||[]){let rt=(Q=(O=b==null?void 0:b.id)==null?void 0:O.split(":"))==null?void 0:Q[0],ot="";for(let G of((d=b==null?void 0:b.last5)==null?void 0:d.edges)||[])ot+=(Y=G==null?void 0:G.node)==null?void 0:Y.reaction;c.push({uid:rt,reaction:ot})}return{bucket_id:i,id:(B=o==null?void 0:o.node)==null?void 0:B.id,caption:((H=(F=o==null?void 0:o.node)==null?void 0:F.message)==null?void 0:H.text)||((U=n==null?void 0:n.message)==null?void 0:U.text)||((z=n==null?void 0:n.title)==null?void 0:z.text),thumbnail:((N=(K=(J=o==null?void 0:o.node)==null?void 0:J.story_card_info)==null?void 0:K.story_video_thumbnail)==null?void 0:N.uri)||(($=(Z=(X=o==null?void 0:o.node)==null?void 0:X.story_card_info)==null?void 0:Z.story_thumbnail)==null?void 0:$.uri)||((j=n==null?void 0:n.previewImage)==null?void 0:j.uri),url:(e=(g=o==null?void 0:o.node)==null?void 0:g.shareable)==null?void 0:e.url,video:(n==null?void 0:n.playable_url_quality_hd)||(n==null?void 0:n.browser_native_hd_url)||(n==null?void 0:n.playable_url)||(n==null?void 0:n.browser_native_sd_url),image:((w=n==null?void 0:n.image)==null?void 0:w.uri)||((v=n==null?void 0:n.previewImage)==null?void 0:v.uri),reaction:(h=(p=t==null?void 0:t.reaction_summary)==null?void 0:p.map(D=>D.reaction_unicode))==null?void 0:h.join(""),react_count:t==null?void 0:t.total_reaction_count,view_count:((q=(M=(x=o==null?void 0:o.node)==null?void 0:x.story_card_info)==null?void 0:M.story_viewers)==null?void 0:q.count)||((tt=(W=(nt=o==null?void 0:o.node)==null?void 0:nt.story_card_info)==null?void 0:W.viewers)==null?void 0:tt.count),creation_time:(at=o==null?void 0:o.node)==null?void 0:at.creation_time,seen:(ct=(_t=o==null?void 0:o.node)==null?void 0:_t.story_card_seen_state)==null?void 0:ct.is_seen_by_viewer,reactions:c}})}async function bt(i=""){const u=await P({doc_id:"2474284976008135",variables:{count:8,cursor:i,scale:1.5,id:btoa("app_collection:"+await it()+":235134840312703:175")}}),s=T(u);console.log(s);const{edges:_=[],page_info:l={}}=st(s);return _.map(r=>{var f,y,o,n,t,c;const a=((f=r==null?void 0:r.node)==null?void 0:f.node)||(r==null?void 0:r.node);return{id:a==null?void 0:a.id,creation_time:(y=a==null?void 0:a.story_card_info)==null?void 0:y.local_creation_time,thumbnail:(n=(o=a==null?void 0:a.story_card_info)==null?void 0:o.story_thumbnail)==null?void 0:n.uri,seen_count:(c=(t=a==null?void 0:a.story_card_seen_state)==null?void 0:t.seen_count)==null?void 0:c.count,cursor:(r==null?void 0:r.cursor)||l.end_cursor}})}async function St({afterTime:i="",beforeTime:u="",creationTime:s=""}={}){var f,y,o,n;if(s){const t=new Date(s),c=new Date(t.getTime()+24*60*60*1e3);i=mt(t),u=mt(c)}console.log(i,u);const _=await P({fb_api_req_friendly_name:"StoriesArchiveContentPaneRootQuery",variables:{lower_bound_time:i,upper_bound_time:u,scale:1,blur:null,shouldEnableLiveInStories:!0,feedbackSource:65,useDefaultActor:!1,feedLocation:"COMET_MEDIA_VIEWER",focusCommentID:null,isStoriesArchive:!0,__relay_internal__pv__StoriesIsShareToStoryEnabledrelayprovider:!1},doc_id:"8266171723403755"}),l=T(_.split(` `)[0]||"{}");console.log(l);const{edges:r=[],page_info:a={}}=((n=(o=(y=(f=l==null?void 0:l.data)==null?void 0:f.viewer)==null?void 0:y.stories_data)==null?void 0:o.story_archive)==null?void 0:n.cards)||{};return r.map(t=>{var V,k,I,R,C,O,Q,d,Y,B,F,H,U,z,J,K,N,X,Z,$,j,g;const c=((V=t==null?void 0:t.node)==null?void 0:V.viewerCount)||{},m=(I=(k=t==null?void 0:t.node)==null?void 0:k.media_attribution_elements)==null?void 0:I.find(e=>e.attribution_type==="MUSIC");function E(e){var w,v;return(v=(w=t==null?void 0:t.node)==null?void 0:w.attachments)==null?void 0:v.find(p=>{var h;return((h=p==null?void 0:p.media)==null?void 0:h.__typename)===e})}function S(e){return["image","previewImage","blurred_image"].reduce((w,v)=>{var p,h;return w||((h=(p=e==null?void 0:e.media)==null?void 0:p[v])==null?void 0:h.uri)},"")}let A="",L=E("GenericAttachmentMedia");return L?A=E("Photo"):L=E("Photo"),{id:(R=t==null?void 0:t.node)==null?void 0:R.id,created_at:(((C=t==null?void 0:t.node)==null?void 0:C.creation_time)||0)*1e3,last_seen_at:(((Q=(O=t==null?void 0:t.node)==null?void 0:O.story_card_seen_state)==null?void 0:Q.seen_receipts_last_seen_time)||0)*1e3,comment_count:(Y=(d=t==null?void 0:t.node)==null?void 0:d.feedback)==null?void 0:Y.story_comment_count,viewer_count:{friend:(B=c==null?void 0:c.friendViewerCount)==null?void 0:B.count,connection:(F=c==null?void 0:c.connectionViewerCount)==null?void 0:F.count,follower:(H=c==null?void 0:c.followerViewerCount)==null?void 0:H.count,new_friend:(U=c==null?void 0:c.newFriendViewerCount)==null?void 0:U.count,new_connection:(z=c==null?void 0:c.newConnectionViewerCount)==null?void 0:z.count},image:S(L),image_background:S(A),video:["browser_native_hd_url","browser_native_sd_url"].reduce((e,w)=>{var v,p,h,x;return e||((x=(h=(p=(v=t==null?void 0:t.node)==null?void 0:v.attachments)==null?void 0:p.find(M=>{var q;return(q=M==null?void 0:M.media)==null?void 0:q[w]}))==null?void 0:h.media)==null?void 0:x[w])},""),music:m?(m==null?void 0:m.song_title)+" - "+(m==null?void 0:m.artist_name):"",reactions:(X=(N=(K=(J=t==null?void 0:t.node)==null?void 0:J.story_card_info)==null?void 0:K.story_card_reactions)==null?void 0:N.edges)==null?void 0:X.map(e=>{var w,v,p,h,x,M,q;return{uid:(v=(w=e==null?void 0:e.node)==null?void 0:w.messaging_actor)==null?void 0:v.id,reactions:(x=(h=(p=e==null?void 0:e.node)==null?void 0:p.messaging_actions)==null?void 0:h.edges)==null?void 0:x.reduce((nt,W)=>{var tt;return nt+((tt=W==null?void 0:W.node)==null?void 0:tt.reaction)},""),count:(q=(M=e==null?void 0:e.node)==null?void 0:M.messaging_actions)==null?void 0:q.count}}),viewers:(g=(j=($=(Z=t==null?void 0:t.node)==null?void 0:Z.story_card_info)==null?void 0:$.viewerList_viewers)==null?void 0:j.edges)==null?void 0:g.map(pt)}})}function pt(i){var u,s,_,l,r,a,f,y;return{uid:(u=i==null?void 0:i.node)==null?void 0:u.id,avatar:(_=(s=i==null?void 0:i.node)==null?void 0:s.profile_picture)==null?void 0:_.uri,name:(l=i==null?void 0:i.node)==null?void 0:l.name,reactions:(a=(r=i==null?void 0:i.feedback)==null?void 0:r.lightweight_reactions)==null?void 0:a.reduce((o,n)=>{var c,m;const t=((c=n==null?void 0:n.last5)==null?void 0:c.edges)||((m=n==null?void 0:n.messaging_actions)==null?void 0:m.edges);return o+(t==null?void 0:t.reduce((E,S)=>{var A;return E+((A=S==null?void 0:S.node)==null?void 0:A.reaction)},""))},""),count:(y=(f=i==null?void 0:i.feedback)==null?void 0:f.lightweight_reactions)==null?void 0:y.reduce((o,n)=>{var t;return o+((t=n==null?void 0:n.messaging_actions)==null?void 0:t.count)},0),seen_time:((i==null?void 0:i.seen_time)||0)*1e3,cursor:i==null?void 0:i.cursor}}async function It({storyId:i="",cursor:u=""}={}){const s=await P({fb_api_req_friendly_name:"StoriesViewerSheetViewerListContentQuery",variables:{cursor:u,id:i,viewerCount:8},doc_id:"3934951263269875"}),_=T(s.split(` `)[0]||"{}");console.log(_);const{edges:l=[],page_info:r={}}=st(_);return l.map(pt)}async function Dt(i=""){var l,r,a,f,y;const u=await P({variables:{scale:1,userID:i,useIncrementalDelivery:!0},doc_id:"4192155837522535"}),s=T(u.split(` diff --git a/public/assets/useBreakpoint-QbbjxHKX.js b/public/assets/useBreakpoint-CDLrV-mr.js similarity index 67% rename from public/assets/useBreakpoint-QbbjxHKX.js rename to public/assets/useBreakpoint-CDLrV-mr.js index 843f374..79e8c14 100644 --- a/public/assets/useBreakpoint-QbbjxHKX.js +++ b/public/assets/useBreakpoint-CDLrV-mr.js @@ -1 +1 @@ -import{r as t,q as c}from"./index--trdnQFa.js";import{u as a}from"./responsiveObserver-DiDk9dGL.js";function f(){const[,r]=t.useReducer(e=>e+1,0);return r}function m(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const e=t.useRef({}),n=f(),s=a();return c(()=>{const u=s.subscribe(o=>{e.current=o,r&&n()});return()=>s.unsubscribe(u)},[]),e.current}export{m as a,f as u}; +import{r as t,q as c}from"./index-BBriuzNA.js";import{u as a}from"./responsiveObserver-Bb1LONna.js";function f(){const[,r]=t.useReducer(e=>e+1,0);return r}function m(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const e=t.useRef({}),n=f(),s=a();return c(()=>{const u=s.subscribe(o=>{e.current=o,r&&n()});return()=>s.unsubscribe(u)},[]),e.current}export{m as a,f as u}; diff --git a/public/assets/useForceStop-B53S8Rhf.js b/public/assets/useForceStop-DOwcs-PE.js similarity index 74% rename from public/assets/useForceStop-B53S8Rhf.js rename to public/assets/useForceStop-DOwcs-PE.js index 13f56b9..4094eb7 100644 --- a/public/assets/useForceStop-B53S8Rhf.js +++ b/public/assets/useForceStop-DOwcs-PE.js @@ -1 +1 @@ -import{r as e}from"./index--trdnQFa.js";function o(){const r=e.useRef(()=>{});return e.useEffect(()=>()=>r.current(),[]),{start(){r.current();let t=!1;return r.current=()=>{t=!0},{value(){return t},stop(){t=!0}}},stop(){r.current()}}}export{o as u}; +import{r as e}from"./index-BBriuzNA.js";function o(){const r=e.useRef(()=>{});return e.useEffect(()=>()=>r.current(),[]),{start(){r.current();let t=!1;return r.current=()=>{t=!0},{value(){return t},stop(){t=!0}}},stop(){r.current()}}}export{o as u}; diff --git a/public/assets/videos-CpxHGGu6.js b/public/assets/videos-VQJKJ_Wq.js similarity index 99% rename from public/assets/videos-CpxHGGu6.js rename to public/assets/videos-VQJKJ_Wq.js index 3fe5c50..9e65ecd 100644 --- a/public/assets/videos-CpxHGGu6.js +++ b/public/assets/videos-VQJKJ_Wq.js @@ -1,4 +1,4 @@ -import{$ as U,j as we,o as ne,X as ee,n as Se,g as ce,C as Ze,W as Ie,t as Oe,aK as Je,Y as et,e as tt,h as nt,r as W,I as Pe,E as at,F as it,D as J,H as rt,a5 as st,aN as ot,Q as xe,a6 as ct,Z as pe,aZ as lt}from"./index--trdnQFa.js";import{m as ut,a1 as dt,a2 as ft,D as Ee,E as ye,I as mt}from"./MyApp-BHr373cy.js";var Ke=U.forwardRef(function(t,e){var i=t.prefixCls,c=t.forceRender,u=t.className,d=t.style,f=t.children,m=t.isActive,x=t.role,E=U.useState(m||c),T=we(E,2),A=T[0],p=T[1];return U.useEffect(function(){(c||m)&&p(!0)},[c,m]),A?U.createElement("div",{ref:e,className:ne("".concat(i,"-content"),ee(ee({},"".concat(i,"-content-active"),m),"".concat(i,"-content-inactive"),!m),u),style:d,role:x},U.createElement("div",{className:"".concat(i,"-content-box")},f)):null});Ke.displayName="PanelContent";var gt=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Re=U.forwardRef(function(t,e){var i=t.showArrow,c=i===void 0?!0:i,u=t.headerClass,d=t.isActive,f=t.onItemClick,m=t.forceRender,x=t.className,E=t.prefixCls,T=t.collapsible,A=t.accordion,p=t.panelKey,_=t.extra,D=t.header,w=t.expandIcon,C=t.openMotion,S=t.destroyInactivePanel,P=t.children,g=Se(t,gt),b=T==="disabled",$=T==="header",R=T==="icon",K=_!=null&&typeof _!="boolean",B=function(){f==null||f(p)},r=function(Y){(Y.key==="Enter"||Y.keyCode===Ie.ENTER||Y.which===Ie.ENTER)&&B()},j=typeof w=="function"?w(t):U.createElement("i",{className:"arrow"});j&&(j=U.createElement("div",{className:"".concat(E,"-expand-icon"),onClick:["header","icon"].includes(T)?B:void 0},j));var O=ne(ee(ee(ee({},"".concat(E,"-item"),!0),"".concat(E,"-item-active"),d),"".concat(E,"-item-disabled"),b),x),N=ne(u,ee(ee(ee({},"".concat(E,"-header"),!0),"".concat(E,"-header-collapsible-only"),$),"".concat(E,"-icon-collapsible-only"),R)),k={className:N,"aria-expanded":d,"aria-disabled":b,onKeyDown:r};return!$&&!R&&(k.onClick=B,k.role=A?"tab":"button",k.tabIndex=b?-1:0),U.createElement("div",ce({},g,{ref:e,className:O}),U.createElement("div",k,c&&j,U.createElement("span",{className:"".concat(E,"-header-text"),onClick:T==="header"?B:void 0},D),K&&U.createElement("div",{className:"".concat(E,"-extra")},_)),U.createElement(Ze,ce({visible:d,leavedClassName:"".concat(E,"-content-hidden")},C,{forceRender:m,removeOnLeave:S}),function(Q,Y){var ae=Q.className,I=Q.style;return U.createElement(Ke,{ref:Y,prefixCls:E,className:ae,style:I,isActive:d,forceRender:m,role:A?"tabpanel":void 0},P)}))}),Et=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],yt=function(e,i){var c=i.prefixCls,u=i.accordion,d=i.collapsible,f=i.destroyInactivePanel,m=i.onItemClick,x=i.activeKey,E=i.openMotion,T=i.expandIcon;return e.map(function(A,p){var _=A.children,D=A.label,w=A.key,C=A.collapsible,S=A.onItemClick,P=A.destroyInactivePanel,g=Se(A,Et),b=String(w??p),$=C??d,R=P??f,K=function(j){$!=="disabled"&&(m(j),S==null||S(j))},B=!1;return u?B=x[0]===b:B=x.indexOf(b)>-1,U.createElement(Re,ce({},g,{prefixCls:c,key:b,panelKey:b,isActive:B,accordion:u,openMotion:E,expandIcon:T,header:D,collapsible:$,onItemClick:K,destroyInactivePanel:R}),_)})},Tt=function(e,i,c){if(!e)return null;var u=c.prefixCls,d=c.accordion,f=c.collapsible,m=c.destroyInactivePanel,x=c.onItemClick,E=c.activeKey,T=c.openMotion,A=c.expandIcon,p=e.key||String(i),_=e.props,D=_.header,w=_.headerClass,C=_.destroyInactivePanel,S=_.collapsible,P=_.onItemClick,g=!1;d?g=E[0]===p:g=E.indexOf(p)>-1;var b=S??f,$=function(B){b!=="disabled"&&(x(B),P==null||P(B))},R={key:p,panelKey:p,header:D,headerClass:w,isActive:g,prefixCls:u,destroyInactivePanel:C??m,openMotion:T,accordion:d,children:e.props.children,onItemClick:$,expandIcon:A,collapsible:b};return typeof e.type=="string"?e:(Object.keys(R).forEach(function(K){typeof R[K]>"u"&&delete R[K]}),U.cloneElement(e,R))};function bt(t,e,i){return Array.isArray(t)?yt(t,i):Oe(e).map(function(c,u){return Tt(c,u,i)})}function ht(t){var e=t;if(!Array.isArray(e)){var i=tt(e);e=i==="number"||i==="string"?[e]:[]}return e.map(function(c){return String(c)})}var vt=U.forwardRef(function(t,e){var i=t.prefixCls,c=i===void 0?"rc-collapse":i,u=t.destroyInactivePanel,d=u===void 0?!1:u,f=t.style,m=t.accordion,x=t.className,E=t.children,T=t.collapsible,A=t.openMotion,p=t.expandIcon,_=t.activeKey,D=t.defaultActiveKey,w=t.onChange,C=t.items,S=ne(c,x),P=ut([],{value:_,onChange:function(r){return w==null?void 0:w(r)},defaultValue:D,postState:ht}),g=we(P,2),b=g[0],$=g[1],R=function(r){return $(function(){if(m)return b[0]===r?[]:[r];var j=b.indexOf(r),O=j>-1;return O?b.filter(function(N){return N!==r}):[].concat(nt(b),[r])})};et(!E,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var K=bt(C,E,{prefixCls:c,accordion:m,openMotion:A,expandIcon:p,collapsible:T,destroyInactivePanel:d,onItemClick:R,activeKey:b});return U.createElement("div",ce({ref:e,className:S,style:f,role:m?"tablist":void 0},Je(t,{aria:!0,data:!0})),K)});const Te=Object.assign(vt,{Panel:Re});Te.Panel;const Ct=W.forwardRef((t,e)=>{const{getPrefixCls:i}=W.useContext(Pe),{prefixCls:c,className:u,showArrow:d=!0}=t,f=i("collapse",c),m=ne({[`${f}-no-arrow`]:!d},u);return W.createElement(Te.Panel,Object.assign({ref:e},t,{prefixCls:f,className:m}))}),Nt=t=>{const{componentCls:e,contentBg:i,padding:c,headerBg:u,headerPadding:d,collapseHeaderPaddingSM:f,collapseHeaderPaddingLG:m,collapsePanelBorderRadius:x,lineWidth:E,lineType:T,colorBorder:A,colorText:p,colorTextHeading:_,colorTextDisabled:D,fontSizeLG:w,lineHeight:C,lineHeightLG:S,marginSM:P,paddingSM:g,paddingLG:b,paddingXS:$,motionDurationSlow:R,fontSizeIcon:K,contentPadding:B,fontHeight:r,fontHeightLG:j}=t,O=`${J(E)} ${T} ${A}`;return{[e]:Object.assign(Object.assign({},rt(t)),{backgroundColor:u,border:O,borderRadius:x,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:O,"&:last-child":{[` +import{$ as U,j as we,o as ne,X as ee,n as Se,g as ce,C as Ze,W as Ie,t as Oe,aK as Je,Y as et,e as tt,h as nt,r as W,I as Pe,E as at,F as it,D as J,H as rt,a5 as st,aN as ot,Q as xe,a6 as ct,Z as pe,aZ as lt}from"./index-BBriuzNA.js";import{m as ut,a1 as dt,a2 as ft,D as Ee,E as ye,I as mt}from"./MyApp-CmkiOnMb.js";var Ke=U.forwardRef(function(t,e){var i=t.prefixCls,c=t.forceRender,u=t.className,d=t.style,f=t.children,m=t.isActive,x=t.role,E=U.useState(m||c),T=we(E,2),A=T[0],p=T[1];return U.useEffect(function(){(c||m)&&p(!0)},[c,m]),A?U.createElement("div",{ref:e,className:ne("".concat(i,"-content"),ee(ee({},"".concat(i,"-content-active"),m),"".concat(i,"-content-inactive"),!m),u),style:d,role:x},U.createElement("div",{className:"".concat(i,"-content-box")},f)):null});Ke.displayName="PanelContent";var gt=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Re=U.forwardRef(function(t,e){var i=t.showArrow,c=i===void 0?!0:i,u=t.headerClass,d=t.isActive,f=t.onItemClick,m=t.forceRender,x=t.className,E=t.prefixCls,T=t.collapsible,A=t.accordion,p=t.panelKey,_=t.extra,D=t.header,w=t.expandIcon,C=t.openMotion,S=t.destroyInactivePanel,P=t.children,g=Se(t,gt),b=T==="disabled",$=T==="header",R=T==="icon",K=_!=null&&typeof _!="boolean",B=function(){f==null||f(p)},r=function(Y){(Y.key==="Enter"||Y.keyCode===Ie.ENTER||Y.which===Ie.ENTER)&&B()},j=typeof w=="function"?w(t):U.createElement("i",{className:"arrow"});j&&(j=U.createElement("div",{className:"".concat(E,"-expand-icon"),onClick:["header","icon"].includes(T)?B:void 0},j));var O=ne(ee(ee(ee({},"".concat(E,"-item"),!0),"".concat(E,"-item-active"),d),"".concat(E,"-item-disabled"),b),x),N=ne(u,ee(ee(ee({},"".concat(E,"-header"),!0),"".concat(E,"-header-collapsible-only"),$),"".concat(E,"-icon-collapsible-only"),R)),k={className:N,"aria-expanded":d,"aria-disabled":b,onKeyDown:r};return!$&&!R&&(k.onClick=B,k.role=A?"tab":"button",k.tabIndex=b?-1:0),U.createElement("div",ce({},g,{ref:e,className:O}),U.createElement("div",k,c&&j,U.createElement("span",{className:"".concat(E,"-header-text"),onClick:T==="header"?B:void 0},D),K&&U.createElement("div",{className:"".concat(E,"-extra")},_)),U.createElement(Ze,ce({visible:d,leavedClassName:"".concat(E,"-content-hidden")},C,{forceRender:m,removeOnLeave:S}),function(Q,Y){var ae=Q.className,I=Q.style;return U.createElement(Ke,{ref:Y,prefixCls:E,className:ae,style:I,isActive:d,forceRender:m,role:A?"tabpanel":void 0},P)}))}),Et=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],yt=function(e,i){var c=i.prefixCls,u=i.accordion,d=i.collapsible,f=i.destroyInactivePanel,m=i.onItemClick,x=i.activeKey,E=i.openMotion,T=i.expandIcon;return e.map(function(A,p){var _=A.children,D=A.label,w=A.key,C=A.collapsible,S=A.onItemClick,P=A.destroyInactivePanel,g=Se(A,Et),b=String(w??p),$=C??d,R=P??f,K=function(j){$!=="disabled"&&(m(j),S==null||S(j))},B=!1;return u?B=x[0]===b:B=x.indexOf(b)>-1,U.createElement(Re,ce({},g,{prefixCls:c,key:b,panelKey:b,isActive:B,accordion:u,openMotion:E,expandIcon:T,header:D,collapsible:$,onItemClick:K,destroyInactivePanel:R}),_)})},Tt=function(e,i,c){if(!e)return null;var u=c.prefixCls,d=c.accordion,f=c.collapsible,m=c.destroyInactivePanel,x=c.onItemClick,E=c.activeKey,T=c.openMotion,A=c.expandIcon,p=e.key||String(i),_=e.props,D=_.header,w=_.headerClass,C=_.destroyInactivePanel,S=_.collapsible,P=_.onItemClick,g=!1;d?g=E[0]===p:g=E.indexOf(p)>-1;var b=S??f,$=function(B){b!=="disabled"&&(x(B),P==null||P(B))},R={key:p,panelKey:p,header:D,headerClass:w,isActive:g,prefixCls:u,destroyInactivePanel:C??m,openMotion:T,accordion:d,children:e.props.children,onItemClick:$,expandIcon:A,collapsible:b};return typeof e.type=="string"?e:(Object.keys(R).forEach(function(K){typeof R[K]>"u"&&delete R[K]}),U.cloneElement(e,R))};function bt(t,e,i){return Array.isArray(t)?yt(t,i):Oe(e).map(function(c,u){return Tt(c,u,i)})}function ht(t){var e=t;if(!Array.isArray(e)){var i=tt(e);e=i==="number"||i==="string"?[e]:[]}return e.map(function(c){return String(c)})}var vt=U.forwardRef(function(t,e){var i=t.prefixCls,c=i===void 0?"rc-collapse":i,u=t.destroyInactivePanel,d=u===void 0?!1:u,f=t.style,m=t.accordion,x=t.className,E=t.children,T=t.collapsible,A=t.openMotion,p=t.expandIcon,_=t.activeKey,D=t.defaultActiveKey,w=t.onChange,C=t.items,S=ne(c,x),P=ut([],{value:_,onChange:function(r){return w==null?void 0:w(r)},defaultValue:D,postState:ht}),g=we(P,2),b=g[0],$=g[1],R=function(r){return $(function(){if(m)return b[0]===r?[]:[r];var j=b.indexOf(r),O=j>-1;return O?b.filter(function(N){return N!==r}):[].concat(nt(b),[r])})};et(!E,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var K=bt(C,E,{prefixCls:c,accordion:m,openMotion:A,expandIcon:p,collapsible:T,destroyInactivePanel:d,onItemClick:R,activeKey:b});return U.createElement("div",ce({ref:e,className:S,style:f,role:m?"tablist":void 0},Je(t,{aria:!0,data:!0})),K)});const Te=Object.assign(vt,{Panel:Re});Te.Panel;const Ct=W.forwardRef((t,e)=>{const{getPrefixCls:i}=W.useContext(Pe),{prefixCls:c,className:u,showArrow:d=!0}=t,f=i("collapse",c),m=ne({[`${f}-no-arrow`]:!d},u);return W.createElement(Te.Panel,Object.assign({ref:e},t,{prefixCls:f,className:m}))}),Nt=t=>{const{componentCls:e,contentBg:i,padding:c,headerBg:u,headerPadding:d,collapseHeaderPaddingSM:f,collapseHeaderPaddingLG:m,collapsePanelBorderRadius:x,lineWidth:E,lineType:T,colorBorder:A,colorText:p,colorTextHeading:_,colorTextDisabled:D,fontSizeLG:w,lineHeight:C,lineHeightLG:S,marginSM:P,paddingSM:g,paddingLG:b,paddingXS:$,motionDurationSlow:R,fontSizeIcon:K,contentPadding:B,fontHeight:r,fontHeightLG:j}=t,O=`${J(E)} ${T} ${A}`;return{[e]:Object.assign(Object.assign({},rt(t)),{backgroundColor:u,border:O,borderRadius:x,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:O,"&:last-child":{[` &, & > ${e}-header`]:{borderRadius:`0 0 ${J(x)} ${J(x)}`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:d,color:_,lineHeight:C,cursor:"pointer",transition:`all ${R}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:r,display:"flex",alignItems:"center",paddingInlineEnd:P},[`${e}-arrow`]:Object.assign(Object.assign({},st()),{fontSize:K,transition:`transform ${R}`,svg:{transition:`transform ${R}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-icon-collapsible-only`]:{cursor:"unset",[`${e}-expand-icon`]:{cursor:"pointer"}}},[`${e}-content`]:{color:p,backgroundColor:i,borderTop:O,[`& > ${e}-content-box`]:{padding:B},"&-hidden":{display:"none"}},"&-small":{[`> ${e}-item`]:{[`> ${e}-header`]:{padding:f,paddingInlineStart:$,[`> ${e}-expand-icon`]:{marginInlineStart:t.calc(g).sub($).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:g}}},"&-large":{[`> ${e}-item`]:{fontSize:w,lineHeight:S,[`> ${e}-header`]:{padding:m,paddingInlineStart:c,[`> ${e}-expand-icon`]:{height:j,marginInlineStart:t.calc(b).sub(c).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:b}}},[`${e}-item:last-child`]:{borderBottom:0,[`> ${e}-content`]:{borderRadius:`0 0 ${J(x)} ${J(x)}`}},[`& ${e}-item-disabled > ${e}-header`]:{"\n &,\n & > .arrow\n ":{color:D,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:P}}}}})}},At=t=>{const{componentCls:e}=t,i=`> ${e}-item > ${e}-header ${e}-arrow`;return{[`${e}-rtl`]:{[i]:{transform:"rotate(180deg)"}}}},_t=t=>{const{componentCls:e,headerBg:i,paddingXXS:c,colorBorder:u}=t;return{[`${e}-borderless`]:{backgroundColor:i,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${u}`},[` > ${e}-item:last-child, diff --git a/public/index.html b/public/index.html index ba6eac4..3ca92b8 100644 --- a/public/index.html +++ b/public/index.html @@ -34,7 +34,7 @@ src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3880569561595847" crossorigin="anonymous" > - +