minh-hong/minh-hong-footer.min.js · Ảnh nút Minh Hồng w108 (hiển thị 54px) cho nhẹ

(function(){"use strict";if(window.__OCD_MINH_HONG_FOOTER_V1574__)return;window.__OCD_MINH_HONG_FOOTER_V1574__=!0;const x={version:"1.6.2",enabled:!0,avatarUrl:"https://lh3.googleusercontent.com/d/1mHxTCbL1vxiveuALFl6cdY-Ajwew2vpJ=w108-rw",csvUrl:"https://docs.google.com/spreadsheets/d/e/2PACX-1vRP5cc8duj1XrCXMrymo6Cj7aqIkWfX6bHxGeW-lXcSewfQXhM8fZ5rzbNIQ9mBeVuB8yYr_o1aBoYA/pub?output=csv",studentSpreadsheetId:"1GJoTRsbq0kZfZrDdh0uCC667PwS3Bgkje2fHQnwnCKs",studentSheetName:"HocVien",teacherName:"Th\u1EA7y Thanh Phong",communityCacheKey:"ocd_minh_hong_community_cache_v1",communityCacheTime:600*1e3,sessionKey:"ocd_student_session_v1",preferenceKey:"ocd_minh_hong_preferences_v1",insightStorageKey:"ocd_minh_hong_student_insight_v1",insightMaxAge:1440*60*1e3,contentSpreadsheetId:"1-J6sXAbiepK6C3Bx0JQ3916Y7JNfBIyGrxvQuJYqx74",contentCachePrefix:"ocd_minh_hong_content_v155_",contentCacheTime:1200*1e3,guestJourneyKey:"ocd_minh_hong_guest_journey_v1",guestJourneyMaxSeen:120,speechCooldownKey:"ocd_minh_hong_speech_cooldown_v1",speechCooldownTime:720*60*1e3,speechMaxHistory:160,gemEventLimit:15,uploadEventLimit:5,commentEventLimit:5,eventWindow:1440*60*1e3,initializeDelay:3500,firstNotificationDelay:1500,personalFirstDelay:1800,visibleTime:6500,gapTime:5e3,personalGapTime:5500,maxPersonalNotifications:5,oneDay:1440*60*1e3};if(!x.enabled)return;const le={quoteOpen:String.fromCodePoint(8220),quoteClose:String.fromCodePoint(8221),close:String.fromCodePoint(215),arrow:String.fromCodePoint(8594),check:String.fromCodePoint(10003),bullet:String.fromCodePoint(8226),dot:String.fromCodePoint(183)},U={gem:String.fromCodePoint(128142),crown:String.fromCodePoint(128081),upload:String.fromCodePoint(128228),teacher:String.fromCodePoint(129489,8205,127979),success:String.fromCodePoint(9989),bell:String.fromCodePoint(128276),mute:String.fromCodePoint(128277),user:String.fromCodePoint(128100),home:String.fromCodePoint(127968),book:String.fromCodePoint(128214),info:String.fromCodePoint(8505),community:String.fromCodePoint(128226),activity:String.fromCodePoint(9889),logout:String.fromCodePoint(8618),back:String.fromCodePoint(8592),key:String.fromCodePoint(128273),brain:String.fromCodePoint(129504),chart:String.fromCodePoint(128202),up:String.fromCodePoint(8599),down:String.fromCodePoint(8600),stable:String.fromCodePoint(8594),target:String.fromCodePoint(127919),gift:String.fromCodePoint(127873),warning:String.fromCodePoint(9888),tip:String.fromCodePoint(128161),fire:String.fromCodePoint(128293)},sn=[{id:1,type:"streak",value:5,hoangNgocValue:1},{id:2,type:"streak",value:7,hoangNgocValue:2},{id:3,type:"streak",value:14,hoangNgocValue:4},{id:4,type:"streak",value:30,hoangNgocValue:8},{id:5,type:"highBlock",block:3,count:1,hoangNgocValue:2},{id:6,type:"highBlock",block:4,count:1,hoangNgocValue:3},{id:7,type:"highBlock",block:5,count:1,hoangNgocValue:4},{id:8,type:"highBlock",block:3,count:2,hoangNgocValue:4},{id:9,type:"highBlock",block:4,count:2,hoangNgocValue:6},{id:10,type:"highBlock",block:5,count:2,hoangNgocValue:8}],At=2e4;function Pe(r,l){const m=new AbortController;let d=!1;const w=setTimeout(function(){d=!0,m.abort()},At);return fetch(r,Object.assign({},l||{},{signal:m.signal})).catch(function(A){throw d?new Error("Ngu\u1ED3n d\u1EEF li\u1EC7u kh\xF4ng ph\u1EA3n h\u1ED3i sau 20 gi\xE2y."):A}).finally(function(){clearTimeout(w)})}function j(r){return String(r??"").replace(/\uFEFF/g,"").trim()}function re(r){return j(r).toUpperCase().replace(/\s+/g,"")}function Et(r){return j(r).toLowerCase()}function cn(r){const l=j(r).replace(",",".");if(!l)return null;const m=Number(l);return Number.isNaN(m)?null:m}function xe(){let r=String(window.location.pathname||"/");return r.length>1&&(r=r.replace(/\/+$/,"")),r==="/"||r==="/index.html"||r==="/index.htm"}function at(r){const l=j(r).toLowerCase();return l==="community"||l==="personal"||l==="class-pulse"||l==="silent"?l:""}function ue(){if(xe())return"community";const r=at(window.OCDMinhHongPageContext);return r||(document.getElementById("ocd4-student-work-page")?"class-pulse":(document.getElementById("rewardExchangeApp"),"personal"))}function he(){return ue()==="community"}function Ke(){return ue()==="personal"}function Oe(){return ue()==="class-pulse"}function ze(){return ue()==="silent"}function ve(r){const l=j(r).toLowerCase();return["Guest","TrangChu","TraCuu","TacPham","LamMo","ThuVien","GiangDuong","ThiTotNghiep","FAQ"].find(function(d){return d.toLowerCase()===l})||""}function me(){const r=ve(window.OCDMinhHongContentTab);if(r)return r;if(xe())return"TrangChu";if(document.getElementById("ocd4-student-work-page"))return"TacPham";if(document.getElementById("rewardExchangeApp"))return"TraCuu";if(document.getElementById("lectureHallPage"))return"GiangDuong";if(document.getElementById("ocdGraduationExamPage"))return"ThiTotNghiep";const l=String(window.location.pathname||"").toLowerCase(),m=String(document.title||"").toLowerCase(),d=l+" "+m;return/tra[-_ ]?cuu|ch[oợ][- _]?phi[eê]n/.test(d)?"TraCuu":/tac[-_ ]?pham|student[-_ ]?work|n[oộ]p[-_ ]?b[aà]i/.test(d)?"TacPham":/lam[-_ ]?mo|l[aâ]m[-_ ]?m[oô]/.test(d)?"LamMo":/giang[-_ ]?duong|gi[aả]ng[-_ ]?[dđ][uư][oơ]ng|lecture[-_ ]?hall/.test(d)?"GiangDuong":/thi[-_ ]?tot[-_ ]?nghiep|t[oố]t[-_ ]?nghi[eệ]p|graduation/.test(d)?"ThiTotNghiep":/faq|hoi[-_ ]?dap|h[oỏ]i[-_ ]?[dđ][aá]p/.test(d)?"FAQ":/thu[-_ ]?vien|th[uư][-_ ]?vi[eệ]n|library/.test(d)?"ThuVien":"Guest"}function Se(r){try{return localStorage.getItem(r)}catch{return null}}function Ne(r,l){try{return localStorage.setItem(r,l),!0}catch{return!1}}function Pt(r){try{localStorage.removeItem(r)}catch{}}const W=(function(){const r={mode:"guest",code:"",verified:!1,updatedAt:0};let l=Object.assign({},r);function m(M){if(!M||typeof M!="object")return Object.assign({},r);let v=j(M.mode).toLowerCase();const a=re(M.code);return v!=="guest"&&v!=="student"&&(v="guest"),a||(v="guest"),{mode:v,code:v==="guest"?"":a,verified:v==="guest"?!1:!!M.verified,updatedAt:Number(M.updatedAt||0)}}function d(){const M=Se(x.sessionKey);if(!M)return Object.assign({},l);try{l=m(JSON.parse(M))}catch{l=Object.assign({},r)}return Object.assign({},l)}function w(M){return l=m(M),Ne(x.sessionKey,JSON.stringify(l)),Object.assign({},l)}function A(M,v,a){try{window.dispatchEvent(new CustomEvent("ocdStudentSessionChanged",{detail:{previous:Object.assign({},M),current:Object.assign({},v),source:a||"unknown"}}))}catch{}}function L(M,v){const a=d(),h=w(M);return A(a,h,v),h}function V(){return d()}function f(){return d().code}function c(){return d().mode==="guest"}function g(){return d().mode==="student"}function i(){const M=d();return!!(M.mode==="student"&&M.code&&M.verified===!0)}function p(M,v){const a=re(M);return a?L({mode:"student",code:a,verified:!1,updatedAt:Date.now()},v||"rememberStudent"):V()}function k(M,v){const a=re(M);return a?L({mode:"student",code:a,verified:!0,updatedAt:Date.now()},v||"confirmStudent"):V()}function ee(M){const v=d();return Pt(x.sessionKey),l=Object.assign({},r),A(v,l,M||"clear"),Object.assign({},l)}return window.addEventListener("storage",function(M){if(M.key!==x.sessionKey)return;const v=Object.assign({},l),a=d();A(v,a,"storage")}),{version:x.version,getState:V,getCode:f,isGuest:c,isStudent:g,isVerified:i,rememberStudent:p,confirmStudent:k,clear:ee,normalizeCode:re}})();window.OCDStudentSession=W;function Ue(r){return"T\xE0i kho\u1EA3n h\u1ECDc vi\xEAn "+r+` \u0111\xE3 d\u1EEBng ho\u1EA1t \u0111\u1ED9ng.

Vui l\xF2ng t\u1EA1o l\u1EA1i t\xE0i kho\u1EA3n m\u1EDBi ho\u1EB7c li\xEAn h\u1EC7 GVCN \u0111\u1EC3 xin m\u1EDF l\u1EA1i t\xE0i kho\u1EA3n.`}async function Je(r,l){try{if(!r)return!1;window.StudentRewardSystemReady&&await window.StudentRewardSystemReady;const m=window.StudentRewardSystem;if(!m||typeof m.getStudentAccess!="function")return!1;const d=await m.getStudentAccess(r,{forceRefresh:!!l});return!!(d&&d.exists&&d.status==="paused")}catch{return!1}}const lt=(function(){const r={notificationsMuted:!1};function l(){const d=Se(x.preferenceKey);if(!d)return Object.assign({},r);try{return{notificationsMuted:!!JSON.parse(d).notificationsMuted}}catch{return Object.assign({},r)}}function m(d){const w=Object.assign({},l(),d||{});return Ne(x.preferenceKey,JSON.stringify(w)),w}return{get:l,set:m}})(),Qe=(function(){return{save:function(){return null},read:function(){return null},getForCurrentStudent:function(){return null},clearMemory:function(){}}})(),Ce=(function(){const r={firstSeenAt:0,lastSeenAt:0,visitCount:0,pageVisits:{},seenItems:{}};let l=!1;function m(i){return i=i&&typeof i=="object"?i:{},{firstSeenAt:Number(i.firstSeenAt||0),lastSeenAt:Number(i.lastSeenAt||0),visitCount:Math.max(0,Number(i.visitCount||0)),pageVisits:i.pageVisits&&typeof i.pageVisits=="object"?i.pageVisits:{},seenItems:i.seenItems&&typeof i.seenItems=="object"?i.seenItems:{}}}function d(){const i=Se(x.guestJourneyKey);if(!i)return m(r);try{return m(JSON.parse(i))}catch{return m(r)}}function w(i){return i=m(i),Ne(x.guestJourneyKey,JSON.stringify(i)),i}function A(i){if(l)return d();l=!0,i=ve(i)||"Guest";const p=d(),k=Date.now();return p.firstSeenAt||(p.firstSeenAt=k),p.lastSeenAt=k,p.visitCount+=1,p.pageVisits[i]=Math.max(0,Number(p.pageVisits[i]||0))+1,w(p)}function L(i){i=ve(i)||"Guest";const p=d(),k=Math.max(0,Number(p.visitCount||0)),ee=Math.max(0,Number(p.pageVisits[i]||0));return{firstVisit:k<=1,returningGuest:k>1,pageFirstVisit:ee<=1,pageReturning:ee>1,visitCount:k,pageVisitCount:ee}}function V(i,p){i=ve(i)||"Guest";const k=j(p&&p.id);return i+":"+(k||j(p&&p.title)||"item")}function f(i,p){return!!d().seenItems[V(i,p)]}function c(i,p){if(!Array.isArray(p)||!p.length)return;const k=d(),ee=Date.now();p.forEach(function(v){k.seenItems[V(i,v)]=ee}),Object.keys(k.seenItems).sort(function(v,a){return Number(k.seenItems[a]||0)-Number(k.seenItems[v]||0)}).slice(x.guestJourneyMaxSeen).forEach(function(v){delete k.seenItems[v]}),w(k)}function g(i,p){if(!Array.isArray(p)||!p.length)return[];const k=p.filter(function(ee){return!f(i,ee)});return k.length?k:p.slice()}return{version:"1.5.4",registerVisit:A,getContext:L,isSeen:f,markSeen:c,preferUnseen:g}})();window.OCDMinhHongGuestJourney=Ce;const _e=(function(){let r={page:"",studentCode:"",data:{},conditions:{},updatedAt:0,source:""};function l(c){return c&&typeof c=="object"&&!Array.isArray(c)?c:{}}function m(c){try{return JSON.parse(JSON.stringify(c))}catch{return c}}function d(c,g){try{window.dispatchEvent(new CustomEvent("ocdMinhHongContextChanged",{detail:{previous:m(c),current:m(g)}}))}catch{}}function w(c,g){c=l(c);const i=m(r);return r={page:j(c.page),studentCode:W.normalizeCode(c.studentCode),data:Object.assign({},l(c.data)),conditions:Object.assign({},l(c.conditions)),updatedAt:Date.now(),source:j(g||c.source||"page")},d(i,r),m(r)}function A(c,g){return c=l(c),w({page:c.page!==void 0?c.page:r.page,studentCode:c.studentCode!==void 0?c.studentCode:r.studentCode,data:Object.assign({},r.data,l(c.data)),conditions:Object.assign({},r.conditions,l(c.conditions))},g||c.source||r.source||"page")}function L(c){const g=m(r);return r={page:"",studentCode:"",data:{},conditions:{},updatedAt:Date.now(),source:j(c||"clear")},d(g,r),m(r)}function V(){return m(r)}function f(c){const g=W.normalizeCode(c),i=W.normalizeCode(r.studentCode);return g&&i&&g!==i?{page:"",studentCode:g,data:{},conditions:{},updatedAt:0,source:""}:m(r)}return{version:"1.5.4",set:w,patch:A,clear:L,getState:V,getForStudent:f}})();window.OCDMinhHongContext=_e;const oe=(function(){const r=Object.create(null),l=Object.create(null),m=["Guest","TrangChu","TraCuu","TacPham","LamMo","ThuVien","GiangDuong","ThiTotNghiep","FAQ"];function d(a){const h=j(a);return m.find(function(u){return u.toLowerCase()===h.toLowerCase()})||""}function w(a){return x.contentCachePrefix+a.toLowerCase()}function A(a){const h=[];let I=[],u="",y=!1;for(let t=0;t<a.length;t++){const E=a[t],se=a[t+1];E==='"'&&y&&se==='"'?(u+='"',t++):E==='"'?y=!y:E===","&&!y?(I.push(u),u=""):(E===`
`||E==="\r")&&!y?(E==="\r"&&se===`
`&&t++,I.push(u),I.some(function(te){return j(te)!==""})&&h.push(I),I=[],u=""):u+=E}return(u!==""||I.length)&&(I.push(u),I.some(function(t){return j(t)!==""})&&h.push(I)),h}function L(a){return j(a).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/đ/g,"d").replace(/[^a-z0-9]+/g,"")}function V(a,h){const I=j(a);if(!I)return null;let u=I.match(/^(\d{1,2})[\/\-.](\d{1,2})[\/\-.](\d{4})(?:\s+(\d{1,2}):(\d{2})(?::(\d{2}))?)?/);if(u){const t=u[4]!==void 0,E=t?Number(u[4]):h?23:0,se=t?Number(u[5]||0):h?59:0,te=t?Number(u[6]||0):h?59:0;return Date.UTC(Number(u[3]),Number(u[2])-1,Number(u[1]),E-7,se,te)}const y=new Date(I);return Number.isNaN(y.getTime())?null:y.getTime()}function f(a){const h=A(a);if(h.length<2)return[];const I=h[0].map(L);function u(E){return I.indexOf(L(E))}const y={id:u("ID"),status:u("Tr\u1EA1ng th\xE1i"),audience:u("\u0110\u1ED1i t\u01B0\u1EE3ng"),condition:u("\u0110i\u1EC1u ki\u1EC7n"),title:u("Ti\xEAu \u0111\u1EC1"),content:u("N\u1ED9i dung"),button:u("N\xFAt"),link:u("Link"),priority:u("\u01AFu ti\xEAn"),start:u("Ng\xE0y b\u1EAFt \u0111\u1EA7u"),end:u("Ng\xE0y k\u1EBFt th\xFAc"),display:u("Hi\u1EC3n th\u1ECB")},t=Date.now();return h.slice(1).map(function(E,se){function te(De){return De>=0?j(E[De]):""}const Le=V(te(y.start),!1),Xe=V(te(y.end),!0);return{id:te(y.id)||"ROW"+(se+2),status:te(y.status).toUpperCase(),audience:te(y.audience).toLowerCase(),condition:te(y.condition).toLowerCase()||"always",title:te(y.title),content:te(y.content),button:te(y.button),link:te(y.link),priority:Number(te(y.priority))||0,startAt:Le,endAt:Xe,display:te(y.display).toLowerCase()||"panel"}}).filter(function(E){return E.status&&E.status!=="ON"||E.startAt!==null&&t<E.startAt||E.endAt!==null&&t>E.endAt?!1:!!(E.title||E.content)}).sort(function(E,se){return se.priority-E.priority})}function c(a,h){const I=Se(w(a));if(!I)return null;try{const u=JSON.parse(I);return!u||!Array.isArray(u.items)||!u.savedAt||!h&&Date.now()-Number(u.savedAt)>x.contentCacheTime?null:u.items}catch{return null}}function g(a,h){Ne(w(a),JSON.stringify({savedAt:Date.now(),items:h}))}function i(a){return"https://docs.google.com/spreadsheets/d/"+encodeURIComponent(x.contentSpreadsheetId)+"/gviz/tq?tqx=out:csv&sheet="+encodeURIComponent(a)+"&_="+Date.now()}function p(a,h){if(a=d(a),h=h||{},!a)return Promise.resolve([]);if(r[a]&&!h.force)return Promise.resolve(r[a].slice());const I=c(a,!1);return I&&!h.force?(r[a]=I,Promise.resolve(I.slice())):(l[a]||(l[a]=Pe(i(a),{cache:"no-store",credentials:"omit"}).then(function(u){if(!u.ok)throw new Error("HTTP "+u.status);return u.text()}).then(function(u){const y=f(u);return r[a]=y,g(a,y),y.slice()}).catch(function(u){console.warn("[Minh H\u1ED3ng] Content "+a+":",u);const y=c(a,!0)||[];return y.length&&(r[a]=y),y.slice()}).finally(function(){l[a]=null})),l[a])}function k(a){return a=d(a),a?r[a]?r[a].slice():(c(a,!1)||[]).slice():[]}function ee(a,h){h=h||{};const I=j(h.mode).toLowerCase()||"guest",u=j(a.audience).toLowerCase();if(I==="student"){if(u&&u!=="all"&&u!=="student")return!1}else if(u&&u!=="all"&&u!=="guest")return!1;const y=j(a.condition).toLowerCase();return!y||y==="always"?!0:I==="student"?y==="verified_student"?!!h.verified:h.conditions&&Object.prototype.hasOwnProperty.call(h.conditions,y)?!!h.conditions[y]:!1:y==="first_visit"?!!h.firstVisit:y==="returning_guest"?!!h.returningGuest:!1}function M(a,h){return h=Object.assign({},h||{},{mode:"guest"}),k(a).filter(function(I){return ee(I,h)})}function v(a,h){return h=Object.assign({},h||{},{mode:"student",verified:!!(h&&h.verified)}),h.verified?k(a).filter(function(I){return ee(I,h)}):[]}return{version:"1.5.5",load:p,get:k,getForGuest:M,getForStudent:v,tabs:m.slice()}})();window.OCDMinhHongContent=oe;const ke=(function(){function r(d){const w=[];let A=[],L="",V=!1;for(let f=0;f<d.length;f++){const c=d[f],g=d[f+1];c==='"'&&V&&g==='"'?(L+='"',f++):c==='"'?V=!V:c===","&&!V?(A.push(L),L=""):(c===`
`||c==="\r")&&!V?(c==="\r"&&g===`
`&&f++,A.push(L),w.push(A),A=[],L=""):L+=c}return(L!==""||A.length)&&(A.push(L),w.push(A)),w}function l(d){const w=d[0].map(Et),A=w.findIndex(function(i){return i.includes("m\xE3 h\u1ECDc vi\xEAn")}),L=w.findIndex(function(i){return i.includes("h\u1ECD v\xE0 t\xEAn")}),V=w.findIndex(function(i){return i.includes("d\u1EA5u th\u1EDDi gian")||i.includes("th\u1EDDi gian")||i.includes("timestamp")}),f=w.findIndex(function(i){return i==="\u0111i\u1EC3m"||i.includes("\u0111i\u1EC3m s\u1ED1")}),c=w.findIndex(function(i){return i.includes("t\u1EA3i b\xE0i")||i.includes("b\xE0i t\u1EADp")||i.includes("t\u1EC7p")||i.includes("file")});let g=w.findIndex(function(i){return i.includes("nh\u1EADn x\xE9t")});return g===-1&&(g=8),{codeIndex:A,nameIndex:L,timeIndex:V,scoreIndex:f,fileIndex:c,commentIndex:g}}async function m(d){const w=re(d);if(!w)return{ok:!1,code:"",name:"",reason:"empty"};function A(c,g){if(!c||c.length<2)return null;const i=l(c);if(i.codeIndex<0)return null;for(let p=1;p<c.length;p++){const k=c[p]||[];if(re(k[i.codeIndex])===w)return{ok:!0,code:w,name:i.nameIndex>=0?j(k[i.nameIndex]):"",reason:"found",source:g}}return null}async function L(){const c=window.StudentRewardSystem;if(c&&typeof c.getStudentSubmissionsCsv=="function")try{return window.StudentRewardSystemReady&&await window.StudentRewardSystemReady,r(await c.getStudentSubmissionsCsv(w))}catch(k){console.warn("[Minh H\u1ED3ng] Reward Core ch\u01B0a \u0111\u1ECDc \u0111\u01B0\u1EE3c b\xE0i n\u1ED9p, d\xF9ng CSV:",k&&k.message||k)}const g=x.csvUrl.indexOf("?")>=0?"&":"?",i=await Pe(x.csvUrl+g+"mh_verify="+Date.now(),{cache:"no-store",credentials:"omit"});if(!i.ok)throw new Error("Kh\xF4ng th\u1EC3 t\u1EA3i ngu\u1ED3n x\xE1c minh h\u1ECDc vi\xEAn hi\u1EC7n t\u1EA1i.");const p=await i.text();return r(p)}async function V(){const c="https://docs.google.com/spreadsheets/d/"+x.studentSpreadsheetId+"/gviz/tq?tqx=out:csv&sheet="+encodeURIComponent(x.studentSheetName)+"&mh_verify="+Date.now(),g=await Pe(c,{cache:"no-store",credentials:"omit"});if(!g.ok)throw new Error("Kh\xF4ng th\u1EC3 t\u1EA3i tab HocVien.");const i=await g.text();return r(i)}const f=await Promise.allSettled([L(),V()]);if(f[0].status==="fulfilled"){const c=A(f[0].value,"community");if(c)return c}if(f[1].status==="fulfilled"){const c=A(f[1].value,"HocVien");if(c)return c}if(f[0].status==="rejected"&&f[1].status==="rejected")throw console.warn("[Minh H\u1ED3ng] C\u1EA3 hai ngu\u1ED3n x\xE1c minh h\u1ECDc vi\xEAn \u0111\u1EC1u l\u1ED7i.",f[0].reason,f[1].reason),new Error("Kh\xF4ng th\u1EC3 t\u1EA3i d\u1EEF li\u1EC7u x\xE1c minh h\u1ECDc vi\xEAn.");return f[0].status==="rejected"&&console.warn("[Minh H\u1ED3ng] Ngu\u1ED3n x\xE1c minh hi\u1EC7n t\u1EA1i t\u1EA1m l\u1ED7i:",f[0].reason),f[1].status==="rejected"&&console.warn("[Minh H\u1ED3ng] Tab HocVien t\u1EA1m l\u1ED7i:",f[1].reason),{ok:!1,code:w,name:"",reason:"not-found"}}return{load:function(){return Promise.resolve([])},getEvents:function(){return[]},verifyStudentCode:m,isReady:function(){return!0}}})();window.OCDCommunityActivity=ke;const Ot=(function(){let r=null,l=null,m=null,d=null,w=null,A=null,L=null,V=null,f=null,c=null,g=!1,i="home",p=lt.get().notificationsMuted,k=[],ee=[],M=[],v=[],a=null,h=0,I=null,u=null,y=null;function t(e,n,o){const s=document.createElement(e);return n&&(s.className=n),o!==void 0&&(s.textContent=o),s}function E(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}function se(e){const n=Date.now()-Number(e),o=Math.floor(n/6e4);if(o<1)return"V\u1EEBa xong";if(o<60)return o+" ph\xFAt tr\u01B0\u1EDBc";const s=Math.floor(o/60);return s<24?s+" gi\u1EDD tr\u01B0\u1EDBc":Math.floor(s/24)+" ng\xE0y tr\u01B0\u1EDBc"}function te(){}function Le(e,n){const o=document.createElement("img");o.className=n||"",o.src=x.avatarUrl,o.decoding="async",o.alt="Minh H\u1ED3ng",o.referrerPolicy="no-referrer",o.onerror=function(){o.remove(),!e.querySelector(".mh-avatar-fallback")&&e.appendChild(t("span","mh-avatar-fallback","MH"))},e.appendChild(o)}function Xe(){if(r)return;r=t("div"),r.id="ocdMinhHongRoot",m=t("div","mh-notification"),V=t("div","mh-notification-icon");const e=t("div","mh-notification-content");d=t("div","mh-notification-label","MINH H\u1ED2NG TH\xD4NG B\xC1O"),w=t("div","mh-notification-title"),A=t("div","mh-notification-text"),L=t("div","mh-notification-time"),e.appendChild(d),e.appendChild(w),e.appendChild(A),e.appendChild(L);const n=t("button","mh-notification-close",le.close);n.type="button";const o=t("div","mh-notification-progress");o.appendChild(t("div","mh-notification-progress-bar")),m.appendChild(V),m.appendChild(e),m.appendChild(n),m.appendChild(o);const s=t("div","mh-panel"),b=t("div","mh-panel-header"),D=t("div","mh-panel-avatar");Le(D,"");const S=t("div");S.appendChild(t("div","mh-panel-name","Minh H\u1ED3ng")),S.appendChild(t("div","mh-panel-role","Tr\u1EE3 gi\u1EA3ng Online "+le.dot+" H\u01B0\u1EDBng d\u1EABn v\xE0 th\xF4ng b\xE1o"));const B=t("div","mh-header-actions");c=t("button","mh-header-button"),c.type="button";const K=t("button","mh-header-button",le.close);K.type="button",B.appendChild(K),b.appendChild(D),b.appendChild(S),b.appendChild(B);const _=t("div","mh-panel-scroll");f=t("div","mh-panel-body"),_.appendChild(f),s.appendChild(b),s.appendChild(_),s.appendChild(t("div","mh-panel-footer","Minh H\u1ED3ng "+le.dot+" Tr\u1EE3 gi\u1EA3ng Online")),l=t("button","mh-launcher"),l.type="button",l.setAttribute("aria-label","M\u1EDF Minh H\u1ED3ng");const Y=t("div","mh-launcher-image-wrap");Le(Y,"mh-launcher-image"),l.appendChild(Y),l.appendChild(t("span","mh-online-dot")),r.appendChild(s),r.appendChild(l),document.body.appendChild(r),l.addEventListener("click",mt),K.addEventListener("click",$e),ce()}function De(e){return e.type==="upload"?U.upload:e.type==="comment"?U.teacher:Array.isArray(e.items)&&e.items.some(function(o){return o.type==="hong"})?U.crown:U.gem}function _t(e){return e.type==="upload"?"mh-upload":e.type==="comment"?"mh-comment":"mh-gem"}function Lt(e){return e.type==="upload"?"v\u1EEBa t\u1EA3i th\xE0nh c\xF4ng m\u1ED9t b\xE0i t\u1EADp l\xEAn h\u1EC7 th\u1ED1ng.":e.type==="comment"?x.teacherName+" v\u1EEBa nh\u1EADn x\xE9t: "+le.quoteOpen+j(e.comment)+le.quoteClose:"v\u1EEBa \u0111\u1ED5i th\xE0nh c\xF4ng "+j(e.outcome)+"."+(e.reason?" Do "+e.reason+".":"")}function Dt(){return[]}function ut(e){const n=j(e&&e.display).toLowerCase();return n==="speech"||n==="both"?n:"panel"}function Gt(e){let n=2166136261;const o=String(e||"");for(let s=0;s<o.length;s++)n^=o.charCodeAt(s),n=Math.imul(n,16777619);return(n>>>0).toString(36)}function dt(){const e=Se(x.speechCooldownKey);if(!e)return{};try{const n=JSON.parse(e);return n&&typeof n=="object"?n:{}}catch{return{}}}function Vt(e){const n=Object.keys(e||{}).map(function(s){return[s,Number(e[s])||0]}).sort(function(s,b){return b[1]-s[1]}).slice(0,x.speechMaxHistory),o={};n.forEach(function(s){o[s[0]]=s[1]}),Ne(x.speechCooldownKey,JSON.stringify(o))}function jt(e,n,o,s,b){return[re(e.code),n,j(o.id),Gt(s+"|"+b)].join("|")}function Bt(e){const n=me(),o=_e.getForStudent(e.code),s=ve(o&&o.page),b=!s||s===n;return{mode:"student",verified:!0,code:e.code,page:n,data:b?Object.assign({},o.data||{}):{},conditions:b?Object.assign({},o.conditions||{}):{}}}function Ge(e){e=e||{};const n=W.getState();if(ze())return v=[],Promise.resolve([]);const o=me(),s=!!(n&&n.mode==="student"&&n.verified&&n.code),b=s?Bt(n):Object.assign({mode:"guest",verified:!1,code:"",page:o,data:{},conditions:{}},Ce.getContext(o)||{});function D(){const S=Object.assign({studentCode:s&&n.code||"",page:o},b.data||{}),B=(s?oe.getForStudent(o,b):oe.getForGuest(o,b)).filter(function(Q){const N=ut(Q);return N==="speech"||N==="both"}),K=dt(),_=Date.now(),Y=[];return B.forEach(function(Q){const N=be(Q.title||(s?"L\u1EDDi khuy\xEAn d\xE0nh cho b\u1EA1n":"Minh H\u1ED3ng ch\xE0o b\u1EA1n"),S),G=be(Q.content||"",S),P=jt(s?n:{code:"GUEST"},o,Q,N,G),O=Number(K[P])||0;_-O<x.speechCooldownTime||Y.push({personal:!0,guestSpeech:!s,contextSpeech:!0,type:s?"context-speech":"guest-speech",icon:s?U.tip:U.user,title:N,text:G,contentId:Q.id,priority:Q.priority||0,speechKey:P})}),v=Y,h=0,!g&&!p&&v.length&&Te(),v.slice()}return e.cachedOnly?Promise.resolve(D()):oe.load(o).then(D)}function Ye(){const e=ue();return e==="community"?W.isVerified()?k:v.concat(k.slice(0,x.maxPersonalNotifications)):e==="personal"?v.concat(ee.slice(0,x.maxPersonalNotifications)):e==="class-pulse"?v.concat(M.slice(0,x.maxPersonalNotifications)):[]}function Ft(){return he()?x.firstNotificationDelay:x.personalFirstDelay}function Rt(){return he()?x.gapTime:x.personalGapTime}function qt(e){if(e&&e.classPulse){m.className="mh-notification mh-personal",d.textContent="NH\u1ECAP L\u1EDAP H\u1ECCC",V.textContent=e.icon||U.activity,w.textContent=e.title||"Ho\u1EA1t \u0111\u1ED9ng l\u1EDBp h\u1ECDc",A.textContent=e.text||e.message||"",L.textContent="20 b\xE0i n\u1ED9p m\u1EDBi nh\u1EA5t";return}if(e&&e.guestSpeech){m.className="mh-notification mh-personal",d.textContent="MINH H\u1ED2NG CH\xC0O B\u1EA0N",V.textContent=e.icon||U.user,w.textContent=e.title||"Th\xF4ng tin d\xE0nh cho b\u1EA1n",A.textContent=e.text||"",L.textContent="D\xE0nh cho kh\xE1ch";return}if(e.personal){m.className="mh-notification mh-personal",d.textContent="MINH H\u1ED2NG G\u1EE2I \xDD",V.textContent=e.icon||U.tip,w.textContent=e.title||"L\u1EDDi khuy\xEAn d\xE0nh cho b\u1EA1n",A.textContent=e.text||"",L.textContent="D\xE0nh ri\xEAng cho b\u1EA1n";return}m.className="mh-notification "+_t(e),d.textContent="MINH H\u1ED2NG TH\xD4NG B\xC1O",V.textContent=De(e),e.type==="comment"?w.textContent=x.teacherName+" v\u1EEBa nh\u1EADn x\xE9t b\xE0i c\u1EE7a "+e.name:w.textContent=e.name,A.textContent=Lt(e),L.textContent=se(e.time)}function Kt(e){g||p||!e||(qt(e),m.classList.remove("mh-show"),m.offsetWidth,m.classList.add("mh-show"),clearTimeout(y),y=setTimeout(ht,x.visibleTime))}function ht(){m&&(m.classList.remove("mh-show"),clearTimeout(y),y=null)}function We(){clearTimeout(I),clearTimeout(u),clearTimeout(y),I=null,u=null,y=null,ht()}function Ze(e){clearTimeout(u),u=null;const n=Ye();g||p||!n.length||(u=setTimeout(ft,e))}function zt(e){if(!e||!e.contextSpeech||!e.speechKey)return;const n=dt();n[e.speechKey]=Date.now(),Vt(n),v=v.filter(function(o){return o.speechKey!==e.speechKey})}function ft(){const e=Ye();if(g||p||!e.length)return;h>=e.length&&(h=0);const n=e[h];Kt(n),n&&n.contextSpeech?(zt(n),h=0):h++,Ze(x.visibleTime+Rt())}function Te(){We();const e=Ye();p||g||!e.length||(h=0,I=setTimeout(ft,Ft()))}function Ut(){c&&(c.textContent=p?U.mute:U.bell)}function an(){p=!p,lt.set({notificationsMuted:p}),Ut(),p?We():g||Ze(500)}function pt(){g=!0,r.classList.add("mh-panel-open"),We(),ce()}function $e(){g=!1,r.classList.remove("mh-panel-open"),p||Ze(800)}function mt(){g?$e():pt()}function de(e,n,o){const s=t("button",n?"mh-action-button mh-action-button-primary":"mh-action-button");return s.type="button",s.appendChild(t("span","",e)),s.appendChild(t("span","",le.arrow)),s.addEventListener("click",o),s}function ln(){}function gt(){return null}function un(){return[]}function et(){a=null,M=[]}function dn(){}function hn(){}function Jt(){f.appendChild(t("div","mh-status",U.user+" KH\xC1CH M\u1EDAI")),f.appendChild(t("div","mh-intro-title","Ch\xE0o b\u1EA1n, m\xECnh l\xE0 Minh H\u1ED3ng.")),f.appendChild(t("div","mh-intro-text","M\xECnh l\xE0 tr\u1EE3 gi\u1EA3ng Online c\u1EE7a website. N\u1EBFu b\u1EA1n \u0111\xE3 c\xF3 m\xE3 h\u1ECDc vi\xEAn, h\xE3y nh\u1EADp m\xE3 \u0111\u1EC3 c\xE1c trang h\u1ECDc t\u1EADp c\xF3 th\u1EC3 d\xF9ng l\u1EA1i th\xF4ng tin n\xE0y."));const e=t("div","mh-section");e.appendChild(t("div","mh-section-title",U.activity+" B\u1EAET \u0110\u1EA6U"));const n=t("div","mh-actions"),o=t("div","mh-inline-box");o.style.display="none";const s=t("input","mh-code-input");s.type="text",s.placeholder="Nh\u1EADp m\xE3 h\u1ECDc vi\xEAn",s.autocomplete="off";const b=t("button","mh-code-submit","TRA C\u1EE8U M\xC3 H\u1ECCC VI\xCAN");b.type="button";async function D(){const S=re(s.value);if(!S){s.focus();return}if(b.disabled)return;const B=b.textContent;b.disabled=!0,b.textContent="\u0110ANG X\xC1C MINH...";try{const K=await ke.verifyStudentCode(S);if(!K.ok){alert("Kh\xF4ng t\xECm th\u1EA5y m\xE3 h\u1ECDc vi\xEAn "+S+". Vui l\xF2ng ki\u1EC3m tra l\u1EA1i m\xE3 \u0111\xE3 nh\u1EADp."),s.focus(),s.select();return}if(await Je(K.code,!0)){alert(Ue(K.code));return}if(window.OCDAuth&&!await window.OCDAuth.ensureAccess(K.code,{onSuccess:function(){i="home",ie()}}))return;W.confirmStudent(K.code,"minh-hong-lookup"),i="home",ie()}catch(K){console.warn("[Minh H\u1ED3ng] X\xE1c minh m\xE3 h\u1ECDc vi\xEAn:",K),alert("Minh H\u1ED3ng ch\u01B0a th\u1EC3 ki\u1EC3m tra m\xE3 h\u1ECDc vi\xEAn l\xFAc n\xE0y. Vui l\xF2ng ki\u1EC3m tra k\u1EBFt n\u1ED1i m\u1EA1ng v\xE0 th\u1EED l\u1EA1i.")}finally{b.disabled=!1,b.textContent=B}}b.addEventListener("click",D),s.addEventListener("keydown",function(S){S.key==="Enter"&&D()}),o.appendChild(s),o.appendChild(b),o.appendChild(t("div","mh-small-note","Minh H\u1ED3ng s\u1EBD ki\u1EC3m tra m\xE3 tr\u1EF1c ti\u1EBFp. Khi m\xE3 h\u1EE3p l\u1EC7, phi\xEAn h\u1ECDc vi\xEAn \u0111\u01B0\u1EE3c x\xE1c minh ngay c\u1EA3 tr\xEAn thi\u1EBFt b\u1ECB m\u1EDBi ho\u1EB7c tab \u1EA9n danh.")),n.appendChild(de("T\xF4i \u0111\xE3 c\xF3 m\xE3 h\u1ECDc vi\xEAn",!0,function(){o.style.display=o.style.display==="none"?"block":"none",o.style.display==="block"&&s.focus()})),window.OCDAuth&&(n.appendChild(de("\u0110\u0103ng nh\u1EADp t\xE0i kho\u1EA3n",!1,function(){window.OCDAuth.openLogin({onSuccess:function(){i="home",ie()}})})),n.appendChild(de("T\u1EA1o t\xE0i kho\u1EA3n m\u1EDBi",!1,function(){window.location.href="https://www.thudao.com/p/dang-ky-hoc.html"}))),n.appendChild(de("T\xF4i l\xE0 ng\u01B0\u1EDDi m\u1EDBi",!1,function(){i="newcomer",ce()})),e.appendChild(n),e.appendChild(o),f.appendChild(e)}function Qt(){const e=t("button","mh-action-back",U.back+" Quay l\u1EA1i");e.type="button",e.addEventListener("click",function(){i="home",ce()}),f.appendChild(e),f.appendChild(t("div","mh-status",U.book+" D\xC0NH CHO NG\u01AF\u1EDCI M\u1EDAI")),f.appendChild(t("div","mh-intro-title","L\xE0m quen v\u1EDBi Thanh Phong Th\u01B0 M\xF4n")),f.appendChild(t("div","mh-intro-text","Minh H\u1ED3ng s\u1EBD gi\u1EDBi thi\u1EC7u nh\u1EEFng th\xF4ng tin c\u01A1 b\u1EA3n \u0111\u1EC3 b\u1EA1n hi\u1EC3u website, kh\xF3a h\u1ECDc v\xE0 c\xE1c ch\u1EE9c n\u0103ng d\xE0nh cho h\u1ECDc vi\xEAn."));const n=t("div","mh-section");n.appendChild(t("div","mh-section-title",U.book+" TH\xD4NG TIN D\xC0NH CHO NG\u01AF\u1EDCI M\u1EDAI"));const o=t("div","mh-guide-card");o.appendChild(t("div","mh-guide-text","\u0110ang t\u1EA3i n\u1ED9i dung d\xE0nh cho ng\u01B0\u1EDDi m\u1EDBi...")),n.appendChild(o),f.appendChild(n);function s(N){E(n),n.appendChild(t("div","mh-section-title",U.book+" TH\xD4NG TIN D\xC0NH CHO NG\u01AF\u1EDCI M\u1EDAI")),(!N||!N.length)&&(N=[{title:"1. Gi\u1EDBi thi\u1EC7u website",content:"\u0110\xE2y l\xE0 trang chia s\u1EBB th\xF4ng tin, ki\u1EBFn th\u1EE9c, ho\u1EA1t \u0111\u1ED9ng c\u1EE7a Thanh Phong Th\u01B0 M\xF4n. B\u1EA1n c\xF3 th\u1EC3 \u0111\u0103ng k\xFD kh\xF3a h\u1ECDc th\u01B0 ph\xE1p Online t\u1EA1i Trang ch\u1EE7.",button:"Kh\xE1m ph\xE1 website",link:"/"},{title:"2. Kh\xF3a h\u1ECDc th\u01B0 ph\xE1p Online",content:"Kh\xF3a h\u1ECDc th\u01B0 ph\xE1p Online d\xE0nh cho ng\u01B0\u1EDDi mu\u1ED1n h\u1ECDc th\u01B0 ph\xE1p theo l\u1ED9 tr\xECnh c\xF3 h\u01B0\u1EDBng d\u1EABn.",button:"T\xECm hi\u1EC3u kh\xF3a h\u1ECDc",link:"/"},{title:"3. N\u1ED9i dung c\xF4ng khai",content:"B\u1EA1n c\xF3 th\u1EC3 kh\xE1m ph\xE1 c\xE1c n\u1ED9i dung c\xF4ng khai tr\xEAn website tr\u01B0\u1EDBc khi \u0111\u0103ng k\xFD kh\xF3a h\u1ECDc.",button:"B\u1EAFt \u0111\u1EA7u kh\xE1m ph\xE1",link:"/"},{title:"4. Khi tr\u1EDF th\xE0nh h\u1ECDc vi\xEAn",content:"Sau khi c\xF3 m\xE3 h\u1ECDc vi\xEAn, Minh H\u1ED3ng c\xF3 th\u1EC3 h\u1ED7 tr\u1EE3 b\u1EA1n tr\xEAn c\xE1c trang \u0111\xE3 \u0111\u01B0\u1EE3c k\u1EBFt n\u1ED1i.",button:"T\xF4i \u0111\xE3 c\xF3 m\xE3 h\u1ECDc vi\xEAn",link:""}]),N.forEach(function(G,C){const P=t("div","mh-guide-card");if(P.appendChild(t("div","mh-guide-title",G.title||"Th\xF4ng tin "+(C+1))),P.appendChild(t("div","mh-guide-text",G.content||"")),G.button){const O=de(G.button,!1,function(){const H=j(G.link);H&&H!=="#"?window.location.href=H:G.id==="G004"&&(i="home",ce(),setTimeout(function(){const J=f.querySelector(".mh-code-input"),R=J?J.closest(".mh-inline-box"):null;R&&(R.style.display="block"),J&&J.focus()},0))});P.appendChild(O)}n.appendChild(P)})}const b=me(),D=Ce.getContext(b);function S(N){const G=oe.getForGuest(N,D);return Ce.preferUnseen(N,G)}function B(N,G){s(G),G&&G.length&&Ce.markSeen(N,G)}function K(){const N=S(b);return N.length?{tab:b,items:N}:{tab:"Guest",items:S("Guest")}}const _=K();_.items.length&&B(_.tab,_.items),oe.load(b).then(function(){if(!g||i!=="newcomer")return;const N=S(b);if(N.length){B(b,N);return}if(b==="Guest"){s([]);return}oe.load("Guest").then(function(){if(!g||i!=="newcomer")return;const G=S("Guest");B("Guest",G)})});const Y=t("div","mh-section"),Q=t("div","mh-actions");Q.appendChild(de("T\xF4i \u0111\xE3 c\xF3 m\xE3 h\u1ECDc vi\xEAn",!0,function(){i="home",ce(),setTimeout(function(){const N=f.querySelector(".mh-code-input"),G=N?N.closest(".mh-inline-box"):null;G&&(G.style.display="block"),N&&N.focus()},0)})),Y.appendChild(Q),f.appendChild(Y)}function be(e,n){const o=String(e??"");return n=n&&typeof n=="object"?n:{},o.replace(/\{\{\s*([A-Za-z0-9_.-]+)\s*\}\}/g,function(s,b){const D=b.split(".");let S=n;for(let B=0;B<D.length;B++){if(S==null||typeof S!="object"||!Object.prototype.hasOwnProperty.call(S,D[B]))return s;S=S[D[B]]}return S==null?"":typeof S=="object"?s:String(S)})}function Xt(e){if(!e||!e.verified)return;const n=me(),o=t("div","mh-section");o.style.display="none";function s(){const _=_e.getForStudent(e.code);return{verified:!0,code:e.code||"",pageTab:n,data:Object.assign({},_.data||{}),conditions:Object.assign({},_.conditions||{})}}function b(_,Y){if(E(o),_=(_||[]).filter(function(N){const G=ut(N);return G==="panel"||G==="both"}),!_.length){o.style.display="none";return}o.style.display="",o.appendChild(t("div","mh-section-title",U.book+" G\u1EE2I \xDD TR\xCAN TRANG N\xC0Y"));const Q=Object.assign({studentCode:e.code||"",page:n},Y&&Y.data?Y.data:{});_.forEach(function(N,G){const C=t("div","mh-guide-card");if(C.appendChild(t("div","mh-guide-title",be(N.title||"G\u1EE3i \xFD "+(G+1),Q))),N.content&&C.appendChild(t("div","mh-guide-text",be(N.content,Q))),N.button){const P=de(be(N.button,Q),!1,function(){const O=be(j(N.link),Q);O&&O!=="#"&&(window.location.href=O)});C.appendChild(P)}o.appendChild(C)})}function D(){if(!g)return;const _=W.getState();if(!_.verified||_.code!==e.code)return;const Y=s();b(oe.getForStudent(n,Y),Y)}f.appendChild(o);const S=s(),B=oe.getForStudent(n,S);B.length&&b(B,S),oe.load(n).then(D);const K=function(){if(!g||!document.body.contains(o)){window.removeEventListener("ocdMinhHongContextChanged",K);return}D()};window.addEventListener("ocdMinhHongContextChanged",K)}const Yt=(function(){let e=null,n=!1,o=null;function s(){return window.StudentRewardSystem||null}function b(){const C=s();return!!(C&&typeof C.getStudentRewardProfile=="function"&&typeof C.getMinhHongOffers=="function"&&typeof C.createMinhHongSaleRequest=="function"&&typeof C.submitMinhHongSaleRequest=="function"&&typeof C.confirmMinhHongSale=="function")}function D(C){return C=Math.max(1e3,Number(C||12e3)),new Promise(function(P,O){const H=Date.now();(function J(){if(b())return P(s());if(Date.now()-H>=C)return O(new Error("Reward Core v4.2.2+ ch\u01B0a s\u1EB5n s\xE0ng."));setTimeout(J,100)})()})}let S="";function B(){const C=x.csvUrl.indexOf("?")>=0?"&":"?",P=x.csvUrl+C+"_mh_sell="+Date.now();return Pe(P,{cache:"no-store",credentials:"omit"}).then(function(O){if(!O.ok)throw new Error("Kh\xF4ng th\u1EC3 t\u1EA3i d\u1EEF li\u1EC7u h\u1ECDc vi\xEAn.");return O.text()})}function K(C,P){const O=re(P);if(e&&!C&&S===O)return e;const H=s();S=O;const R=(O&&H&&typeof H.getStudentSubmissionsCsv=="function"?H.getStudentSubmissionsCsv(O,!!C).catch(function(Z){return console.warn("[Minh H\u1ED3ng] Reward Core ch\u01B0a \u0111\u1ECDc \u0111\u01B0\u1EE3c b\xE0i n\u1ED9p, d\xF9ng CSV:",Z&&Z.message||Z),B()}):B()).catch(function(Z){throw e===R&&(e=null),Z});return e=R,R}function _(C,P,O,H){function J($){try{return C.normalizeText(String($||""))}catch{return String($||"").trim().toLowerCase()}}function R($){return $&&($.image||$.icon)||""}let Z="";if(P){const $=J(O);Z=R(P[$])||R(P[$.replace(/^goi\s+/,"")])||R(P["goi "+$])}if(!Z&&H&&(Z=H.image||H.gift&&H.gift.image||""),!Z)return"";try{return typeof C.convertDriveImageUrl=="function"?C.convertDriveImageUrl(Z,160):Z}catch{return Z}}function Y(C,P,O){const H=C.GEM_TYPES&&C.GEM_TYPES[P],J=Q(C,P);if(H&&H.image&&typeof C.convertDriveImageUrl=="function"){const R=document.createElement("img");return R.className="mh-sell-gem"+(O?" "+O:""),R.src=C.convertDriveImageUrl(H.image,96),R.alt=J,R.title=J,R.loading="lazy",R.decoding="async",R.onerror=function(){const Z=t("span","",J);R.parentNode&&R.parentNode.replaceChild(Z,R)},R}return t("span","",J)}function Q(C,P){const O=C.GEM_TYPES&&C.GEM_TYPES[P];return O&&O.displayName?O.displayName:P}function N(){if(document.getElementById("mhSellStyle1582"))return;const C=document.createElement("style");C.id="mhSellStyle1582",C.textContent=`
                .mh-sell-wrap{margin-top:10px}
                .mh-sell-toggle{width:100%;border:1px solid rgba(121,83,55,.25);border-radius:12px;padding:11px 12px;background:#fffaf1;color:#5d4030;font-weight:700;cursor:pointer;text-align:left}
                .mh-sell-box{margin-top:9px;border:1px solid rgba(121,83,55,.18);border-radius:12px;padding:10px;background:rgba(255,252,246,.82)}
                .mh-sell-note{font-size:12px;line-height:1.55;opacity:.78;margin-bottom:8px}
                .mh-sell-status{font-size:12px;line-height:1.55;padding:8px 9px;border-radius:9px;background:rgba(121,83,55,.07);margin-bottom:8px}
                .mh-sell-item{padding:10px 0;border-top:1px solid rgba(121,83,55,.13)}
                .mh-sell-item:first-of-type{border-top:0}
                .mh-sell-name{display:flex;align-items:center;gap:8px;font-weight:700;margin-bottom:4px}
                .mh-sell-item-icon{width:30px;height:30px;flex:0 0 30px;border-radius:8px;object-fit:contain;background:rgba(255,255,255,.75);border:1px solid rgba(121,83,55,.13)}
                .mh-sell-item-icon-fallback{width:30px;height:30px;flex:0 0 30px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:rgba(121,83,55,.07);font-size:17px}
                .mh-sell-meta{font-size:12px;line-height:1.5;opacity:.78}
                .mh-sell-actions{display:flex;gap:7px;align-items:center;margin-top:8px}
                .mh-sell-qty{width:72px;min-width:72px;border:1px solid rgba(121,83,55,.25);border-radius:9px;padding:8px;background:#fff}
                .mh-sell-btn{flex:1;border:0;border-radius:9px;padding:9px 10px;background:#765344;color:#fff;font-weight:700;cursor:pointer}
                .mh-sell-btn:disabled,.mh-sell-qty:disabled{opacity:.5;cursor:not-allowed}
                /* v1.5.8.2: th\u1EBB v\u1EADt ph\u1EA9m */
                .mh-sell-item.mh-sell-card{padding:10px;margin-top:8px;border:1px solid rgba(121,83,55,.16);border-top:1px solid rgba(121,83,55,.16);border-radius:12px;background:#fff}
                .mh-sell-item.mh-sell-card:first-of-type{border-top:1px solid rgba(121,83,55,.16)}
                .mh-sell-head{display:flex;align-items:center;gap:10px}
                .mh-sell-thumb{width:48px;height:48px;flex:0 0 48px;border-radius:10px;object-fit:contain;background:#fffaf1;border:1px solid rgba(121,83,55,.14)}
                .mh-sell-thumb-fallback{width:48px;height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#fffaf1;border:1px solid rgba(121,83,55,.14);font-size:22px}
                .mh-sell-info{flex:1;min-width:0}
                .mh-sell-title{font-weight:700;color:#4c3326;line-height:1.3;overflow-wrap:anywhere}
                .mh-sell-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
                .mh-sell-chip{font-size:11px;line-height:1;padding:4px 7px;border-radius:999px;background:rgba(121,83,55,.08);color:#6a4a3a;white-space:nowrap}
                .mh-sell-chip b{font-weight:800;color:#4c3326}
                .mh-sell-price{flex:0 0 auto;text-align:right;line-height:1.1}
                .mh-sell-price-main{display:flex;align-items:center;justify-content:flex-end;gap:4px;font-size:20px;font-weight:800;color:#765344}
                .mh-sell-price-unit{font-size:10px;opacity:.6;margin-top:2px}
                .mh-sell-gem{width:20px;height:20px;object-fit:contain;vertical-align:middle;flex:0 0 auto}
                .mh-sell-gem-sm{width:17px;height:17px}
                .mh-sell-actions{display:flex;gap:8px;align-items:center;margin-top:10px;padding-top:10px;border-top:1px dashed rgba(121,83,55,.18)}
                .mh-sell-stepper{display:flex;align-items:center;border:1px solid rgba(121,83,55,.25);border-radius:10px;overflow:hidden;background:#fffaf1;flex:0 0 auto}
                .mh-sell-step{width:34px;height:36px;border:0;background:transparent;color:#765344;font-size:18px;font-weight:800;cursor:pointer;padding:0}
                .mh-sell-step:disabled{opacity:.35;cursor:not-allowed}
                .mh-sell-stepper .mh-sell-qty{width:40px;min-width:40px;height:36px;border:0;border-left:1px solid rgba(121,83,55,.15);border-right:1px solid rgba(121,83,55,.15);border-radius:0;padding:0;text-align:center;font-weight:700;background:#fff;-moz-appearance:textfield;appearance:textfield}
                .mh-sell-stepper .mh-sell-qty::-webkit-outer-spin-button,.mh-sell-stepper .mh-sell-qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
                .mh-sell-btn{display:flex;align-items:center;justify-content:center;gap:5px;min-height:38px;border-radius:10px}
                .mh-sell-btn .mh-sell-gem{width:18px;height:18px}
            `,document.head.appendChild(C)}function G(C){if(!C||!C.verified)return;N();const P=t("div","mh-section mh-sell-wrap"),O=t("button","mh-sell-toggle","Rao b\xE1n v\u1EADt ph\u1EA9m cho Minh H\u1ED3ng");O.type="button";const H=t("div","mh-sell-box");H.style.display="none",P.appendChild(O),P.appendChild(H),f.appendChild(P);let J=!1,R=!1,Z=!1,$=null;function nt(pe){E(H),H.appendChild(t("div","mh-sell-status",pe))}function fe(){return!Z&&document.body.contains(P)}async function Ve(pe){if(!n){nt("\u0110ang t\u1EA3i v\u1EADt ph\u1EA9m v\xE0 ch\xEDnh s\xE1ch thu mua...");try{const X=await D(12e3),xt=await K(!1,C.code),ge=await X.getStudentRewardProfile(C.code,xt,!!pe),en=ge&&ge.minhHong&&Array.isArray(ge.minhHong.offers)?ge.minhHong.offers:await X.getMinhHongOffers(C.code,xt,!!pe);if(!fe())return;E(H);const vt=(en||[]).filter(function(F){return F&&F.available&&Number(F.maxQuantity||0)>0});if(!vt.length){H.appendChild(t("div","mh-sell-status","Hi\u1EC7n ch\u01B0a c\xF3 v\u1EADt ph\u1EA9m ph\xF9 h\u1EE3p \u0111\u1EC3 rao b\xE1n, ho\u1EB7c b\u1EA1n \u0111\xE3 \u0111\u1EA1t gi\u1EDBi h\u1EA1n thu mua h\xF4m nay.")),R=!0;return}let St=null;try{const F=await X.loadSharedRewardData(!1);St=F&&F.giftMap||null}catch{}if(!fe())return;vt.forEach(function(F){const it=t("div","mh-sell-item mh-sell-card"),tn=ge&&Array.isArray(ge.ownedItems)?ge.ownedItems:[],Nt=String(F.giftName||"").trim().toLowerCase(),nn=tn.find(function(T){const ye=String(T&&(T.giftName||T.name||T.gift&&T.gift.name)||"").trim().toLowerCase();return ye===Nt||ye.replace(/^gói\s+/i,"")===Nt.replace(/^gói\s+/i,"")}),kt=_(X,St,F.giftName,nn),on=Number(F.ownedQuantity||F.quantity||0),Me=Math.max(1,Math.floor(Number(F.maxQuantity||1))),je=Number(F.price||0),Ie=t("div","mh-sell-head");if(kt){const T=document.createElement("img");T.className="mh-sell-thumb",T.src=kt,T.alt=F.giftName||"V\u1EADt ph\u1EA9m",T.loading="lazy",T.decoding="async",T.onerror=function(){const ye=t("span","mh-sell-thumb-fallback",U.gift);T.parentNode&&T.parentNode.replaceChild(ye,T)},Ie.appendChild(T)}else Ie.appendChild(t("span","mh-sell-thumb-fallback",U.gift));const ot=t("div","mh-sell-info");ot.appendChild(t("div","mh-sell-title",F.giftName||"V\u1EADt ph\u1EA9m"));const rt=t("div","mh-sell-chips"),Tt=t("span","mh-sell-chip","\u0110ang c\xF3 ");Tt.appendChild(t("b","",String(on)));const Mt=t("span","mh-sell-chip","B\xE1n \u0111\u01B0\u1EE3c ");Mt.appendChild(t("b","",String(Number(F.maxQuantity||0)))),rt.appendChild(Tt),rt.appendChild(Mt),ot.appendChild(rt),Ie.appendChild(ot);const Be=t("div","mh-sell-price"),It=t("div","mh-sell-price-main",String(je));It.appendChild(Y(X,F.gemType,"")),Be.appendChild(It),Be.appendChild(t("div","mh-sell-price-unit","/ c\xE1i")),Be.title=je+" "+Q(X,F.gemType)+" / v\u1EADt ph\u1EA9m",Ie.appendChild(Be),it.appendChild(Ie);const st=t("div","mh-sell-actions"),q=document.createElement("input");q.type="number",q.className="mh-sell-qty",q.min="1",q.max=String(Me),q.step="1",q.value="1",q.setAttribute("aria-label","S\u1ED1 l\u01B0\u1EE3ng b\xE1n"),q.inputMode="numeric";const z=t("button","mh-sell-btn","B\xC1N V\u1EACT PH\u1EA8M");z.type="button";const He=t("button","mh-sell-step","\u2212");He.type="button",He.setAttribute("aria-label","Gi\u1EA3m s\u1ED1 l\u01B0\u1EE3ng");const Ae=t("button","mh-sell-step","+");Ae.type="button",Ae.setAttribute("aria-label","T\u0103ng s\u1ED1 l\u01B0\u1EE3ng");const Fe=t("div","mh-sell-stepper");Fe.appendChild(He),Fe.appendChild(q),Fe.appendChild(Ae);function Ee(){const T=Math.floor(Number(q.value||0));return Number.isFinite(T)?T:0}function Re(){const T=Math.min(Me,Math.max(1,Ee()||1));E(z),z.appendChild(document.createTextNode("B\xC1N \xB7 nh\u1EADn "+T*je)),z.appendChild(Y(X,F.gemType,"")),z.setAttribute("aria-label","B\xE1n "+T+" "+(F.giftName||"v\u1EADt ph\u1EA9m")+", nh\u1EADn "+T*je+" "+Q(X,F.gemType))}function qe(){const T=Ee();He.disabled=q.disabled||T<=1,Ae.disabled=q.disabled||T>=Me}function Ht(T){q.disabled||(q.value=String(Math.min(Me,Math.max(1,(Ee()||1)+T))),qe(),!z.disabled&&!$&&Re())}He.addEventListener("click",function(){Ht(-1)}),Ae.addEventListener("click",function(){Ht(1)}),q.addEventListener("input",function(){qe(),!z.disabled&&!$&&Ee()>=1&&Ee()<=Me&&Re()});try{new MutationObserver(qe).observe(q,{attributes:!0,attributeFilter:["disabled"]})}catch{}Re(),qe(),z.addEventListener("click",async function(){if(n||o)return;if($){const ne=$;o={request:ne.request,csv:ne.csv},z.disabled=!0,q.disabled=!0,z.textContent="\u0110ANG KI\u1EC2M TRA...";try{const ae=await X.confirmMinhHongSale(ne.request.sellId,ne.csv,C.code);o=null,ae&&ae.sale?($=null,await Ve(!0)):(z.disabled=!1,q.disabled=!1,z.textContent="KI\u1EC2M TRA L\u1EA0I")}catch{o=null,z.disabled=!1,q.disabled=!1,z.textContent="KI\u1EC2M TRA L\u1EA0I"}return}const T=Math.floor(Number(q.value||0)),ye=Math.floor(Number(F.maxQuantity||0));if(!Number.isFinite(T)||T<1||T>ye){q.focus();return}const rn=T*Number(F.price||0);if(window.confirm("X\xE1c nh\u1EADn b\xE1n "+T+" \xD7 "+F.giftName+" cho Minh H\u1ED3ng \u0111\u1EC3 nh\u1EADn "+rn+" "+Q(X,F.gemType)+"?")){n=!0,z.disabled=!0,q.disabled=!0,z.textContent="\u0110ANG G\u1EECI...";try{const ne=await K(!1,C.code),ae=await X.createMinhHongSaleRequest(C.code,F.giftName,T,ne);if(await X.submitMinhHongSaleRequest(ae),o={request:ae,csv:ne},n=!1,z.textContent="\u0110ANG CH\u1EDC X\xC1C NH\u1EACN...",fe()){const we=t("div","mh-sell-status","\u0110\xE3 g\u1EEDi giao d\u1ECBch "+ae.sellId+". \u0110ang ch\u1EDD Google Sheet \u0111\u1ED3ng b\u1ED9; kh\xF4ng c\u1EA7n b\u1EA5m b\xE1n l\u1EA1i.");H.insertBefore(we,H.firstChild)}X.confirmMinhHongSale(ae.sellId,ne,C.code).then(async function(we){if(!(!o||o.request.sellId!==ae.sellId)){if(o=null,!we||!we.sale){if(fe()){$={request:ae,csv:ne},z.disabled=!1,q.disabled=!1,z.textContent="KI\u1EC2M TRA L\u1EA0I";const ct=t("div","mh-sell-status","Giao d\u1ECBch \u0111\xE3 g\u1EEDi nh\u01B0ng Sheet ch\u01B0a \u0111\u1ED3ng b\u1ED9 k\u1ECBp. B\u1EA5m KI\u1EC2M TRA L\u1EA0I \u0111\u1EC3 x\xE1c nh\u1EADn \u0111\xFAng SELL_ID n\xE0y; n\xFAt n\xE0y kh\xF4ng t\u1EA1o giao d\u1ECBch m\u1EDBi.");H.insertBefore(ct,H.firstChild)}return}if(fe()&&(await Ve(!0),fe())){const ct=t("div","mh-sell-status","\u0110\xE3 x\xE1c nh\u1EADn giao d\u1ECBch. Reward Core \u0111\xE3 \u0111\u1ED3ng b\u1ED9 l\u1EA1i h\xE0nh trang v\xE0 Linh Th\u1EA1ch.");H.insertBefore(ct,H.firstChild)}}}).catch(function(we){o=null,console.warn("[Minh H\u1ED3ng] X\xE1c nh\u1EADn giao d\u1ECBch:",we),fe()&&(z.disabled=!1,q.disabled=!1,z.textContent="KI\u1EC2M TRA L\u1EA0I")})}catch(ne){n=!1,o=null,z.disabled=!1,q.disabled=!1,Re(),window.alert(ne&&ne.message?ne.message:"Kh\xF4ng th\u1EC3 g\u1EEDi giao d\u1ECBch. Vui l\xF2ng th\u1EED l\u1EA1i.")}}}),st.appendChild(Fe),st.appendChild(z),it.appendChild(st),H.appendChild(it)}),R=!0}catch(X){nt(X&&X.message?X.message:"Kh\xF4ng th\u1EC3 t\u1EA3i h\u1EC7 th\u1ED1ng thu mua.")}}}O.addEventListener("click",function(){J=!J,H.style.display=J?"":"none",O.textContent=J?"\u0110\xF3ng rao b\xE1n v\u1EADt ph\u1EA9m":"Rao b\xE1n v\u1EADt ph\u1EA9m cho Minh H\u1ED3ng",J&&!R&&Ve(!1)});const wt=function(pe){if(!fe()){Z=!0,window.removeEventListener("ocdRewardProfileChanged",wt);return}if(!J||n||o)return;const X=pe&&pe.detail?pe.detail:{};(!X.code||String(X.code).toUpperCase()===String(C.code).toUpperCase())&&Ve(!0)};window.addEventListener("ocdRewardProfileChanged",wt)}return{append:G}})();function Wt(e){f.appendChild(t("div","mh-status",e.verified?le.check+" H\u1ECCC VI\xCAN "+e.code:U.user+" "+e.code+" "+le.dot+" CH\u1EDC X\xC1C MINH")),f.appendChild(t("div","mh-intro-title",e.verified?"Ch\xE0o m\u1EEBng b\u1EA1n quay l\u1EA1i.":"Minh H\u1ED3ng \u0111\xE3 ghi nh\u1EDB m\xE3 c\u1EE7a b\u1EA1n.")),f.appendChild(t("div","mh-intro-text",e.verified?he()?"M\xE3 h\u1ECDc vi\xEAn \u0111\xE3 \u0111\u01B0\u1EE3c x\xE1c minh. Minh H\u1ED3ng s\u1EBD \u0111\u1ED3ng h\xE0nh c\xF9ng b\u1EA1n tr\xEAn c\xE1c trang c\u1EE7a Th\u01B0 M\xF4n.":Ke()||Oe()?"M\xE3 h\u1ECDc vi\xEAn \u0111\xE3 \u0111\u01B0\u1EE3c x\xE1c minh. Minh H\u1ED3ng s\u1EBD \u01B0u ti\xEAn nh\u1EEFng l\u1EDDi khuy\xEAn h\u1ECDc t\u1EADp li\xEAn quan tr\u1EF1c ti\u1EBFp \u0111\u1EBFn b\u1EA1n.":"M\xE3 h\u1ECDc vi\xEAn \u0111\xE3 \u0111\u01B0\u1EE3c x\xE1c minh. Trang n\xE0y kh\xF4ng ph\xE1t th\xF4ng b\xE1o t\u1EF1 \u0111\u1ED9ng.":"M\xE3 hi\u1EC7n \u0111ang \u0111\u01B0\u1EE3c ghi nh\u1EDB nh\u01B0ng ch\u01B0a \u0111\u01B0\u1EE3c m\u1ED9t trang h\u1ECDc vi\xEAn x\xE1c minh.")),window.OCDAuth&&e.code&&f.appendChild(window.OCDAuth.securityCard(e.code,function(){ie()})),Xt(e),Yt.append(e),he()?void 0:Ke()?void 0:Oe()&&void 0;const n=t("div","mh-section");n.appendChild(t("div","mh-section-title",U.key+" M\xC3 H\u1ECCC VI\xCAN"));const o=t("div","mh-actions"),s=t("div","mh-inline-box");s.style.display="none";const b=t("input","mh-code-input");b.type="text",b.placeholder="Nh\u1EADp m\xE3 h\u1ECDc vi\xEAn m\u1EDBi";const D=t("button","mh-code-submit","X\xC1C MINH M\xC3 M\u1EDAI");D.type="button";async function S(){const B=re(b.value);if(!B){b.focus();return}if(D.disabled)return;const K=D.textContent;D.disabled=!0,D.textContent="\u0110ANG X\xC1C MINH...";try{const _=await ke.verifyStudentCode(B);if(!_.ok){alert("Kh\xF4ng t\xECm th\u1EA5y m\xE3 h\u1ECDc vi\xEAn "+B+". Vui l\xF2ng ki\u1EC3m tra l\u1EA1i m\xE3 \u0111\xE3 nh\u1EADp."),b.focus(),b.select();return}if(await Je(_.code,!0)){alert(Ue(_.code));return}if(window.OCDAuth&&!await window.OCDAuth.ensureAccess(_.code,{onSuccess:function(){i="home",ie()}}))return;W.confirmStudent(_.code,"minh-hong-change-code"),ie()}catch(_){console.warn("[Minh H\u1ED3ng] \u0110\u1ED5i m\xE3 h\u1ECDc vi\xEAn:",_),alert("Minh H\u1ED3ng ch\u01B0a th\u1EC3 ki\u1EC3m tra m\xE3 h\u1ECDc vi\xEAn l\xFAc n\xE0y. Vui l\xF2ng ki\u1EC3m tra k\u1EBFt n\u1ED1i m\u1EA1ng v\xE0 th\u1EED l\u1EA1i.")}finally{D.disabled=!1,D.textContent=K}}D.addEventListener("click",S),b.addEventListener("keydown",function(B){B.key==="Enter"&&S()}),s.appendChild(b),s.appendChild(D),s.appendChild(t("div","mh-small-note","M\xE3 m\u1EDBi s\u1EBD \u1EDF tr\u1EA1ng th\xE1i ch\u1EDD x\xE1c minh cho t\u1EDBi khi m\u1ED9t trang h\u1ECDc vi\xEAn ki\u1EC3m tra th\xE0nh c\xF4ng.")),o.appendChild(de("\u0110\u1ED5i m\xE3 h\u1ECDc vi\xEAn",!1,function(){s.style.display=s.style.display==="none"?"block":"none",s.style.display==="block"&&b.focus()})),o.appendChild(de("Tho\xE1t phi\xEAn h\u1ECDc vi\xEAn",!1,function(){window.OCDAuth&&window.OCDAuth.token()&&window.OCDAuth.logout(!1),W.clear("minh-hong-logout"),i="home",ie()})),n.appendChild(o),n.appendChild(s),f.appendChild(n)}function ce(){if(!f||!g)return;E(f);const e=W.getState();if(e.mode==="student"&&e.code&&e.verified===!0){Wt(e);return}i==="newcomer"?Qt():Jt()}function tt(){ee=Ke()?Dt():[]}function ie(){tt(),Ge(),ce(),!g&&!p&&Te()}function Ct(e){k=Array.isArray(e)?e:[],he()&&(ce(),!g&&!p&&Te())}function Zt(){}function bt(){xe()&&setTimeout(function(){"requestIdleCallback"in window?window.requestIdleCallback(Zt,{timeout:2e3}):void 0},x.initializeDelay)}window.addEventListener("ocdStudentInsightReady",function(e){const n=e.detail;!n||!n.code||(Qe.save(n),ie())}),window.addEventListener("ocdMinhHongContextChanged",function(){Ge(),g&&ce()}),window.addEventListener("ocdStudentSessionChanged",function(){i="home",ie()}),window.addEventListener("ocdCommunityActivityReady",function(e){if(!he())return;const n=e.detail||{};Ct(n.events||[])}),window.addEventListener("ocdClassPulseReady",function(e){const n=e.detail||null;et(n)}),window.addEventListener("ocdMinhHongPageContextReady",function(e){const n=e.detail||{},o=at(n.context);o&&(window.OCDMinhHongPageContext=o),tt(),Ge(),Oe()?et(gt()):(ce(),!g&&!p&&Te())}),window.addEventListener("storage",function(e){e.key===x.insightStorageKey&&(Qe.clearMemory(),ie())});async function $t(){try{if(!W.isVerified())return;const e=W.normalizeCode(W.getCode());if(!e||e==="ADMIN"||!await Je(e,!1))return;W.clear("paused");try{ie()}catch{}const n="ocd_mh_paused_notice_"+e;let o=!1;try{o=sessionStorage.getItem(n)==="1",sessionStorage.setItem(n,"1")}catch{}o||alert(Ue(e))}catch{}}function yt(){Xe(),setTimeout($t,1200),tt(),ze()||Ge(),Oe()&&et(gt()),document.readyState==="complete"?bt():window.addEventListener("load",bt,{once:!0}),!he()&&!ze()&&!p&&Te();try{window.dispatchEvent(new CustomEvent("ocdMinhHongReady",{detail:{version:x.version,home:xe(),pageContext:ue(),session:W.getState()}}))}catch{}}return document.readyState==="loading"?document.addEventListener("DOMContentLoaded",yt,{once:!0}):yt(),W.isVerified()||(Ce.registerVisit(me()),setTimeout(function(){oe.load(me())},1200)),{version:x.version,open:pt,close:$e,toggle:mt,refresh:ie,getState:function(){return{panelOpen:g,notificationsMuted:p,home:xe(),pageContext:ue(),contentTab:me(),context:_e.getState(),notificationMode:ue(),student:W.getState(),communityActivityCount:ke.getEvents().length,personalSuggestionCount:ee.length,contextSpeechCount:v.length,classPulseEventCount:M.length,hasInsight:!!Qe.getForCurrentStudent()}}}})();window.MinhHongAssistant=Ot,console.info("[Minh H\u1ED3ng] Footer v"+x.version+" ready | mode:",ue())})();

Nhận xét

Bài đăng phổ biến từ blog này

theme/thudao-footer.kho.js · Gộp Reward Core (css v4.2.2 + js f827add) + Minh Hồng footer (css v1.5.7.4 + js 4bff33d) cho chân trang thudao.com

trang/thudao/dang-ky-hoc.html · Bản trước khi chuyển sang kho (tải từ GitHub/jsDelivr)

trang/thudao/bai-viet/benh-cua-thu-dan-duong-dai-the-trien-lam-xu-thu-va-nguy-menh-de-vuot-co-nhan.html · Bản trước khi chuyển sang kho (có video, tải từ GitHub/jsDelivr)