1var ie=Object.defineProperty;var G=t=>{throw TypeError(t)};var ne=(t,o,e)=>o in t?ie(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e;var C=(t,o,e)=>ne(t,typeof o!="symbol"?o+"":o,e),x=(t,o,e)=>o.has(t)||G("Cannot "+e);var l=(t,o,e)=>(x(t,o,"read from private field"),e?e.call(t):o.get(t)),d=(t,o,e)=>o.has(t)?G("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(t):o.set(t,e),a=(t,o,e,s)=>(x(t,o,"write to private field"),s?s.call(t,e):o.set(t,e),e),h=(t,o,e)=>(x(t,o,"access private method"),e);import{R as re}from"./utm-Cy4lOW-Q.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"v20261009-gen9227-idb-noise-61c858d6"};var o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="5f2ec27f-3fad-460f-8549-70a916c67b9c",t._sentryDebugIdIdentifier="sentry-dbid-5f2ec27f-3fad-460f-8549-70a916c67b9c")}catch{}})();const ae="https://www.tiktok.com/player/v1",le=/tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/,g={INIT:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},ue={[g.INIT]:"emptied",[g.PAUSED]:"pause",[g.ENDED]:"ended",[g.PLAYING]:"play",[g.BUFFERING]:"waiting"};function z(t,o={}){const e={src:Q(t,o),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; autoplay; fullscreen; encrypted-media; gyroscope; picture-in-picture"};return o.config&&(e["data-config"]=JSON.stringify(o.config)),` 2 <style> 3 :host { 4 display:inline-block; 5 min-width: 300px; 6 min-height: 150px; 7 position: relative; 8 } 9 iframe { 10 position:absolute; 11 top:0; 12 left:0; 13 width:100%; 14 height:100%; 15 border:0; 16 } 17 </style> 18 <iframe ${fe(e)} title="TikTok video"></iframe> 19 `}function Q(t,o={}){if(!t.src)return;const e=t.src.match(le),s=e&&e[1],i={controls:t.controls===""?null:0,autoplay:t.autoplay,muted:t.muted,loop:t.loop,rel:0,...o.config};return`${ae}/${s}?${he(i)}`}var k,M,b,L,N,A,w,S,E,I,u,T,X,Z,V,ee;const R=class R extends(globalThis.HTMLElement??class{}){constructor(){super();d(this,u);C(this,"loadComplete",new Y);d(this,k);d(this,M);d(this,b,!1);d(this,L,0);d(this,N,!0);d(this,A,null);d(this,w,100);d(this,S,0);d(this,E);d(this,I,e=>{var s;if(e.source!==((s=l(this,E))==null?void 0:s.contentWindow))return;const i=e.data;if(i!=null&&i["x-tiktok-player"])switch(i.type){case"onPlayerReady":this.loadComplete.resolve();break;case"onStateChange":{a(this,N,[g.INIT,g.PAUSED,g.ENDED].includes(i.value));const f=ue[i.value];f&&this.dispatchEvent(new Event(f));break}case"onCurrentTime":a(this,L,i.value.currentTime),a(this,S,i.value.duration),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("timeupdate"));break;case"onVolumeChange":a(this,w,i.value),this.dispatchEvent(new Event("volumechange"));break;case"onMute":a(this,b,!!i.value),a(this,w,i.value?0:l(this,w)),this.dispatchEvent(new Event("volumechange"));break;case"onError":this.dispatchEvent(new Event("error"));break;default:console.warn("Unhandled TikTok player message:",i);break}});h(this,u,ee).call(this,"config")}static get observedAttributes(){return["src","controls","loop","autoplay","muted"]}async load(){if(l(this,k))return;this.shadowRoot||this.attachShadow(R.shadowRootOptions);const e=!l(this,M);if(l(this,M)&&(this.loadComplete=new Y),a(this,M,!0),await a(this,k,Promise.resolve()),a(this,k,null),a(this,L,0),a(this,b,!1),a(this,N,!0),!this.src){this.shadowRoot.innerHTML="",globalThis.removeEventListener("message",l(this,I));return}let s=this.shadowRoot.querySelector("iframe");const i=ce(this.attributes);e&&s&&a(this,A,JSON.parse(s.getAttribute("data-config")||"{}")),(!(s!=null&&s.src)||s.src!==Q(i,this))&&(this.shadowRoot.innerHTML=z(i,this),s=this.shadowRoot.querySelector("iframe")),a(this,E,s),globalThis.addEventListener("message",l(this,I))}async attributeChangedCallback(e,s,i){if(s!==i)switch(e){case"muted":{await this.loadComplete,this.muted=i!=null;break}
19case"autoplay":case"controls":case"loop":case"src":{this.load();return}}}get config(){return l(this,A)}set config(e){a(this,A,e)}async play(){await this.loadComplete,h(this,u,T).call(this,"play")}async pause(){await this.loadComplete,h(this,u,T).call(this,"pause")}get volume(){return l(this,w)/100}set volume(e){console.warn("Volume control is not supported for TikTok videos.")}get currentTime(){return l(this,L)}set currentTime(e){h(this,u,X).call(this,e)}get muted(){return l(this,b)}set muted(e){a(this,b,e),e?h(this,u,Z).call(this):h(this,u,V).call(this)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.toggleAttribute("muted",!!e)}get paused(){return l(this,N)}get duration(){return l(this,S)}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",e??"")}};k=new WeakMap,M=new WeakMap,b=new WeakMap,L=new WeakMap,N=new WeakMap,A=new WeakMap,w=new WeakMap,S=new WeakMap,E=new WeakMap,I=new WeakMap,u=new WeakSet,T=function(e,s){var i;if(!((i=l(this,E))!=null&&i.contentWindow))return;const f={"x-tiktok-player":!0,type:e,...s!==void 0?{value:s}:{}};l(this,E).contentWindow.postMessage(f,"*")},X=async function(e){await this.loadComplete,h(this,u,T).call(this,"seekTo",Number(e))},Z=async function(){await this.loadComplete,h(this,u,T).call(this,"mute")},V=async function(){await this.loadComplete,h(this,u,T).call(this,"unMute")},ee=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){const s=this[e];delete this[e],this[e]=s}},C(R,"getTemplateHTML",z),C(R,"shadowRootOptions",{mode:"open"});let D=R;class Y extends Promise{constructor(o=()=>{}){let e,s;super((i,f)=>{o(i,f),e=i,s=f}),this.resolve=e,this.reject=s}}function ce(t){let o={};for(let e of t)o[e.name]=e.value;return o}function de(t){let o={};for(let e in t){let s=t[e];s===!0||s===""?o[e]=1:s===!1?o[e]=0:s!=null&&(o[e]=s)}return o}function he(t){return String(new URLSearchParams(de(t)))}function fe(t){let o="";for(const e in t){const s=t[e];s===""?o+=` ${F(e)}`:o+=` ${F(e)}="${F(`${s}`)}"`}return o}function F(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}globalThis.customElements&&!globalThis.customElements.get("tiktok-video")&&globalThis.customElements.define("tiktok-video",D);var pe=D,me=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),ve={className:"class",htmlFor:"for"};function te(t){return t.toLowerCase()}function J(t){if(typeof t=="boolean")return t?"":void 0;if(typeof t!="function"&&!(typeof t=="object"&&t!==null))return t}function ge({react:t,tagName:o,elementClass:e,events:s,displayName:i,defaultProps:f,toAttributeName:oe=te,toAttributeValue:se=J}){const U=Number.parseInt(t.version)>=19,W=t.forwardRef(($,P)=>{var j,B;const p=t.useRef(null),H=t.useRef(new Map),O={},q={},m={},_={};for(const[n,r]of Object.entries($)){if(me.has(n)){m[n]=r;continue}const c=oe(ve[n]??n);if(e.prototype&&n in e.prototype&&!(n in(((j=globalThis.HTMLElement)==null?void 0:j.prototype)??{}))&&!((B=e.observedAttributes)!=null&&B.some(y=>y===c))){_[n]=r;continue}
19if(n.startsWith("on")){O[n]=r;continue}const v=se(r);if(c&&v!=null&&(q[c]=String(v),U||(m[c]=v)),c&&U){const y=J(r);v!==y?m[c]=v:m[c]=r}}if(typeof window<"u"){for(const n in O){const r=O[n],c=n.endsWith("Capture"),v=((s==null?void 0:s[n])??n.slice(2).toLowerCase()).slice(0,c?-7:void 0);t.useLayoutEffect(()=>{const y=p==null?void 0:p.current;if(!(!y||typeof r!="function"))return y.addEventListener(v,r,c),()=>{y.removeEventListener(v,r,c)}},[p==null?void 0:p.current,r])}t.useLayoutEffect(()=>{if(p.current===null)return;const n=new Map;for(const r in _)K(p.current,r,_[r]),H.current.delete(r),n.set(r,_[r]);for(const[r,c]of H.current)K(p.current,r,void 0);H.current=n})}if(typeof window>"u"&&(e!=null&&e.getTemplateHTML)&&(e!=null&&e.shadowRootOptions)){const{mode:n,delegatesFocus:r}=e.shadowRootOptions,c=t.createElement("template",{shadowrootmode:n,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:e.getTemplateHTML(q,$)},key:"ce-la-react-ssr-template-shadow-root"});m.children=[c,m.children]}return t.createElement(o,{...f,...m,ref:t.useCallback(n=>{p.current=n,typeof P=="function"?P(n):P!==null&&(P.current=n)},[P])},m.children)});return W.displayName=i??e.name,W}function K(t,o,e){var s;t[o]=e,e==null&&o in(((s=globalThis.HTMLElement)==null?void 0:s.prototype)??{})&&t.removeAttribute(o)}var we=ge({react:re,tagName:"tiktok-video",elementClass:pe,toAttributeName(t){return t==="muted"?"":t==="defaultMuted"?"muted":te(t)}});/*! Bundled license information: 20 21ce-la-react/dist/ce-la-react.js: 22 (** 23 * @license 24 * Copyright 2018 Google LLC 25 * SPDX-License-Identifier: BSD-3-Clause 26 * 27 * Modified version of `@lit/react` for vanilla custom elements with support for SSR. 28 *) 29*/export{we as default};
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.