(function(){var t={9638:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDUiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA0NSA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMzLjA4NiAwSDI0LjIwNzRWMzUuNDIwM0MyNC4yMDc0IDM5LjY0MDYgMjAuNzkyNiA0My4xMDcyIDE2LjU0MyA0My4xMDcyQzEyLjI5MzQgNDMuMTA3MiA4Ljg3ODU4IDM5LjY0MDYgOC44Nzg1OCAzNS40MjAzQzguODc4NTggMzEuMjc1NCAxMi4yMTc1IDI3Ljg4NDEgMTYuMzE1MyAyNy43MzMzVjE4Ljg0MDZDNy4yODQ5OSAxOC45OTEzIDAgMjYuMzAxNCAwIDM1LjQyMDNDMCA0NC42MTQ1IDcuNDM2NzYgNTIgMTYuNjE4OSA1MkMyNS44MDEgNTIgMzMuMjM3OCA0NC41MzkxIDMzLjIzNzggMzUuNDIwM1YxNy4yNThDMzYuNTc2NyAxOS42Njk2IDQwLjY3NDUgMjEuMTAxNCA0NSAyMS4xNzY4VjEyLjI4NDFDMzguMzIyMSAxMi4wNTggMzMuMDg2IDYuNjMxODggMzMuMDg2IDBaIiBmaWxsPSIjMTYxODIzIi8+Cjwvc3ZnPgo="},5784:function(t,e,n){"use strict";n.r(e),n.d(e,{EMBED_TYPE:function(){return m},LIB_CDN_PREFIX:function(){return r},LIB_CSS_ID:function(){return i},LIB_SCRIPT_ID:function(){return o},LIB_VERSION_DEFAULT:function(){return a},LIB_VERSION_PREFIX:function(){return c},SS_MOUNTING:function(){return g},SS_NEWMOUNT:function(){return h},TT_GLOBAL_CLASS:function(){return d},TT_GLOBAL_DATA:function(){return s},TT_GLOBAL_PREFIX:function(){return p},TT_GLOBAL_TAG:function(){return l},TT_MESSAGE_EVENT:function(){return f},TT_PRE_CONNECT_DOMAINS_MAP:function(){return b},TT_WEB:function(){return u}});var r="".concat("https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok/falcon/embed"),i="ttEmbedLibCSS",o="ttEmbedLibScript",c="embed_lib_v",a=n("5589").version,u="https://www.tiktok.com",l="blockquote",s="tiktokEmbed",d="tiktok-embed",f="message",p="__tt_embed__",g="mounting",h="newmount",m=Object.freeze({CREATOR:"creator",VIDEO:"video",TAG:"tag",MUSIC:"music",TRENDING:"trending",CURATED:"curated"}),b={TTP:["https://www.tiktok.com","https://lf16-tiktok-web.tiktokcdn-us.com","https://libraweb.tiktokw.us"],VA:["https://www.tiktok.com","https://sf16-website-login.neutral.ttwstatic.com","https://libraweb-va.tiktok.com"],SG:["https://www.tiktok.com","https://sf16-website-login.neutral.ttwstatic.com","https://libraweb-sg.tiktok.com"],GCP:["https://www.tiktok.com","https://sf16-website-login.neutral.ttwstatic.com","https://libraweb.tiktokw.eu"],EU_TTP:["https://www.tiktok.com","https://sf16-website-login.neutral.ttwstatic.com","https://libraweb.tiktokw.eu"],Default:["https://www.tiktok.com","https://lf16-tiktok-web.tiktokcdn-us.com","https://libraweb.tiktokw.us"]}},476:function(t,e,n){"use strict";n.r(e);var r=n("6150"),i=n("3830"),o=n("2062"),c=n("8956"),a=n("8965");n("3046");var u=n("5784"),l=n("1918");(function(t){var e=new(function(){function e(){(0,i._)(this,e)}return(0,o._)(e,[{key:"lang",get:function(){var t=(0,l.getUrlParameter)("hl")||(0,l.getUrlParameter)("lang"),e="";try{e=navigator.language||navigator.userLanguage}catch(t){e=""}return t||e}},{key:"init",value:function(){var e=this;return(0,r._)(function(){return(0,a._)(this,function(n){return t[u.TT_GLOBAL_DATA].isEventsInit=!0,e.receiveMessage=e.receiveMessage.bind(e),t.addEventListener(u.TT_MESSAGE_EVENT,e.receiveMessage),l.Log.info("\n\nWe're hiring!\nAre you ready to make a change?\nCheck out some of our available positions at https://careers.tiktok.com/"),[2]})})()}},{key:"render",value:function(t){var e=this;return(0,r._)(function(){var n,i,o,c,s,d,f,p,g,h,m,b,v;return(0,a._)(this,function(y){switch(y.label){case 0:if(!t.length)return[2];n=!0,i=!1,o=void 0;try{for(c=(0,u.TT_PRE_CONNECT_DOMAINS_MAP).VA[Symbol.iterator]();!(n=(s=c.next()).done);n=!0)d=s.value,e.addPreConnectInstruction(d)}catch(t){i=!0,o=t}finally{try{!n&&null!=c.return&&c.return()}finally{if(i)throw o}}f=(0,l.separateChildList)(t,3),p=!0,g=!1,h=void 0,y.label=1;case 1:y.trys.push([1,6,7,8]),m=f[Symbol.iterator](),y.label=2;case 2:var _;if(p=(b=m.next()).done)return[3,5];return[4,Promise.all(b.value.map((_=(0,r._)(function(t){var n,r,i,o,c,u,s,d,f,p,g,h,m,b,v,y;return(0,a._)(this,function(a){switch(a.label){case 0:return i=void 0===(r=(n=t.dataset).videoId)?null:r,c=void 0===(o=n.uniqueId)?null:o,s=void 0===(u=n.musicId)?null:u,f=void 0===(d=n.tagId)?null:d,g=void 0===(p=n.embedType)?null:p,m=void 0===(h=n.embedFrom)?null:h,v=void 0===(b=n.videoIdList)?null:b,y="v".concat((0,l.genHashID)()),t.id=y,[4,e.setDOM({domId:y,videoId:i,uniqueId:c,musicId:s,tagId:f,embedType:g,embedFrom:m,videoIdList:v})];case 1:return a.sent(),[2]}})}),function(t){return _.apply(this,arguments)})))];case 3:y.sent(),y.label=4;case 4:return p=!0,[3,2];case 5:return[3,8];case 6:return v=y.sent(),g=!0,h=v,[3,8];case 7:try{!p&&null!=m.return&&m.return()}finally{if(g)throw h}return[7];case 8:return[2]}})})()}},{key:"setDOM",value:function(t){var e=t.domId,n=t.videoId,i=t.uniqueId,o=t.musicId,c=t.tagId,u=t.embedType,l=t.embedFrom,s=t.videoIdList,d=this;return(0,r._)(function(){return(0,a._)(this,function(t){var f;return[2,new Promise((f=(0,r._)(function(t){var r,f,p,g,h;return(0,a._)(this,function(a){return r=document.getElementById(e),f=document.createDocumentFragment(),(p=document.createElement("iframe")).style.width=0,p.style.height=0,p.style.display="none",p.style.visibility="hidden",p.name=d.genSignalSource(e),p.sandbox="allow-popups allow-popups-to-escape-sandbox allow-scripts allow-top-navigation allow-same-origin",g=d.getEmbedUrl(u,i,n,o,c),h=d.getQueryStr(d.lang,l,u,s),p.src="".concat(g).concat(h),p.onload=function(){d.renderIframe(p),t(e)},f.appendChild(p),r.appendChild(f),n&&d.addBacklinkByAB(r),[2]})}),function(t){return f.apply(this,arguments)}))]})})()}},{key:"getEmbedUrl",value:function(t,e,n,r,i){var o="";return t===u.EMBED_TYPE.CREATOR&&e?o="".concat(u.TT_WEB,"/embed/@").concat(e):t===u.EMBED_TYPE.TAG&&i?o="".concat(u.TT_WEB,"/embed/tag/").concat(i):t===u.EMBED_TYPE.MUSIC&&r?o="".concat(u.TT_WEB,"/embed/music/").concat(r):t===u.EMBED_TYPE.TRENDING?o="".concat(u.TT_WEB,"/embed/trending"):t===u.EMBED_TYPE.CURATED?o="".concat(u.TT_WEB,"/embed/curated"):(t===u.EMBED_TYPE.VIDEO||null===t)&&(o="".concat(u.TT_WEB,"/embed/v2/").concat(n)),o}},{key:"getQueryStr",value:function(e,n,r,i){var o,c="";e&&(c="?lang=".concat(e));try{o=t.top.location.href}catch(e){o=t.location.href}if((o=encodeURIComponent(o))&&(c=c.length?"".concat(c,"&referrer=").concat(o):"?referrer=".concat(o)),n&&(c=c.length?"".concat(c,"&embedFrom=").concat(n):"?embedFrom=".concat(n)),r===u.EMBED_TYPE.CURATED&&""!==i){var a=new URLSearchParams;a.append("videoIds",i),c=c.length?"".concat(c,"&").concat(a.toString()):"?".concat(a.toString())}return c}},{key:"genSignalSource",value:function(t){return"".concat(u.TT_GLOBAL_PREFIX).concat(t)}},{key:"getSignalId",value:function(t){var e=new RegExp("".concat(u.TT_GLOBAL_PREFIX,"(\\w+)")),n=(0,c._)(e.exec(t)||[],2);return n[0],n[1]}},{key:"renderIframe",value:function(t){var e=t.parentNode.firstElementChild;t.parentNode.removeChild(e),t.style.width="100%",t.style.height="100%",t.style.display="block",t.style.visibility="unset",t.nextElementSibling&&(t.nextElementSibling.style.width="325px")}},{key:"resizeIframeHeight",value:function(t,e){if(!t||!e)return!1;var n=document.documentElement.clientHeight;e>n?(t.style.height="".concat(e,"px"),t.style.maxHeight=""):(t.style.height="".concat(e,"px"),t.style.maxHeight="".concat(e,"px"))}},{key:"receiveMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.origin,r=e.data;if((void 0===n?"":n)!==u.TT_WEB)return!1;var i={};try{i=JSON.parse(void 0===r?"{}":r)}catch(t){i={}}var o=i.signalSource,c=void 0===o?"":o,a=i.height,l=i.link;if(!(-1!==c.indexOf(u.TT_GLOBAL_PREFIX)))return!1;if(a){var s=this.getSignalId(c),d=document.querySelector("#".concat(s," > iframe"));this.resizeIframeHeight(d,a)}else if(l){var f=document.createElement("a");f.href=l;var p=0===String(l).toLowerCase().indexOf("http");f.target=function(){try{return t.self!==t.top}catch(t){return!0}}()&&p?"_blank":"_top",f.click()}}},{key:"addPreConnectInstruction",value:function(t){var e=document.createElement("link");e.rel="preconnect",e.href=t,e.crossOrigin="",document.head.appendChild(e)}},{key:"addBacklink",value:function(t){var e=document.createElement("a");e.innerHTML='Watch on TikTok',e.href=t.cite,e.target="_blank",t.appendChild(e)}},{key:"addBacklinkByAB",value:function(t){var e=this;return(0,r._)(function(){var n,r,i,o,c;return(0,a._)(this,function(a){switch(a.label){case 0:return i=t.cite,[4,(0,l.fetchWithTimeout)("".concat(u.TT_WEB,"/node/extra/api/seo/ab-version?canonical=").concat(i,"&crowd_tag=tiktok_embed"),{},3e3)];case 1:return o=a.sent(),((c=null==o?void 0:(r=o.parameters)===null||void 0===r?void 0:(n=r.add_backlink)===null||void 0===n?void 0:n.vid)!==null&&void 0!==c?c:"v0")==="v1"&&e.addBacklink(t),[2]}})})()}}]),e}());t[u.TT_GLOBAL_DATA]={lib:e,isEventsInit:!1},e.init()})(window)},1918:function(t,e,n){"use strict";n.r(e),n.d(e,{Log:function(){return f},fetchWithTimeout:function(){return g},genHashID:function(){return s},getUrlParameter:function(){return p},separateChildList:function(){return d}});var r,i,o,c=n("6150"),a=n("7409"),u=n("9282"),l=n("8965");function s(){return Math.round(1e17*Math.random())}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return t.length&&e?t.reduce(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=Math.floor(i/e);return!t[o]&&(t[o]=[]),n?t[o].push(r[n]):t[o].push(r),t},[]):[]}var f=(r={},i=function(t){return"[".concat("TikTok","] ").concat(t.toString())},["error","log","info"].forEach(function(t){r[t]=function(e){"info"===t?console[t]("%c".concat(i(e)),"color: #fe2c55"):console[t](i(e))}}),r);function p(t){var e=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),n=new RegExp("[\\?&]".concat(e,"=([^]*)")).exec(location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))}var g=(o=(0,c._)(function(t){var e,n,r,i,o,c,s=arguments;return(0,l._)(this,function(l){switch(l.label){case 0:e=s.length>1&&void 0!==s[1]?s[1]:{},n=s.length>2&&void 0!==s[2]?s[2]:3e3,r=new AbortController,i=setTimeout(function(){return r.abort()},n),l.label=1;case 1:return l.trys.push([1,4,,5]),[4,window.fetch(t,(0,u._)((0,a._)({},e),{signal:r.signal}))];case 2:if(o=l.sent(),clearTimeout(i),!o.ok)throw Error("HTTP ".concat(o.status));return[4,o.json()];case 3:return[2,l.sent()];case 4:if("AbortError"===(c=l.sent()).name)throw Error("timeout");throw c;case 5:return[2]}})}),function(t){return o.apply(this,arguments)})},3046:function(t){},7245:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]