PageSourceSearch

https://www.metservice.com/react-Dmg4DtJv.js

js metservice.com collected 2026-09-24 08:51:54 UTC 9,163 bytes, 12 lines download raw bytes

1var st=Object.defineProperty;var G=e=>{throw TypeError(e)};var nt=(e,i,t)=>i in e?st(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var k=(e,i,t)=>nt(e,typeof i!="symbol"?i+"":i,t),N=(e,i,t)=>i.has(e)||G("Cannot "+t);var l=(e,i,t)=>(N(e,i,"read from private field"),t?t.call(e):i.get(e)),d=(e,i,t)=>i.has(e)?G("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,t),n=(e,i,t,s)=>(N(e,i,"write to private field"),s?s.call(e,t):i.set(e,t),t),V=(e,i,t)=>(N(e,i,"access private method"),t);import{b as ot}from"./posthog-js-CH4xgAFf.js";import"./core-js-D27xPy6y.js";const rt="https://open.spotify.com",at=/open\.spotify\.com\/(\w+)\/(\w+)/i,lt="https://open.spotify.com/embed-podcast/iframe-api/v1",ut="SpotifyIframeApi",ct="onSpotifyIframeApiReady";function Y(e,i={}){const t={src:tt(e,i),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return"\n    <style>\n      :host {\n        display: inline-block;\n        min-width: 160px;\n        min-height: 80px;\n        position: relative;\n      }\n      iframe {\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n        overflow: hidden;\n      }\n      :host(:not([controls])) {\n        display: none !important;\n      }\n    </style>\n    <iframe".concat(ht(t),"></iframe>\n  ")}function tt(e,i){var t,s,r;if(!e.src)return;const c=e.src.match(at),E=c&&c[1],g=c&&c[2],A={t:(t=i.config)==null?void 0:t.startAt,theme:((s=i.config)==null?void 0:s.theme)==="dark"?"0":null},u=(r=i.config)!=null&&r.preferVideo?"/video":"";return"".concat(rt,"/embed/").concat(E,"/").concat(g).concat(u,"?").concat(dt(A))}var Z,L,S,C,f,p,m,v,_,P,H,O,et;class R extends((Z=globalThis.HTMLElement)!=null?Z:class{}){constructor(){super();d(this,O);k(this,"loadComplete",new K);d(this,L);d(this,S);d(this,C);d(this,f,!1);d(this,p,!1);d(this,m,!0);d(this,v,0);d(this,_,NaN);d(this,P,!1);d(this,H,null);V(this,O,et).call(this,"config")}async load(){var t,s,r;if(l(this,L))return;l(this,S)&&(this.loadComplete=new K),n(this,S,!0),await n(this,L,Promise.resolve()),n(this,L,null),n(this,f,!1),n(this,p,!1),n(this,v,0),n(this,_,NaN),n(this,P,!1),this.dispatchEvent(new Event("emptied"));let c=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const E={t:(t=this.config)==null?void 0:t.startAt,theme:((s=this.config)==null?void 0:s.theme)==="dark"?"0":null,preferVideo:(r=this.config)==null?void 0:r.preferVideo};if(l(this,C))this.api=c,this.api.iframeElement.src=tt(J(this.attributes),this);else{n(this,C,!0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=Y(J(this.attributes),this));let g=this.shadowRoot.querySelector("iframe");const A=await pt(lt,ut,ct);this.api=await new Promise(u=>A.createController(g,E,u)),this.api.iframeElement=g,this.api.addListener("ready",()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))}),this.api.addListener("playback_update",u=>{if(l(this,p)&&l(this,m)&&(u.data.isBuffering||!u.data.isPaused)){n(this,p,!1),this.currentTime=1;return}if(u.data.duration/1e3!==l(this,_)&&(n(this,p,!1),n(this,_,u.data.duration/1e3),this.dispatchEvent(new Event("durationchange"))),u.data.position/1e3!==l(this,v)&&(n(this,P,!1),n(this,p,!1),n(this,v,u.data.position/1e3),this.dispatchEvent(new Event("timeupdate"))),!l(this,f)&&!l(this,m)&&u.data.isPaused){n(this,m,!0),this.dispatchEvent(new Event("pause"));return}if(l(this,m)&&(u.data.isBuffering||!u.data.isPaused)){n(this,m,!1),this.dispatchEvent(new Event("play")),n(this,f,u.data.isBuffering),l(this,f)?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing"));return}if(l(this,f)&&!u.data.isPaused){n(this,f,!1),this.dispatchEvent(new Event("playing"));return}if(!this.paused&&!this.seeking&&!l(this,p)&&Math.ceil(this.currentTime)>=this.duration){if(n(this,p,!0),this.loop){this.currentTime=1;return}this.continuous||(this.pause(),this.dispatchEvent(new Event("ended")));return}})}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(t,s,r){if(s!==r)switch(t){case"src":{this.load();return}}}async play(){var t;return n(this,m,!1),n(this,f,!0),this.dispatchEvent(new Event("play")),await this.loadComplete,(t=this.api)==null?void 0:t.resume()}async pause(){var t;return await this.loadComplete,(t=this.api)==null?void 0:t.pause()}get config(){return l(this,H)}set config(t){n(this,H,t)}get paused(){var t;return(t=l(this,m))!=null?t:!0}get muted(){return!1}set muted(t){}get volume(){return 1}set volume(t){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return l(this,P)}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",!!t)}get currentTime(){return l(this,v)}set currentTime(t){if(this.currentTime==t)return;n(this,P,!0);let s=l(this,v);n(this,v,t),this.dispatchEvent(new Event("timeupdate")),n(this,v,s),this.loadComplete.then(()=>{var r;(r=this.api)==null||r.seek(t)})}get duration(){return l(this,_)}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src","".concat(t))}}L=new WeakMap,S=new WeakMap,C=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,_=new WeakMap,P=new WeakMap,H=new WeakMap,O=new WeakSet,et=function(t){if(Object.prototype.hasOwnProperty.call(this,t)){const s=this[t];delete this[t],this[t]=s}},k(R,"getTemplateHTML",Y),k(R,"shadowRootOptions",{mode:"open"}),k(R,"observedAttributes",["controls","loop","src"]);function ht(e){let i="";for(const t in e){const s=e[t];s===""?i+=" ".concat(t):i+=" ".concat(t,'="').concat(s,'"')}return i}function dt(e){return String(new URLSearchParams(ft(e)))}function ft(e){let i={};for(let t in e){let s=e[t];s===!0||s===""?i[t]=1:s===!1?i[t]=0:s!=null&&(i[t]=s)}return i}function J(e){let i={};for(let t of e)i[t.name]=t.value;return i}const j={};async function pt(e,i,t){return j[e]?j[e]:self[i]?Promise.resolve(self[i]):j[e]=new Promise(function(s,r){const c=document.createElement("script");c.src=e;const E=g=>s(g);self[t]=E,c.onload=()=>!1,c.onerror=r,document.head.append(c)})}class K extends Promise{constructor(i=()=>{}){let t,s;super((r,c)=>{i(r,c),t=r,s=c}),this.resolve=t,this.reject=s}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",R);var mt=R,vt=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),gt={className:"class",htmlFor:"for"};function it(e){return e.toLowerCase()}function Q(e){if(typeof e=="boolean")return e?"":void 0;if(typeof e!="function"&&!(typeof e=="object"&&e!==null))return e}function wt({react:e,tagName:i,elementClass:t,events:s,displayName:r,defaultProps:c,toAttributeName:E=it,toAttributeValue:g=Q}){const A=Number.parseInt(e.version)>=19,u=e.forwardRef((W,M)=>{var F,U,q;var x,z;const w=e.useRef(null),$=e.useRef(new Map),B={},D={},b={},I={};for(const[o,a]of Object.entries(W)){if(vt.has(o)){b[o]=a;continue}const h=E((F=gt[o])!=null?F:o);if(t.prototype&&o in t.prototype&&!(o in((U=(x=globalThis.HTMLElement)==null?void 0:x.prototype)!=null?U:{}))&&!((z=t.observedAttributes)!=null&&z.some(T=>T===h))){I[o]=a;continue}if(o.startsWith("on")){B[o]=a;continue}
1const y=g(a);if(h&&y!=null&&(D[h]=String(y),A||(b[h]=y)),h&&A){const T=Q(a);y!==T?b[h]=y:b[h]=a}}if(typeof window<"u"){for(const o in B){const a=B[o],h=o.endsWith("Capture"),y=((q=s==null?void 0:s[o])!=null?q:o.slice(2).toLowerCase()).slice(0,h?-7:void 0);e.useLayoutEffect(()=>{const T=w==null?void 0:w.current;if(!(!T||typeof a!="function"))return T.addEventListener(y,a,h),()=>{T.removeEventListener(y,a,h)}},[w==null?void 0:w.current,a])}e.useLayoutEffect(()=>{if(w.current===null)return;const o=new Map;for(const a in I)X(w.current,a,I[a]),$.current.delete(a),o.set(a,I[a]);for(const[a,h]of $.current)X(w.current,a,void 0);$.current=o})}if(typeof window>"u"&&(t!=null&&t.getTemplateHTML)&&(t!=null&&t.shadowRootOptions)){const{mode:o,delegatesFocus:a}=t.shadowRootOptions,h=e.createElement("template",{shadowrootmode:o,shadowrootdelegatesfocus:a,dangerouslySetInnerHTML:{__html:t.getTemplateHTML(D,W)}});b.children=[h,b.children]}return e.createElement(i,{...c,...b,ref:e.useCallback(o=>{w.current=o,typeof M=="function"?M(o):M!==null&&(M.current=o)},[M])})});return u.displayName=r!=null?r:t.name,u}function X(e,i,t){var r;var s;e[i]=t,t==null&&i in((r=(s=globalThis.HTMLElement)==null?void 0:s.prototype)!=null?r:{})&&e.removeAttribute(i)}var Tt=wt({react:ot,tagName:"spotify-audio",elementClass:mt,toAttributeName(e){return e==="muted"?"":e==="defaultMuted"?"muted":it(e)}});/*! Bundled license information:
2
3ce-la-react/dist/ce-la-react.js:
4  (**
5   * @license
6   * Copyright 2018 Google LLC
7   * SPDX-License-Identifier: BSD-3-Clause
8   *
9   * Modified version of `@lit/react` for vanilla custom elements with support for SSR.
10   *)
11*/export{Tt as default};
12//# sourceMappingURL=react-Dmg4DtJv.js.map

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.