/*! For license information please see widget.js.LICENSE.txt */ (()=>{var e={16709:(e,t,n)=>{"use strict";n.d(t,{ix:()=>b,cY:()=>w,C4:()=>S,oy:()=>k,tO:()=>_,C1:()=>x,AI:()=>m,_n:()=>E,lH:()=>L,Q4:()=>O,xi:()=>N,jP:()=>a,WO:()=>P,r:()=>C,er:()=>T,nF:()=>y,Vz:()=>v,Iu:()=>u,zo:()=>i,YT:()=>o,XS:()=>c,xY:()=>f,kG:()=>s,mP:()=>g,mr:()=>d,EY:()=>p,k:()=>h});var r,l;const a=.5,o="#ffffffee",i=2,u=2,s=1e3/22,c=60,f=200,d=".disco-widget",p=.5,h=1e3,m="Related podcasts",g=parseInt("568px",10),v=500,y=650,b="https://api.headliner.link",w="/api/v1/b/receive",k=("".concat(b).concat(w),"/api/v1/widget/widget-request"),S=("".concat(b).concat(k),"".concat(b).concat("/api/v1/widget/campaign-preview-request"),"/api/v1/widget/segment-flag"),E=("".concat(b).concat(S),"production"),x=null!==(r="https://disco.headliner.link/artifacts/web/6.9.0-159/")&&r.endsWith("/")?"https://disco.headliner.link/artifacts/web/6.9.0-159/":"".concat("https://disco.headliner.link/artifacts/web/6.9.0-159/","/"),_=["localhost",new URL("https://disco.headliner.link/artifacts/web/6.9.0-159").hostname,...null!==(l=null===""?void 0:"".split(",").map((e=>e.trim())))&&void 0!==l?l:[]].filter(Boolean),C=3600,N=15e3,P="https://www.headliner.app/docs/privacy-policy.html",T="https://www.headliner.app/docs/terms-of-service.html",L="https://www.headliner.app",O="https://www.headliner.app/publisher-widgets/"},27959:(e,t,n)=>{"use strict";n.d(t,{$E:()=>f,Bc:()=>d,Ed:()=>p,aW:()=>c,GE:()=>h,zE:()=>s,hr:()=>u,U4:()=>i});var r=n(16709),l=n(90115);const a=e=>{const t=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const n=document.querySelector(l.ii[t]);if(n){const r=n.getAttribute("content");r&&(e[l.LH[t]]=r)}return e}),{})}(...Object.values(l.P7)),n=function(e){if(!e||!(e instanceof HTMLElement))return{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{const r=e.dataset[n];return t[n]=r,t}),{})}(e,...Object.values(l.ld));return{url:window.location.href,...t,...n}};var o=n(9370);function i(){return void 0!==r.tO.find((e=>e===window.location.hostname))}function u(){return window.location!==window.parent.location}function s(){return"1"===o.parse(window.location.hash).amp}function c(e,t){if(!e||!t)return;if(Array.from(t.querySelectorAll("link")).find((t=>t.href===e)))return;const n=document.createElement("link");n.rel="stylesheet",n.href=e,t.appendChild(n)}function f(e){if(e instanceof HTMLElement)return[e];const t=e||r.mr;return t?Array.from(document.querySelectorAll(t)):void 0}async function d(e,t){if("production"===r._n&&!i()&&!u())return{...a(e),...t};const[l,o]=await Promise.all([n.e(7452).then(n.bind(n,97452)),n.e(4587).then(n.bind(n,64587))]).then((e=>{let[t,n]=e;return[t.default,n.default]})),s=a(e),c=l(e),f=o(e);return u()&&i()?{...f,...c,...t}:{...f,...s,...c,...t}}function p(e){var t,n,r,l;const a=null===(t=window)||void 0===t||null===(n=t.disco)||void 0===n?void 0:n._installedStyles,o=null===(r=window)||void 0===r||null===(l=r.disco)||void 0===l?void 0:l._addStyleElement;a&&0!==a.length&&o&&a.forEach((t=>{o(t,e)}))}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr";i()&&document.dir!==t&&(document.dir=t),e.dir=t}},90115:(e,t,n)=>{"use strict";n.d(t,{LH:()=>o,P7:()=>l,ii:()=>a,ld:()=>r,ne:()=>i});let r=function(e){return e.VARIANT_ID="variantId",e.WIDGET_ID="widgetId",e}({}),l=function(e){return e.URL="URL",e.TITLE="TITLE",e}({}),a=function(e){return e.URL='meta[property="og:url"]',e.TITLE='meta[property="og:title"]',e}({});const o={[l.URL]:"url",[l.TITLE]:"title"},i=["direction","title","url","variantId","widgetId"]},94377:(e,t,n)=>{var r=n(80547),l=n(25848),a=n(29863),o=0,i=4,u=36,s=Math.pow(u,i);function c(){return l((a()*s|0).toString(u),i)}function f(){return o=o=7&&t<=10},d.fingerprint=r,e.exports=d},80547:(e,t,n)=>{var r=n(25848),l="object"===typeof window?window:self,a=Object.keys(l).length,o=r(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+a.toString(36),4);e.exports=function(){return o}},29863:e=>{var t,n="undefined"!==typeof window&&(window.crypto||window.msCrypto)||"undefined"!==typeof self&&self.crypto;if(n){var r=Math.pow(2,32)-1;t=function(){return Math.abs(n.getRandomValues(new Uint32Array(1))[0]/r)}}else t=Math.random;e.exports=t},25848:e=>{e.exports=function(e,t){var n="000000000"+e;return n.substr(n.length-t)}},95707:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp(t,"gi"),r=new RegExp("("+t+")+","gi");function l(e,t){try{return decodeURIComponent(e.join(""))}catch(a){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],l(n),l(r))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(n),r=1;r{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),l=Array.isArray(t),a=0;a{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(l){return!1}}()?Object.assign:function(e,l){for(var a,o,i=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u{"use strict";const r=n(67491),l=n(95707),a=n(71289),o=n(10038);function i(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e,t){return t.decode?l(e):e}function c(e){return Array.isArray(e)?e.sort():"object"===typeof e?c(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){i((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const l="string"===typeof n&&n.includes(e.arrayFormatSeparator),a="string"===typeof n&&!l&&s(n,e).includes(e.arrayFormatSeparator);n=a?s(n,e):n;const o=l||a?n.split(e.arrayFormatSeparator).map((t=>s(t,e))):null===n?n:s(n,e);r[t]=o};case"bracket-separator":return(t,n,r)=>{const l=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!l)return void(r[t]=n?s(n,e):n);const a=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>s(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],a):r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const l of e.split("&")){if(""===l)continue;let[e,o]=a(t.decode?l.replace(/\+/g," "):l,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:s(o,t),n(s(e,t),o,r)}for(const l of Object.keys(r)){const e=r[l];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=p(e[n],t);else r[l]=p(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=c(n):e[t]=n,e}),Object.create(null))}t.extract=d,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";i((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const l=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[",l,"]"].join("")]:[...n,[u(t,e),"[",u(l,e),"]=",u(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[]"].join("")]:[...n,[u(t,e),"[]=",u(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,l)=>void 0===l||e.skipNull&&null===l||e.skipEmptyString&&""===l?r:(l=null===l?"":l,0===r.length?[[u(n,e),t,u(l,e)].join("")]:[[r,u(l,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,u(t,e)]:[...n,[u(t,e),"=",u(r,e)].join("")]}}(t),l={};for(const o of Object.keys(e))n(o)||(l[o]=e[o]);const a=Object.keys(l);return!1!==t.sort&&a.sort(t.sort),a.map((n=>{const l=e[n];return void 0===l?"":null===l?u(n,t):Array.isArray(l)?0===l.length&&"bracket-separator"===t.arrayFormat?u(n,t)+"[]":l.reduce(r(n),[]).join("&"):u(n,t)+"="+u(l,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=a(e,"#");return Object.assign({url:n.split("?")[0]||"",query:h(d(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:s(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=f(e.url).split("?")[0]||"",l=t.extract(e.url),a=t.parse(l,{sort:!1}),o=Object.assign(a,e.query);let i=t.stringify(o,n);i&&(i="?".concat(i));let s=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(s="#".concat(u(e.fragmentIdentifier,n))),"".concat(r).concat(i).concat(s)},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);const{url:l,query:a,fragmentIdentifier:i}=t.parseUrl(e,r);return t.stringifyUrl({url:l,query:o(a,n),fragmentIdentifier:i},r)},t.exclude=(e,n,r)=>{const l=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,l,r)}},82730:(e,t,n)=>{"use strict";var r=n(65043),l=n(42123),a=n(78853);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n