【BibiGPT】AI 总结视频:The Amazing AI Super Tutor for Students and Teachers | Sal Khan | TED
[/caption] 可汗学院通过GPT-4实现1对1辅导[/caption] 可汗学院通过GPT-4实现1对1辅导[/caption]
可汗学院通过GPT-4实现1对1辅导[/caption]
摘要
Khan Academy的創始人Sal Khan在這次演講中,談到了如何通過人工智能打造一個人人都能擁有的個人導師,並且解決現有教育特別是導師短缺的問題。
要點
- 💡 AI可以通過定制化的學習來改善教育的方式和質量
- 一對一的教學可以使普通的學生提高到頂尖,可以改變教育的傳統方式。
- 🎓 通過智能導師,學生可以在學習過程中得到更好的幫助,以及更豐富的學習體驗。
- 智能導師可以幫助學生理解一些複雜的教材和概念,甚至是參與學生的論文討論和辯論。
- 🚀 通過AI技術,可以解決當前導師短缺和學校教育缺乏資源的問題。
- AI導師可以提供24/7的學習和支持,以及更多的注意力和投入時間。
- 🤖 AI導師可以實現數據驅動的個性化教育方式。
- 智能導師可以跟踪學生的學習進度,並依據學生的表現和需求進行調整和優化。
- 💰 通過AI教育,可以大大降低教育成本和浪費。
- 智能導師可以幫助學生在更少的時間和資源下實現更好的學習效果,通過AI技術可以節省教育成本和資源。
- 🎮 AI教育可以通過遊戲和互動方式提高學生的學習興趣和參與度。
- AI導師可以通過互動和遊戲方式,使學生對學習更感興趣和參與度更高,從而提高學習效果。
- 🌍 AI教育可以實現全球教育資源的共享和可持續發展。
- AI導師可以實現全球的學習共享和資源共享,通過教育資源的可持續發展,可以實現平等的教育機會。
- 🤝 AI教育可以改善師生關係和學習經驗。
- AI導師可以通過幫助學生解決特定問題和困惑,提高教師和學生之間的交流和信任程度,從而改善師生關係。
- 📈 AI教育可以通過教師助手等工具,提高教師自身的專業水平和學生反饋。
- AI導師可以作為教師助手,幫助教師更好地理解學生的需求和表現,提高教師的自身專業水平和學生反饋。
-
BV1fX4y1Q7Ux
https://www.youtube.com/watch?v=hJP5GqnTrNo
const handleInjectParseVideoJS = function o(t){let e=!1,r=!1,n={},o="",i="",a="",l=window.location.href,c=window.location.host,d={},u="",p="",m="",f=[],y={},g=new Set;const h=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;let v,b=[];const w={compare:function(t){return(e,r)=>e[t]-r[t]},isMobileOrIpad:function(){const t=navigator.userAgent;return!!["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"].filter((e=>t.includes(e))).length},isMobile:function(){const t=navigator.userAgent;return!!["Android","iPhone","SymbianOS","Windows Phone","iPod"].filter((e=>t.includes(e))).length},queryURLParams:function(t,e){return e=new RegExp("[?]+"+e+"=([^?]+)").exec(t),e&&e[1]||""},queryParams:function(t,e){return t?this.queryURLParams("https;//stap.app?"+t,e):""},matchUrlInString:function(t){var e=new RegExp("(https?|http)?(:)?//[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]","g");t=t.match(e);return t&&t.length?t[0]:""},isURL:function(t){return!!t&&/^http[s]?://.*/.test(t)},completionSourceUrl:function(t){return t?(/^(f|ht)tps?:///i.test(t)||(/^///i.test(t)?t=window.location.protocol+t:/^//i.test(t)&&(t=window.location.origin+t)),t):""},checkCharLengthAndSubStr:function(t,e){return t?(e=e||80,t.replace(/[^x00-xff]/g,"01").length<=e?t:t.substr(0,e)):""},isChinese(t){return!!t&&!!/.*[u4e00-u9fa5]+.*$/.test(t)},urlEncodeChinese(t){var e;return t&&(e=new RegExp("[\u4E00-\u9FFF]","g"),t.replace(e,(function(t){return window.encodeURI(t)})))},getUrlPathName:function(t){let e="",r=(e=(this.isURL(t)?new URL(t):new URL(l)).pathname).split("/");return(r=r.filter((t=>{if(t&&""!=t)return t}))).pop()},generateUuid:function(t,e){t=t||32;var r,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");let o,i=[];if(e=e||n.length,t)for(o=0;o>16)+(e>>16)+(r>>16)<<16|65535&r}function r(t,r,n,o,i,a){return e((r=e(e(r,t),e(o,a)))<>>32-i,n)}function n(t,e,n,o,i,a,s){return r(e&n|~e&o,t,e,i,a,s)}function o(t,e,n,o,i,a,s){return r(e&o|n&~o,t,e,i,a,s)}function i(t,e,n,o,i,a,s){return r(e^n^o,t,e,i,a,s)}function a(t,e,n,o,i,a,s){return r(n^(e|~o),t,e,i,a,s)}{var s=function(t){let r=1732584193,s=-271733879,l=-1732584194,c=271733878;for(let f=0;f>5]|=(255&t.charCodeAt(r/8))<>2]>>t%4*8+4&15)+l.charAt(s[t>>2]>>t%4*8&15);return r}}};class _{constructor(t,e){this.dom=t,this.timer=0,this.init(e)}init(t){this.touchstart(t),this.touchend(),this.touchmove(),this.bindLongPressEventFlag()}bindLongPressEventFlag(){this.dom.setAttribute("stay-long-press","yes")}touchstart(t){const e=this;e.dom.removeEventListener("touchstart",(function(r){e.handleLongPress(r,t)})),e.dom.addEventListener("touchstart",(function(r){return e.handleTargetTouchend(r.target),e.timer=setTimeout(((t,r)=>{e.handleLongPress(t,r)}),600,r,t),!1}),!1)}handleTargetTouchend(t){const e=this;t&&t.addEventListener("touchend",(r=>{e.handleTouchend(r,t)}))}handleLongPress(t,e){if(t.preventDefault(),t.stopPropagation(),!x(this.dom)){t=t.changedTouches[0];try{t.target.addEventListener("contextmenu",(function(t){t.preventDefault()}))}catch(t){}"function"==typeof e&&(e(),this.timer=0)}}touchend(){const t=this;t.dom.removeEventListener("touchend",(function(e){t.handleTouchend(e,null)})),t.dom.addEventListener("touchend",(function(e){return t.handleTouchend(e,null),!1}))}handleTouchend(t,e){const r=this;if(!x(this.dom)&&(clearTimeout(this.timer),0!=this.timer))try{e&&e.removeEventListener("touchend",(t=>{clearTimeout(r.timer)}))}catch(t){}}touchmove(){const t=this;function e(){x(t.dom)||(clearTimeout(t.timer),t.timer=0)}t.dom.removeEventListener("touchmove",(function(t){e()})),t.dom.addEventListener("touchmove",(function(t){return e(),!1}))}}function x(t){return!t||(t=window.getComputedStyle(t))&&("none"===t.display||"hidden"===t.visibility)}class E{constructor(t,e){this.dom=t,this.stayLongPressTimer=0,this.distance=10,this.init(e)}getDomPageStartX(){return this.dom.getBoundingClientRect().left}getDomPageStartY(){return(document.documentElement.scrollTop||window.pageYOffset)+this.dom.getBoundingClientRect().top}getDomPageEndX(){return this.getDomPageStartX()+this.dom.clientWidth}getDomPageEndY(){return this.getDomPageStartY()+this.dom.clientHeight}init(t){this.touchstart(t),this.touchend(),this.touchmove(),this.bindLongPressEventFlag()}bindLongPressEventFlag(){this.dom.setAttribute("stay-long-press","yes")}touchstart(t){const e=this;document.body.removeEventListener("touchstart",(function(r){return e.handleTargetEvent(r,t),!1})),document.body.addEventListener("touchstart",(function(r){return e.handleTargetTouchend(r.target),e.handleTargetEvent(r,t),!1}),!1)}handleTargetTouchend(t){const e=this;t&&t.addEventListener("touchend",(r=>{e.touchEndCallback(r,t)}))}handleTargetEvent(t,e){t.stopPropagation(),t.preventDefault();const r=this;t=t.changedTouches[0];var n=t.pageX,o=t.pageY;!x(r.dom)&&Math.abs(t.pageX-n)<=r.distance&&n>=r.getDomPageStartX()&&n<=r.getDomPageEndX()&&o>=r.getDomPageStartY()&&o<=r.getDomPageEndY()&&(this.stayLongPressTimer=window.setTimeout(((t,e)=>{r.stayLongPressTimer=0;try{var n=t.target.classList;n.contains("__stay-unselect")||n.add("__stay-unselect"),n.contains("__stay-touch-action")||n.add("__stay-touch-action"),"function"==typeof e&&e(),t.target.addEventListener("contextmenu",(function(t){t.preventDefault()}))}catch(t){}}),600,t,e))}touchend(){const t=this;document.body.removeEventListener("touchend",(function(e){t.touchEndCallback(e,null)})),document.body.addEventListener("touchend",(function(e){return t.touchEndCallback(e,null),!1}))}touchEndCallback(t,e){const r=this;if(!x(this.dom)&&(clearTimeout(this.stayLongPressTimer),0!=this.stayLongPressTimer))try{e&&e.removeEventListener("touchend",(t=>{r.touchEndCallback(t,null)}))}catch(t){}}touchmove(){const t=this;function e(){x(t.dom)||(window.clearTimeout(t.stayLongPressTimer),t.stayLongPressTimer=0)}document.body.removeEventListener("touchmove",(function(t){t.preventDefault(),t.stopPropagation(),e()})),document.body.addEventListener("touchmove",(function(t){return t.preventDefault(),t.stopPropagation(),e(),!1}))}}function S(t){new h((function(t){try{t.forEach((function(t){c=window.location.host,v=document.querySelectorAll("video");var e=t.target.querySelectorAll("video");("VIDEO"===t.target.nodeName||e&&e.length)&&v&&v.length&&U(v)}))}catch(t){}})).observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0});let e=(v=document.querySelectorAll("video"))&&v.length;if(e||(v=document.querySelectorAll(".post-content shreddit-player"),e=v&&v.length),e)U(v);else if(U(),t){let t=!1;for(let e=1;e<10;e++){let r;if(function(e){r=setTimeout((()=>{v=document.querySelectorAll("video"),(t=v&&v.length)&&(U(v),b.forEach((t=>{clearTimeout(t)})))}),200*e)}(e),t)break;b.push(r)}}}function U(t){if(t&&t.length){var e=t.length;let r=0;Array.from(t).forEach((t=>{if(t&&t instanceof HTMLElement){let o=t.getAttribute("stay-sniffing");o||(o=w.generateUuid(),t.setAttribute("stay-sniffing",o));var e,n=t;let i=t.getAttribute("src");i||(e=t.querySelector("source"))&&(t=e,i=e.getAttribute("src")),i&&function(t,e,r){let n={},o=t.getAttribute("poster")||t.getAttribute("data-poster"),i=t.getAttribute("title"),a=t.getAttribute("src"),s=[],d=(l=window.location.href,e);if(a=w.completionSourceUrl(a),o||(u=document.querySelector("source[type='image/webp'] img"),o=u?u.getAttribute("src"):"",i=i||(u?u.getAttribute("alt"):"")),-1{g.size&&g.has(t.vid)||w.isURL(t.videoUrl)&&(g.add(t.vid),f.push({title:t.title,poster:t.poster,downloadUrl:t.videoUrl,hostUrl:l,videoUuid:t.vid}))})),e;e.title=F();const t=document.querySelector(".stickyBlock .curVideoPlay video");t&&(e.poster=t.getAttribute("poster"),e.downloadUrl=t.getAttribute("src"))}else if("mbd.baidu.com"===c){var n=window.jsonData;if(n&&n.curVideoMeta&&(r=n.curVideoMeta,(e=M(r))&&Object.keys(e).length))return e;e.title=F(),e.poster=j()}else if("haokan.baidu.com"===c){var o=window.__PRELOADED_STATE__,i=w.queryURLParams(l,"vid"),a=t.getAttribute("src");if(a&&i&&-1 ul.list > li.part-item.on > span"),t&&(t=t.textContent,e.title=t+e.title),e}(t):-1 div[data-type='container'] > div[data-type='container'] > div[data-type='container'] > div[data-type='text'] > div.native-text"))&&(r.title=e.textContent),r}(t):-1 div > div.x9f619.x1d8287x.xz4gly6 div.x6ikm8r.x10wlt62 span"))&&(e.title=n.textContent),e}(t):-1Ad·'+i:i,n.poster=o,n.downloadUrl=a,n.hostUrl=l,n.qualityList=s,n.videoUuid=r,a&&A(e,d,n),n}(t,n,o).downloadUrl||r++}else r++})),r==e&&k()}else k()}function A(t,n,o){var s=o.downloadUrl;if(o.videoKey||o.videoUuid){w.isURL(s)||(o.downloadUrl=l),o.videoKey&&!o.videoUuid&&(o.videoUuid=o.videoKey),s=o.qualityList,o.shouldDecode&&(o.qualityList=[],y[o.videoUuid]=s);try{!async function(t,n,o){if(n&&w.isMobile()&&!e&&!r&&(a||(r=!0,a=await q(),r=!1),a)&&(!a||"off"!=a)&&(i||(e=!0,i=await T(),e=!1),"a"==i)){var s=n.getAttribute("stay-long-press");if(!s||"yes"!=s){if(document.querySelector("#__style_sinffer_unselect")||document.body.append(w.parseToDOM('
')),n.classList.add("__stay-unselect"),n.classList.add("__stay-touch-action"),s=o.hostUrl,-1{C(t,n,o)}))}else if(!(-1{C(t,n,o)}));else if(-1{C(t,e,o)}))}new E(n,(()=>{C(t,n,o)}))}}}(t,n,o)}catch(t){}g.size&&(g.has(o.videoUuid)||g.has(o.videoKey))?f.forEach((t=>(t.videoUuid!=o.videoUuid&&t.videoUuid!=o.videoKey||(t.downloadUrl=o.downloadUrl,t.poster=o.poster||"",t.title=o.title,t.hostUrl=o.hostUrl,t.qualityList=o.qualityList&&o.qualityList.length?o.qualityList:[],t.type=o.type||"",t.videoUuid=o.videoUuid,t.videoKey=o.videoKey),t))):(o.videoUuid&&g.add(o.videoUuid),o.videoKey&&g.add(o.videoKey),f.push(o)),D()}}function O(){return d&&Object.keys(d).length&&p&&d.decodeFunStr&&p==d.pathUuid}function L(){Object.keys(y).length&&O()&&(Object.keys(y).forEach(((t,e)=>{if(e.length){e.forEach((t=>(t.downloadUrl&&!w.isURL(t.downloadUrl)&&(t.downloadUrl=R(t.downloadUrl)),t.audioUrl&&!w.isURL(t.audioUrl)&&(t.audioUrl=R(t.audioUrl)),t)));let r=e.filter((t=>{if(t.downloadUrl)return t}));f.forEach((e=>{if(e.videoUuid==t)return e.qualityList=r,e})),delete y[t]}})),D())}function D(){var e=w.hexMD5(JSON.stringify(f));o&&o==e||(o=e,t?(e={from:"sniffer",operate:"VIDEO_INFO_PUSH",videoInfoList:f},s.runtime.sendMessage(e,(t=>{}))):window.postMessage({name:"VIDEO_INFO_CAPTURE",videoList:f}))}function T(){return new Promise(((e,r)=>{if(t)s.runtime.sendMessage({from:"sniffer",operate:"GET_STAY_AROUND"},(t=>{t.body&&"{}"!=JSON.stringify(t.body)&&e(t.body)}));else{const t=Math.random().toString(36).substring(2,9),r=n=>{n.data.pid===t&&"GET_STAY_AROUND_RESP"===n.data.name&&(n=n.data&&n.data.response?n.data.response.body:"b",e(n),window.removeEventListener("message",r))};window.postMessage({id:t,pid:t,name:"GET_STAY_AROUND"}),window.addEventListener("message",r)}}))}function q(){return new Promise(((e,r)=>{if(t)s.runtime.sendMessage({from:"popup",operate:"getLongPressStatus"},(t=>{t=t&&t.longPressStatus?t.longPressStatus:"on",e(t)}));else{const t=Math.random().toString(36).substring(2,9),r=n=>{n.data.pid===t&&"GET_LONG_PRESS_STATUS_RESP"===n.data.name&&(e(n.data.longPressStatusRes),window.removeEventListener("message",r))};window.postMessage({id:t,pid:t,name:"GET_LONG_PRESS_STATUS"}),window.addEventListener("message",r)}}))}function C(e,r,n){r.clientWidth;let o=r.clientHeight,i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var a=window.innerWidth||document.documentElement.innerWidth||document.body.innerWidth;let l=r.getBoundingClientRect().top,c=r.getBoundingClientRect().left,d=("VIDEO"==r.tagName&&(l=r.parentNode.getBoundingClientRect().top,c=r.parentNode.getBoundingClientRect().left),c=10,a),u=w.div(w.mul(d,9),16),p=(o<div stay-download="${a}" class="_stay-quality-item ">${"ad"==n.type?"Download Ad":"Download"}</div>,S=n.qualityList;if(S&&S.length){let t="";x=0,S.forEach((e=>{let o=e.downloadUrl,i=e.audioUrl;if(n.shouldDecode){if(!w.isURL(o)&&!(o=R(o)))return;if(i&&!w.isURL(i)&&!(i=R(i)))return}r=[{title:n.title,downloadUrl:o,poster:n.poster,hostUrl:w.getHostname(n.hostUrl),uuid:"",protect:e.protect||!1,audioUrl:i,qualityLabel:e.qualityLabel}],o="stay://x-callback-url/snifferVideo?list="+encodeURIComponent(JSON.stringify(r));let a=e.qualityLabel,s="";if(a)try{a=a.replace(/[^0-9]/g,""),780HD')}catch(e){}t+=<div stay-download="${o}" class="_stay-quality-item">${e.qualityLabel}${s}</div>
,x+=1})),E=t}let U=l,A=l;l<0?(A=0,i<=o&&(A=w.div(w.sub(i,u),2))):0==l?i<=o&&(A=w.div(w.sub(i,u),2)):(T=w.add(4,36),T=w.add(w.add(u,T),w.add(w.mul(x,38),36)),l>w.sub(i,T)&&(A=w.sub(i,T)));let O="",L=t?s.runtime.getURL("img/video-default.png"):"https://res.stayfork.app/scripts/BB8CD00276006365956C32A6556696AD/icon.png",D='
'+w.getHostname(n.hostUrl)+"
";n.poster&&(O="border-radius: 15px;",D=<div class="__stay-video-poster" style="background:url('${n.poster}') 50% 50% no-repeat;background-size: cover;"></div>
),function(t,e,r){if(t&&"VIDEO"==t.tagName){t.setAttribute("autoplay","autoplay"),t.setAttribute("crossOrigin","anonymous");var n=document.createElement("canvas");e=(n.width=e,n.height=r,n.getContext("2d"));e.drawImage(t,0,0,n.width,n.height)}}(e,d,u);var T=<style id="__style_sinffer_style">n .__stay-modal-box{n position: fixed; n z-index: 9999999; n width: 100%; n height: 100%; n text-align: center; n top: 0px;n -webkit-overflow-scrolling: touch;n margin: 0 auto;n transition: all 0.6s;n box-sizing: border-box;n visibility: hidden;n }n .__stay-show-modal{n background-color: rgba(0, 0, 0, 0.4);n -webkit-backdrop-filter: blur(8px); n }n .__stay-sinffer-content{n width:100%;n position: absolute;n left: 0;n -webkit-transform: translate3d(0, ${U}px, 0);n transform: translate3d(0, ${U}px, 0);n will-change: transform;n -webkit-transition: -webkit-transform .4s cubic-bezier(0,0,.25,1) 80ms;n transition: transform .4s cubic-bezier(0,0,.25,1) 80ms;n box-sizing: border-box;n }n .__stay-trans{n -webkit-transform: translate3d(0,${A}px,0);n transform: translate3d(0,${A}px,0);n }n .__stay-content{n width:100%;n position: relative;n display: flex;n flex-direction: column;n justify-content: center;n justify-items: center;n align-items: center;n }n ._stay-sinffer-popup{n width:230px;padding-top: 10px;box-sizing: border-box;border-radius:15px;n ${p}n position: relative;n margin: 16px auto 0 auto;n z-index:999999;n visibility: hidden;n animation: fadein .5s;n }n .__stay-sinffer-poster{n width: 100%;n -webkit-user-select: none;n -moz-user-select: none;n -ms-user-select: none;n user-select: none;n height: ${u}px;n padding: 0 ${c}px;n margin:0 auto;n display: flex;n flex-direction: column;n justify-content: center;n justify-items: center;n align-items: center;n box-sizing: border-box;n box-shadow: 0 0px 10px rgba(54,54,57,0.1);n transition: All 0.4s ease-in-out;n -webkit-transition: All 0.4s ease-in-out;n -moz-transition: All 0.4s ease-in-out;n -o-transition: All 0.4s ease-in-out;n animation-name: zoom;n animation-duration: 0.6s;n }n .__stay-video-poster{n // object-fit: contain;n // object-position: center;n width:100%;n height:100%;n background-position: center;n background-repeat: no-repeat;n border-radius: 15px;n n }n .__stay-poster-box{n width:100%;n height:100%;n display: flex;n flex-direction: column;n justify-content: center;n align-items: center;n ${y}n border-radius: 10px;n box-shadow: 0 0px 10px rgba(54,54,57,0.1);n }n .__stay-default-poster{n width:80px;n height:60px;n display: flex;n flex-direction: column;n justify-content: center;n justify-items: center;n align-items: center;n box-sizing: border-box;n }n ._stay-sinffer-title{n padding-left: 44px;n padding-right: 15px;n width: 100%;n height:36px;n line-height: 18px;n word-break:break-all;n word-wrap:break-word;n color: ${m};n -webkit-box-orient: vertical;n -webkit-user-select: none;n overflow: hidden;n text-overflow: ellipsis;n display: -webkit-box;n -webkit-line-clamp: 2;n text-align: left;n margin-bottom: 10px;n box-sizing: border-box;n font-size: 16px;n position: relative;n }n ._stay-sinffer-title::before{n content: '';n background: url(${_}) 50% 50% no-repeat;n background-size: 18px;n width: 18px;n height: 18px;n position: absolute;n left: 15px;n top: 50%;n transform: translate(0, -50%);n }n }n ._stay-sinffer-title span{n font-weight: 600;n color: ${g}n }n ._stay-sinffer-tool{n display: flex;n align-items: center;n justify-content: center;n padding: 9px 15px;n height: 38px;n box-sizing: border-box;n }n ._stay-sinffer-tool .__tool{n width: 50%;n height: 100%;n display: flex;n justify-content: center;n align-items: center;n color: ${g}n }n ._stay-sinffer-tool .__tool img{n width: 20px;n }n ._stay-sinffer-tool .__tool span{n padding-left: 10px;n }n ._stay-sinffer-tool .__airplay{n n border-right: 0.5px solid ${f};n }n ._stay-sinffer-tool .__pip{nn }n ._stay-sinffer-download{n width:100%;n box-sizing: border-box;n display: flex;n justify-content: flex-start;n flex-direction: column;n align-items: center;n }n ._stay-quality-item{n height: 38px;n box-sizing: border-box;n width:100%;n padding-right: 20px;n position: relative;n color: ${m};n text-align:left;n font-size: 16px;n border-top: 0.5px solid ${f};n padding: 0 15px;n display: flex;n align-items: center;n -webkit-user-select: none;n -moz-user-select: none;n -ms-user-select: none;n user-select: none;n }n ._stay-quality-item .__stay-hd{n border: 1px solid ${v};n background: ${b};n color: ${v};n font-size: 12px;n font-weight: 600;n display: inline-block;n padding: 0px 4px;n border-radius: 4px;n margin-left: 10px;n align-items: center;n }n ._stay-quality-item::after{n content:"";n background: url(${h}) no-repeat 50% 50%; n background-size: 14px;n position: absolute;n right: 15px;n top: 50%;n transform: translate(0, -52%);n width: 14px;n height: 20px;n }n @keyframes zoom {n 0% {transform: scale(1.05)}n 100% {transform: scale(1);${O}}n }n @keyframes fadein {n 0% {n transform: translate(0, -100%);n }n 100% {n transform: none;n }n }n @keyframes fadeout {n 0% {n transform: translate(0,100%);n }n 100% {n transform: none;n }n }n </style>
,q=['
"];return document.body.append(w.parseToDOM(T)),document.body.append(w.parseToDOM(q.join(""))),document.querySelector("#__stay_sinffer_modal")}()).style.visibility="visible";const m=document.querySelector("#__stay_sinffer_modal ._stay-sinffer-popup");document.querySelector("#__stay_sinffer_modal .__stay-sinffer-content").classList.add("__stay-trans");let f=setTimeout((function(){p.classList.add("__stay-show-modal"),m.style.visibility="visible",clearTimeout(f),f=0}),400);p.addEventListener("touchmove",(t=>{t.preventDefault(),t.stopPropagation()}),!1),p.addEventListener("touchstart",(t=>{t.preventDefault(),p.classList.remove("__stay-show-modal"),m.style.animation="fadeout .5s;";let e=setTimeout((()=>{p&&document.body.removeChild(p),document.body.removeChild(document.querySelector("#__style_sinffer_style")),clearTimeout(e),e=0}),200)}),!1);const y=document.querySelectorAll("#__stay_sinffer_modal ._stay-quality-item");if(y&&y.length)for(let t=0;t{t=t.target.getAttribute("stay-download");var e=document.createElement("a");e.href=t,e.click()}))}function R(t){var e,r;return O()?(e=d.decodeFunStr,e=new Function("return "+e),r=w.queryParams(t,"url"),t=w.queryParams(t,"s"),t=e()(decodeURIComponent(t)),decodeURIComponent(r)+"&sig="+t):""}function P(t){return O()?R(t):t}function N(t){return t&&t.length?(t=t.sort(w.compare("bitrate")).pop()).url||(O()?R(t.signatureCipher):t.signatureCipher):""}function k(){let t=setTimeout((()=>{{let t={},e=window.location.host,r=(l=window.location.href,t.hostUrl=l,null);-1{"hls"==e.format&&"string"==typeof e.quality&&e.videoUrl&&n.push({downloadUrl:e.videoUrl,qualityLabel:e.quality,quality:Number(e.quality)}),!e.defaultQuality||"boolean"!=typeof e.defaultQuality&&"number"!=typeof e.defaultQuality||(r=e.defaultQuality,t.downloadUrl)||(t.downloadUrl=e.videoUrl)})),t.qualityList=n}}return t}function M(t){if(!t)return{};var e={};if(e.title=t.title,e.poster=t.poster,e.downloadUrl=t.playurl,t.clarityUrl&&t.clarityUrl.length){let r=[];t.clarityUrl.forEach((t=>{t.vodVideoHW,r.push({downloadUrl:t.url,qualityLabel:t.title,quality:t.key})})),e.qualityList=r}return e}function j(){var t=document.querySelector(".art-player-wrapper .art-video-player .art-poster");return t&&(t=t.getAttribute("style"),t)?w.matchUrlInString(t):(t=document.querySelector("#bdMainPlayer .art-video-player .art-poster"),t&&(t=t.getAttribute("style"),t)?w.matchUrlInString(t):"")}function F(){var t=document.querySelector(".adVideoPageV3 .curVideoInfo h3.videoTitle");return(t=t||document.querySelector(".video-info .video-info-title"))||(t=document.querySelector(".video-main .video-content .video-title .video-title-left"))?t.textContent:""}function z(t){let e={};var r=window.ytplayer;let o=w.queryURLParams(l,"v");if(o||(a=document.querySelector("#player-control-container > ytm-custom-control > div.inline-player-controls > a.inline-player-overlay"))&&(a=a.getAttribute("href"),o=w.queryParams(a,"v")),!o)return e;let i="";if(t){e.poster=t.getAttribute("poster")||"",e.downloadUrl=t.getAttribute("src");var a=t.getAttribute("title");e.title=a}else if(!r||!s.videoDetails)return e;const s=r?r.bootstrapPlayerResponse:{};if(s&&s.videoDetails&&s.streamingData&&(!o||o===s.videoDetails.videoId)){t=s.videoDetails,a=t.title||"",t=(e.title=a,t.thumbnail),t=(t&&(t=t.thumbnails)&&t.length&&(e.poster=t.pop().url),s.microformat&&s.microformat.playerMicroformatRenderer&&s.microformat.playerMicroformatRenderer.thumbnail&&s.microformat.playerMicroformatRenderer.thumbnail.thumbnails.length&&(e.poster=s.microformat.playerMicroformatRenderer.thumbnail.thumbnails[0].url),s.streamingData);var c=t.adaptiveFormats;if(t.formats,i=i||"",!c||!c.length||i&&i.replace(/s+/g,"")!==a.replace(/s+/g,""))e.title=i||W(),e.downloadUrl=V();else{let o=[],i=new Set;t=r.bootstrapWebPlayerContextConfig?r.bootstrapWebPlayerContextConfig.jsUrl:"";try{if(t){let e="";var d=(m=t).split("/");(e=t.startsWith("/")?d[3]:d[2])&&(n.randomPathUuid=e)}}catch(r){}let a=N(c.filter((t=>{if(-1{var r=t.mimeType;let n=t.qualityLabel;if(n=n?n.replace(/p[d]*$/,"P"):"",-1{if(-1{var r=t.mimeType;let n=t.qualityLabel;if(n=n?n.replace(/p[d]*$/,"P"):"",-1(t.qualityLabel&&t.qualityLabel.toLowerCase()==n.toLowerCase()&&(t.downloadUrl=e,t.audioUrl="",t.protect=!1),t)))}return t}(o,e.downloadUrl),e.qualityList=o),e.downloadUrl||(e.downloadUrl=V())}e.poster||(e.poster=B())}else(e={}).title=i||W(),e.downloadUrl=V();let u=e.poster;return u=u||B(),u=(u=s.videoDetails&&o!=s.videoDetails.videoId?https://i.ytimg.com/vi/${o}/hqdefault.jpg
:u)||https://i.ytimg.com/vi/${o}/hqdefault.jpg
,e.poster=u,function(t){return t&&-1{if((u=document.querySelector("#player-base"))&&u.getAttribute("src")){var t=u.getAttribute("src");let r=t;var e=t.split("/");Y(r=t.startsWith("/")?e[3]:e[2],t,!0),b.forEach((t=>{clearTimeout(t)}))}}),200*t),u&&u.getAttribute("src"))break;b.push(r)}var t}async function Y(e,r,n){o=e,i=r;var o,i,a=await new Promise(((e,r)=>{if(t)s.runtime.sendMessage({from:"sniffer",operate:"fetchYoutubeDecodeFun",pathUuid:o,pathUrl:i},(t=>{t=t&&t.decodeFun?t.decodeFun:"",e(t)}));else{const t=Math.random().toString(36).substring(2,9),r=n=>{n.data.pid===t&&"GET_YOUTUBE_DECODE_FUN_RESP"===n.data.name&&(e(n.data.decodeFun),window.removeEventListener("message",r))};window.postMessage({id:t,pid:t,name:"GET_YOUTUBE_DECODE_FUN",pathUuid:o,pathUrl:i}),window.addEventListener("message",r)}}));a?($(e,a),n&&L()):async function(e,r){if(r&&e)try{var n=await(await fetch("https://m.youtube.com"+r)).text();if(n){var o=n.match(/[a-zA-Z]+=function(a){.*returns+a.join("")};/g);let r="";if(r=o&&o.length?o[0]:r){let o="";var i=n.match(/vars+[a-zA-Z]{2}={[a-zA-Z]{2}:function[sS]*(a.reverse()|splice(0,b)|length]=c)}};/g);(o=i&&i.length?i[0]:o)&&(r=r.replace(/[a-zA-Z]+=function(a){/g,"function decodeFun(a){"+o))?(function(t){try{var e,r=new Function("return "+t);if(e=r()(decodeURIComponent("%3D%3DQmbTSWlgLuztoft4F_uqQieS7_jBtboKab9zSp5WRdSAiApcTRtZLjBmFtzLXphJ0x_haWmWIhVtdAg8jD1rsKkRKAhIQRw8JQ0qOAOA")),decodeURIComponent("https://rr5---sn-o097znsk.googlevideo.com/videoplayback%3Fexpire%3D1679042695%26ei%3DJ9QTZJ6FFKeksfIPkaSL-Aw%26ip%3D2602%253Afeda%253A30%253Aae86%253A40e7%253A53ff%253Afe8b%253A9a97%26id%3Do-AI3u_uLu7PqvSwoVFwTG0fSk-puen4XBHxlLqco9MH8Q%26itag%3D135%26aitags%3D133%252C134%252C135%252C160%252C242%252C243%252C244%252C278%26source%3Dyoutube%26requiressl%3Dyes%26mh%3D_m%26mm%3D31%252C26%26mn%3Dsn-o097znsk%252Csn-a5meknzk%26ms%3Dau%252Conr%26mv%3Dm%26mvi%3D5%26pl%3D44%26initcwndbps%3D2135000%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3DwhOrAPi40PxLIKHeHvAaoDIL%26gir%3Dyes%26clen%3D18438908%26dur%3D584.533%26lmt%3D1635010443575003%26mt%3D1679020854%26fvip%3D5%26keepalive%3Dyes%26fexp%3D24007246%26c%3DMWEB%26txp%3D5432434%26n%3D3BrEIxrXFc7SkC%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRgIhAKYBlOvRZiHPnnEJJ5foNn7LZU1cgGvfyO3WU9TjETfZAiEA6PvSgRq0gdcsBBTTj0VHXybmMwb-ouW2TVIYGmG_PG0%253D")+"&sig="+e)return 1}catch(t){}}(r)&&function(e,r){if(t)s.runtime.sendMessage({from:"sniffer",operate:"saveYoutubeDecodeFun",pathUuid:e,randomFunStr:r},(t=>{}));else{const t=Math.random().toString(36).substring(2,9),n=e=>{e.data.pid===t&&"SAVE_YOUTUBE_DECODE_FUN_STR_RESP"===e.data.name&&window.removeEventListener("message",n)};window.postMessage({id:t,pid:t,name:"SAVE_YOUTUBE_DECODE_FUN_STR",pathUuid:e,randomFunStr:r}),window.addEventListener("message",n)}}(e,r),$(e,r)):$(e,"")}else $(e,"")}else $(e,"")}catch(r){$(e,"")}else $(e,"")}(e,r)}function $(t,e){d={pathUuid:t,decodeFunStr:e},n.decodeFunStr=e,window.localStorage.setItem("__stay_decode_str",JSON.stringify(d))}function G(t){!async function(){i||(e=!0,i=await T(),e=!1),a||(r=!0,a=await q(),r=!1)}(),async function(){var t;-1{"complete"===document.readyState&&G(!0)},Object.defineProperty(n,"randomPathUuid",{get:function(){return randomPathUuid},set:function(t){(randomPathUuid=t)!=p&&Y(p=t,m,!1)}}),Object.defineProperty(n,"decodeFunStr",{get:function(){return decodeFunStr},set:function(t){(decodeFunStr=t)&&L()}})}
handleInjectParseVideoJS(false);