PageSourceSearch

https://premier.twitcasting.tv/js/v1/Shop.js?1753932406

js twitcasting.tv collected 2026-09-24 08:49:12 UTC 9,921 bytes, 1 lines download raw bytes

1(()=>{var t={523:function(t){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var o,i=t.HTMLElement||t.Element,r=468,l={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:i.prototype.scroll||d,scrollIntoView:i.prototype.scrollIntoView},s=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,n=+(o=t.navigator.userAgent,!!RegExp("MSIE |Trident/|Edge/").test(o));t.scroll=t.scrollTo=function(){if(void 0!==arguments[0]){if(!0===a(arguments[0]))return void l.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset);u.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset)}},t.scrollBy=function(){if(void 0!==arguments[0]){if(a(arguments[0]))return void l.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0);u.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset))}},i.prototype.scroll=i.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===a(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");l.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);return}var t=arguments[0].left,e=arguments[0].top;u.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}},i.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===a(arguments[0]))return void l.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},i.prototype.scrollIntoView=function(){if(!0===a(arguments[0]))return void l.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);var o=function(t){for(var o,i,r;t!==e.body&&!1===(i=c(o=t,"Y")&&h(o,"Y"),r=c(o,"X")&&h(o,"X"),i||r);)t=t.parentNode||t.host;return t}(this),i=o.getBoundingClientRect(),r=this.getBoundingClientRect();o!==e.body?(u.call(this,o,o.scrollLeft+r.left-i.left,o.scrollTop+r.top-i.top),"fixed"!==t.getComputedStyle(o).position&&t.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}}function d(t,e){this.scrollLeft=t,this.scrollTop=e}function a(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(t,e){return"Y"===e?t.clientHeight+n<t.scrollHeight:"X"===e?t.clientWidth+n<t.scrollWidth:void 0}function h(e,o){var i=t.getComputedStyle(e,null)["overflow"+o];return"auto"===i||"scroll"===i}function u(o,i,n){var a,c,h,u,f=s();o===e.body?(a=t,c=t.scrollX||t.pageXOffset,h=t.scrollY||t.pageYOffset,u=l.scroll):(a=o,c=o.scrollLeft,h=o.scrollTop,u=d),function e(o){var i,l,n,d=(s()-o.startTime)/r;i=.5*(1-Math.cos(Math.PI*(d=d>1?1:d))),l=o.startX+(o.x-o.startX)*i,n=o.startY+(o.y-o.startY)*i,o.method.call(o.scrollable,l,n),(l!==o.x||n!==o.y)&&t.requestAnimationFrame(e.bind(t,o))}({scrollable:a,method:u,startTime:f,startX:c,startY:h,x:i,y:n})}}}}()},6432:function(t,e,o){"use strict";function i(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}o.d(e,{l:()=>d});var r=o(523),l=o.n(r);class s{constructor(t,e,o,r,l=!1){i(this,"indexMax",void 0),i(this,"windowSize",void 0),i(this,"step",void 0),i(this,"currentIndex",void 0),i(this,"loopMode",void 0),i(this,"smallMode",void 0),i(this,"backward",void 0),i(this,"forward",void 0),i(this,"setSmallMode",void 0),i(this,"getCurrentIndex",void 0),i(this,"getLoopMode",void 0),i(this,"getIndexLim
1it",void 0),this.indexMax=t,this.windowSize=e,this.step=o,this.currentIndex=r,this.loopMode=l,this.smallMode=!1,this.backward=()=>{let t=this.smallMode?1:this.step,e=this.smallMode?1:this.windowSize,o=this.currentIndex-t;o<0&&(o=this.loopMode?this.getIndexLimit(this.indexMax,e):0),this.currentIndex=o},this.forward=()=>{let t=this.smallMode?1:this.step,e=this.smallMode?1:this.windowSize,o=this.currentIndex+t,i=this.getIndexLimit(this.indexMax,e);o>i&&(o=this.loopMode?0:i),this.currentIndex=o},this.setSmallMode=t=>{this.smallMode=t},this.getCurrentIndex=()=>this.currentIndex,this.getLoopMode=()=>this.loopMode,this.getIndexLimit=(t,e)=>t-e+1}}var n=o(6308);l().polyfill();class d{constructor(t){if(i(this,"root",void 0),i(this,"viewport",void 0),i(this,"forwardButton",void 0),i(this,"backwardButton",void 0),i(this,"state",void 0),i(this,"prevWidth",void 0),i(this,"backward",void 0),i(this,"forward",void 0),i(this,"goto",void 0),i(this,"createState",void 0),i(this,"onScroll",void 0),i(this,"onResize",void 0),i(this,"isSmall",void 0),this.root=t,this.prevWidth=null,this.backward=()=>{this.state.setSmallMode(this.isSmall()),this.state.backward(),this.goto(this.state.getCurrentIndex())},this.forward=()=>{this.state.setSmallMode(this.isSmall()),this.state.forward(),this.goto(this.state.getCurrentIndex())},this.goto=(t,e=!0)=>{let o=this.root.querySelectorAll(".tw-carousel-item")[t].getBoundingClientRect().left-this.root.getBoundingClientRect().left;this.viewport.scrollTo({left:this.viewport.scrollLeft+o,behavior:e?"smooth":"auto"})},this.createState=()=>{let t=this.root.querySelectorAll(".tw-carousel-item").length,e=parseInt(this.root.getAttribute("data-window"),10)||1,o=parseInt(this.root.getAttribute("data-step"),10)||1,i="true"===this.root.getAttribute("data-loop");return new s(t-1,e,o,parseInt(this.root.getAttribute("data-index"),10)||0,i)},this.onScroll=a(()=>{if(this.state.getLoopMode())return;let t=this.viewport.scrollLeft<50,e=this.viewport.scrollWidth-this.viewport.offsetWidth-this.viewport.scrollLeft<50;this.backwardButton.setAttribute("aria-hidden",t.toString()),this.forwardButton.setAttribute("aria-hidden",e.toString())},300),this.onResize=a(()=>{window.innerWidth!==this.prevWidth&&(this.goto(this.state.getCurrentIndex(),!1),this.prevWidth=window.innerWidth)},300),this.isSmall=()=>{let t=this.root.querySelector(".tw-carousel-item");return!!(t&&t.getBoundingClientRect().width/this.root.getBoundingClientRect().width>.8)},!t)throw Error("Missing required elements");let e=t.querySelector(".tw-carousel-viewport"),o=t.querySelector(".tw-carousel-button[data-control='forward']"),r=t.querySelector(".tw-carousel-button[data-control='backward']");if(!e||!o||!r)throw Error("Missing required elements");this.forwardButton=o,this.backwardButton=r,this.forwardButton.addEventListener("click",this.forward),this.backwardButton.addEventListener("click",this.backward),this.viewport=e,this.viewport.addEventListener("scroll",this.onScroll,{passive:!0}),window.addEventListener("resize",this.onResize,{passive:!0}),this.state=this.createState(),window.addEventListener("resize",this.onResize,{passive:!0}),this.onScroll(),this.goto(this.state.getCurrentIndex(),!1)}}function a(t,e){let o;return()=>{window.clearTimeout(o),o=window.setTimeout(()=>{t()},e)}}(0,n.e)("TwScripts.Carousel.Carousel",d)},9829:function(t,e,o){"use strict";function i(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==o.g)return o.g;throw Error("unable to locate global object")}o.d(e,{E:()=>i})},6308:function(t,e,o){"use strict";o.d(e,{e:()=>r});var i=o(9829);function r(t,e,o){let r=t.split(".").map(t=>t.trim()).filter(t=>t.length>0);if(0===r.length)throw Error();let l=null!=o?o:(0,i.E)();r.reduce((t,o,i)=>i===r.length-1?(t[o]=e,e):(o in t||(t[o]={}),t[o]),l)}}},e={};function o(i){var r=e[i];if(void 0!==r)return r.exports;var l=e[i]={exports:{}};return t[i](l,l.exports,o),l.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.g=(()=>
1{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}})(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.rv=()=>"1.4.9",o.ruid="[email protected]",(()=>{"use strict";var t=o(6432),e=o(6308);(0,e.e)("TwScripts.Shop.FloatingCV",class{bind(){if(!("IntersectionObserver"in window))return;let t=document.querySelector(".tw-shop-floating-cv"),e=null==t?void 0:t.dataset.hiddenBy;if(t&&e){let o=document.getElementById(e);o&&new IntersectionObserver(e=>{let o=e[0];t.style.display=o.isIntersecting?"none":"block"}).observe(o)}}}),(0,e.e)("TwScripts.Shop.ShopItemZoom",class{bind(){document.querySelectorAll(".tw-shop-item-cover-zoom, .tw-shop-ticket-button2-image, .tw-shop-item-cover-image").forEach(t=>{t.addEventListener("click",e=>{e.preventDefault();let o=t.dataset.target,i=o?document.getElementById(o):null;i&&new window.TwScripts.Main.Modal(i).show()})})}}),(0,e.e)("TwScripts.Shop.PopularLiveList",class{bind(){let e=document.querySelector("#popular-live-carousel");e&&(window.addEventListener("DOMContentLoaded",()=>{((t="--scrollbar-width")=>{document.documentElement.style.setProperty(t,window.innerWidth-document.documentElement.clientWidth+"px")})()}),new t.l(e))}})})()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.