1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{272:(e,t,r)=>{"use strict";r.d(t,{g:()=>n,l:()=>i});let n={START_TODAY_APP:"st-app"},i=[n.START_TODAY_APP]},1642:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let n=r(14232).createContext({layoutIndex:0,layoutType:"fullWidth",vertical:null,pageRoute:"/",path:"/",isFirstRail:!1,isRailLayout:!1,leadPackageType:null,curationAutofill:null,adsDisabled:!1,nonPackageAdsDisabled:!1,isFirstLayoutWithPackages:!1,isFluidWidthPage:!1,pageType:"",frontId:null,canonicalUrl:null})},1658:(e,t,r)=>{"use strict";r.d(t,{L:()=>iW});var n,i,a,s,o,u,l,c,d,f,p,h,m,g,y,v,_,b,w,E,S,T,A,O,C,k,I,x,N={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},L=console,R={};Object.keys(N).forEach(function(e){R[e]=L[e]});var P="Datadog Browser SDK:",D={debug:R.debug.bind(L,P),log:R.log.bind(L,P),info:R.info.bind(L,P),warn:R.warn.bind(L,P),error:R.error.bind(L,P)},M="https://docs.datadoghq.com",U="".concat(M,"/real_user_monitoring/browser/troubleshooting"),j="More details:";function $(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return e.apply(void 0,r)}catch(e){D.error(t,e)}}}var Z=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},V=!1;function B(e){V=e}function F(e){return function(){return z(e,this,arguments)}}function z(e,t,r){try{return e.apply(t,r)}catch(e){if(H(e),u)try{u(e)}catch(e){H(e)}}}function H(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];V&&D.error.apply(D,Z(["[MONITOR]"],e,!1))}function Y(e,t){return -1!==e.indexOf(t)}function G(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach(function(e){return t.push(e)});else for(var r=0;r<e.length;r++)t.push(e[r]);return t}function W(e,t){for(var r=0;r<e.length;r+=1){var n=e[r];if(t(n,r))return n}}function q(e){return Object.keys(e).map(function(t){return e[t]})}function K(e){return Object.keys(e).map(function(t){return[t,e[t]]})}function J(e,t){return e.slice(0,t.length)===t}function X(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}),e}function Q(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}var ee=/[^\u0000-\u007F]/;function et(e){return ee.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function er(e,t){var r,n=Q();return n.Zone&&"function"==typeof n.Zone.__symbol__&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}function en(e,t){return er(Q(),"setTimeout")(F(e),t)}function ei(e){er(Q(),"clearTimeout")(e)}function ea(e,t){return er(Q(),"setInterval")(F(e),t)}function es(e){er(Q(),"clearInterval")(e)}function eo(e,t,r){var n,i,a=!r||void 0===r.leading||r.leading,s=!r||void 0===r.trailing||r.trailing,o=!1;return{throttled:function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];if(o){n=r;return}a?e.apply(void 0,r):n=r,o=!0,i=en(function(){s&&n&&e.apply(void 0,n),o=!1,n=void 0},t)},cancel:function(){ei(i),o=!1,n=void 0}}}function eu(){}function el(e,t,r){if("object"!=typeof e||null===e)return JSON.stringify(e);var n=ec(Object.prototype),i=ec(Array.prototype),a=ec(Object.getPrototypeOf(e)),s=ec(e);try{return JSON.stringify(e,t,r)}catch(e){return"<error: unable to serialize object>"}finally{n(),i(),a(),s()}}function ec(e){var t=e.toJSON;return t?(delete e.toJSON,function(){e.toJSON=t}):eu}function ed(e){return X({},e)}function ef(e,t){return Object.keys(e).some(function(r){return e[r]===t})}function ep(e){return 0===Object.keys(e).length}function eh(e){var t=0,r=eo(function(r){t=et(el(r)),e()},200),n=r.throttled,i=r.cancel,a=function(){i(),t=0};return{updateCustomerData:function(e){ep(e)?a():n(e)},resetCustomerData:a,getBytesCount:function(){return t},stop:function(){i()}}}function em(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function eg(e,t,r){if(void 0===r&&(r=function(){if("u">typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var r=e.has(t);return r||e.add(t),r}}}var t=[];return{hasAlreadyBeenSeen:function(e){var r=t.indexOf(e)>=0;return r||t.push(e),r}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var n=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,n)}if(!r.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],a=0;a<t.length;++a)i[a]=eg(i[a],t[a],r);return i}var s="object"===em(e)?e:{};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(s[o]=eg(s[o],t[o],r));return s}}function ey(e){return eg(void 0,e)}function ev(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n];
1null!=i&&(e=eg(e,i))}return e}function e_(e,t){void 0===t&&(t=225280);var r=ec(Object.prototype),n=ec(Array.prototype),i=[],a=new WeakMap,s=eb(e,"$",void 0,i,a),o=JSON.stringify(s),u=o?o.length:0;if(u>t)return void ew(t,"discarded",e);for(;i.length>0&&u<t;){var l=i.shift(),c=0;if(Array.isArray(l.source))for(var d=0;d<l.source.length;d++){var f=eb(l.source[d],l.path,d,i,a);if(void 0!==f?u+=JSON.stringify(f).length:u+=4,u+=c,c=1,u>t){ew(t,"truncated",e);break}l.target[d]=f}else for(var d in l.source)if(Object.prototype.hasOwnProperty.call(l.source,d)){var f=eb(l.source[d],l.path,d,i,a);if(void 0!==f&&(u+=JSON.stringify(f).length+c+d.length+3,c=1),u>t){ew(t,"truncated",e);break}l.target[d]=f}}return r(),n(),s}function eb(e,t,r,n,i){var a,s=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!s||"object"!=typeof s){return"bigint"==typeof(a=s)?"[BigInt] ".concat(a.toString()):"function"==typeof a?"[Function] ".concat(a.name||"unknown"):"symbol"==typeof a?"[Symbol] ".concat(a.description||a.toString()):a}var o=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(s);if("[Object]"!==o&&"[Array]"!==o&&"[Error]"!==o)return o;if(i.has(e))return"[Reference seen at ".concat(i.get(e),"]");var u=void 0!==r?"".concat(t,".").concat(r):t,l=Array.isArray(s)?[]:{};return i.set(e,u),n.push({source:s,target:l,path:u}),l}function ew(e,t,r){D.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),r)}var eE=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function eS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new eE(function(t){var r=e.map(function(e){return e.subscribe(function(e){return t.notify(e)})});return function(){return r.forEach(function(e){return e.unsubscribe()})}})}function eT(e){var t={},r=new eE,n={getContext:function(){return ey(t)},setContext:function(i){"object"===em(i)?(t=e_(i),e&&e.updateCustomerData(t)):n.clearContext(),r.notify()},setContextProperty:function(n,i){t[n]=e_(i),e&&e.updateCustomerData(t),r.notify()},removeContextProperty:function(n){delete t[n],e&&e.updateCustomerData(t),r.notify()},clearContext:function(){t={},e&&e.resetCustomerData(),r.notify()},changeObservable:r};return n}var eA={GRANTED:"granted",NOT_GRANTED:"not-granted"};function eO(e,t,r,n,i){return eC(e,t,[r],n,i)}function eC(e,t,r,n,i){var a=void 0===i?{}:i,s=a.once,o=a.capture,u=a.passive,l=F(function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(s&&f(),n(t))}),c=u?{capture:o,passive:u}:o,d=er(t,"addEventListener");function f(){var e=er(t,"removeEventListener");r.forEach(function(r){return e.call(t,r,l,c)})}return r.forEach(function(e){return d.call(t,e,l,c)}),{stop:f}}var ek=[];function eI(e,t,r,n){var i,a,s=(i=r,a=n,"".concat("_dd_c","_").concat(i,"_").concat(a));function o(){var e=localStorage.getItem(s);return null!==e?JSON.parse(e):{}}ek.push(eO(e,window,"storage",function(e){s===e.key&&t.setContext(o())})),t.changeObservable.subscribe(function(){localStorage.setItem(s,JSON.stringify(t.getContext()))}),t.setContext(ev(o(),t.getContext()))}function ex(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(r,n){var i=et(r);t+=i,e+=r,n&&n(i)},finish:function(e){e(this.finishSync())},finishSync:function(){var r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount:function(e){return e.length}}}function eN(e){var t=[],r=eZ(e,"stack"),n=String(e);return r&&J(r,n)&&(r=r.slice(n.length)),r&&r.split("\n").forEach(function(e){var r=function(e){var t=eP.exec(e);if(t){var r=t[2]&&0===t[2].indexOf("native"),n=t[2]&&0===t[2].indexOf("eval"),i=eD.exec(t[2]);return n&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}}(e)||function(e){var t=eM.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:"?",line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=eU.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){var t=ej.exec(e);if(t){var r=t[3]&&t[3].indexOf(" > eval")>-1,n=e$.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}}(e);
1r&&(!r.func&&r.line&&(r.func="?"),t.push(r))}),{message:eZ(e,"message"),name:eZ(e,"name"),stack:t}}var eL="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",eR="(?::(\\d+))",eP=RegExp("^\\s*at (.*?) ?\\(".concat(eL).concat(eR,"?").concat(eR,"?\\)?\\s*$"),"i"),eD=new RegExp("\\((\\S*)".concat(eR).concat(eR,"\\)")),eM=RegExp("^\\s*at ?".concat(eL).concat(eR,"?").concat(eR,"??\\s*$"),"i"),eU=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ej=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,e$=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function eZ(e,t){if("object"==typeof e&&e&&t in e){var r=e[t];return"string"==typeof r?r:void 0}}var eV=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function eB(){var e,t=Error();if(!t.stack)try{throw t}catch(e){}return z(function(){var r=eN(t);r.stack=r.stack.slice(2),e=eF(r)}),e}function eF(e){var t=ez(e);return e.stack.forEach(function(e){var r="?"===e.func?"<anonymous>":e.func,n=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",i=e.line?":".concat(e.line):"",a=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(r).concat(n," @ ").concat(e.url).concat(i).concat(a)}),t}function ez(e){return"".concat(e.name||"Error",": ").concat(e.message)}var eH="No stack, consider using an instance of Error";function eY(e){var t,r,n,i,a,s,o=e.stackTrace,u=e.originalError,l=e.handlingStack,c=e.startClocks,d=e.nonErrorPrefix,f=e.source,p=e.handling,h=u instanceof Error,m=(t=o,r=h,n=d,i=u,(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:r?"Empty message":"".concat(n," ").concat(el(e_(i)))),g=(a=h,void 0!==(s=o)&&(a||s.stack.length>0&&(s.stack.length>1||void 0!==s.stack[0].url)))?eF(o):eH,y=h?eW(u,f):void 0,v=o?o.name:void 0,_=eG(u);return{startClocks:c,source:f,handling:p,handlingStack:l,originalError:u,type:v,message:m,stack:g,causes:y,fingerprint:_}}function eG(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function eW(e,t){for(var r=e,n=[];(null==r?void 0:r.cause)instanceof Error&&n.length<10;){var i=eN(r.cause);n.push({message:r.cause.message,source:t,type:null==i?void 0:i.name,stack:i&&eF(i)}),r=r.cause}return n.length?n:void 0}(n=l||(l={})).WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",n.REMOTE_CONFIGURATION="remote_configuration",n.UPDATE_VIEW_NAME="update_view_name",n.LONG_ANIMATION_FRAME="long_animation_frame";var eq=new Set;function eK(e){return eq.has(e)}var eJ="datad0g.com",eX="datadoghq.com",eQ="pci.browser-intake-datadoghq.com";function e0(e){return 0!==e&&100*Math.random()<=e}function e1(e,t){return+e.toFixed(t)}function e2(e){return"number"==typeof e}var e5=31536e6;function e4(e){var t,r,n;return{relative:e,timeStamp:(t=e,(r=e6()-performance.now())>tt()?Math.round(function(e,t){return e+t}(r,t)):(n=t,Math.round(tt()+n)))}}function e3(e){return e2(e)?e1(1e6*e,0):e}function e6(){return new Date().getTime()}function e8(){return e6()}function e9(){return performance.now()}function e7(){return{relative:e9(),timeStamp:e8()}}function te(){return{relative:0,timeStamp:tt()}}function tt(){return void 0===c&&(c=performance.timing.navigationStart),c}function tr(e,t){var r=window.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}function tn(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null==(e=t.connection)?void 0:e.effectiveType}}function ti(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}function ta(){var e=[];return{add:function(t){e.push(t)>500&&e.splice(0,1)},remove:function(t){ti(e,t)},drain:function(t){e.forEach(function(e){return e(t)}),e.length=0}}}var ts="configuration",to="usage",tu=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],tl=["ddog-gov.com"],tc=ta(),td=function(e){tc.add(function(){return td(e)})};function tf(e,t){H(N.debug,e,t),td(X({type:"log",message:e,status:"debug"},t))}function tp(e,t){td(X({type:"log",status:"error"},function(e){if(e instanceof Error){var t,r=eN(e);return{error:{kind:r.name,stack:eF(((t=r).stack=t.stack.filter(function(e){return!e.url||tu.some(function(t){return J(e.url,t)})}),t))},message:r.message}}return{error:{stack:eH},message:"".concat("Uncaught"," ").concat(el(e))}}(e),t))}function th(e){td({type:to,usage:e})}function tm(e){var t=X({},e);return["id","name","email"].forEach(function(e){e in t&&(t[e]=String(t[e]))}),t}function tg(e,t){t.silentMultipleInit||D.error("".concat(e," is already initialized."))}function ty(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,ty)}var tv=/([\w-]+)\s*=\s*([^;]+)/g;function t_(e,t){for(tv.lastIndex=0;;){var r=tv.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function tb(e,t,r){void 0===r&&(r="");var n=e.charCodeAt(t-1),i=n>=55296&&n<=56319?t+1:t;return e.length<=i?e:"".concat(e.slice(0,i)).concat(r)}function tw(e,t,r){var n=e.vitalsByName,i=e.vitalsByReference;void 0===r&&(r={});var a={name:t,startClocks:e7(),context:r.context,description:r.description},s={__dd_vital_reference:!0};return n.set(t,a),i.set(s,a),s}function tE(e,t,r,n){var i,a,s,o,u,l,c=t.vitalsByName,d=t.vitalsByReference;void 0===n&&(n={});var f="string"==typeof r?c.get(r):d.get(r);f&&(e((i=f,a=f.startClocks,s=n,o=e7(),{name:i.name,type:"duration",startClocks:a,duration:(l=a.timeStamp,o.timeStamp-l),context:ev(i.context,s.context),description:null!=(u=s.description)?u:i.description})),"string"==typeof r?c.delete(r):d.delete(r))}function tS(){var e=Q().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null==(t=e.getCapabilities)?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null==(t=e.getPrivacyLevel)?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,r,n){e.send(JSON.stringify({eventType:t,event:r,view:n?{id:n}:void 0}))}}}function tT(e){var t=tS();return!!t&&Y(t.getCapabilities(),e)}function tA(e){void 0===e&&(e=null==(t=Q().location)?void 0:t.hostname);var t,r=tS();return!!r&&r.getAllowedWebViewHosts().some(function(t){var r,n;return e===t||(r=e,n=".".concat(t),r.slice(-n.length)===n)})}function tO(e,t,r,n){var i=(void 0===n?{}:n).computeHandlingStack,a=e[t];if("function"!=typeof a)if(!(t in e&&J(t,"on")))return{stop:eu};else a=eu;var s=!1,o=function(){if(s)return a.apply(this,arguments);var e,t=G(arguments);z(r,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:i?eB():void 0}]);var n=a.apply(this,t);return e&&z(e,null,[n]),n};return e[t]=o,{stop:function(){s=!0,e[t]===o&&(e[t]=a)}}}function tC(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t);if(!n||!n.set||!n.configurable)return{stop:eu};var i=function(e,t){en(function(){i!==eu&&r(e,t)},0)},a=function(e){n.set.call(this,e),i(this,e)};
1return Object.defineProperty(e,t,{set:a}),{stop:function(){var r;(null==(r=Object.getOwnPropertyDescriptor(e,t))?void 0:r.set)===a&&Object.defineProperty(e,t,n),i=eu}}}function tk(e){return tI(e,location.href).href}function tI(e,t){var r=function(){if(void 0===d)try{var e=new tx("http://test/path");d="http://test/path"===e.href}catch(e){d=!1}return d?tx:void 0}();if(r)try{return void 0!==t?new r(e,t):new r(e)}catch(r){throw Error("Failed to construct URL: ".concat(String(r)," ").concat(el({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw Error("Invalid URL: '".concat(e,"'"));var n=document,i=n.createElement("a");if(void 0!==t){var a=(n=document.implementation.createHTMLDocument("")).createElement("base");a.href=t,n.head.appendChild(a),n.body.appendChild(i)}return i.href=e,i}var tx=URL;function tN(){return f||(f=new eE(function(e){if(window.fetch)return tO(window,"fetch",function(t){var r,n,i,a,s,o,u,l,c,d,f;return r=t,n=e,i=r.parameters,a=r.onPostCall,s=r.handlingStack,o=i[0],void 0===(l=(u=i[1])&&u.method)&&o instanceof Request&&(l=o.method),c=void 0!==l?String(l).toUpperCase():"GET",d=o instanceof Request?o.url:tk(String(o)),f={state:"start",init:u,input:o,method:c,startClocks:e7(),url:d,handlingStack:s},void(n.notify(f),i[0]=f.input,i[1]=f.init,a(function(e){var t=n,r=e,i=f;function a(e){i.state="resolve",X(i,e),t.notify(i)}r.then(F(function(e){a({response:e,responseType:e.type,status:e.status,isAborted:!1})}),F(function(e){var t,r;a({status:0,isAborted:(null==(r=null==(t=i.init)?void 0:t.signal)?void 0:r.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}))}))},{computeHandlingStack:!0}).stop})),f}function tL(e,t,r,n){var i=new Date;i.setTime(i.getTime()+r);var a="expires=".concat(i.toUTCString()),s=n&&n.crossSite?"none":"strict",o=n&&n.domain?";domain=".concat(n.domain):"",u=n&&n.secure?";secure":"",l=n&&n.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(a,";path=/;samesite=").concat(s).concat(o).concat(u).concat(l)}function tR(e){return t_(document.cookie,e)}function tP(e){return p||(p=function(e){var t=new Map;for(tv.lastIndex=0;;){var r=tv.exec(e);if(r)t.set(r[1],r[2]);else break}return t}(document.cookie)),p.get(e)}function tD(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||tP("datadog-synthetics-injects-rum"))}function tM(){var e,t,r;return null!=m?m:(void 0===e&&(e=window),r=e.navigator.userAgent,m=e.chrome||/HeadlessChrome/.test(r)?1:(null==(t=e.navigator.vendor)?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?2:3*!e.document.documentMode)}var tU="_dd_s",tj=144e5,t$=9e5,tZ=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function tV(){return{isExpired:"1"}}function tB(e){var t;return void 0!==e.isExpired||!((void 0===(t=e).created||e6()-Number(t.created)<tj)&&(void 0===t.expire||e6()<Number(t.expire)))}function tF(e){e.expire=String(e6()+t$)}function tz(e){return K(e).map(function(e){var t=e[0],r=e[1];return"".concat(t,"=").concat(r)}).join("&")}function tH(e){var t,r={};return(t=e)&&(-1!==t.indexOf("&")||tZ.test(t))&&e.split("&").forEach(function(e){var t=tZ.exec(e);if(null!==t){var n=t[1],i=t[2];r[n]=i}}),r}function tY(){return tH(tR(tU))}function tG(e){localStorage.setItem(tU,tz(e))}function tW(){return tH(localStorage.getItem(tU))}function tq(){tG(tV())}var tK=[];function tJ(e,t,r){void 0===r&&(r=0);var n,i,a=t.isLockEnabled,s=t.persistSession,o=t.expireSession,u=function(e){return s(X({},e,{lock:i}))},l=function(){var e=t.retrieveSession(),r=e.lock;return e.lock&&delete e.lock,{session:e,lock:r}};if(g||(g=e),e!==g)return void tK.push(e);if(a&&r>=100)return void tQ(t);var c=l();if(a&&(c.lock||(i=ty(),u(c.session),(c=l()).lock!==i)))return void tX(e,t,r);var d=e.process(c.session);if(a&&(c=l()).lock!==i)return void tX(e,t,r);if(d&&(tB(d)?o():(tF(d),a?u(d):s(d))),a&&!(d&&tB(d))){if((c=l()).lock!==i)return void tX(e,t,r);s(c.session),d=c.session}null==(n=e.after)||n.call(e,d||c.session),tQ(t)}function tX(e,t,r){en(function(){tJ(e,t,r+1)},10)}function tQ(e){g=void 0;var t=tK.shift();t&&tJ(t,e)}function t0(e,t,r){var n=function(e,t){var r="/api/v2/".concat(t),n=e.proxy;if("string"==typeof n){var i=tk(n);return function(e){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(r,"?").concat(e)))}}if("function"==typeof n)return function(e){return n({path:r,parameters:e})};
1var a=function(e,t){var r=t.site,n=void 0===r?eX:r,i=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&n===eX)return eQ;if(i&&n===eX)return"".concat(i,".").concat(eX);if("dd0g-gov.com"===n)return"http-intake.logs.".concat(n);var a=n.split("."),s=a.pop();return"browser-intake-".concat(a.join("-"),".").concat(s)}(t,e);return function(e){return"https://".concat(a).concat(r,"?").concat(e)}}(e,t);return{build:function(i,a){var s,o,u,l,c,d,f,p,h,m,g;return n((s=e,o=t,u=r,l=i,c=a,d=s.clientToken,f=s.internalAnalyticsSubdomain,p=c.retry,h=c.encoding,m=["sdk_version:".concat("5.29.1"),"api:".concat(l)].concat(u),p&&m.push("retry_count:".concat(p.count),"retry_after:".concat(p.lastFailureStatus)),g=["ddsource=browser","ddtags=".concat(encodeURIComponent(m.join(","))),"dd-api-key=".concat(d),"dd-evp-origin-version=".concat(encodeURIComponent("5.29.1")),"dd-evp-origin=browser","dd-request-id=".concat(ty())],h&&g.push("dd-evp-encoding=".concat(h)),"rum"===o&&g.push("batch_time=".concat(e8())),f&&g.reverse(),g.join("&")))},urlPrefix:n(""),trackType:t}}function t1(e,t){var r,n=200-e.length-1;(t.length>n||(r=t,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(r)))&&D.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(j," ").concat(M,"/getting_started/tagging/#defining-tags"));var i=t.replace(/,/g,"_");return"".concat(e,":").concat(i)}var t2={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},t5={ALL:"all",SAMPLED:"sampled"};function t4(e,t){return null==e||"string"==typeof e||(D.error("".concat(t," must be defined as a string")),!1)}function t3(e,t){return void 0===e||!!(e2(e)&&e>=0&&e<=100)||(D.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1)}function t6(e){var t=em(e);return"string"===t||"function"===t||e instanceof RegExp}function t8(e,t,r){return void 0===r&&(r=!1),e.some(function(e){try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.test(t);if("string"==typeof e)return r?J(t,e):e===t}catch(e){D.error(e)}return!1})}function t9(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function t7(e,t,r,n){if(void 0!==re()&&r.findTrackedSession()){var i,a,s,o,u,l=W(e.allowedTracingUrls,function(e){return t8([e.match],t.url,!0)});!l||(t.traceSampled=!e2(e.traceSampleRate)||e0(e.traceSampleRate),(t.traceSampled||e.traceContextInjection===t5.ALL)&&(t.traceId=rt(),t.spanId=rt(),n((i=t.traceId,a=t.spanId,s=t.traceSampled,o=l.propagatorTypes,u={},o.forEach(function(e){switch(e){case"datadog":X(u,{"x-datadog-origin":"rum","x-datadog-parent-id":a.toDecimalString(),"x-datadog-sampling-priority":s?"1":"0","x-datadog-trace-id":i.toDecimalString()});break;case"tracecontext":X(u,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(a.toPaddedHexadecimalString(),"-0").concat(s?"1":"0")});break;case"b3":X(u,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(a.toPaddedHexadecimalString(),"-").concat(s?"1":"0")});break;case"b3multi":X(u,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":a.toPaddedHexadecimalString(),"X-B3-Sampled":s?"1":"0"})}}),u))))}}function re(){return window.crypto||window.msCrypto}function rt(){var e=new Uint8Array(8);function t(t){return 0x1000000*e[t]+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]}function r(e){var r=t(0),n=t(4),i="";do{var a=r%e*0x100000000+n;r=Math.floor(r/e),n=Math.floor(a/e),i=(a%e).toString(e)+i}while(r||n);return i}return re().getRandomValues(e),e[0]=127&e[0],{toDecimalString:function(){return r(10)},toPaddedHexadecimalString:function(){var e=r(16);return Array(17-e.length).join("0")+e}}}var rr=["tracecontext","datadog"];function rn(){D.error("Error fetching the remote configuration.")}var ri={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function ra(){var e,t=window;if(t.Zone&&(e=er(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){var r=er(new t.MutationObserver(eu),"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}var rs="agent";function ro(e,t,r){var n=0,i=!1;return{isLimitReached:function(){if(0===n&&en(function(){n=0},6e4),(n+=1)<=t||i)return i=!1,!1;if(n===t+1){i=!0;try{r({message:"Reached max number of ".concat(e,"s by minute: ").concat(t),source:rs,startClocks:e7()})}finally{i=!1}}return!0}}}function ru(e,t,r){for(var n=e,i=t.split("."),a=0;a<i.length;a+=1){var s=i[a];if(!rl(n))return;a!==i.length-1?n=n[s]:n[s]=r}}function rl(e){return"object"===em(e)}var rc={"view.name":"string","view.url":"string","view.referrer":"string"},rd={context:"object"},rf={service:"string",version:"string"},rp=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var r=this.callbacks[e];r&&r.forEach(function(e){return e(t)})},e.prototype.subscribe=function(e,t){var r=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){r.callbacks[e]=r.callbacks[e].filter(function(e){return t!==e})}}},e}(),rh=1/0;function rm(e){var t=e.expireDelay,r=e.maxEntries,n=[],i=ea(function(){for(var e=e9()-t;n.length>0&&n[n.length-1].endTime<e;)n.pop()},6e4);return{add:function(e,t){var i={value:e,startTime:t,endTime:rh,remove:function(){ti(n,i)},close:function(e){i.endTime=e}};return r&&n.length>=r&&n.pop(),n.unshift(i),i},find:function(e,t){void 0===e&&(e=rh),void 0===t&&(t={returnInactive:!1});for(var r=0,i=n;r<i.length;r++){var a=i[r];if(a.startTime<=e){if(t.returnInactive||e<=a.endTime)return a.value;break}}},closeActive:function(e){var t=n[0];t&&t.endTime===rh&&t.close(e)},findAll:function(e,t){void 0===e&&(e=rh),void 0===t&&(t=0);var r=e+t;return n.filter(function(t){return t.startTime<=r&&e<=t.endTime}).map(function(e){return e.value})},reset:function(){n=[]},stop:function(){es(i)}}}var rg=new WeakMap;function ry(e){var t=e.target,r=e.parameters,n=r[0],i=r[1];rg.set(t,{state:"open",method:String(n).toUpperCase(),url:tk(String(i))})}function rv(e){var t=e.target,r=rg.get(t);r&&(r.isAborted=!0)}var r_="initial_document",rb=[["document",function(e){return r_===e}],["xhr",function(e){return"xmlhttprequest"===e}],["fetch",function(e){return"fetch"===e}],["beacon",function(e){return"beacon"===e}],["css",function(e,t){return/\.css$/i.test(t)}],["js",function(e,t){return/\.js$/i.test(t)}],["image",function(e,t){return Y(["image","img","icon"],e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)}],["font",function(e,t){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)}],["media",function(e,t){return Y(["audio","video"],e)||null!==/\.(mp3|mp4)$/i.exec(t)}]];function rw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=1;r<e.length;r+=1)if(e[r-1]>e[r])return!1;return!0}function rE(e){return e.duration>=0}function rS(e){var t,r=rw(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=!((t=e).redirectEnd>t.startTime)||rw(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return r&&n}function rT(e,t,r){if(e<=t&&t<=r)return{duration:e3(r-t),start:e3(t-e)}}function rA(e,t){return t&&!e.isIntakeUrl(t)}var rO=/data:(.+)?(;base64)?,/g;function rC(e){if(e.length<=24e3);else if("data:"===e.substring(0,5))return e=e.substring(0,24e3),!0;return!1}function rk(e){return"".concat(e.match(rO)[0],"[...]")}var rI=1;function rx(){var e=rI;return rI+=1,e}function rN(e){return e2(e)&&e<0?void 0:e}
1function rL(e){var t=e.lifeCycle,r=e.isChildEvent,n=e.onChange,i=void 0===n?eu:n,a={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},s=t.subscribe(12,function(e){var t;if("view"!==e.type&&"vital"!==e.type&&r(e))switch(e.type){case"error":a.errorCount+=1,i();break;case"action":a.actionCount+=1,e.action.frustration&&(a.frustrationCount+=e.action.frustration.type.length),i();break;case"long_task":a.longTaskCount+=1,i();break;case"resource":(null==(t=e._dd)?void 0:t.discarded)||(a.resourceCount+=1,i())}});return{stop:function(){s.unsubscribe()},eventCounts:a}}function rR(e,t){return new eE(function(r){if(window.PerformanceObserver){var n,i,a,s=function(t){var n,i=(n=e,t.filter(function(e){var t,r;return t=n,(r=e).entryType!==_.RESOURCE||!!rA(t,r.name)&&!!rE(r)}));i.length>0&&r.notify(i)},o=!0,u=new PerformanceObserver(F(function(e){o?i=en(function(){return s(e.getEntries())}):s(e.getEntries())}));try{u.observe(t)}catch(e){if(Y([_.RESOURCE,_.NAVIGATION,_.LONG_TASK,_.PAINT],t.type)){t.buffered&&(i=en(function(){return s(performance.getEntriesByType(t.type))}));try{u.observe({entryTypes:[t.type]})}catch(e){return}}}return o=!1,n=e,!b&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(b=eO(n,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),rP(_.FIRST_INPUT)||t.type!==_.FIRST_INPUT||(a=function(e,t){var r=e6(),n=!1,i=eC(e,window,["click","mousedown","keydown","touchstart","pointerdown"],function(t){if(t.cancelable){var r,n,i={entryType:"first-input",processingStart:e9(),processingEnd:e9(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};"pointerdown"===t.type?(r=e,n=i,eC(r,window,["pointerup","pointercancel"],function(e){"pointerup"===e.type&&a(n)},{once:!0})):a(i)}},{passive:!0,capture:!0}).stop;return{stop:i};function a(e){if(!n){n=!0,i();var a=e.processingStart-e.startTime;a>=0&&a<e6()-r&&t(e)}}}(e,function(e){s([e])}).stop),function(){u.disconnect(),a&&a(),ei(i)}}})}function rP(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}(i=_||(_={})).EVENT="event",i.FIRST_INPUT="first-input",i.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",i.LAYOUT_SHIFT="layout-shift",i.LONG_TASK="longtask",i.LONG_ANIMATION_FRAME="long-animation-frame",i.NAVIGATION="navigation",i.PAINT="paint",i.RESOURCE="resource";function rD(e,t,r){var n,i=!1,a=en(F(function(){return l({hadActivity:!1})}),100),s=void 0!==r?en(F(function(){return l({hadActivity:!0,end:e8()})}),r):void 0,o=e.subscribe(function(e){var t=e.isBusy;ei(a),ei(n);var r=e8();t||(n=en(F(function(){return l({hadActivity:!0,end:r})}),100))}),u=function(){i=!0,ei(a),ei(n),ei(s),o.unsubscribe()};function l(e){i||(u(),t(e))}return{stop:u}}function rM(e,t,r){return new eE(function(n){var i,a=[],s=0;a.push(t.subscribe(u),rR(r,{type:_.RESOURCE}).subscribe(function(e){e.some(function(e){return!rU(r,e.name)})&&u()}),e.subscribe(6,function(e){rU(r,e.url)||(void 0===i&&(i=e.requestIndex),s+=1,u())}),e.subscribe(7,function(e){rU(r,e.url)||void 0===i||e.requestIndex<i||(s-=1,u())}));var o=tO(window,"open",u).stop;return function(){o(),a.forEach(function(e){return e.unsubscribe()})};function u(){n.notify({isBusy:s>0})}})}function rU(e,t){return t8(e.excludedActivityUrls,t)}function rj(e){return window.CSS&&window.CSS.escape?window.CSS.escape(e):e.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":"".concat(e.slice(0,-1),"\\").concat(e.charCodeAt(e.length-1).toString(16)," "):"\\".concat(e)})}function r$(e,t){return e.matches?e.matches(t):!!e.msMatchesSelector&&e.msMatchesSelector(t)}function rZ(e){if(e.parentElement)return e.parentElement;for(;e.parentNode;){if(e.parentNode.nodeType===Node.ELEMENT_NODE)return e.parentNode;e=e.parentNode}return null}var rV=function(){function e(e){var t=this;this.map=new WeakMap,e&&e.forEach(function(e){return t.map.set(e,1)})}return e.prototype.add=function(e){return this.map.set(e,1),this},e.prototype.delete=function(e){return this.map.delete(e)},e.prototype.has=function(e){return this.map.has(e)},e}();
1function rB(e){return e.nodeType===Node.TEXT_NODE}function rF(e){return e.nodeType===Node.ELEMENT_NODE}function rz(e){return rF(e)&&!!e.shadowRoot}function rH(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&rF(e.host)}function rY(e,t){for(var r=e.firstChild;r;)t(r),r=r.nextSibling;rz(e)&&t(e.shadowRoot)}function rG(e){return rH(e)?e.host:e.parentNode}var rW={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:t2.ALLOW,MASK:t2.MASK,MASK_USER_INPUT:t2.MASK_USER_INPUT},rq="data-dd-privacy",rK="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",rJ={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function rX(e,t,r){if(r&&r.has(e))return r.get(e);var n=rG(e),i=n?rX(n,t,r):t,a=rQ(r0(e),i);return r&&r.set(e,a),a}function rQ(e,t){switch(t){case rW.HIDDEN:case rW.IGNORE:return t}switch(e){case rW.ALLOW:case rW.MASK:case rW.MASK_USER_INPUT:case rW.HIDDEN:case rW.IGNORE:return e;default:return t}}function r0(e){if(rF(e)){if("BASE"===e.tagName)return rW.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return rW.MASK;var t=e.getAttribute("autocomplete");if(t&&0===t.indexOf("cc-"))return rW.MASK}if(r$(e,r4(rW.HIDDEN)))return rW.HIDDEN;if(r$(e,r4(rW.MASK)))return rW.MASK;if(r$(e,r4(rW.MASK_USER_INPUT)))return rW.MASK_USER_INPUT;if(r$(e,r4(rW.ALLOW)))return rW.ALLOW;if(function(e){if("SCRIPT"===e.nodeName)return!0;if("LINK"===e.nodeName){var t=i("rel");return/preload|prefetch/i.test(t)&&"script"===i("as")||"shortcut icon"===t||"icon"===t}if("META"===e.nodeName){var r=i("name"),t=i("rel"),n=i("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===t||"apple-touch-icon"===t||"shortcut icon"===t||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(n)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"b
1ingbot"===r||e.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(n)||/^product:/.test(n)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function i(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e))return rW.IGNORE}}function r1(e,t){switch(t){case rW.MASK:case rW.HIDDEN:case rW.IGNORE:return!0;case rW.MASK_USER_INPUT:return rB(e)?r2(e.parentNode):r2(e);default:return!1}}function r2(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!rJ[e.tagName]}function r5(e,t,r){var n,i=null==(n=e.parentElement)?void 0:n.tagName,a=e.textContent||"";if(!t||a.trim()){if("SCRIPT"===i)a="***";else if(r===rW.HIDDEN)a="***";else if(r1(e,r))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!a.trim())return}else a="OPTION"===i?"***":a.replace(/\S/g,"x");return a}}function r4(e){return"[".concat(rq,'="').concat(e,'"], .').concat("dd-privacy-").concat(e)}var r3="data-dd-action-name";function r6(e,t){if(void 0===E&&(E="closest"in HTMLElement.prototype),E)r=e.closest("[".concat(t,"]"));else for(var r,n=e;n;){if(n.hasAttribute(t)){r=n;break}n=rZ(n)}if(r)return nt(ne(r.getAttribute(t).trim()))}var r8=[function(e,t,r){if(void 0===w&&(w="labels"in HTMLInputElement.prototype),w){if("labels"in e&&e.labels&&e.labels.length>0)return nr(e.labels[0],t)}else if(e.id){var n=e.ownerDocument&&W(e.ownerDocument.querySelectorAll("label"),function(t){return t.htmlFor===e.id});return n&&nr(n,t,r)}},function(e){if("INPUT"===e.nodeName){var t=e.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return e.value}},function(e,t,r){if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return nr(e,t,r)},function(e){return e.getAttribute("aria-label")},function(e,t,r){var n=e.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map(function(t){var r,n;return r=e,n=t,r.ownerDocument?r.ownerDocument.getElementById(n):null}).filter(function(e){return!!e}).map(function(e){return nr(e,t,r)}).join(" ")},function(e){return e.getAttribute("alt")},function(e){return e.getAttribute("name")},function(e){return e.getAttribute("title")},function(e){return e.getAttribute("placeholder")},function(e,t){if("options"in e&&e.options.length>0)return nr(e.options[0],t)}],r9=[function(e,t,r){return nr(e,t,r)}];function r7(e,t,r,n){for(var i=e,a=0;a<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(var s=0;s<r.length;s++){var o=(0,r[s])(i,t,n);if("string"==typeof o){var u=o.trim();if(u)return nt(ne(u))}}if("FORM"===i.nodeName)break;i=rZ(i),a+=1}}function ne(e){return e.replace(/\s+/g," ")}function nt(e){return e.length>100?"".concat(tb(e,100)," [...]"):e}function nr(e,t,r){if(!e.isContentEditable){if("innerText"in e){var n=e.innerText,i=function(t){for(var r=e.querySelectorAll(t),i=0;i<r.length;i+=1){var a=r[i];if("innerText"in a){var s=a.innerText;s&&s.trim().length>0&&(n=n.replace(s,""))}}};return 0===tM()&&i("script, style"),i("[".concat(r3,"]")),t&&i("[".concat(t,"]")),r&&i("".concat(r4(rW.HIDDEN),", ").concat(r4(rW.MASK))),n}return e.textContent}}var nn=[r3,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],ni=[nu,function(e){if(e.id&&!no(e.id))return"#".concat(rj(e.id))}],na=[nu,function(e){if("BODY"!==e.tagName)for(var t=function(e){if(e.classList)return e.classList;var t=(e.getAttribute("class")||"").trim();return t?t.split(/\s+/):[]}(e),r=0;r<t.length;r+=1){var n=t[r];if(!no(n))return"".concat(rj(e.tagName),".").concat(rj(n))}},function(e){return rj(e.tagName)}];function ns(e,t){var r;if("isConnected"in(r=e)?r.isConnected:r.ownerDocument.documentElement.contains(r)){for(var n,i=e;i&&"HTML"!==i.nodeName;){var a=nl(i,ni,nc,t,n);if(a)return a;n=nl(i,na,nd,t,n)||nf(function(e){for(var t=rZ(e).firstElementChild,r=1;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return"".concat(rj(e.tagName),":nth-of-type(").concat(r,")")}(i),n),i=rZ(i)}return n}}function no(e){return/[0-9]/.test(e)}function nu(e,t){if(t){var r=i(t);
1if(r)return r}for(var n=0;n<nn.length;n++){var r=i(nn[n]);if(r)return r}function i(t){if(e.hasAttribute(t))return"".concat(rj(e.tagName),"[").concat(t,'="').concat(rj(e.getAttribute(t)),'"]')}}function nl(e,t,r,n,i){for(var a=0;a<t.length;a++){var s=(0,t[a])(e,n);if(s&&r(e,s,i))return nf(s,i)}}function nc(e,t,r){return 1===e.ownerDocument.querySelectorAll(nf(t,r)).length}function nd(e,t,r){if(void 0===r)n=function(e){return r$(e,t)};else{var n,i=!function(){if(void 0===S)try{document.querySelector(":scope"),S=!0}catch(e){S=!1}return S}()?nf(t,r):nf("".concat(t,":scope"),r);n=function(e){return null!==e.querySelector(i)}}for(var a=rZ(e).firstElementChild;a;){if(a!==e&&n(a))return!1;a=a.nextElementSibling}return!0}function nf(e,t){return t?"".concat(e,">").concat(t):e}function np(){var e=window.getSelection();return!e||e.isCollapsed}function nh(e){return e.target instanceof Element&&!1!==e.isPrimary}function nm(e){return!e.hasPageActivity&&!e.getUserActivity().input&&!e.getUserActivity().scroll&&!r$(e.event.target,'input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}var ng=new Map;function ny(e,t){ng.set(e,t),ng.forEach(function(e,t){e9()-t>1e4&&ng.delete(t)})}var nv=3e5;function n_(e,t){var r=nb(e)?{action:{id:e.id,loading_time:rN(e3(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position}}}:void 0,n=nb(e)?void 0:e.context,i=ev({action:{id:ty(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},r),a=nb(e)?{events:e.events}:{};return!nb(e)&&e.handlingStack&&(a.handlingStack=e.handlingStack),{customerContext:n,rawRumEvent:i,startTime:e.startClocks.relative,domainContext:a}}function nb(e){return"custom"!==e.type}var nw={},nE="csp_violation";function nS(e){return X({startClocks:e7(),source:"report",handling:"unhandled"},e)}
1function nT(e,t,r,n,i){return r?eF({name:e,message:t,stack:[{func:"?",url:r,line:null!=n?n:void 0,column:null!=i?i:void 0}]}):void 0}var nA=new rV;function nO(e){return e.startTime+e.duration}function nC(e,t,r){return document.readyState===t||"complete"===document.readyState?(r(),{stop:eu}):eO(e,window,"complete"===t?"load":"DOMContentLoaded",r,{once:!0})}var nk=12e4;function nI(e,t){var r=t&&Number(t);if(e&&r)return{traceId:e,traceTime:r}}function nx(e){if(e&&e.nodeType===Node.COMMENT_NODE){var t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function nN(){if(rP(_.NAVIGATION)){var e=performance.getEntriesByType(_.NAVIGATION)[0];if(e)return e}var t=function(){var e={},t=performance.timing;for(var r in t)if(e2(t[r])){var n=t[r];e[r]=0===n?0:n-tt()}return e}(),r=X({entryType:_.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return X({},r,{toJSON:void 0})}},t);return r}function nL(e,t){nC(e,"interactive",function(){var e=X(nN().toJSON(),{entryType:_.RESOURCE,initiatorType:r_,traceId:function(e){var t,r,n,i=(r=(t=e).querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),nI(r&&r.content,n&&n.content)||function(e){var t=function(e){for(var t=0;t<e.childNodes.length;t+=1){var r=nx(e.childNodes[t]);if(r)return r}if(e.body)for(var t=e.body.childNodes.length-1;t>=0;t-=1){var n=e.body.childNodes[t],r=nx(n);if(r)return r;if(!rB(n))break}}(e);if(t)return nI(t_(t,"trace-id"),t_(t,"trace-time"))}(e));if(!(!i||i.traceTime<=e6()-nk))return i.traceId}(document),toJSON:function(){return X({},e,{toJSON:void 0})}});t(e)})}function nR(e,t){var r=e4(e.startTime),n=function(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:rt().toDecimalString(),rule_psr:nD(t)}}}(e,t);if(t.trackResources||n){var i,a=function(e){var t,r=e.name;if(!function(e){try{return!!tI(e)}catch(e){return!1}}(r))return tf('Failed to construct URL for "'.concat(e.name,'"')),"other";for(var n="/"===(t=tI(r).pathname)[0]?t:"/".concat(t),i=0;i<rb.length;i++){var a=rb[i],s=a[0];if((0,a[1])(e.initiatorType,n))return s}return"other"}(e),s=nP(e),o=ev({date:r.timeStamp,resource:{id:ty(),type:a,url:e.name,status_code:0===(i=e.responseStatus)?void 0:i},type:"resource",_dd:{discarded:!t.trackResources}},n,s);return{startTime:r.relative,rawRumEvent:o,domainContext:{performanceEntry:e}}}}function nP(e){var t,r,n,i,a=e.renderBlockingStatus;return{resource:X({duration:(r=(t=e).duration,n=t.startTime,i=t.responseEnd,0===r&&n<i?e3(i-n):e3(r)),render_blocking_status:a},function(e){if(e.startTime<e.responseStart){var t=e.encodedBodySize,r=e.decodedBodySize;return{size:r,encoded_body_size:t,decoded_body_size:r,transfer_size:e.transferSize}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(e),function(e){if(rS(e)){var t=e.startTime,r=e.fetchStart,n=e.redirectStart,i=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,o=e.connectStart,u=e.secureConnectionStart,l=e.connectEnd,c=e.requestStart,d=e.responseStart,f={download:rT(t,d,e.responseEnd),first_byte:rT(t,c,d)};return r<l&&(f.connect=rT(t,o,l),o<=u&&u<=l&&(f.ssl=rT(t,u,l))),r<s&&(f.dns=rT(t,a,s)),t<i&&(f.redirect=rT(t,n,i)),f}}(e))}}function nD(e){return e2(e.traceSampleRate)?e.traceSampleRate/100:void 0}var nM=6e5,nU=6e5;function nj(e,t){var r,n;return void 0===t&&(t=window),"hidden"===document.visibilityState?r=0:(r=1/0,n=eC(e,t,["pagehide","visibilitychange"],function(e){("pagehide"===e.type||"hidden"===document.visibilityState)&&(r=e.timeStamp,n())},{capture:!0}).stop),{get timeStamp(){return r},stop:function(){null==n||n()}}}var n$=0,nZ=1/0,nV=0,nB=function(){return T?n$:window.performance.interactionCount||0},nF=6e4;function nz(){var e=window.visualViewport;return Math.round(e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function nH(){var e=window.visualViewport;return Math.round(e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function nY(e){var t;return A||(t=e,A=new eE(function(e){return eO(t,window,"resize",eo(function(){e.notify(nG())},200).throttled,{capture:!0,passive:!0}).stop})),A}
1function nG(){var e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var nW=3e5,nq=3e5;function nK(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}var nJ=[];function nX(e){return"2"===e||"1"===e}function nQ(e){var t=e.encoder,r=e.request,n=e.flushController,i=e.messageBytesLimit,a={},s=n.flushObservable.subscribe(function(e){return function(e){var n,i=q(a).join("\n");a={};var s=(n=e.reason,Y(q(ri),n)),o=s?r.sendOnExit:r.send;if(s&&t.isAsync){var u=t.finishSync();u.outputBytesCount&&o(n0(u));var l=[u.pendingData,i].filter(Boolean).join("\n");l&&o({data:l,bytesCount:et(l)})}else i&&t.write(t.isEmpty?i:"\n".concat(i)),t.finish(function(e){o(n0(e))})}(e)});function o(e,r){var s,o,u=el(e),l=t.estimateEncodedBytesCount(u);l>=i?D.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(j," ").concat(U,"/#technical-limitations")):(void 0!==r&&void 0!==a[r]&&(s=a[r],delete a[r],o=t.estimateEncodedBytesCount(s),n.notifyAfterRemoveMessage(o)),n.notifyBeforeAddMessage(l),void 0!==r?(a[r]=u,n.notifyAfterAddMessage()):t.write(t.isEmpty?u:"\n".concat(u),function(e){n.notifyAfterAddMessage(e-l)}))}return{flushController:n,add:o,upsert:o,stop:s.unsubscribe}}function n0(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var n1=3145728;function n2(e,t,r,n,i){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?n5(e,t,r,{onSuccess:function(){return n4(0,t,r,n,i)},onFailure:function(){t.queuedPayloads.enqueue(e),function e(t,r,n,i){2===t.transportStatus&&en(function(){n5(t.queuedPayloads.first(),t,r,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,n4(1,t,r,n,i)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,r,n,i)}})},t.currentBackoffTime)}(t,r,n,i)}}):t.queuedPayloads.enqueue(e)}function n5(e,t,r,n){var i=n.onSuccess,a=n.onFailure;t.bandwidthMonitor.add(e),r(e,function(r){var n;t.bandwidthMonitor.remove(e),"opaque"!==(n=r).type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||n.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:r.status},a()):(t.transportStatus=0,i())})}function n4(e,t,r,n,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(n," events size queued for upload: ").concat(n1/1048576,"MiB"),source:rs,startClocks:e7()}),t.queueFullReported=!0);var a=t.queuedPayloads;for(t.queuedPayloads=n3();a.size()>0;)n2(a.dequeue(),t,r,n,i)}function n3(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=n1}}}function n6(e,t,r,n){var i={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:n3(),queueFullReported:!1},a=function(n,i){var a,s,o,u,l;return a=e,s=t,o=r,u=n,l=i,void(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&u.bytesCount<o?fetch(s.build("fetch",u),{method:"POST",body:u.data,keepalive:!0,mode:"cors"}).then(F(function(e){return null==l?void 0:l({status:e.status,type:e.type})}),F(function(){n9(a,s.build("xhr",u),u.data,l)})):n9(a,s.build("xhr",u),u.data,l))};return{send:function(e){n2(e,i,a,t.trackType,n)},sendOnExit:function(n){!function(e,t,r,n){if(navigator.sendBeacon&&n.bytesCount<r)try{var i,a=t.build("beacon",n);if(navigator.sendBeacon(a,n.data))return}catch(e){i=e,n8||(n8=!0,tp(i))}n9(e,t.build("xhr",n),n.data)}(e,t,r,n)}}}var n8=!1;function n9(e,t,r,n){var i=new XMLHttpRequest;i.open("POST",t,!0),r instanceof Blob&&i.setRequestHeader("Content-Type",r.type),eO(e,i,"loadend",function(){null==n||n({status:i.status})},{once:!0}),i.send(r)}function n7(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}function ie(){0!==O.batchCount&&(tf("Customer data measures",O),ia())}function it(){return{min:1/0,max:0,sum:0}}function ir(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function ii(e,t){e.sum+=t.sum,e.min=Math.min(e.min,t.min),e.max=Math.max(e.max,t.max)}function ia(){O={batchCount:0,batchBytesCount:it(),batchMessagesCount:it(),globalContextBytes:it(),userContextBytes:it(),featureFlagBytes:it()}}function is(){k=!1,C={globalContextBytes:it(),userContextBytes:it(),featureFlagBytes:it()}}function io(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function iu(e,t){var r=t_(document.cookie,e),n=ea(function(){var n=t_(document.cookie,e);n!==r&&t(n)},1e3);return function(){es(n)}}var il="datadog-ci-visibility-test-execution-id";function ic(e){var t;return I||(I=new Map),I.has(e)?t=I.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},I.set(e,t),I.size>10&&function(){if(I)if(I.keys){var e=I.keys().next().value;e&&I.delete(e)}else{var t=!0;I.forEach(function(e,r){t&&(I.delete(r),t=!1)})}}()),t}var id=new WeakMap;function ip(e){return id.has(e)}function ih(e){return id.get(e)}function im(e,t){var r=e.tagName,n=e.value;if(r1(e,t)){var i=e.type;if("INPUT"===r&&("button"===i||"submit"===i||"reset"===i))return n;if(!n||"OPTION"===r)return;return"***"}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?n:void 0}var ig=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,iy=/^[A-Za-z]+:|^\/\//,iv=/^data:.*,/i,i_=/[^a-z1-6-_]/;function ib(e){var t=e.toLowerCase().trim();return i_.test(t)?"div":t}function iw(e,t){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(e,"' height='").concat(t,"' style='background-color:silver'%3E%3C/svg%3E")}function iE(e){if(void 0!==e&&0!==e.length)return e.map(function(e){return{cssRules:Array.from(e.cssRules||e.rules,function(e){return e.cssText}),disabled:e.disabled||void 0,media:e.media.length>0?Array.from(e.media):void 0}})}function iS(e,t,r,n){if(t===rW.HIDDEN)return null;var i=e.getAttribute(r);if(t===rW.MASK&&r!==rq&&!nn.includes(r)&&r!==n.actionNameAttribute){var a=e.tagName;switch(r){case"title":case"alt":case"placeholder":return"***"}
1if("IMG"===a&&("src"===r||"srcset"===r)){if(e.naturalWidth>0)return iw(e.naturalWidth,e.naturalHeight);var s=e.getBoundingClientRect(),o=s.width,u=s.height;return o>0||u>0?iw(o,u):rK}if("SOURCE"===a&&("src"===r||"srcset"===r))return rK;if("A"===a&&"href"===r||i&&J(r,"data-")||"IFRAME"===a&&"srcdoc"===r)return"***"}return i&&"string"==typeof i&&rC(i)?rk(i):i}function iT(e){var t,r,n;if(!e)return null;try{t=e.rules||e.cssRules}catch(e){}return t?(r=Array.from(t,2===tM()?iA:iO).join(""),n=e.href,r.replace(ig,function(e,t,r,i,a,s){var o=r||a||s;if(!n||!o||iy.test(o)||iv.test(o))return e;var u=t||i||"";return"url(".concat(u).concat(function(e,t){try{return tI(e,t).href}catch(t){return e}}(o,n)).concat(u,")")})):null}function iA(e){return"selectorText"in e&&e.selectorText.includes(":")?e.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):iO(e)}function iO(e){return"styleSheet"in e&&iT(e.styleSheet)||e.cssText}function iC(e,t){var r=function(e,t){switch(e.nodeType){case e.DOCUMENT_NODE:return{type:0,childNodes:iI(r=e,t),adoptedStyleSheets:iE(r.adoptedStyleSheets)};case e.DOCUMENT_FRAGMENT_NODE:return n=e,i=t,(a=rH(n))&&i.serializationContext.shadowRootsController.addShadowRoot(n),{type:11,childNodes:iI(n,i),isShadowRoot:a,adoptedStyleSheets:a?iE(n.adoptedStyleSheets):void 0};case e.DOCUMENT_TYPE_NODE:return{type:1,name:(s=e).name,publicId:s.publicId,systemId:s.systemId};case e.ELEMENT_NODE:return function(e,t){var r,n,i=ib(e.tagName),a="svg"===(r=e).tagName||r instanceof SVGElement||void 0,s=rQ(r0(e),t.parentNodePrivacyLevel);if(s===rW.HIDDEN){var o=e.getBoundingClientRect(),u=o.width,l=o.height;return{type:2,tagName:i,attributes:((n={rr_width:"".concat(u,"px"),rr_height:"".concat(l,"px")})[rq]="hidden",n),childNodes:[],isSVG:a}}if(s!==rW.IGNORE){var c=function(e,t,r){if(t===rW.HIDDEN)return{};for(var n,i,a,s={},o=ib(e.tagName),u=e.ownerDocument,l=0;l<e.attributes.length;l+=1){var c=e.attributes.item(l).name,d=iS(e,t,c,r.configuration);null!==d&&(s[c]=d)}if(e.value&&("textarea"===o||"select"===o||"option"===o||"input"===o)){var f=im(e,t);void 0!==f&&(s.value=f)}if("option"===o&&t===rW.ALLOW&&e.selected&&(s.selected=e.selected),"link"===o){var p=Array.from(u.styleSheets).find(function(t){return t.href===e.href}),h=iT(p);h&&p&&(s._cssText=h)}if("style"===o&&e.sheet){var h=iT(e.sheet);h&&(s._cssText=h)}"input"===o&&("radio"===e.type||"checkbox"===e.type)&&(t===rW.ALLOW?s.checked=!!e.checked:r1(e,t)&&delete s.checked),("audio"===o||"video"===o)&&(s.rr_mediaState=e.paused?"paused":"played");var m=r.serializationContext;switch(m.status){case 0:i=Math.round(e.scrollTop),a=Math.round(e.scrollLeft),(i||a)&&m.elementsScrollPositions.set(e,{scrollTop:i,scrollLeft:a});break;case 1:m.elementsScrollPositions.has(e)&&(i=(n=m.elementsScrollPositions.get(e)).scrollTop,a=n.scrollLeft)}return a&&(s.rr_scrollLeft=a),i&&(s.rr_scrollTop=i),s}(e,s,t),d=[];(e.childNodes.length>0||rz(e))&&"style"!==i&&(d=iI(e,t.parentNodePrivacyLevel===s&&t.ignoreWhiteSpace===("head"===i)?t:X({},t,{parentNodePrivacyLevel:s,ignoreWhiteSpace:"head"===i})));return{type:2,tagName:i,attributes:c,childNodes:d,isSVG:a}}}(e,t);case e.TEXT_NODE:var r,n,i,a,s,o=e,u=t,l=r5(o,u.ignoreWhiteSpace||!1,u.parentNodePrivacyLevel);if(void 0!==l)return{type:3,textContent:l};return;case e.CDATA_SECTION_NODE:return{type:4,textContent:""}}}(e,t);if(!r)return null;var n=ih(e)||ik++;return r.id=n,id.set(e,n),t.serializedNodeIds&&t.serializedNodeIds.add(n),r}var ik=1;function iI(e,t){var r=[];return rY(e,function(e){var n=iC(e,t);n&&r.push(n)}),r}function ix(e){return!!e.changedTouches}function iN(e){return!0===e.composed&&rz(e.target)?e.composedPath()[0]:e.target}var iL=function(e,t){var r=window.visualViewport,n={layoutViewportX:e,layoutViewportY:t,visualViewportX:e,visualViewportY:t};return r&&(Math.abs(r.pageTop-r.offsetTop-window.scrollY)>25||Math.abs(r.pageLeft-r.offsetLeft-window.scrollX)>25?(n.layoutViewportX=Math.round(e+r.offsetLeft),n.layoutViewportY=Math.round(t+r.offsetTop)):(n.visualViewportX=Math.round(e-r.offsetLeft),n.visualViewportY=Math.round(t-r.offsetTop))),n},iR=function(e){return{scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width}};function iP(e,t){return{data:X({source:e},t),type:3,timestamp:e8()}}function iD(e){var t=ix(e)?e.changedTouches[0]:e,r=t.clientX,n=t.clientY;
1if(window.visualViewport){var i=iL(r,n),a=i.visualViewportX,s=i.visualViewportY;r=a,n=s}if(!Number.isFinite(r)||!Number.isFinite(n)){e.isTrusted&&tf("mouse/touch event without x/y");return}return{x:r,y:n}}var iM=((x={}).pointerup=0,x.mousedown=1,x.click=2,x.contextmenu=3,x.dblclick=4,x.focus=5,x.blur=6,x.touchstart=7,x.touchend=9,x);function iU(e,t,r,n){void 0===n&&(n=document);var i=eo(function(n){var i=iN(n);if(i&&rX(i,e.defaultPrivacyLevel)!==rW.HIDDEN&&ip(i)){var a=ih(i),s=i===document?{scrollTop:nH(),scrollLeft:nz()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};r.set(i,s),t(iP(3,{id:a,x:s.scrollLeft,y:s.scrollTop}))}},100),a=i.throttled,s=i.cancel,o=eO(e,n,"scroll",a,{capture:!0,passive:!0}).stop;return{stop:function(){o(),s()}}}function ij(e){for(var t=[],r=e;r.parentRule;){var n=Array.from(r.parentRule.cssRules).indexOf(r);t.unshift(n),r=r.parentRule}if(r.parentStyleSheet){var i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);return t.unshift(i),t}}function i$(e,t,r){void 0===r&&(r=document);var n,i=e.defaultPrivacyLevel,a=new WeakMap,s=r!==document,o=eC(e,r,s?["change"]:["input","change"],function(e){var t=iN(e);(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&l(t)},{capture:!0,passive:!0}).stop;if(s)n=eu;else{var u=[tC(HTMLInputElement.prototype,"value",l),tC(HTMLInputElement.prototype,"checked",l),tC(HTMLSelectElement.prototype,"value",l),tC(HTMLTextAreaElement.prototype,"value",l),tC(HTMLSelectElement.prototype,"selectedIndex",l)];n=function(){u.forEach(function(e){return e.stop()})}}return{stop:function(){n(),o()}};function l(e){var t,r=rX(e,i);if(r!==rW.HIDDEN){var n,a=e.type;if("radio"===a||"checkbox"===a){if(r1(e,r))return;t={isChecked:e.checked}}else{var s=im(e,r);if(void 0===s)return;t={text:s}}c(e,t);var o=e.name;"radio"===a&&o&&e.checked&&(n=document.querySelectorAll('input[type="radio"][name="'.concat(rj(o),'"]')),Array.prototype.forEach.call(n,function(t){t!==e&&c(t,{isChecked:!1})}))}}function c(e,r){if(ip(e)){var n=a.get(e);n&&n.text===r.text&&n.isChecked===r.isChecked||(a.set(e,r),t(iP(5,X({id:ih(e)},r))))}}}function iZ(e,t,r,n){var i=ra();if(!i)return{stop:eu,flush:eu};var a=function(e){var t=eu,r=[];function n(){t(),e(r),r=[]}var i=eo(n,16,{leading:!1}),a=i.throttled,s=i.cancel;return{addMutations:function(e){0===r.length&&(t=function(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){var r=window.requestIdleCallback(F(e),t);return function(){return window.cancelIdleCallback(r)}}var n=window.requestAnimationFrame(F(e));return function(){return window.cancelAnimationFrame(n)}}(a,{timeout:100})),r.push.apply(r,e)},flush:n,stop:function(){t(),s()}}}(function(n){var i,a,o,u,l,c,d,f,p,h,m,g;i=n.concat(s.takeRecords()),a=e,o=t,u=r,l=new Map,i.filter(function(e){return"childList"===e.type}).forEach(function(e){e.removedNodes.forEach(function(e){!function e(t,r){rz(t)&&r(t.shadowRoot),rY(t,function(t){return e(t,r)})}(e,u.removeShadowRoot)})}),f=(d=function(e,t,r,n){for(var i=new Set,a=new Map,s=function(e){e.addedNodes.forEach(function(e){i.add(e)}),e.removedNodes.forEach(function(t){i.has(t)||a.set(t,e.target),i.delete(t)})},o=0;o<e.length;o++)s(e[o]);var u=Array.from(i);u.sort(function(e,t){var r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_CONTAINS?1:r&Node.DOCUMENT_POSITION_FOLLOWING?1:r&Node.DOCUMENT_POSITION_PRECEDING?-1:0});for(var l=new Set,c=[],d=0;d<u.length;d++){var f=u[d];if(!y(f)){var p=rX(f.parentNode,t.defaultPrivacyLevel,n);if(p!==rW.HIDDEN&&p!==rW.IGNORE){var h=iC(f,{serializedNodeIds:l,parentNodePrivacyLevel:p,serializationContext:{status:2,shadowRootsController:r},configuration:t});if(h){var m=rG(f);c.push({nextId:function(e){for(var t=e.nextSibling;t;){if(ip(t))return ih(t);t=t.nextSibling}return null}(f),parentId:ih(m),node:h})}}}}var g=[];return a.forEach(function(e,t){ip(t)&&g.push({parentId:ih(e),id:ih(t)})}),{adds:c,removes:g,hasBeenSerialized:y};function y(e){return ip(e)&&l.has(ih(e))}}((c=i.filter(function(e){return e.target.isConnected&&function(e){for(var t=e;t;){if(!ip(t)&&!rH(t))return!1;t=rG(t)}return!0}(e.target)&&rX(e.target,o.defaultPrivacyLevel,l)!==rW.HIDDEN})).filter(function(e){return"childList"===e.type}),o,u,l)).adds,p=d.removes,h=d.hasBeenSerialized,m=function(e,t,r){for(var n,i=[],a=new Set,s=e.f
1ilter(function(e){return!a.has(e.target)&&(a.add(e.target),!0)}),o=0;o<s.length;o++){var u=s[o];if(u.target.textContent!==u.oldValue){var l=rX(rG(u.target),t.defaultPrivacyLevel,r);l!==rW.HIDDEN&&l!==rW.IGNORE&&i.push({id:ih(u.target),value:null!=(n=r5(u.target,!1,l))?n:null})}}return i}(c.filter(function(e){return"characterData"===e.type&&!h(e.target)}),o,l),g=function(e,t,r){for(var n=[],i=new Map,a=e.filter(function(e){var t=i.get(e.target);return!(t&&t.has(e.attributeName))&&(t?t.add(e.attributeName):i.set(e.target,new Set([e.attributeName])),!0)}),s=new Map,o=0;o<a.length;o++){var u=a[o];if(u.target.getAttribute(u.attributeName)!==u.oldValue){var l=rX(u.target,t.defaultPrivacyLevel,r),c=iS(u.target,l,u.attributeName,t),d=void 0;if("value"===u.attributeName){var f=im(u.target,l);if(void 0===f)continue;d=f}else d="string"==typeof c?c:null;var p=s.get(u.target);p||(p={id:ih(u.target),attributes:{}},n.push(p),s.set(u.target,p)),p.attributes[u.attributeName]=d}}return n}(c.filter(function(e){return"attributes"===e.type&&!h(e.target)}),o,l),(m.length||g.length||p.length||f.length)&&a(iP(0,{adds:f,removes:p,texts:m,attributes:g}))}),s=new i(F(a.addMutations));return s.observe(n,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){s.disconnect(),a.stop()},flush:function(){a.flush()}}}var iV=function(e,t,r){var n=new Map,i={addShadowRoot:function(a){if(!n.has(a)){var s=iZ(t,e,i,a),o=i$(e,t,a),u=iU(e,t,r,a);n.set(a,{flush:function(){return s.flush()},stop:function(){s.stop(),o.stop(),u.stop()}})}},removeShadowRoot:function(e){var t=n.get(e);t&&(t.stop(),n.delete(e))},stop:function(){n.forEach(function(e){return(0,e.stop)()})},flush:function(){n.forEach(function(e){return(0,e.flush)()})}};return i};function iB(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function iF(e,t,r){var n,i=0,a=[],s=0,o=[],u=eO(e,t,"message",function(e){var t=e.data;if("wrote"===t.type&&t.streamId===r){i+=t.additionalBytesCount,a.push(t.result),n=t.trailer;var s=o.shift();s&&s.id===t.id?s.writeCallback?s.writeCallback(t.result.byteLength):s.finishCallback&&s.finishCallback():(u(),tf("Worker responses received out of order."))}}).stop;function l(){var e=0===a.length?new Uint8Array(0):function(e){for(var t=new Uint8Array(e.reduce(function(e,t){return e+t.length},0)),r=0,n=0;n<e.length;n++){var i=e[n];t.set(i,r),r+=i.length}return t}(a.concat(n)),t={rawBytesCount:i,output:e,outputBytesCount:e.byteLength,encoding:"deflate"};return i=0,a=[],t}function c(){s>0&&(t.postMessage({action:"reset",streamId:r}),s=0)}return{isAsync:!0,get isEmpty(){return 0===s},write:function(e,n){t.postMessage({action:"write",id:s,data:e,streamId:r}),o.push({id:s,writeCallback:n,data:e}),s+=1},finish:function(e){c(),o.length?(o.forEach(function(e){delete e.writeCallback}),o[o.length-1].finishCallback=function(){return e(l())}):e(l())},finishSync:function(){c();var e=o.map(function(e){return delete e.writeCallback,delete e.finishCallback,e.data}).join("");return X(l(),{pendingData:e})},estimateEncodedBytesCount:function(e){return e.length/8},stop:function(){u()}}}function iz(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>
vendor: 4,441 bytes, line 1
1>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}
1(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]
1);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)}
1,Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.29.1"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var iH={status:0};function iY(e,t,r,n){switch(void 0===n&&(n=iz),0===iH.status&&function(e,t,r){void 0===r&&(r=iz);try{var n=r(e),i=eO(e,n,"error",function(r){iG(e,t,r)}).stop,a=eO(e,n,"message",function(r){var n,i=r.data;
1"errored"===i.type?iG(e,t,i.error,i.streamId):"initialized"===i.type&&(n=i.version,1===iH.status&&(iH={status:3,worker:iH.worker,stop:iH.stop,version:n}))}).stop;n.postMessage({action:"init"}),en(function(){var e;return e=t,void(1===iH.status&&(D.error("".concat(e," failed to start: a timeout occurred while initializing the Worker")),iH.initializationFailureCallbacks.forEach(function(e){return e()}),iH={status:2}))},3e4),iH={status:1,worker:n,stop:function(){i(),a()},initializationFailureCallbacks:[]}}catch(r){iG(e,t,r)}}(e,t,n),iH.status){case 1:return iH.initializationFailureCallbacks.push(r),iH.worker;case 3:return iH.worker}}function iG(e,t,r,n){if(1===iH.status||0===iH.status){var i;if(D.error("".concat(t," failed to start: an error occurred while creating the Worker:"),r),r instanceof Event||r instanceof Error&&(Y(i=r.message,"Content Security Policy")||Y(i,"requires 'TrustedScriptURL'"))){var a=void 0;a=e.workerUrl?"Please make sure the Worker URL ".concat(e.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",D.error("".concat(a," See documentation at ").concat(M,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else tp(r);1===iH.status&&iH.initializationFailureCallbacks.forEach(function(e){return e()}),iH={status:2}}else tp(r,{worker_version:3===iH.status&&iH.version,stream_id:n})}var iW=function(e,t,r){void 0===r&&(r={});var n,i,a,s=function(e){void 0===e&&(e=2);var t=new Map,r=!1;
1function n(n){if(void 0===n&&(n=0),!r&&0!==e){var i,a=2===e?3072:16384,s=n;t.forEach(function(e){s+=e.getBytesCount()}),s>a&&(i=a,D.warn("Customer data exceeds the recommended ".concat(i/1024,"KiB threshold. ").concat(j," ").concat(U,"/#customer-data-exceeds-the-recommended-threshold-warning")),r=!0)}}return{createDetachedTracker:function(){var e=eh(function(){return n(e.getBytesCount())});return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,eh(n)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,n())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(e){return e.stop()}),t.clear()}}}(0),o=eT(s.getOrCreateTracker(2)),u=eT(s.getOrCreateTracker(1)),c={tryToInit:function(e){n||(n=e)},update:function(e){n=e,i.notify()},isGranted:function(){return n===eA.GRANTED},observable:i=new eE},d={vitalsByName:new Map,vitalsByReference:new WeakMap};function f(){return{context:o.getContext(),user:u.getContext(),hasReplay:!!t.isRecording()||void 0}}var p=function(e,t,r,n,i){var a,s,o,u,c=e.ignoreInitIfSyntheticsWillInjectRum,d=e.startDeflateWorker,f=ta(),p=r.observable.subscribe(m);function m(){if(o&&u&&r.isGranted()){if(p.unsubscribe(),u.trackViewsManually){if(!a)return;f.remove(a.callback),e=a.options}var e,t=i(u,s,e);f.drain(t)}}function g(e){var t,n,i,a,l,c,f,p,g,y=tA();if(y&&(e=X({},t=e,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(n=t.defaultPrivacyLevel)?n:null==(i=tS())?void 0:i.getPrivacyLevel()})),o=e,f={session_sample_rate:(l=a=e).sessionSampleRate,telemetry_sample_rate:l.telemetrySampleRate,telemetry_configuration_sample_rate:l.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:l.telemetryUsageSampleRate,use_before_send:!!l.beforeSend,use_cross_site_session_cookie:l.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:l.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:l.useSecureSessionCookie,use_proxy:!!l.proxy,silent_multiple_init:l.silentMultipleInit,track_session_across_subdomains:l.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!l.allowFallbackToLocalStorage,store_contexts_across_pages:!!l.storeContextsAcrossPages,allow_untrusted_events:!!l.allowUntrustedEvents,tracking_consent:l.trackingConsent},g=X({session_replay_sample_rate:a.sessionReplaySampleRate,start_session_replay_recording_manually:a.startSessionReplayRecordingManually,trace_sample_rate:a.traceSampleRate,trace_context_injection:a.traceContextInjection,action_name_attribute:a.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(a.allowedTracingUrls)&&a.allowedTracingUrls.length>0,selected_tracing_propagators:(p=new Set,Array.isArray(a.allowedTracingUrls)&&a.allowedTracingUrls.length>0&&a.allowedTracingUrls.forEach(function(e){t6(e)?rr.forEach(function(e){return p.add(e)}):"object"===em(e)&&Array.isArray(e.propagatorTypes)&&e.propagatorTypes.forEach(function(e){return p.add(e)})}),G(p)),default_privacy_level:a.defaultPrivacyLevel,enable_privacy_for_action_name:a.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(a.excludedActivityUrls)&&a.excludedActivityUrls.length>0,use_worker_url:!!a.workerUrl,compress_intake_requests:a.compressIntakeRequests,track_views_manually:a.trackViewsManually,track_user_interactions:a.trackUserInteractions,track_resources:a.trackResources,track_long_task:a.trackLongTasks,plugins:null==(c=a.betaPlugins)?void 0:c.map(function(e){var t;return X({name:e.name},null==(t=e.getConfigurationTelemetry)?void 0:t.call(e))})},f),td({type:ts,configuration:g}),u)return void tg("DD_RUM",e);var v=function(e){if(!e.applicationId)return void D.error("Application ID is not configured, no RUM data will be collected.");if(t3(e.sessionReplaySampleRate,"Session Replay")&&t3(e.traceSampleRate,"Trace")){if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls))return void D.error("Excluded Activity Urls should be an array");var t,r,n=function(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls))return void D.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void D.error("Service needs to be configured when tracing is enabled");var t=[];
1return e.allowedTracingUrls.forEach(function(e){if(t6(e))t.push({match:e,propagatorTypes:rr});else"object"===em(e)&&t6(e.match)&&Array.isArray(e.propagatorTypes)?t.push(e):D.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}(e);if(n){var i=function(e){var t,r,n,i,a,s,o,u,l,c,d,f,p,m,g,y,v,_,b,w,E,S,T,A,O;if(!e||!e.clientToken)return void D.error("Client Token is not configured, we will not send any data.");if((!(s=e.site)||"string"!=typeof s||/(datadog|ddog|datad0g|dd0g)/.test(s)||(D.error("Site should be a valid Datadog site. ".concat(j," ").concat(M,"/getting_started/site/.")),0))&&t3(e.sessionSampleRate,"Session")&&t3(e.telemetrySampleRate,"Telemetry")&&t3(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&t3(e.telemetryUsageSampleRate,"Telemetry Usage")&&t4(e.version,"Version")&&t4(e.env,"Env")&&t4(e.service,"Service")){if(void 0!==e.trackingConsent&&!ef(eA,e.trackingConsent))return void D.error('Tracking Consent should be either "granted" or "not-granted"');return X({beforeSend:e.beforeSend&&$(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:(y=e,(w=!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(ty()),r="test";tL(t,r,6e4,e);var n=tR(t)===r;return tL(t,"",0,e),n}catch(e){return D.error(e),!1}}(((_={}).secure=!!(v=y).useSecureSessionCookie||!!v.usePartitionedCrossSiteSessionCookie||!!v.useCrossSiteSessionCookie,_.crossSite=!!v.usePartitionedCrossSiteSessionCookie||!!v.useCrossSiteSessionCookie,_.partitioned=!!v.usePartitionedCrossSiteSessionCookie,v.trackSessionAcrossSubdomains&&(_.domain=function(){if(void 0===h){for(var e="dd_site_test_".concat(ty()),t=window.location.hostname.split("."),r=t.pop();t.length&&!tR(e);)tL(e,"test",1e3,{domain:r="".concat(t.pop(),".").concat(r)});tL(e,"",0,{domain:r}),h=r}return h}()),b=_))?void 0:{type:"Cookie",cookieOptions:b}
1)||!y.allowFallbackToLocalStorage||(w=function(){try{var e=ty(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:"LocalStorage"}:void 0}catch(e){return}}()),w),sessionSampleRate:null!=(t=e.sessionSampleRate)?t:100,telemetrySampleRate:null!=(r=e.telemetrySampleRate)?r:20,telemetryConfigurationSampleRate:null!=(n=e.telemetryConfigurationSampleRate)?n:5,telemetryUsageSampleRate:null!=(i=e.telemetryUsageSampleRate)?i:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!=(a=e.trackingConsent)?a:eA.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(o=e.site||eX,u=e.env,l=e.service,c=e.version,d=e.datacenter,f=[],u&&f.push(t1("env",u)),l&&f.push(t1("service",l)),c&&f.push(t1("version",c)),d&&f.push(t1("datacenter",d)),p=f,T=m={logsEndpointBuilder:t0(E=e,"logs",S=p),rumEndpointBuilder:t0(E,"rum",S),sessionReplayEndpointBuilder:t0(E,"replay",S)},A=o,O=q(T).map(function(e){return e.urlPrefix}),A===eX&&O.push("https://".concat(eQ,"/")),X({isIntakeUrl:function(e){return g.some(function(t){return 0===e.indexOf(t)})},replica:function(e,t,r){if(e.replica){var n=X({},e,{site:eX,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:t0(n,"logs",r),rumEndpointBuilder:t0(n,"rum",r)};return t.push.apply(t,q(i).map(function(e){return e.urlPrefix})),X({applicationId:e.replica.applicationId},i)}}(e,g=O,p),site:o},m)))}}(e);if(i)return X({applicationId:e.applicationId,version:e.version||void 0,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:null!=(t=e.sessionReplaySampleRate)?t:0,startSessionReplayRecordingManually:!!e.startSessionReplayRecordingManually,traceSampleRate:e.traceSampleRate,allowedTracingUrls:n,excludedActivityUrls:null!=(r=e.excludedActivityUrls)?r:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!e.trackUserInteractions,trackViewsManually:!!e.trackViewsManually,trackResources:!!e.trackResources,trackLongTasks:!!e.trackLongTasks,subdomain:e.subdomain,defaultPrivacyLevel:ef(t2,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:t2.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:ef(t5,e.traceContextInjection)?e.traceContextInjection:t5.ALL,plugins:e.betaPlugins||[]},i)}}}(e);if(v){if(!y&&!v.sessionStoreStrategyType)return void D.warn("No storage available for session. We will not send any data.");if(v.compressIntakeRequests&&!y&&d&&!(s=d(v,"Datadog RUM",eu)))return;u=v,tN().subscribe(eu),r.tryToInit(v.trackingConsent),m()}}var y=function(e){f.add(function(t){return t.addDurationVital(e)})};return{init:function(e,t){var r,n,i,a;if(!e)return void D.error("Missing configuration");if(Array.isArray(r=e.enableExperimentalFeatures)&&r.filter(function(e){return ef(l,e)}).forEach(function(e){eq.add(e)}),o=e,!(c&&tD()))if(!function(e,t,r){if(e)for(var n=0;n<e.length;n++){var i=e[n][t];i&&i(r)}}(e.betaPlugins,"onInit",{initConfiguration:e,publicApi:t}),e.remoteConfigurationId&&eK(l.REMOTE_CONFIGURATION)){n=e,i=function(t){g(X({},e,t))},eO(n,a=new XMLHttpRequest,"load",function(){200===a.status?i(JSON.parse(a.responseText)):rn()}),eO(n,a,"error",function(){rn()}),a.open("GET","".concat("https://d3uc069fcn7uxw.cloudfront.net/configuration","/").concat(encodeURIComponent(n.remoteConfigurationId),".json")),a.send()}else g(e)},get initConfiguration(){return o},getInternalContext:eu,stopSession:eu,addTiming:function(e,t){void 0===t&&(t=e8()),f.add(function(r){return r.addTiming(e,t)})},startView:function(e,t){void 0===t&&(t=e7());var r=function(r){r.startView(e,t)};f.add(r),a||(a={options:e,callback:r},m())},updateViewName:function(e){f.add(function(t){return t.updateViewName(e)})},setViewContext:function(e){f.add(function(t){return t.setViewContext(e)})},setViewContextProperty:function(e,t){f.add(function(r){return r.setViewContextProperty(e,t)})},addAction:function(e,r){void 0===r&&(r=t()),f.add(function(t){return t.addAction(e,r)})},addError:function(e,r){void 0===r&&(r=t()),f.add(function(t){return t.addError(e,r)})},addFeatureFlagEvaluation:function(e,t){f.add(function(r){return r.addFeatureFlagEvaluation(e,t)})},startDurationVital:function(e,t){return tw(n,e,t)},stopDurationVital:function(e,t){tE(y,n,e,t)},addDurationVital:y}}(r,f,c,d,function(n,i,a){n.storeContextsAcrossPages&&(eI(n,o,"rum",2),eI(n,u,"rum",1)),s.setCompressionStatus(i?1:2);var l,h,m=e(n,t,s,f,a,i&&r.createDeflateEncoder?function(e){return r.createDeflateEncoder(n,i,e)}:ex,c,d);return t.onRumStart(m.lifeCycle,n,m.session,m.viewHistory,i),l=p,h=m,p=X({init:function(e){tg("DD_RUM",e)},initConfiguration:l.initConfiguration},h),m}),m=F(function(e){var t="object"==typeof e?e:{name:e};t.context&&s.getOrCreateTracker(3).updateCustomerData(t.context),p.startView(t),th({feature:"start-view"})}),g=(Object.defineProperty(a=X({version:"5.29.1",onReady:function(e){e()}},{init:F(function(e){p.init(e,g),eK(l.UPDATE_VIEW_NAME)&&(g.updateViewName=F(function(e){p.updateViewName(e)}))}),setTrackingConsent:F(function(e){c.update(e),th({feature:"set-tracking-consent",tracking_consent:e})}
1),setViewContext:F(function(e){p.setViewContext(e)}),setViewContextProperty:F(function(e,t){p.setViewContextProperty(e,t)}),setGlobalContext:F(function(e){o.setContext(e),th({feature:"set-global-context"})}),getGlobalContext:F(function(){return o.getContext()}),setGlobalContextProperty:F(function(e,t){o.setContextProperty(e,t),th({feature:"set-global-context"})}),removeGlobalContextProperty:F(function(e){return o.removeContextProperty(e)}),clearGlobalContext:F(function(){return o.clearContext()}),getInternalContext:F(function(e){return p.getInternalContext(e)}),getInitConfiguration:F(function(){return ey(p.initConfiguration)}),addAction:function(e,t){var r=eB();z(function(){p.addAction({name:e_(e),context:e_(t),startClocks:e7(),type:"custom",handlingStack:r}),th({feature:"add-action"})})},addError:function(e,t){var r=eB();z(function(){p.addError({error:e,handlingStack:r,context:e_(t),startClocks:e7()}),th({feature:"add-error"})})},addTiming:F(function(e,t){p.addTiming(e_(e),t)}),setUser:F(function(e){var t;(t="object"===em(e))||D.error("Unsupported user:",e),t&&u.setContext(tm(e)),th({feature:"set-user"})}),getUser:F(function(){return u.getContext()}),setUserProperty:F(function(e,t){var r,n=tm(((r={})[e]=t,r))[e];u.setContextProperty(e,n),th({feature:"set-user"})}),removeUserProperty:F(function(e){return u.removeContextProperty(e)}),clearUser:F(function(){return u.clearContext()}),startView:m,stopSession:F(function(){p.stopSession(),th({feature:"stop-session"})}),addFeatureFlagEvaluation:F(function(e,t){p.addFeatureFlagEvaluation(e_(e),e_(t)),th({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:F(function(){return t.getSessionReplayLink()}),startSessionReplayRecording:F(function(e){t.start(e),th({feature:"start-session-replay-recording",force:e&&e.force})}),stopSessionReplayRecording:F(function(){return t.stop()}),addDurationVital:F(function(e,t){var r;th({feature:"add-duration-vital"}),p.addDurationVital({name:e_(e),type:"duration",startClocks:{relative:(r=t.startTime)-tt(),timeStamp:r},duration:t.duration,context:e_(t&&t.context),description:e_(t&&t.description)})}),startDurationVital:F(function(e,t){return th({feature:"start-duration-vital"}),p.startDurationVital(e_(e),{context:e_(t&&t.context),description:e_(t&&t.description)})}),stopDurationVital:F(function(e,t){th({feature:"stop-duration-vital"}),p.stopDurationVital("string"==typeof e?e_(e):e,{context:e_(t&&t.context),description:e_(t&&t.description)})})}),"_setDebug",{get:function(){return B},enumerable:!1}),a);return g}(function(e,t,r,n,i,a,s,o){var c,d,f,p,h,m,g,b,w,E,S,A,I,x,R,P,M,U,j,$=[],Z=new rp;Z.subscribe(12,function(e){return tr("rum",e)});var V=function(e){var t,r,n,i,a,s,o,l,c,d=(t="browser-rum-sdk",r=e,a=new eE,s=new Set,o=!Y(tl,r.site)&&e0(r.telemetrySampleRate),l=((n={}).log=o,n[ts]=o&&e0(r.telemetryConfigurationSampleRate),n[to]=o&&e0(r.telemetryUsageSampleRate),n),c={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self},td=function(e){var n=el(e);if(l[e.type]&&s.size<r.maxTelemetryEventsPerPage&&!s.has(n)){var o,u,d,f=(o=t,u=e,d=c,ev({type:"telemetry",date:e8(),service:o,version:"5.29.1",source:"browser",_dd:{format_version:2},telemetry:ev(u,{runtime_env:d,connectivity:tn(),sdk_setup:"npm"}),experimental_features:G(eq)},void 0!==i?i():{}));a.notify(f),tr("telemetry",f),s.add(n)}},u=tp,{setContextProvider:function(e){i=e},observable:a,enabled:o});if(tA()){var f=tS();d.observable.subscribe(function(e){return f.send("internal_telemetry",e)})}return d}(e);V.setContextProvider(function(){var t,r;return{application:{id:e.applicationId},session:{id:null==(t=Q.findTrackedSession())?void 0:t.id},view:{id:null==(r=eP.findView())?void 0:r.id},action:{id:eM.findActionId()}}});var B=function(e){Z.notify(13,{error:e}),tf("Error reported to customer",{"error.message":e.message})},H=(ee=r.getOrCreateTracker(0),et=rm({expireDelay:tj}),Z.subscribe(1,function(e){var t=e.startClocks;et.add({},t.relative),ee.resetCustomerData()}),Z.subscribe(5,function(e){var t=e.endClocks;et.closeActive(t.relative)}),{findFeatureFlagEvaluations:function(e){return et.find(e)},addFeatureFlagEvaluation:function(e,t){var r=et.find();r&&(r[e]=t,ee.updateCustomerData(r))},stop:function(){return ee.stop()}}),q=new eE(function(t){var r=eC(e,window,["visibilitychange","freeze"],function(e){"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:ri.HIDDEN}):"freeze"===e.type&&t.notify({reason:ri.FROZEN})},{capture:!0}).stop,n=eO(e,window,"beforeunload",function(){t.notify({reason:ri.UNLOADING})}).stop;return function(){r(),n()}}),J=q.subscribe(function(e){Z.notify(10,e)});$.push(function(){return J.unsubscribe()});var Q=tA()?(er={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:+!!tT("records")},{findTrackedSession:function(){return er},expire:eu,expireObservable:new eE,setForcedReplay:eu}):((ec=function(e,t,r){var n,i,a,s,o,u,l,c=new eE,d=new eE,f=function(e,t){var r,n=new eE,i=new eE,a=new eE,s="Cookie"===e.type?function(e){var t,r={isLockEnabled:1===tM(),persistSession:(t=e,function(e){tL(tU,tz(e),t$,t)}),retrieveSession:tY,expireSession:function(){var t;
1return t=e,void tL(tU,tz(tV()),tj,t)}};if(!tP(tU)){var n=tP("_dd"),i=tP("_dd_r"),a=tP("_dd_l"),s={};n&&(s.id=n),a&&/^[01]$/.test(a)&&(s.logs=a),i&&/^[012]$/.test(i)&&(s.rum=i),ep(s)||(tF(s),r.persistSession(s))}return r}(e.cookieOptions):{isLockEnabled:!1,persistSession:tG,retrieveSession:tW,expireSession:tq},o=s.expireSession,u=ea(function(){tJ({process:function(e){return tB(e)?tV():void 0},after:f},s)},1e3);p();var l=eo(function(){tJ({process:function(e){if(!ep(e)){var r=f(e);return function(e){if(!ep(e)){var r=t(e.rum),n=r.trackingType,i=r.isTracked;e.rum=n,delete e.isExpired,i&&!e.id&&(e.id=ty(),e.created=String(e6()))}}(r),r}},after:function(e){ep(e)||h()||(r=e,n.notify()),r=e}},s)},1e3),c=l.throttled,d=l.cancel;function f(e){var t;return tB(e)&&(e=tV()),h()&&((t=e,r.id!==t.id||r.rum!==t.rum)?(r=tV(),i.notify()):(a.notify({previousState:r,newState:e}),r=e)),e}function p(){tJ({process:function(e){if(ep(e))return tV()},after:function(e){r=e}},s)}function h(){return void 0!==r.rum}return{expandOrRenewSession:c,expandSession:function(){tJ({process:function(e){return h()?f(e):void 0}},s)},getSession:function(){return r},renewObservable:n,expireObservable:i,sessionStateUpdateObservable:a,restartSession:p,expire:function(){d(),o(),f(tV())},stop:function(){es(u)},updateSessionState:function(e){tJ({process:function(t){return X({},t,e)},after:f},s)}}}(e.sessionStoreStrategyType,t);nJ.push(function(){return f.stop()});var p=rm({expireDelay:tj});function h(){return{id:f.getSession().id,trackingType:f.getSession().rum,isReplayForced:!!f.getSession().forcedReplay}}return nJ.push(function(){return p.stop()}),f.renewObservable.subscribe(function(){p.add(h(),e9()),c.notify()}),f.expireObservable.subscribe(function(){d.notify(),p.closeActive(e9())}),f.expandOrRenewSession(),p.add(h(),te().relative),r.observable.subscribe(function(){r.isGranted()?f.expandOrRenewSession():f.expire()}),n=eC(e,window,["click","touchstart","keydown","scroll"],function(){r.isGranted()&&f.expandOrRenewSession()},{capture:!0,passive:!0}).stop,nJ.push(n),i=e,a=function(){return f.expandSession()},s=function(){"visible"===document.visibilityState&&a()},o=eO(i,document,"visibilitychange",s).stop,nJ.push(o),u=ea(s,6e4),nJ.push(function(){es(u)}),l=eO(e,window,"resume",function(){return f.restartSession()},{capture:!0}).stop,nJ.push(l),{findSession:function(e,t){return p.find(e,t)},renewObservable:c,expireObservable:d,sessionStateUpdateObservable:f.sessionStateUpdateObservable,expire:f.expire,updateSessionState:f.updateSessionState}}(e,function(t){var r,n,i,a;return r=e,{trackingType:i="0"===(a=n=t)||"1"===a||"2"===a?n:e0(r.sessionSampleRate)?e0(r.sessionReplaySampleRate)?"1":"2":"0",isTracked:nX(i)}},s)).expireObservable.subscribe(function(){Z.notify(8)}),ec.renewObservable.subscribe(function(){Z.notify(9)}),ec.sessionStateUpdateObservable.subscribe(function(e){var t=e.previousState,r=e.newState;if(!t.forcedReplay&&r.forcedReplay){var n=ec.findSession();n&&(n.isReplayForced=!0)}}),{findTrackedSession:function(e){var t=ec.findSession(e);if(t&&nX(t.trackingType))return{id:t.id,sessionReplay:"1"===t.trackingType?1:2*!!t.isReplayForced}},expire:ec.expire,expireObservable:ec.expireObservable,setForcedReplay:function(){return ec.updateSessionState({forcedReplay:"1"})}});if(tA())ef=tS(),Z.subscribe(12,function(e){ef.send("rum",e)});else{var ee,et,er,ec,ef,eh,eg,eb,ew,eA,ek=(eh=V.observable,eg=Q.expireObservable,eb=e.replica,ew=function(e,t,r,n,i,a,s){void 0===s&&(s=nQ);var o=l(e,t),u=r&&l(e,r);function l(e,t){var r=t.endpoint,o=t.encoder;return s({encoder:o,request:n6(e,r,e.batchBytesLimit,n),flushController:function(e){var t,r=e.messagesLimit,n=e.bytesLimit,i=e.durationLimit,a=e.pageExitObservable,s=e.sessionExpireObservable,o=a.subscribe(function(e){return f(e.reason)}),u=s.subscribe(function(){return f("session_expire")}),l=new eE(function(){return function(){o.unsubscribe(),u.unsubscribe()}}),c=0,d=0;function f(e){if(0!==d){var t=d,r=c;d=0,c=0,p(),l.notify({reason:e,messagesCount:t,bytesCount:r})}}function p(){ei(t),t=void 0}return{flushObservable:l,get messagesCount(){return d},notifyBeforeAddMessage:function(e){c+e>=n&&f("bytes_limit"),d+=1,c+=e,void 0===t&&(t=en(function(){f("duration_limit")},i))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),c+=e,d>=r?f("messages_limit"):c>=n&&f("bytes_limit")},notifyAfterRemoveMessage:function(e){c-=e,0==(d-=1)&&p()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:i,sessionExpireOb
1servable:a}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:o.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),o.add(e),u&&t&&u.add(r.transformMessage?r.transformMessage(e):e)},upsert:function(e,t){o.upsert(e,t),u&&u.upsert(r.transformMessage?r.transformMessage(e):e,t)},stop:function(){o.stop(),u&&u.stop()}}}(e,{endpoint:e.rumEndpointBuilder,encoder:a(2)},eb&&{endpoint:eb.rumEndpointBuilder,transformMessage:function(e){return ev(e,{application:{id:eb.applicationId}})},encoder:a(3)},B,q,eg),Z.subscribe(12,function(e){"view"===e.type?ew.upsert(e,e.view.id):ew.add(e)}),eh.subscribe(function(t){return ew.add(t,e.site===eJ)}),ew);$.push(function(){return ek.stop()}),eA=ek.flushObservable,V.enabled&&e0(e.customerDataTelemetrySampleRate)&&(ia(),is(),Z.subscribe(12,function(e){k=!0,ir(C.globalContextBytes,r.getOrCreateTracker(2).getBytesCount()),ir(C.userContextBytes,r.getOrCreateTracker(1).getBytesCount()),ir(C.featureFlagBytes,Y(["view","error"],e.type)?r.getOrCreateTracker(0).getBytesCount():0)}),eA.subscribe(function(e){var t=e.bytesCount,r=e.messagesCount;k&&(O.batchCount+=1,ir(O.batchBytesCount,t),ir(O.batchMessagesCount,r),ii(O.globalContextBytes,C.globalContextBytes),ii(O.userContextBytes,C.userContextBytes),ii(O.featureFlagBytes,C.featureFlagBytes),is())}),ea(ie,1e4))}var eI=(tu=ra(),new eE(function(e){if(tu){var t=new tu(F(function(){return e.notify()}));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return t.disconnect()}}})),ex=(tm=ed(th=location),new eE(function(t){var r,n,i,a,s,o=(r=e,n=l,i=tO(n7("pushState"),"pushState",function(e){(0,e.onPostCall)(n)}).stop,a=tO(n7("replaceState"),"replaceState",function(e){(0,e.onPostCall)(n)}).stop,s=eO(r,window,"popstate",n).stop,{stop:function(){i(),a(),s()}}).stop,u=eO(e,window,"hashchange",l).stop;function l(){if(tm.href!==th.href){var e=ed(th);t.notify({newLocation:e,oldLocation:tm}),tm=e}}return function(){o(),u()}})),eL=function(e,t){void 0===t&&(t=500);var r,n=rm({expireDelay:tj,maxEntries:4e3});a(io(),e9());var i=eC(e,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(e){var t;a("freeze"===(t=e).type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":io(),e.timeStamp)},{capture:!0}).stop;function a(e,t){void 0===t&&(t=e9()),e!==r&&(r=e,n.closeActive(t),n.add({state:r,startTime:t},t))}var s={findAll:function(e,r){var i=n.findAll(e,r);if(0!==i.length){for(var a=[],s=Math.max(0,i.length-t),o=i.length-1;o>=s;o--){var u=i[o],l=u.startTime-e;a.push({state:u.state,start:e3(l)})}return a}},wasInPageStateAt:function(e,t){return s.wasInPageStateDuringPeriod(e,t,0)},wasInPageStateDuringPeriod:function(e,t,r){return n.findAll(t,r).some(function(t){return t.state===e})},addPageState:a,stop:function(){i(),n.stop()}};return s}(e),eR=function(e,t,r,n,i,a,s,o,u){var c,d,f,p,h,m,g,v,_,b,w,E,S,T=(d=rm({expireDelay:tj}),e.subscribe(1,function(e){var t;d.add({service:(t=e).service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},e.startClocks.relative)}),e.subscribe(5,function(e){var t=e.endClocks;d.closeActive(t.relative)}),e.subscribe(3,function(e){var t=d.find(e.startClocks.relative);t&&e.name&&(t.name=e.name),t&&e.context&&(t.context=e.context)}),e.subscribe(9,function(){d.reset()}),{findView:function(e){return d.find(e)},stop:function(){d.stop()}}),A=function(e,t,r){var n,i=rm({expireDelay:tj});e.subscribe(1,function(e){var t=e.startClocks,a=r.href;i.add(s({url:a,referrer:n||document.referrer}),t.relative),n=a}),e.subscribe(5,function(e){var t=e.endClocks;i.closeActive(t.relative)});var a=t.subscribe(function(e){var t=e.newLocation,r=i.find();if(r){var n=e9();i.closeActive(n),i.add(s({url:t.href,referrer:r.referrer}),n)}});function s(e){return{url:e.url,referrer:e.referrer}}return{findUrl:function(e){return i.find(e)},stop:function(){a.unsubscribe(),i.stop()}}}(e,a,r),O=(e.subscribe(0,function(t){return e.notify(11,n_(t,i))}),f={findActionId:eu},t.trackUserInteractions&&(f=function(e,t,r){var n,i,a,s,o,u,l,c,d=rm({expireDelay:nv}),f=new eE;e.subscribe(9,function(){d.reset()}),e.subscribe(4,m);var p=(s=(n={onPointerDown:function(n){var i=r,a=e,s=t,o=n,u=i.enablePrivacyF
1orActionName?rX(o.target,i.defaultPrivacyLevel):rW.ALLOW;if(u!==rW.HIDDEN){var l,c=function(e,t,r){var n,i,a,s,o=e.target.getBoundingClientRect(),u=ns(e.target,r.actionNameAttribute);return u&&ny(e.timeStamp,u),{type:"click",target:{width:Math.round(o.width),height:Math.round(o.height),selector:u},position:{x:Math.round(e.clientX-o.left),y:Math.round(e.clientY-o.top)},name:(n=e.target,i=r.enablePrivacyForActionName,a=r.actionNameAttribute,s=r6(n,r3)||a&&r6(n,a),t===rW.MASK?s||"Masked Element":s||r7(n,a,r8,i)||r7(n,a,r9,i)||"")}}(o,u,i),d=!1;return l=function(e){d=e.hadActivity},rD(rM(a,s,i),l,100),{clickActionBase:c,hadActivityOnPointerDown:function(){return d}}}},onPointerUp:function(n,i,a){!function(e,t,r,n,i,a,s,o,u,l){var c,d,f=function e(t,r,n,i,a){var s,o=ty(),u=e7(),l=r.add(o,u.relative),c=rL({lifeCycle:t,isChildEvent:function(e){return void 0!==e.action&&(Array.isArray(e.action.id)?Y(e.action.id,o):e.action.id===o)}}),d=0,f=[],p=new eE;function h(e){0===d&&((d=1,s=e)?l.close(s-tt()):l.remove(),c.stop(),p.notify())}return{event:a,stop:h,stopObservable:p,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==s},getUserActivity:n,addFrustration:function(e){f.push(e)},startClocks:u,isStopped:function(){return 1===d||2===d},clone:function(){return e(t,r,n,i,a)},validate:function(e){if(h(),1===d){var r,n=c.eventCounts,l=n.resourceCount,p=n.errorCount,m=n.longTaskCount,g=X({type:"click",duration:s&&(r=u.timeStamp,s-r),startClocks:u,id:o,frustrationTypes:f,counts:{resourceCount:l,errorCount:p,longTaskCount:m},events:null!=e?e:[a],event:a},i);t.notify(0,g),d=2}},discard:function(){h(),d=2}}}(t,n,u,s,o);a(f);var p=null==(d=null==s?void 0:s.target)?void 0:d.selector;p&&ny(o.timeStamp,p);var h=(c=function(e){e.hadActivity&&e.end<f.startClocks.timeStamp?f.discard():e.hadActivity?f.stop(e.end):l()?f.stop(f.startClocks.timeStamp):f.stop()},rD(rM(t,r,e),c,1e4)).stop,m=t.subscribe(4,function(e){var t=e.endClocks;f.stop(t.timeStamp)}),g=i.subscribe(function(){f.stop()});f.stopObservable.subscribe(function(){m.unsubscribe(),h(),g.unsubscribe()})}(r,e,t,d,f,h,n.clickActionBase,i,a,n.hadActivityOnPointerDown)}}).onPointerDown,o=n.onPointerUp,u={selection:!1,input:!1,scroll:!1},l=[eO(r,window,"pointerdown",function(e){nh(e)&&(i=np(),u={selection:!1,input:!1,scroll:!1},a=s(e))},{capture:!0}),eO(r,window,"selectionchange",function(){i&&np()||(u.selection=!0)},{capture:!0}),eO(r,window,"scroll",function(){u.scroll=!0},{capture:!0,passive:!0}),eO(r,window,"pointerup",function(e){if(nh(e)&&a){var t=u;o(a,e,function(){return t}),a=void 0}},{capture:!0}),eO(r,window,"input",function(){u.input=!0},{capture:!0})],{stop:function(){l.forEach(function(e){return e.stop()})}}).stop;return{stop:function(){m(),f.notify(),p()},actionContexts:{findActionId:function(e){return d.findAll(e)}}};function h(e){if(!c||!c.tryAppend(e)){var t=e.clone();c=function(e,t){var r,n=[],i=0;function a(e){e.stopObservable.subscribe(s),n.push(e),ei(r),r=en(o,1e3)}function s(){1===i&&n.every(function(e){return e.isStopped()})&&(i=2,t(n))}function o(){ei(r),0===i&&(i=1,s())}return a(e),{tryAppend:function(e){var t,r,s,u;return 0===i&&(!(n.length>0)||(t=n[n.length-1].event,r=e.event,t.target===r.target&&100>=(s=t,u=r,Math.sqrt(Math.pow(s.clientX-u.clientX,2)+Math.pow(s.clientY-u.clientY,2)))&&t.timeStamp-r.timeStamp<=1e3)?(a(e),!0):(o(),!1))},stop:function(){o()}}}(e,function(e){var r,n;(function(e,t){if(function(e){if(e.some(function(e){return e.getUserActivity().selection||e.getUserActivity().scroll}))return!1;for(var t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=1e3)return!0;return!1}(e))return t.addFrustration("rage_click"),e.some(nm)&&t.addFrustration("dead_click"),t.hasError&&t.addFrustration("error_click"),{isRage:!0};var r=e.some(function(e){return e.getUserActivity().selection});return e.forEach(function(e){e.hasError&&e.addFrustration("error_click"),nm(e)&&!r&&e.addFrustration("dead_click")}),{isRage:!1}})(r=e,n=t).isRage?(r.forEach(function(e){return e.discard()}),n.stop(e8()),n.validate(r.map(function(e){return e.event}))):(n.discard(),r.forEach(function(e){return e.validate()}))})}}function m(){c&&c.stop()}}(e,s,t).actionContexts),{addAction:function(t,r){e.notify(11,X({savedCommonContext:r},n_(t,i)))},actionContexts:f}),C=O.addAction,k=O.actionContexts,I=(p=nG(),{get:function(){return{viewport:p}},stop:nY(t).subscribe(function(e){p=e}).unsubscribe}),x=(void 0===h&&(m=window.cookieStore?(c=t,function(e,t){return eO(c,window.cookieStore,"change",function(r){var n=W(r.changed,function(t){return t.name===e})||W(r.deleted,function(t){return t.name===e});n&&t(n.value)}).stop}):iu,h=new eE(function(e){return m(il,function(t){return e.notify(t)})}
1)),v=tP(il)||(null==(g=window.Cypress)?void 0:g.env("traceId")),_=h.subscribe(function(e){v=e}),{get:function(){if("string"==typeof v)return{test_execution_id:v}},stop:function(){return _.unsubscribe()}});return(b={}).view=X({},rd,rc),b.error=X({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},rd,rc,rf),b.resource=X({"resource.url":"string"},eK(l.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},rd,rc,rf),b.action=X({"action.target.name":"string"},rd,rc,rf),b.long_task=X({},rd,rc),b.vital=X({},rd,rc),y=b,(w={}).error=ro("error",t.eventRateLimiterThreshold,u),w.action=ro("action",t.eventRateLimiterThreshold,u),w.vital=ro("vital",t.eventRateLimiterThreshold,u),E=w,S=function(){var e,t,r="string"==typeof(e=window._DATADOG_SYNTHETICS_PUBLIC_ID||tP("datadog-synthetics-public-id"))?e:void 0,n="string"==typeof(t=window._DATADOG_SYNTHETICS_RESULT_ID||tP("datadog-synthetics-result-id"))?t:void 0;if(r&&n)return{test_id:r,result_id:n,injected:tD()}}(),e.subscribe(11,function(r){var i=r.startTime,a=r.rawRumEvent,s=r.domainContext,u=r.savedCommonContext,l=r.customerContext,c=T.findView(i),d=A.findUrl(i),f=n.findTrackedSession(i);if(f&&c&&d){var p,h=u||o(),m=k.findActionId(i),g=ev({_dd:{format_version:2,drift:Math.round(e6()-(p=tt(),p+performance.now())),configuration:{session_sample_rate:e1(t.sessionSampleRate,3),session_replay_sample_rate:e1(t.sessionReplaySampleRate,3)},browser_sdk_version:tA()?"5.29.1":void 0},application:{id:t.applicationId},date:e8(),service:c.service||t.service,version:c.version||t.version,source:"browser",session:{id:f.id,type:S?"synthetics":x.get()?"ci_test":"user"},view:{id:c.id,name:c.name,url:d.url,referrer:d.referrer},action:-1!==["error","resource","long_task"].indexOf(a.type)&&m?{id:m}:void 0,synthetics:S,ci_test:x.get(),display:I.get(),connectivity:tn()},a);g.context=ev(h.context,c.context,l),"has_replay"in g.session||(g.session.has_replay=h.hasReplay),"view"===g.type&&(g.session.sampled_for_replay=1===f.sessionReplay),ep(h.user)||(g.usr=h.user),function(e,t,r,n){if(t){var i,a,s,o,u=(i=y[e.type],s=t(a=ey(e),r),K(i).forEach(function(t){var r=t[0],n=t[1],i=function(e,t){for(var r=e,n=0,i=t.split(".");n<i.length;n++){var a,s,o=i[n];if(a=r,s=o,!(rl(a)&&Object.prototype.hasOwnProperty.call(a,s)))return;r=r[o]}return r}(a,r),s=em(i);s===n?ru(e,r,e_(i)):"object"===n&&("undefined"===s||"null"===s)&&ru(e,r,{})}),s);if(!1===u&&"view"!==e.type)return!1;!1===u&&D.warn("Can't dismiss view events using beforeSend!")}return!(null==(o=n[e.type])?void 0:o.isLimitReached())}(g,t.beforeSend,s,E)&&(ep(g.context)&&delete g.context,e.notify(12,g))}}),{viewHistory:T,pageStateHistory:i,urlContexts:A,addAction:C,actionContexts:k,stop:function(){x.stop(),I.stop(),A.stop(),T.stop(),i.stop()}}}(Z,e,location,Q,eL,ex,eI,n,B),eP=eR.viewHistory,eD=eR.urlContexts,eM=eR.actionContexts,eU=eR.addAction,ej=eR.stop;$.push(ej),tc.drain();var e$=(tg=location,Z.subscribe(3,function(r){var n,i,a,s,o,u,l,c,d,f,p,h,m,g,y,v,_,b,w,E,S,T,A,O,C;return Z.notify(11,(n=r,i=e,a=H,s=t,o=eL,T=s.getReplayStats(n.id),A=a.findFeatureFlagEvaluations(n.startClocks.relative),O=o.findAll(n.startClocks.relative,n.duration),C={_dd:{document_version:n.documentVersion,replay_stats:T,page_states:O,configuration:{start_session_replay_recording_manually:i.startSessionReplayRecordingManually}},date:n.startClocks.timeStamp,type:"view",view:{action:{count:n.eventCounts.actionCount},frustration:{count:n.eventCounts.frustrationCount},cumulative_layout_shift:null==(u=n.commonViewMetrics.cumulativeLayoutShift)?void 0:u.value,cumulative_layout_shift_time:e3(null==(l=n.commonViewMetrics.cumulativeLayoutShift)?void 0:l.time),cumulative_layout_shift_target_selector:null==(c=n.commonViewMetrics.cumulativeLayoutShift)?void 0:c.targetSelector,first_byte:e3(null==(d=n.initialViewMetrics.navigationTimings)?void 0:d.firstByte),dom_complete:e3(null==(f=n.initialViewMetrics.navigationTimings)?void 0:f.domComplete),dom_content_loaded:e3(null==(p=n.initialViewMetrics.navigationTimings)?void 0:p.domContentLoaded),dom_interactive:e3(null==(h=n.initialViewMetrics.navigationTimings)?void 0:h.domInteractive),error:{count:n.eventCounts.errorCount},first_contentful_paint:e3(n.initialViewMetrics.firstContentfulPaint),first_input_delay:e3(null==(m=n.initialViewMetrics.firstInput)?void 0:m.delay),first_input_time:e3(null==(g=n.initialViewMetrics.firstInput)?void 0:g.time),first_input_target_selector:null==(y=n.initialViewMetrics.firstInput)?void 0:y.targetSelector,interaction_to_next_paint:e3(null==(v=n.commonViewMetrics.interactionToNextPaint)?void 0:v.value),interaction_to_next_paint_time:e3(null==(_=n.commonViewMetrics.interactionToNextPaint)?void 0:_.time),interaction_to_next_paint_target_selector:null==(b=n.commonViewMetrics.interactionToNextPaint)?void 0:b.targetSelector,is_active:n.isActive,name:n.name,largest_contentful_paint:e3(null==(w=n.initialViewMetrics.largestContentfulPaint)?void 0:w.value),largest_contentful_paint_target_selector:null==(E=n.initialViewMetrics.largestContentfulPaint)?void 0:E.targetSelector,load_event:e3(null==(S=n.initialViewMetrics.navigationTimings)?void 0:S.loadEvent),loading_time:rN(e3(n.commonViewMetrics.loadingTime)),loading_type:n.loadingType,long_task:{count:n.eventCounts.longTaskCount},resource:{count:n.eventCounts.resourceCount},time_spent:e3(n.duration)},feature_flags:A&&!ep(A)?A:void 0,display:n.commonViewMetrics.scroll?{scroll:{max_depth:n.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:n.
1commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:n.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:e3(n.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!T||void 0,is_active:!!n.sessionIsActive&&void 0},privacy:{replay_level:i.defaultPrivacyLevel}},ep(n.customTimings)||(C.view.custom_timings=function(e,t){for(var r={},n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];r[a]=t(e[a])}return r}(n.customTimings,e3)),{rawRumEvent:C,startTime:n.startClocks.relative,domainContext:{location:n.location}}))}),function(e,t,r,n,i,a,s){var o,u=new Set,c=d("initial_load",te(),s);function d(i,a,s){var o=function(e,t,r,n,i,a,s){void 0===a&&(a=e7());var o,u,c,d,f,p,h,m,g,y,v,b,w,E,S,A,O,C,k,I,x,N,L,R,P,M,U,j,$,Z,V,B,z,H,Y,G,q,K,J,X,Q,ee,et,er,el,ec=ty(),ef=new eE,ep={},eh=0,em=ed(n),eg=eT(),ey=!0;s&&(ee=s.name,et=s.service||void 0,er=s.version||void 0,s.context&&(el=s.context,eg.setContext(el)));var ev={id:ec,name:ee,startClocks:a,service:et,version:er,context:el};e.notify(1,ev),e.notify(2,ev);var e_=eo(e$,3e3,{leading:!1}),eb=e_.throttled,ew=e_.cancel,eS=(m={},y=(g=function(e,t,r,n,i,a){var s,o="initial_load"===n,u=!0,l=[],c=nj(r);function d(){if(!u&&!o&&l.length>0){var e=Math.max.apply(Math,l);e<c.timeStamp&&a(e)}}var f=(s=function(e){if(u){var t;u=!1,e.hadActivity&&l.push((t=i.timeStamp,e.end-t)),d()}},rD(rM(e,t,r),s,void 0)).stop;return{stop:function(){f(),c.stop()},setLoadEvent:function(e){o&&(o=!1,l.push(e),d())}}}(e,t,r,i,h=a,function(e){m.loadingTime=e,eb()})).stop,v=g.setLoadEvent,C=(b=function(e){m.scroll=e},void 0===w&&(o=r,void 0===u&&(u=1e3),w=new eE(function(e){if(window.ResizeObserver){var t=eo(function(){var t,r;e.notify((t=nH(),r=nG().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(r+t),scrollTop:t}))},u,{leading:!1,trailing:!0}),r=document.scrollingElement||document.documentElement,n=new ResizeObserver(F(t.throttled));n.observe(r);var i=eO(o,window,"scroll",t.throttled,{passive:!0});return function(){t.cancel(),n.unobserve(r),i.stop()}}})),E=0,S=0,A=0,O=w.subscribe(function(e){var t=e.scrollDepth,r=e.scrollTop,n=e.scrollHeight,i=!1;(t>E&&(E=t,i=!0),n>S)&&(S=n,A=e9()-h.relative,i=!0);i&&b({maxDepth:Math.min(E,S),maxDepthScrollTop:r,maxScrollHeight:S,maxScrollHeightTime:A})}),{stop:function(){return O.unsubscribe()}}).stop,k=function(e,t,r){if(!(rP(_.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:eu};var n,i,a,s,o,u,l=0;r({value:0});var c=(a=0,s=0,{update:function(e){var t;return void 0===n||e.startTime-i>=1e3||e.startTime-n>=5e3?(n=i=e.startTime,s=a=e.value,t=!0):(a+=e.value,i=e.startTime,(t=e.value>s)&&(s=e.value)),{cumulatedValue:a,isMaxValue:t}}}),d=rR(e,{type:_.LAYOUT_SHIFT,buffered:!0}).subscribe(function(n){for(var i=0;i<n.length;i++){var a=n[i];if(!a.hadRecentInput&&!(a.startTime<t)){var s=c.update(a),d=s.cumulatedValue;if(s.isMaxValue){var f=function(e){var t;if(e)return null==(t=W(e,function(e){return!!e.node&&rF(e.node)}))?void 0:t.node}(a.sources);o=f?new WeakRef(f):void 0,u=a.startTime-t}if(d>l){l=d;var f=null==o?void 0:o.deref();r({value:e1(l,4),targetSelector:f&&ns(f,e.actionNameAttribute),time:u})}}}});return{stop:function(){d.unsubscribe()}}}(r,h.relative,function(e){m.cumulativeLayoutShift=e,eb()}).stop,x=(I=function(e,t,r){if(!(rP(_.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:eu,stop:eu};var n,i,a,s,o,u=(n=r,"interactionCount"in performance||T||(T=new window.PerformanceObserver(F(function(e){e.getEntries().forEach(function(e){e.interactionId&&(nZ=Math.min(nZ,e.interactionId),n$=((nV=Math.max(nV,e.interactionId))-nZ)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),i="initial_load"===n?0:nB(),a={stopped:!1},{getViewInteractionCount:function(){return a.stopped?a.interactionCount:nB()-i},stopViewInteractionCount:function(){a={stopped:!0,interactionCount:nB()-i}}}),l=u.getViewInteractionCount,c=u.stopViewInteractionCount,d=1/0,f=function(e){var t=[];function r(){t.sort(function(e,t){return t.duration-e.duration}).splice(10)}return{process:function(e){var n=t.findIndex(function(t){return e.interactionId===t.interactionId}),i=t[t.length-1];-1!==n?e.duration>t[n].duration&&(t[n]=e,r()):(t.length<10||e.duration>i.duration)&&(t.push(e),r())},estimateP98Interaction:function(){var r=Math.min(t.length-1,Math.floor(e()/50));return t[r]}}}(l),p=-1;function h(r){for(var n,i,a=0;a<r.length;a++){var u=r[a];u.interactionId&&u.startTime>=t&&u.startTime<=d&&f.process(u)}var l=f.estimateP98Interaction();l&&l.duration!==p&&(p=l.duration,o=l.startTime-t,n=l.startTime,i=ng.get(n),ng.delete(n),!(s=i)&&l.target&&rF(l.target)&&(s=ns(l.target,e.actionNameAttribute)))}var m=rR(e,{type:_.FIRST_INPUT,buffered:!0}).subscribe(h),g=rR(e,{type:_.EVENT,durationThreshold:40,buffered:!0}).subscribe(h);return{getInteractionToNextPaint:function(){return p>=0?{value:Math.min(p,nF),targetSelector:s,time:o}:l()?{value:0}:void 0}
1,setViewEnd:function(e){d=e,c()},stop:function(){g.unsubscribe(),m.unsubscribe()}}}(r,h.relative,i)).stop,N=I.getInteractionToNextPaint,{stop:function(){y(),k(),C()},stopINPTracking:x,setLoadEvent:v,setViewEnd:I.setViewEnd,getCommonViewMetrics:function(){return m.interactionToNextPaint=N(),m}}),eA=eS.setLoadEvent,ek=eS.setViewEnd,eI=eS.stop,ex=eS.stopINPTracking,eN=eS.getCommonViewMetrics,eL="initial_load"===i?(L={},M=(R=function(e){eA(e.loadEvent),L.navigationTimings=e,eb()},void 0===P&&(P=nN),c=r,d=function(){var e,t=P();t.loadEventEnd<=0||R({domComplete:(e=t).domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=e9()?e.responseStart:void 0})},p=nC(c,"complete",function(){f=en(function(){return d()})}).stop,{stop:function(){p(),ei(f)}}).stop,U=nj(r),$=(j=function(e){L.firstContentfulPaint=e,eb()},{stop:rR(r,{type:_.PAINT,buffered:!0}).subscribe(function(e){var t=W(e,function(e){return"first-contentful-paint"===e.name&&e.startTime<U.timeStamp&&e.startTime<nM});t&&j(t.startTime)}).unsubscribe}).stop,G=(Z=window,V=function(e){L.largestContentfulPaint=e,eb()},B=1/0,z=eC(r,Z,["pointerdown","keydown"],function(e){B=e.timeStamp},{capture:!0,once:!0}).stop,H=0,Y=rR(r,{type:_.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(function(e){var t=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(t(n,r,e))return n}}(e,function(e){return e.entryType===_.LARGEST_CONTENTFUL_PAINT&&e.startTime<B&&e.startTime<U.timeStamp&&e.startTime<nU&&e.size>H});if(t){var n=void 0;t.element&&(n=ns(t.element,r.actionNameAttribute)),V({value:t.startTime,targetSelector:n}),H=t.size}}),{stop:function(){z(),Y.unsubscribe()}}).stop,J=(q=function(e){L.firstInput=e,eb()},K=rR(r,{type:_.FIRST_INPUT,buffered:!0}).subscribe(function(e){var t=W(e,function(e){return e.startTime<U.timeStamp});if(t){var n,i=(n=t.startTime,t.processingStart-n),a=void 0;t.target&&rF(t.target)&&(a=ns(t.target,r.actionNameAttribute)),q({delay:i>=0?i:0,time:t.startTime,targetSelector:a})}}),{stop:function(){K.unsubscribe()}}).stop,{stop:function(){M(),$(),G(),J(),U.stop()},initialViewMetrics:L}):{stop:eu,initialViewMetrics:{}},eR=eL.stop,eP=eL.initialViewMetrics,eD={stop:(X=rL({lifeCycle:e,isChildEvent:function(e){return e.view.id===ec},onChange:eb})).stop,eventCounts:X.eventCounts},eM=eD.stop,eU=eD.eventCounts,ej=ea(e$,nW);function e$(){ew(),eh+=1;var t=void 0===Q?e8():Q.timeStamp;e.notify(3,{customTimings:ep,documentVersion:eh,id:ec,name:ee,service:et,version:er,context:eg.getContext(),loadingType:i,location:em,startClocks:a,commonViewMetrics:eN(),initialViewMetrics:eP,duration:t-a.timeStamp,isActive:void 0===Q,sessionIsActive:ey,eventCounts:eU})}return e$(),eg.changeObservable.subscribe(e$),{get name(){return ee},service:et,version:er,contextManager:eg,stopObservable:ef,end:function(t){var r,n,i=this;void 0===t&&(t={}),Q||(Q=null!=(r=t.endClocks)?r:e7(),ey=null==(n=t.sessionIsActive)||n,e.notify(4,{endClocks:Q}),e.notify(5,{endClocks:Q}),es(ej),ek(Q.relative),eI(),e$(),en(function(){i.stop()},nq))},stop:function(){eR(),eM(),ex(),ef.notify()},addTiming:function(e,t){if(!Q){var r,n,i=t<e5?t:t-a.timeStamp;ep[(n=(r=e).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==r&&D.warn("Invalid timing name: ".concat(r,", sanitized to: ").concat(n)),n]=i,eb()}},updateViewName:function(e){eK(l.UPDATE_VIEW_NAME)&&(ee=e,e$())}}}(t,r,n,e,i,a,s);return u.add(o),o.stopObservable.subscribe(function(){u.delete(o)}),o}return t.subscribe(9,function(){c=d("route_change",void 0,{name:c.name,service:c.service,version:c.version,context:c.contextManager.getContext()})}),t.subscribe(8,function(){c.end({sessionIsActive:!1})}),t.subscribe(10,function(e){e.reason===ri.UNLOADING&&c.end()}),a&&(o=i.subscribe(function(e){var t,r,n;t=e.oldLocation,r=e.newLocation,t.pathname===r.pathname&&(""!==(n=r.hash.substring(1))&&document.getElementById(n)||nK(r.hash)===nK(t.hash))||(c.end(),c=d("route_change"))})),{addTiming:function(e,t){void 0===t&&(t=e8()),c.addTiming(e,t)},startView:function(e,t){c.end({endClocks:t}),c=d("route_change",t,e)}
1,setViewContext:function(e){c.contextManager.setContext(e)},setViewContextProperty:function(e,t){c.contextManager.setContextProperty(e,t)},updateViewName:function(e){c.updateViewName(e)},stop:function(){o&&o.unsubscribe(),c.end(),u.forEach(function(e){return e.stop()})}}}(tg,Z,eI,e,ex,!e.trackViewsManually,i)),eZ=e$.addTiming,eH=e$.startView,eX=e$.updateViewName,eQ=e$.setViewContext,e2=e$.setViewContextProperty,ti=e$.stop;$.push(ti);var ta=(void 0===tv&&(tv=nL),Z.subscribe(7,function(t){var r=function(e,t,r){var n=function(e){if(performance&&"getEntriesByName"in performance){var t=performance.getEntriesByName(e.url,"resource");if(t.length&&"toJSON"in t[0]){var r=t.filter(function(e){return!nA.has(e)}).filter(function(e){return rE(e)&&rS(e)}).filter(function(t){var r,n,i;return r=t,n=e.startClocks.relative,i=nO({startTime:e.startClocks.relative,duration:e.duration}),r.startTime>=n-1&&nO(r)<=i+1});if(1===r.length)return nA.add(r[0]),r[0].toJSON()}}}(e),i=n?e4(n.startTime):e.startClocks,a=function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toDecimalString(),trace_id:e.traceId.toDecimalString(),rule_psr:nD(t)}}}(e,t);if(t.trackResources||a){var s,o,u,l="xhr"===e.type?"xhr":"fetch",c=n?nP(n):void 0,d=(s=r,o=i,u=e.duration,s.wasInPageStateDuringPeriod("frozen",o.relative,u)?void 0:e3(u)),f=ev({date:i.timeStamp,resource:{id:ty(),type:l,duration:d,method:e.method,status_code:e.status,url:rC(e.url)?rk(e.url):e.url},type:"resource",_dd:{discarded:!t.trackResources}},a,c);return{startTime:i.relative,rawRumEvent:f,domainContext:{performanceEntry:n,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error,isAborted:e.isAborted,handlingStack:e.handlingStack}}}}(t,e,eL);r&&Z.notify(11,r)}),t_=rR(e,{type:_.RESOURCE,buffered:!0}).subscribe(function(t){for(var r=0;r<t.length;r++){var n=t[r];if("xmlhttprequest"!==n.initiatorType&&"fetch"!==n.initiatorType){var i=nR(n,e);i&&Z.notify(11,i)}}}),tv(e,function(t){var r=nR(t,e);r&&Z.notify(11,r)}),{stop:function(){t_.unsubscribe()}}).stop;if($.push(ta),eK(l.LONG_ANIMATION_FRAME)){if(e.trackLongTasks){var tu,th,tm,tg,tv,t_,tC,tk=(tC=rR(e,{type:_.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(function(e){for(var t=0;t<e.length;t++){var r=e[t],n=e4(r.startTime),i={date:n.timeStamp,long_task:{id:ty(),entry_type:"long-animation-frame",duration:e3(r.duration),blocking_duration:e3(r.blockingDuration),first_ui_event_timestamp:e3(r.firstUIEventTimestamp),render_start:e3(r.render
1Start),style_and_layout_start:e3(r.styleAndLayoutStart),start_time:e3(r.startTime),scripts:r.scripts.map(function(e){return{duration:e3(e.duration),pause_duration:e3(e.pauseDuration),forced_style_and_layout_duration:e3(e.forcedStyleAndLayoutDuration),start_time:e3(e.startTime),execution_start:e3(e.executionStart),source_url:e.sourceURL,source_function_name:e.sourceFunctionName,source_char_position:e.sourceCharPosition,invoker:e.invoker,invoker_type:e.invokerType,window_attribution:e.windowAttribution}})},type:"long_task",_dd:{discarded:!1}};Z.notify(11,{rawRumEvent:i,startTime:n.relative,domainContext:{performanceEntry:r}})}}),{stop:function(){return tC.unsubscribe()}}).stop;$.push(tk)}}else rR(e,{type:_.LONG_TASK,buffered:!0}).subscribe(function(t){for(var r=0;r<t.length;r++){var n=t[r];if(n.entryType!==_.LONG_TASK||!e.trackLongTasks)break;var i=e4(n.startTime),a={date:i.timeStamp,long_task:{id:ty(),entry_type:"long-task",duration:e3(n.duration)},type:"long_task",_dd:{discarded:!1}};Z.notify(11,{rawRumEvent:a,startTime:i.relative,domainContext:{performanceEntry:n}})}});var tI=(c=I=new eE,(d=[N.error].map(function(e){var t;return nw[e]||(nw[e]=(t=e,new eE(function(e){var r=L[t];return L[t]=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r.apply(console,n);var a=eB();z(function(){e.notify(function(e,t,r){var n,i=e.map(function(e){var t;return"string"==typeof(t=e)?e_(t):t instanceof Error?ez(eN(t)):el(e_(t),void 0,2)}).join(" ");if(t===N.error){var a=W(e,function(e){return e instanceof Error});n={stack:a?eF(eN(a)):void 0,fingerprint:eG(a),causes:a?eW(a,"console"):void 0,startClocks:e7(),message:i,source:"console",handling:"handled",handlingStack:r}}return{api:t,message:i,error:n,handlingStack:r}}(n,t,a))})},function(){L[t]=r}}))),nw[e]}),eS.apply(void 0,d)).subscribe(function(e){return c.notify(e.error)}),(f=x=function(e,t){var r=eY({stackTrace:e,originalError:t,startClocks:e7(),nonErrorPrefix:"Uncaught",source:"source",handling:"unhandled"});I.notify(r)},tO(window,"onerror",function(e){var t,r,n,i,a,s,o=e.parameters,u=o[0],l=o[1],c=o[2],d=o[3],p=o[4];if(p instanceof Error)s=eN(p);else{s={name:(t=u,"[object String]"===({}).toString.call(t)&&(n=(r=eV.exec(t))[1],i=r[2]),a={name:n,message:i}).name,message:a.message,stack:[{url:l,column:d,line:c}]}}f(s,null!=p?p:u)})).stop,(p=x,tO(window,"onunhandledrejection",function(e){var t=e.parameters[0].reason||"Empty reason";p(eN(t),t)})).stop,(P=[],Y(R=[nE,"intervention"],nE)&&P.push((h=e,new eE(function(e){return eO(h,document,"securitypolicyviolation",function(t){var r,n;e.notify((r=t,n="'".concat(r.blockedURI,"' blocked by '").concat(r.effectiveDirective,"' directive"),nS({type:r.effectiveDirective,message:"".concat(nE,": ").concat(n),originalError:r,csp:{disposition:r.disposition},stack:nT(r.effectiveDirective,r.originalPolicy?"".concat(n,' of the policy "').concat(tb(r.originalPolicy,100,"..."),'"'):"no policy",r.sourceFile,r.lineNumber,r.columnNumber)})))}).stop}))),(M=R.filter(function(e){return e!==nE})).length&&P.push((m=M,new eE(function(e){if(window.ReportingObserver){var t=F(function(t,r){return t.forEach(function(t){var r,n,i;return e.notify((n=(r=t).type,nS({type:(i=r.body).id,message:"".concat(n,": ").concat(i.message),originalError:r,stack:nT(i.id,i.message,i.sourceFile,i.lineNumber,i.columnNumber)})))})}),r=new window.ReportingObserver(t,{types:m,buffered:!0});return r.observe(),function(){r.disconnect()}}}))),eS.apply(void 0,P)).subscribe(function(e){return I.notify(e)}),I.subscribe(function(e){return Z.notify(13,{error:e})}),g=Z,b=eL,w=H,g.subscribe(13,function(e){var t,r,n,i,a,s,o=e.error,u=e.customerContext,l=e.savedCommonContext;g.notify(11,X({customerContext:u,savedCommonContext:l},(t=o,r=b,n=w,i={date:t.startClocks.timeStamp,error:{id:ty(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:"error",view:{in_foreground:r.wasInPageStateAt("active",t.startClocks.relative)}}
1,(a=n.findFeatureFlagEvaluations(t.startClocks.relative))&&!ep(a)&&(i.feature_flags=a),s={error:t.originalError,handlingStack:t.handlingStack},{rawRumEvent:i,startTime:t.startClocks.relative,domainContext:s})))}),{addError:function(e,t){var r=e.error,n=e.handlingStack,i=e.startClocks,a=e.context,s=eY({stackTrace:r instanceof Error?eN(r):void 0,originalError:r,handlingStack:n,startClocks:i,nonErrorPrefix:"Provided",source:"custom",handling:"handled"});g.notify(13,{customerContext:a,savedCommonContext:t,error:s})}}).addError;U={clearTracingIfNeeded:t9,traceFetch:function(t){return t7(e,t,Q,function(e){var r;if(t.input instanceof Request&&!(null==(r=t.init)?void 0:r.headers))t.input=new Request(t.input),Object.keys(e).forEach(function(r){t.input.headers.append(r,e[r])});else{t.init=ed(t.init);var n=[];t.init.headers instanceof Headers?t.init.headers.forEach(function(e,t){n.push([t,e])}):Array.isArray(t.init.headers)?t.init.headers.forEach(function(e){n.push(e)}):t.init.headers&&Object.keys(t.init.headers).forEach(function(e){n.push([e,t.init.headers[e]])}),t.init.headers=n.concat(K(e))}})},traceXhr:function(t,r){return t7(e,t,Q,function(e){Object.keys(e).forEach(function(t){r.setRequestHeader(t,e[t])})})}},function(e,t,r){var n;(!v&&(n=t,v=new eE(function(e){var t=tO(XMLHttpRequest.prototype,"open",ry).stop,r=tO(XMLHttpRequest.prototype,"send",function(t){!function(e,t,r){var n=e.target,i=e.handlingStack,a=rg.get(n);if(a){a.state="start",a.startClocks=e7(),a.isAborted=!1,a.xhr=n,a.handlingStack=i;var s=!1,o=tO(n,"onreadystatechange",function(){n.readyState===XMLHttpRequest.DONE&&u()}).stop,u=function(){if(l(),o(),!s){var e;s=!0,a.state="complete",e=a.startClocks.timeStamp,a.duration=e8()-e,a.status=n.status,r.notify(ed(a))}},l=eO(t,n,"loadend",u).stop;r.notify(a)}}(t,n,e)},{computeHandlingStack:!0}).stop,i=tO(XMLHttpRequest.prototype,"abort",rv).stop;return function(){t(),r(),i()}})),v).subscribe(function(n){if(rA(t,n.url))switch(n.state){case"start":r.traceXhr(n,n.xhr),n.requestIndex=rx(),e.notify(6,{requestIndex:n.requestIndex,url:n.url});break;case"complete":r.clearTracingIfNeeded(n),e.notify(7,{duration:n.duration,method:n.method,requestIndex:n.requestIndex,spanId:n.spanId,startClocks:n.startClocks,status:n.status,traceId:n.traceId,traceSampled:n.traceSampled,type:"xhr",url:n.url,xhr:n.xhr,isAborted:n.isAborted,handlingStack:n.handlingStack})}})}(Z,e,U),E=Z,S=e,A=U,tN().subscribe(function(e){if(rA(S,e.url))switch(e.state){case"start":A.traceFetch(e),e.requestIndex=rx(),E.notify(6,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":var t,r,n,i;t=e,r=function(t){A.clearTracingIfNeeded(e),E.notify(7,{duration:t,method:e.method,requestIndex:e.requestIndex,responseType:e.responseType,spanId:e.spanId,startClocks:e.startClocks,status:e.status,traceId:e.traceId,traceSampled:e.traceSampled,type:"fetch",url:e.url,response:e.response,init:e.init,input:e.input,isAborted:e.isAborted,handlingStack:e.handlingStack})},(i=t.response&&function(e){try{return e.clone()}catch(e){return}}(t.response))&&i.body?function(e,t,r){var n=e.getReader(),i=[],a=0;function s(){if(n.cancel().catch(eu),r.collectStreamBody){if(1===i.length)o=i[0];else{var e,s,o=new Uint8Array(a),u=0;i.forEach(function(e){o.set(e,u),u+=e.length})}e=o.slice(0,r.bytesLimit),s=o.length>r.bytesLimit}t(void 0,e,s)}!function e(){n.read().then(F(function(t){t.done?s():(r.collectStreamBody&&i.push(t.value),(a+=t.value.length)>r.bytesLimit?s():e())}),F(function(e){return t(e)}))}()}(i.body,function(){var e;r((e=t.startClocks.timeStamp,e8()-e))},{bytesLimit:1/0,collectStreamBody:!1}):r((n=t.startClocks.timeStamp,e8()-n))}});var tx=function(e,t,r){function n(r){var n,i,a;t.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||e.notify(11,(i=!0,a={date:(n=r).startClocks.timeStamp,vital:{id:ty(),type:n.type,name:n.name,duration:e3(n.duration),description:n.description},type:"vital"},i&&(a._dd={vital:{computed_value:!0}}),{rawRumEvent:a,startTime:n.startClocks.relative,customerContext:n.context,domainContext:{}}))}return{addDurationVital:n,startDurationVital:function(e,t){return void 0===t&&(t={}),tw(r,e,t)},stopDurationVital:function(e,t){void 0===t&&(t={}),tE(n,r,e,t)}}}(Z,eL,o),tR=(j=e.applicationId,{get:function(e){var t=eP.findView(e),r=eD.findUrl(e),n=Q.findTrackedSession(e);if(n&&t&&r){var i=eM.findActionId(e);return{application_id:j,session_id:n.id,user_action:i?{id:i}:void 0,view:{id:t.id,name:t.name,referrer:r.referrer,url:r.url}}}}});return{addAction:eU,addError:tI,addTiming:eZ,addFeatureFlagEvaluation:H.addFeatureFlagEvaluation,startView:eH,setViewContext:eQ,setViewContextProperty:e2,updateViewName:eX,lifeCycle:Z,viewHistory:eP,session:Q,stopSession:function(){return Q.expire()},getInternalContext:tR.get,startDurationVital:tx.startDurationVital,stopDurationVital:tx.stopDurationVital,addDurationVital:tx.addDurationVital,stop:function(){$.forEach(function(e){return e()})}}},function(e){if(tA()&&!tT("records")||!iB())return{start:eu,stop:eu,getReplayStats:function(){},onRumStart:eu,isRecording:function(){return!1},getSessionReplayLink:function(){}};var t={status:1},r=function(){t={status:1}},n=function(){t={status:0}},i=eu;return{start:function(e){return r(e)},stop:function(){return n()},getSessionReplayLink:function(){return i()},onRumStart:function(a,s,o,u,l){var c;s.startSessionReplayRecordingManually&&(t={status:0}),a.subscribe(8,function(){(2===t.status||3===t.status)&&(n(),t={status:1})}),a.subscribe(10,function(e){e.reason===ri.UNLOADING&&n()}),a.subscribe(9,function(){1===t.status&&r()}),r=function(r){var i=o.findTrackedSession();if(!i||0===i.sessionReplay&&(!r||!r.force)){t={status:1};return}2!==t.status&&3!==t.status&&(t={status:2},nC(s,"interactive",function(){if(2===t.status){var r=(!c&&(l||(l=iY(s,"Datadog Session Replay",function(){n()},void 0)),l&&(c=iF(s,l,1))),c);if(!r){t={status:0};return}t={status:3,stopRecording:e(a,s,o,u,r).stop}}}),r&&r.force&&0===i.sessionReplay&&o.setForcedReplay())},n=function(){0!==t.status&&(3===t.status&&t.stopRecording(),t={status:0})},i=function(){var e,r,n,i,a,l,c,d,f,p,h,m,g,y,v,_;return e=0!==t.status,m=r=o.findTrackedSession(),g=e,n=iB()?m?0===m.sessionReplay?"incorrect-session-plan":g?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",i=u.findView(),l=(a={viewContext:i,errorType:n,session:r}).session,c=a.viewContext,d=a.errorType,f=l?l.id:"no-session-id",p=[],void 0!==d&&p.push("error-type=".concat(d)),c&&(p.push("seed=".concat(c.id)),p.push("from=".concat(c.startClocks.timeStamp))),v=(y=s).site,_=y.subdomain||function(e){switch(e.site){case eX:case"datadoghq.eu":return"app";case eJ:return"dd";default:return}}(y),h="https://".concat(_?"".concat(_,"."):"").concat(v),"".concat(h).concat("/rum/replay/sessions/".concat(f),"?").concat(p.join("&"))},1===t.status&&r()},isRecording:function(){return 3===iH.status&&3===t.status},getReplayStats:function(e){return 3===iH.status?null==I?void 0:I.get(e):void 0}}}(function(e,t,r,n,i,a){var s,o=[],u=a||n6(t,t.sessionReplayEndpointBuilder,6e4,function(t){e.notify(13,{error:t}),tf("Error reported to customer",{"error.message":t.message})});if(tA())s=(l=tS(),{addRecord:function(e){var t=n.findView();l.send("record",e,t.id)}}).addRecord;else{var l,c=function(e,t,r,n){var i={status:0,nextSegmentCreationReason:"init"},a=e.subscribe(2,function(){o("view_change")}).unsubscribe,s=e.subscribe(10,function(e){o(e.reason)}).unsubscribe;function o(e){1===i.status&&(i.segment.flush(function(t,n){var i,a,s,o,u=(i=n.output,a=n.rawBytesCount,(s=new FormData).append("segment",new Blob([i],{type:"application/octet-stream"}),"".concat(t.session.id,"-").concat(t.start)),o=JSON.stringify(X({raw_segment_size:a,c
1ompressed_segment_size:i.byteLength},t)),s.append("event",new Blob([o],{type:"application/json"})),{data:s,bytesCount:i.byteLength});Y(q(ri),e)?r.sendOnExit(u):r.send(u)}),ei(i.expirationTimeoutId)),i="stop"!==e?{status:0,nextSegmentCreationReason:e}:{status:2}}return{addRecord:function(e){if(2!==i.status){if(0===i.status){var r=t();if(!r)return;i={status:1,segment:function(e){var t=e.context,r=e.creationReason,n=e.encoder,i=0,a=t.view.id,s=X({start:1/0,end:-1/0,creation_reason:r,records_count:0,has_full_snapshot:!1,index_in_view:ic(a).segments_count,source:"browser"},t);return ic(a).segments_count+=1,{addRecord:function(e,t){s.start=Math.min(s.start,e.timestamp),s.end=Math.max(s.end,e.timestamp),s.records_count+=1,s.has_full_snapshot||(s.has_full_snapshot=2===e.type);var r=n.isEmpty?'{"records":[':",";n.write(r+JSON.stringify(e),function(e){t(i+=e)})},flush:function(e){if(n.isEmpty)throw Error("Empty segment flushed");n.write("],".concat(JSON.stringify(s).slice(1),"\n")),n.finish(function(t){var r,n;r=s.view.id,n=t.rawBytesCount,ic(r).segments_total_raw_size+=n,e(s,t)})}}}({encoder:n,context:r,creationReason:i.nextSegmentCreationReason}),expirationTimeoutId:en(function(){o("segment_duration_limit")},5e3)}}i.segment.addRecord(e,function(e){e>6e4&&o("segment_bytes_limit")})}},stop:function(){o("stop"),a(),s()}}}(e,function(){var e=t.applicationId,i=r,a=n,s=i.findTrackedSession(),o=a.findView();return s&&o?{application:{id:e},session:{id:s.id},view:{id:o.id}}:void 0},u,i);s=c.addRecord,o.push(c.stop)}var d=function(e){var t,r,n,i,a,s,o,u,l,c,d,f,p,h,m=e.emit,g=e.configuration,y=e.lifeCycle;if(!m)throw Error("emit function is required");var v=function(t){var r;m(t),tr("record",{record:t}),r=e.viewHistory.findView().id,ic(r).records_count+=1},_=(t=new WeakMap,{set:function(e,r){(e!==document||document.scrollingElement)&&t.set(e===document?document.scrollingElement:e,r)},get:function(e){return t.get(e)},has:function(e){return t.has(e)}}),b=iV(g,v,_),w=(r=E,(n=function(e){return e.forEach(function(e){return v(e)})})((i=function(e,t){void 0===e&&(e=e8()),void 0===t&&(t={status:0,elementsScrollPositions:_,shadowRootsController:b});var r=nG(),n=r.width,i=[{data:{height:r.height,href:window.location.href,width:n},type:4,timestamp:e},{data:{has_focus:document.hasFocus()},type:6,timestamp:e},{data:{node:iC(document,{serializationContext:t,parentNodePrivacyLevel:g.defaultPrivacyLevel,configuration:g}),initialOffset:{left:nz(),top:nH()}},type:2,timestamp:e}];return window.visualViewport&&i.push({data:iR(window.visualViewport),type:8,timestamp:e}),i})()),{stop:y.subscribe(2,function(e){r(),n(i(e.startClocks.timeStamp,{shadowRootsController:b,status:1,elementsScrollPositions:_}))}).unsubscribe}).stop;function E(){b.flush(),T.flush()}var S=(a=new WeakMap,s=1,{getIdForEvent:function(e){return a.has(e)||a.set(e,s++),a.get(e)}}),T=iZ(v,g,b,document),A=[T,(u=(o=eo(function(e){var t=iN(e);if(ip(t)){var r=iD(e);if(!r)return;var n={id:ih(t),timeOffset:0,x:r.x,y:r.y};v(iP(ix(e)?6:1,{positions:[n]}))}},50,{trailing:!1})).throttled,l=o.cancel,c=eC(g,document,["mousemove","touchmove"],u,{capture:!0,passive:!0}).stop,{stop:function(){c(),l()}}),eC(g,document,Object.keys(iM),function(e){var t,r=iN(e);if(rX(r,g.defaultPrivacyLevel)!==rW.HIDDEN&&ip(r)){var n=ih(r),i=iM[e.type];if(6!==i&&5!==i){var a=iD(e);if(!a)return;t={id:n,type:i,x:a.x,y:a.y}}else t={id:n,type:i};v(X({id:S.getIdForEvent(e)},iP(2,t)))}},{capture:!0,passive:!0}),iU(g,v,_,document),(d=nY(g).subscribe(function(e){v(iP(4,e))}),{stop:function(){d.unsubscribe()}}),i$(g,v),eC(g,document,["play","pause"],function(e){var t=iN(e);t&&rX(t,g.defaultPrivacyLevel)!==rW.HIDDEN&&ip(t)&&v(iP(7,{id:ih(t),type:1*("play"!==e.type)}))},{capture:!0,passive:!0}),function(e){function t(e,t){e&&ip(e.ownerNode)&&t(ih(e.ownerNode))}var r=[tO(CSSStyleSheet.prototype,"insertRule",function(r){var n=r.target,i=r.parameters,a=i[0],s=i[1];t(n,function(t){return e(iP(8,{id:t,adds:[{rule:a,index:s}]}))})}),tO(CSSStyleSheet.prototype,"deleteRule",function(r){var n=r.target,i=r.parameters[0];t(n,function(t){return e(iP(8,{id:t,removes:[{index:i}]}))})})];function n(n){r.push(tO(n.prototype,"insertRule",function(r){var n=r.target,i=r.parameters,a=i[0],s=i[1];t(n.parentStyleSheet,function(t){var r=ij(n);r&&(r.push(s||0),e(iP(8,{id:t,adds:[{rule:a,index:r}]})))})}),tO(n.prototype,"deleteRule",function(r){var n=r.target,i=r.parameters[0];t(n.parentStyleSheet,function(t){var r=ij(n);r&&(r.push(i),e(iP(8,{id:t,removes:[{index:r}]})))})}))}return"u">typeof CSSGroupingRule?n(CSSGroupingRule):(n(CSSMediaRule),n(CSSSupportsRule)),{stop:function(){r.forEach(function(e){return e.stop()})}}}(v),eC(g,window,["focus","blur"],function(){v({data:{has_focus:document.hasFocus()},type:6,timestamp:e8()})}
1),function(e,t){var r=window.visualViewport;if(!r)return{stop:eu};var n=eo(function(){t({data:iR(r),type:8,timestamp:e8()})},200,{trailing:!1}),i=n.throttled,a=n.cancel,s=eC(e,r,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}(g,v),(f=y.subscribe(11,function(e){var t,r;"action"===e.rawRumEvent.type&&"click"===e.rawRumEvent.action.type&&(null==(r=null==(t=e.rawRumEvent.action.frustration)?void 0:t.type)?void 0:r.length)&&"events"in e.domainContext&&e.domainContext.events&&e.domainContext.events.length&&v({timestamp:e.rawRumEvent.date,type:9,data:{frustrationTypes:e.rawRumEvent.action.frustration.type,recordIds:e.domainContext.events.map(function(e){return S.getIdForEvent(e)})}})}),{stop:function(){f.unsubscribe()}}),(p=function(e){E(),v(e)},h=y.subscribe(4,function(){p({timestamp:e8(),type:7})}),{stop:function(){h.unsubscribe()}})];return{stop:function(){b.stop(),A.forEach(function(e){return e.stop()}),w()},flushMutations:E,shadowRootsController:b}}({emit:s,configuration:t,lifeCycle:e,viewHistory:n}).stop;return o.push(d),{stop:function(){o.forEach(function(e){return e()})}}}),{startDeflateWorker:iY,createDeflateEncoder:iF});a=Q(),(o=a[s="DD_RUM"])&&!o.q&&o.version&&D.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),a[s]=iW,o&&o.q&&o.q.forEach(function(e){return $(e,"onReady callback threw an error:")()})},1713:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(79424);function i({appliedEntitlements:e,accessToken:t}){if(""!==e){if(!e)return!1;try{let t=JSON.parse(e);return Array.isArray(t)&&t.includes("SUBS_NBCNEWS")}catch{return!1}}return function({accessToken:e}){if(!e)return!1;let t=(0,n.WO)(e);if(!t?.sub)return!1;let{subscriptions:r}=(0,n.mu)(t??{exp:0});return!!r?.nbcNews}({accessToken:t})}},2038:(e,t,r)=>{"use strict";r.d(t,{C:()=>s,F:()=>o});var n=r(13675),i=r(94937);let a=[],s=e=>(0,n.A)({endpoint:`playlist/${e}`,types:[i.Vh,i.$s,i.C1]}),o=(e=a,t)=>{if(t.type!==i.$s)return e;{let{videoPlaylist:r}=t.payload.data;return[...e,r]}}},3717:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4218:(e,t,r)=>{"use strict";r.d(t,{MV:()=>l,f4:()=>o});var n=r(13675);let i="FETCH_PERSONS_LOADING",a="FETCH_PERSONS_SUCCEEDED",s="FETCH_PERSONS_FAILED",o=()=>(0,n.A)({endpoint:"persons/search",types:[i,a,s]}),u={items:[],loading:!1,error:!1,pagination:null};function l(e=u,t){switch(t.type){case i:return{...e,loading:!0,error:null};case a:return{...e,loading:!1,items:t.payload.data.search.items};case s:return{...e,loading:!1,error:t.payload.error,items:[]};default:return e}}},4319:(e,t,r)=>{"use strict";r.d(t,{lt:()=>a});let n=new Map,i=e=>{let t=n.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},a=(e,t={})=>(r,a,o)=>{let u,{enabled:l,anonymousActionType:c,store:d,...f}=t;try{u=(null==l||l)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!u)return l&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,a,o);
1let{connection:p,...h}=((e,t,r)=>{if(void 0===e)return{type:"untracked",connection:t.connect(r)};let i=n.get(r.name);if(i)return{type:"tracked",store:e,...i};let a={connection:t.connect(r),stores:{}};return n.set(r.name,a),{type:"tracked",store:e,...a}})(d,u,f),m=!0;o.setState=(e,t,n)=>{let s=r(e,t);if(!m)return s;let u=void 0===n?{type:c||"anonymous"}:"string"==typeof n?{type:n}:n;return void 0===d?null==p||p.send(u,a()):null==p||p.send({...u,type:`${d}/${u.type}`},{...i(f.name),[d]:o.getState()}),s};let g=(...e)=>{let t=m;m=!1,r(...e),m=t},y=e(o.setState,a,o);if("untracked"===h.type?null==p||p.init(y):(h.stores[h.store]=o,null==p||p.init(Object.fromEntries(Object.entries(h.stores).map(([e,t])=>[e,e===h.store?y:t.getState()])))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1,t=o.dispatch;o.dispatch=(...r)=>{"__setState"!==r[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...r)}}return p.subscribe(e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload)return void console.error("[zustand devtools middleware] Unsupported action format");return s(e.payload,e=>{if("__setState"===e.type){if(void 0===d)return void g(e.state);1!==Object.keys(e.state).length&&console.error(` 2 [zustand devtools middleware] Unsupported __setState action format. 3 When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), 4 and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } 5 `);let t=e.state[d];return void(null==t||JSON.stringify(o.getState())!==JSON.stringify(t)&&g(t))}o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(g(y),void 0===d)return null==p?void 0:p.init(o.getState());return null==p?void 0:p.init(i(f.name));case"COMMIT":if(void 0===d){null==p||p.init(o.getState());break}return null==p?void 0:p.init(i(f.name));case"ROLLBACK":return s(e.state,e=>{if(void 0===d){g(e),null==p||p.init(o.getState());return}g(e[d]),null==p||p.init(i(f.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return s(e.state,e=>{void 0===d?g(e):JSON.stringify(o.getState())!==JSON.stringify(e[d])&&g(e[d])});case"IMPORT_STATE":{let{nextLiftedState:r}=e.payload,n=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!n)return;void 0===d?g(n):g(n[d]),null==p||p.send(null,r);break}case"PAUSE_RECORDING":return m=!m}return}}),y},s=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)}},5130:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90951);function i(e,t){void 0===t&&(t={});var r,n,i=(r=e)&&"j"===r[0]&&":"===r[1]?r.substr(2):r;if(void 0===(n=t.doNotParse)&&(n=!i||"{"!==i[0]&&"["!==i[0]&&'"'!==i[0]),!n)try{return JSON.parse(i)}catch(e){}return e}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};let s=function(){function e(e,t){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?n.q(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){r.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=n.q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,r){return void 0===t&&(t={}),this._updateBrowserValues(r),i(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var r={};for(var n in this.cookies)r[n]=i(this.cookies[n],e);return r},e.prototype.set=function(e,t,r){var i;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=a(a({},this.cookies),((i={})[e]=t,i)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.l(e,t,r)),this._emitChange({name:e,value:t,options:r})},e.prototype.remove=function(e,t){var r=t=a(a({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0}
5);this.cookies=a({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.l(e,"",r)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}()},5407:(e,t,r)=>{"use strict";r.d(t,{K:()=>a,_:()=>o});var n=r(13675);let i="video/LOAD_RELATED_SUCCESS",a=e=>(0,n.A)({endpoint:`article/${e}`,types:["video/LOAD_RELATED_PENDING",i,"video/LOAD_RELATED_ERROR"]}),s={},o=(e=s,t)=>{let r;return(t.payload&&({data:r}=t.payload),t.type===i)?{headline:r.article?.headline||{},description:r.article?.description||{},ecommerceEnabled:r.article?.ecommerceEnabled,url:r.article?.url?.primary||""}:e}},5618:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});let n=Symbol("MONITORING_SCROLL"),i=Symbol("HANDLE_DEBOUNCE_SCROLL"),a=Symbol("HANDLE_THROTTLE_SCROLL"),s=Symbol("HANDLE_SCROLL"),o=Symbol("MONITORING_RESIZE"),u=Symbol("HANDLE_DEBOUNCE_RESIZE"),l=Symbol("MONITORING_IMAGES_LOAD"),c=Symbol("HANDLE_IMAGES_LOAD"),d=Symbol("IMAGES_TRACKED"),f=Symbol("IMAGES_LOADED"),p=(e,t,r)=>{let n=null,i=()=>e.apply(r,null);return()=>{clearTimeout(n),n=setTimeout(i,t)}},h={},m={[n]:!1,[o]:!1,[l]:!1,[i]:p(()=>{m.trigger("scroll",window.pageYOffset,"debounce")},100),[a]:({ticking:!1,request(e){return()=>{this.ticking||requestAnimationFrame(()=>this.update(e)),this.ticking=!0}},update(e){e(),this.ticking=!1}}).request(()=>{m.trigger("scroll",window.pageYOffset,"throttle")}),[s]:()=>m.trigger("scroll",window.pageYOffset,"none"),monitorScroll(){this[n]||(window.addEventListener("scroll",this[i],!1),window.addEventListener("scroll",this[a],!1),window.addEventListener("scroll",this[s],!1),this[n]=!0)},deregisterScroll(){this[n]&&(window.removeEventListener("scroll",this[i]),window.removeEventListener("scroll",this[a]),window.removeEventListener("scroll",this[s]),this[n]=!1)},[u]:p(()=>{m.trigger("resize",{width:window.innerWidth,height:window.innerHeight},"debounce")}),monitorResize(){this[o]||(window.addEventListener("resize",this[u],!1),this[o]=!0)},deregisterResize(){this[o]&&(window.removeEventListener("resize",this[u]),this[o]=!1)},[f]:0,[d]:[],[c]:()=>{m.trigger("imagesLoaded",void 0,"throttle"),m[l]=!1},monitorImagesLoad(){let e=Array.from(document.getElementsByTagName("picture")).map(e=>e.querySelector("img")),t=e.filter(e=>e.complete);this[d]=e,this[f]=t.length,this[l]=!0,this.triggerImagesLoaded()},oneImageLoaded(){if(!this[l])return;let e=this[d].filter(e=>e.complete);this[f]=e.length,this.triggerImagesLoaded()},triggerImagesLoaded(){this[f]===this[d].length&&this[c]()},on(e,t,r="throttle"){let n="resize"!==e?`${e}_${r}`:`${e}_debounce`;h[n]||(h[n]=[]),h[n]=[...h[n],t]},remove(e,t,r="throttle"){let n="resize"!==e?`${e}_${r}`:`${e}_debounce`;h[n]&&(h[n]=h[n].filter(e=>e!==t))},trigger(e,t,r="throttle"){let n="resize"!==e?`${e}_${r}`:`${e}_debounce`;h[n]&&h[n].forEach(e=>e(t))},once(e,t,r){let n=(...i)=>{t(...i),m.remove(e,n,r)};m.on(e,n,r)}},g=m},7885:(e,t,r)=>{"use strict";r.d(t,{mc:()=>g,iY:()=>m,Ki:()=>y});var n=r(13675),i=r(47559),a=r(10958),s=r(54955),o=r(94937),u=r(82001),l=r(13197);let c=null;var d=r(74626),f=r(5407),p=r(65114),h=r(2038);let m=(0,s.A)(o.Zq);(0,s.A)(o.aN);let g=(e,t,r="",a=!1,s={})=>{let u;u=(0,i.isTelemundoVertical)(t)?`tmvo${e.toString().replace(/^tmvo/,"")}`:`mmvo${e.toString().replace(/^mmvo/,"")}`;let l=a?`video/SUBS_NEWS/${u}`:`video/${u}`,c={...r&&{Cookie:r},...s},d=Object.keys(c).length>0?{headers:c}:void 0;return(0,n.A)({endpoint:l,types:[o.pq,o.nd,o.Mr],...d&&{additionalRequestData:d}})},y=(0,a.HY)({associatedPlaylists:u.Q,autoPlay:(e=!1,t)=>t.type===o.aN?t.payload:e,current:(e=c,t)=>{switch(t.type){case o.nd:{let{data:{video:e},extensions:r}=t.payload;return{...t.payload.data.video,documentTracing:(0,l.A)(e,r),error:null}}case o.Mr:return{...e,error:t.payload};case o.Zq:return t.payload;default:return e}},error:d.L2,relatedArticle:f._,relatedVideo:p.z,topPlaylists:h.F})},8459:(e,t,r)=>{"use strict";let n,i,a,s,o,u;r.d(t,{A:()=>p,L:()=>l});let l={s:0,m:758,l:1e3,xl:1240,xxl:1440,xxxl:1600};function c(e,t){return(...t)=>e(...t)}let d=c(e=>window.matchMedia(e),{matches:!1,media:"",onchange:null,addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!0}),f={getSmallMQL:()=>(n||(n=d(`(max-width: ${l.m-1}px)`)),n),getMediumMQL:()=>(i||(i=d(`(min-width: ${l.m}px) and (max-width: ${l.l-1}px)`)),i),getLargeMQL:()=>(a||(a=d(`(min-width: ${l.l}px) and (max-width: ${l.xl-1}px)`)),a),getXLargeMQL:()=>(s||(s=d(`(min-width: ${l.xl}px)`)),s),getXXLargeMQL:()=>(o||(o=d(`(min-width: ${l.xxl}px)`)),o),getXXXLargeMQL:()=>(u||(u=d(`(min-width: ${l.xxxl}px)`)),u),isS:c(()=>f.getSmallMQL().matches),isM:c(()=>f.getMediumMQL().matches),isL:c(()=>f.getLargeMQL().matches),isXL:c(()=>f.getXLargeMQL().matches),isXXL:c(()=>f.getXXLargeMQL().matches),isXXXL:c(()=>f.getXXXLargeMQL().matches),isSorM:c(()=>f.getSmallMQL().matches||f.getMediumMQL().matches),isLorXL:c(()=>f.getLargeMQL().matches||f.getXLargeMQL().matches),listenToAll:e=>{f.getSmallMQL().addListener(e),f.getMediumMQL().addListener(e),f.getLargeMQL().addListener(e),f.getXLargeMQL().addListener(e),f.getXXLargeMQL().addListener(e)},removeFromAll:e=>{f.getSmallMQL().removeListener(e),f.getMediumMQL().removeListener(e),f.getLargeMQL().removeListener(e),f.getXLargeMQL().removeListener(e),f.getXXLargeMQL().removeListener(e)}},p=f},8603:(e,t,r)=>{"use strict";r.d(t,{tG:()=>c,_:()=>f});var n=r(84308),i=r.n(n),a=r(54955),s=r(8673);let o="schedule/SCHEDULE_PENDING",u="schedule/SCHEDULE_COMPLETE",l="schedule/SCHEDULE_FAILED",c=e=>(({endpoint:e,types:t})=>async r=>{let[n,s,o]=t,u=(0,a.A)(n),l=(0,a.A)(s),c=(0,a.A)(o);r(u()),await i()(e).then(e=>e.json()).then(e=>{r(l(e))}).catch(e=>{r(c(e))})})({endpoint:(0,s.Oq)(e),types:[o,u,l]}
5),d={loading:!1,formattedItems:null},f=(e=d,t)=>{switch(t.type){case o:return{...e,loading:!0};case l:return{...e,loading:!1};case u:{let{entries:r}=t.payload,n=(0,s.Lw)(r);return{...e,loading:!1,formattedItems:n}}default:return e}}},8673:(e,t,r)=>{"use strict";r.d(t,{Lw:()=>y,Oq:()=>b,Zs:()=>v,n1:()=>E,n8:()=>w,qn:()=>g,un:()=>m});var n=r(56557),i=r.n(n),a=r(73679),s=r.n(a),o=r(71576),u=r.n(o),l=r(64301),c=r.n(l),d=r(70704),f=r.n(d),p=r(88051),h=r(70510);i().extend(u()),i().extend(c()),i().extend(s()),i().extend(f());let m="America/New_York",g=new Map([[1,"Monday"],[2,"Tuesday"],[3,"Wednesday"],[4,"Thursday"],[5,"Friday"],[6,"Saturday"],[0,"Sunday"]]),y=(e=[])=>e.reduce((e,t)=>{let r=t?.seriesId||"",n=r.substr(r.lastIndexOf("/")+1),a={title:t?.program?.title,genre:t?.program?.displayGenre??"",startTime:t.startTime,seriesId:n,description:t?.program?.description??""},s=i()(a.startTime).tz(m),o=+(5>s.hour()),u=s.subtract(o,"days").day(),l=g.get(u);return e[l]?e[l].push(a):e[l]=[a],e},{}),v=(e,t)=>{if(!t)return!1;let r=e?.startTime??0,n=t?.startTime??0,a=i()(r).tz(m),s=i()(n).tz(m);return a.subtract(1,"day").isSame(s,"day")},_=["guid","startTime","program.title","program.displayGenre","program.description","program.runtime","seriesId"],b=e=>{let t=i()().tz(m),r=t.startOf("isoWeek").hour(5).add(1,"ms"),n=t.endOf("isoWeek").add(1,"day").hour(5).startOf("hour");return(0,h.getScheduleFeed)({vertical:e,fields:_,count:250,startTime:r.valueOf(),endTime:n.valueOf()})},w="broadcastSchedules";function E(){let e=(0,p.H)();return`${e}/${w}`}},8875:(e,t,r)=>{"use strict";e.exports=r(47785)},8972:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(40670);function i(e,t){if(null==e)return{};var r,i,a=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},9373:(e,t,r)=>{"use strict";r.d(t,{G:()=>g,Jt:()=>b,Pu:()=>h,g:()=>c,rV:()=>m});var n=r(54955),i=r(13675),a=r(59870);let s="liveBlog/CARD_LOAD_PENDING",o="liveBlog/CARD_LOAD_COMPLETE",u="liveBlog/CARD_LOAD_FAILED",l="liveBlog/CARD_FETCH_PENDING",c="liveBlog/CARD_FETCH_COMPLETE",d="liveBlog/CARD_INSTANCES_FETCH_COMPLETE",f="liveBlog/CARD_FETCH_FAILED",p="liveBlog/UPDATE_ACTIVE_CARDS",h=e=>(0,i.A)({endpoint:`card/${e}`,types:[s,o,u]}),m=e=>(({excludeCard:e,datePublished:t,page:r,path:n,queryLimit:a},s)=>{let o=`type:card AND taxonomy:${n}`;o+=' AND (subType:"post" OR subType:"text")',t&&(o+=` AND datePublished:[* TO ${t.replace(/\+(\d){2}:(\d){2}$/,"")}]`),e&&(o+=` NOT id:${e}`);let u=`card/search?filters=${o}&size=${a}`;return r&&(u=`${u}&page=${r}`),(0,i.A)({endpoint:u,types:s})})(e,[l,c,f]),g=e=>(({excludeCard:e,page:t,articleId:r,queryLimit:n,shownOnFronts:a},s)=>{let o=r.startsWith("r"),u=`rcna${r.slice(1)}`,l=o?`url:*${u}*`:`url:*${r}*`,c=`${l} AND type:card`;c+=' AND (subType:"post" OR subType:"text")',e&&(c+=` NOT id:${e}`);let d=`articlecards/search?articleId=${u}&filters=${c}&size=${n}&forFronts=${a}`;return t&&(d=`${d}&page=${t}`),(0,i.A)({endpoint:d,types:s,additionalActionTypeData:{articleId:r}})})(e,[l,d,f]);(0,n.A)(p);let y=e=>{let t=e?.data?.search?.pagination??null;return{transformed:(e?.data?.article?.cards?.items??[]).map(a.rU),pagination:t}},v=(e,t)=>{let r;if(!e.length||!t.length)return!1;let n=e.findIndex(({id:e})=>t[0].id===e),i=n<0,a=(r=t.reduce((e,t)=>(e[t.id]=!0,e),{}),!e.some(({id:e})=>r[e]));return!!i&&!a||(!i||!a)&&!e.slice(n).every((e,r)=>e.id===t[r].id)},_={activeItems:[],allTotalItems:null,card:null,cardLoading:!1,error:null,fetchingLatest:!1,latestItems:[],latestDate:null,loadingMoreCards:!1,numberOfNewItems:0,pagination:null,trueTotalItems:null,pkgInstances:{}};function b(e=_,t){switch(t.type){case s:return{...e,cardLoading:!0};case o:{let r=t?.payload?.data?.card??null;return{...e,cardLoading:!1,card:(0,a.rU)(r),latestDate:r.date.publishedAt}}case u:return{...e,cardLoading:!1,error:t.payload};case l:return{...e,fetchingLatest:!0};case d:{let{pagination:r,transformed:n}=y(t.payload),{articleId:i}=t.payload.additionalActionTypeData,a=e.pkgInstances;return{...e,pkgInstances:{...a,[i]:{fetchingLatest:!1,latestDate:n?.[0]?.date?.publishedAt,latestItems:n,pagination:r}}}}case c:{let{pagination:r,transformed:n}=y(t.payload),i={...e,fetchingLatest:!1,latestDate:n?.[0]?.date?.publishedAt,latestItems:n,pagination:r,cardPollingComplete:!0};return e.activeItems.length?e?.activeItems?.[0]?.id!==n?.[0]?.id&&(i.numberOfNewItems=((e,t)=>{let r=e[0]?.id,n=t[0]?.id,i=v(e,t);if(r!==n&&!i){let t=e.findIndex(({id:e})=>e===n);return t<0?e.length:t}return 0})(n,e.activeItems),i.allTotalItems=r.totalItems):i.activeItems=n,e.trueTotalItems||(i.trueTotalItems=r.totalItems),v(n,e.activeItems)&&(i.activeItems=n),i}case f:return{...e,fetchingLatest:!1,error:t.payload};case"liveBlog/LOAD_MORE_CARDS_PENDING":return{...e,loadingMoreCards:!0};case"liveBlog/LOAD_MORE_CARDS_FAILED":return{...e,loadingMoreCards:!1,error:!0};case"liveBlog/LOAD_MORE_CARDS_COMPLETE":{let{pagination:r,transformed:n}=y(t.payload);return{...e,activeItems:[...e.activeItems,...n],loadingMoreCards:!1,pagination:r}}case p:return{...e,activeItems:[...e.latestItems.map(t=>({...t,newActiveItem:!(e.activeItems||[]).some(({id:e})=>e===t.id)}))],numberOfNewItems:0,trueTotalItems:e.allTotalItems};default:return e}}},10540:(e,t,r)=>{"use strict";r.d(t,{hZ:()=>o.hZ,GP:()=>p,aH:()=>g});var n=r(34957),i=(r(4319),r(84245)),a=r(64609),s=r(79424),o=r(31586),u=r(55528);let l=["65854066"];function c(){try{let e=o.hZ.getState().access_token;if(!e)return!1;let t=(0,s.WO)(e);if(!t||!t.sub)return!1;return l.includes(t.sub)}catch{return!1}}let d=()=>{o.hZ.getState().setAuthenticationModal(!0)},f={bookmarks:{},token:void 0,filterType:i.y2,customer:{history:{data:[],pageInfo:{nextPage:null}},bookmarks:{data:[],pageInfo:{nextPage:null}},recommendations:{data:[]}},loading:!0},p=(0,n.vt)((e,t)=>({...f,ensureAuthenticated:async()=>{try{await o.hZ.getState().refreshUserToken()}catch{}return o.hZ.getState().authenticationState===i.K_},resetAuthentication:()=>{e({bookmarks:f.bookmarks,customer:f.customer,token:f.token},!1,"resetAuthentication")},reset:()=>e({...f},!1,"reset"),getCustomer:async()=>
5{if(c())return;let r=await (0,u.Qz)("/mynewsapi/customer/");e({customer:{...t().customer,...r.data.getCustomer}},!1,"getCustomer")},setLoading:t=>e({loading:t},!1,"setLoading"),setFilterType:t=>e({filterType:t},!1,"setFilterType"),getBookmarks:async({size:r=(0,i.GD)(),cursor:n,filterType:a=i.y2,customerId:s}={})=>{if(e({loading:!0}),c())return void e({loading:!1},!1,"getBookmarks");let{data:{getCustomer:{bookmarks:o}}}=await (0,u.Qz)(`/mynewsapi/bookmarks/${r}/${n??null}/${a}`,{customerId:s});e({customer:{...t().customer,bookmarks:{data:((e=[],t=[])=>{let r=new Map;return[...e,...t].forEach(e=>r.set(e.contentId,e)),Array.from(r.values())})(n?t().customer.bookmarks.data:[],o.data),pageInfo:o.pageInfo}},filterType:a,loading:!1},!1,"getBookmarks")},saveCustomer:async({zipcode:e}={})=>{!e||c()||(await (0,u.Qz)(`/mynewsapi/savecustomer/${e}`,{}),await t().getCustomer())},getRecommendations:async({size:t=i.Ip}={})=>{if(c())return;let r=await (0,u.Qz)(`/mynewsapi/recommendations/${t}`);e((0,a.jM)(e=>{e.customer.recommendations.data=r.data.getCustomer.recommendations.data}),!1,"getRecommendations")},getHistory:async t=>{let{size:r=i.Ip,cursor:n=null,customerId:s}=t;if(e({loading:!0},!1,"getHistoryLoadingStart"),c())return void e({loading:!1},!1,"getHistoryLoadingEnd");try{let t=await (0,u.Qz)(`/mynewsapi/history/${r}/${n}`,{customerId:s});return e((0,a.jM)(e=>{n?e.customer.history.data=[...e.customer.history.data,...t.data.getCustomer.history.data]:e.customer.history.data=t.data.getCustomer.history.data,e.customer.history.pageInfo=t.data.getCustomer.history.pageInfo,e.loading=!1}),!1,"getHistory"),t}finally{e({loading:!1},!1,"getHistoryLoadingEnd")}},saveHistory:async({contentType:t,contentId:r})=>!c()&&(e({savedContentId:r},!1,"saveHistory"),(await (0,u.Qz)(`/mynewsapi/savehistory/${r}/${t}`)).data.saveHistory),createBookmark:async({contentId:r,contentType:n,customerId:i,fallback:a=d}={contentId:"undefined"})=>{if(c())return!1;if(!await t().ensureAuthenticated())return a(),!1;e(e=>({bookmarks:{...e.bookmarks,[r]:!0}}),!1,"createBookmarkOptimistic");let{data:s}=await (0,u.Qz)(`/mynewsapi/createbookmark/${r}/${n}`,{customerId:i});return s.createBookmark?(e(e=>({bookmarks:{...e.bookmarks,[r]:!0}}),!1,"createBookmarkConfirm"),!0):(e(e=>({bookmarks:{...e.bookmarks,[r]:!1}}),!1,"createBookmarkRollback"),!1)},deleteBookmark:async({contentId:r,customerId:n,fallback:i=d}={contentId:"undefined"})=>{if(c())return!1;if(!await t().ensureAuthenticated())return i(),!1;e(e=>({bookmarks:{...e.bookmarks,[r]:!1}}),!1,"deleteBookmarkOptimistic");let{data:s}=await (0,u.Qz)(`/mynewsapi/deleteBookmark/${r}/`,{customerId:n});return s.deleteBookmark?(e((0,a.jM)(e=>{e.customer.bookmarks.data=e.customer.bookmarks.data.filter(e=>e.contentId!==r)}),!1,"deleteBookmarkRemoveFromList"),!0):(await t().isContentBookmarked({contentId:r,customerId:n}),!1)},isContentBookmarked:async({contentId:r,customerId:n})=>{if(c())return void e({bookmarks:{...t().bookmarks,[r]:!1}},!1,"isContentBookmarked");let i=await (0,u.Qz)(`/mynewsapi/iscontentbookmarked/${r}/`,{customerId:n});e({bookmarks:{...t().bookmarks,[r]:i.data.getBookmarkByContentId}},!1,"isContentBookmarked")}}));var h=r(37876);function m(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[r,n]of e)if(!Object.is(n,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||!Object.is(e[n],t[n]))return!1;return!0}function g(e,t,r){return function(n){let i=t(r,m);return(0,h.jsx)(e,{...n,...i})}}r(14232)},10810:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(54945);function i(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=(0,n.A)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},10958:(e,t,r)=>{"use strict";r.d(t,{HY:()=>l,Tw:()=>d,Zz:()=>c,y$:()=>u});var n=r(57078);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var a="function"==typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function u(e,t,r){if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(i(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(i(1));return r(u)(e,t)}if("function"!=typeof e)throw Error(i(2));var n,s=e,l=t,c=[],d=c,f=!1;function p(){d===c&&(d=c.slice())}function h(){if(f)throw Error(i(3));return l}function m(e){if("function"!=typeof e)throw Error(i(4));if(f)throw Error(i(5));var t=!0;return p(),d.push(e),function(){if(t){if(f)throw Error(i(6));t=!1,p();var r=d.indexOf(e);d.splice(r,1),c=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error(i(7));if(void 0===e.type)throw Error(i(8));if(f)throw Error(i(9));try{f=!0,l=s(l,e)}finally{f=!1}for(var t=c=d,r=0;r<t.length;r++)(0,t[r])();return e}return g({type:o.INIT}),(n={dispatch:g,subscribe:m,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw Error(i(10));s=e,g({type:o.REPLACE})}})[a]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(i(11));function t(){e.next&&e.next(h())}return t(),{unsubscribe:m(t)}}})[a]=function(){return this},e},n}function l(e){for(var t,r=Object.keys(e),n={},a=0;a<r.length;a++){var s=r[a];"function"==typeof e[s]&&(n[s]=e[s])}var u=Object.keys(n);
5try{Object.keys(n).forEach(function(e){var t=n[e];if(void 0===t(void 0,{type:o.INIT}))throw Error(i(12));if(void 0===t(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw Error(i(13))})}catch(e){t=e}return function(e,r){if(void 0===e&&(e={}),t)throw t;for(var a=!1,s={},o=0;o<u.length;o++){var l=u[o],c=n[l],d=e[l],f=c(d,r);if(void 0===f)throw r&&r.type,Error(i(14));s[l]=f,a=a||f!==d}return(a=a||u.length!==Object.keys(e).length)?s:e}}function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function d(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),a=function(){throw Error(i(15))},s={getState:r.getState,dispatch:function(){return a.apply(void 0,arguments)}},o=t.map(function(e){return e(s)});return a=c.apply(void 0,o)(r.dispatch),(0,n.A)((0,n.A)({},r),{},{dispatch:a})}}}},11426:(e,t,r)=>{"use strict";r.d(t,{AX:()=>k,FJ:()=>D,NY:()=>U,Ok:()=>R,QS:()=>Z,Zk:()=>j,c4:()=>P,dr:()=>I,g6:()=>$,o2:()=>M,pf:()=>C,r3:()=>L,ue:()=>B,vf:()=>N,wA:()=>x});var n=r(54955),i=r(13675);let a="shared/DISABLE_LAZYLOAD",s="shared/SET_ADS_ENABLED",o="shared/SET_CANONICAL_URL",u="shared/SET_CHROMELESS",l="shared/SET_SHOW_CHROMELESS_MARQUEE",c="shared/SET_EMBED_PKG",d="shared/SET_LABEL",f="shared/SET_MPS_CONFIG",p="shared/SET_ORIGINAL_CORRELATION_ID",h="shared/SET_PAGE_TYPE",m="shared/SET_SECTION",g="shared/SET_SERIES",y="shared/SET_SHOW",v="shared/SET_SUB_TOPIC",_="shared/SET_TABOOLA_LOADED",b="shared/SET_TOPIC",w="shared/SET_QUERY",E="shared/SET_VERTICAL",S="shared/SOCIALMEDIA_LOAD_SUCCESS",T="shared/TABOOLA_FEED",A="shared/SET_PLATFORM",O="shared/SET_VIEW",C=(0,n.A)(a);(0,n.A)(s),(0,n.A)(o);let k=(0,n.A)(u),I=(0,n.A)(l),x=(0,n.A)(c);(0,n.A)(d),(0,n.A)(f);let N=(0,n.A)(p),L=(0,n.A)(h),R=(0,n.A)(A),P=(0,n.A)(m);(0,n.A)(g),(0,n.A)(y),(0,n.A)(v);let D=(0,n.A)(T),M=(0,n.A)(_);(0,n.A)(b);let U=(0,n.A)(w),j=(0,n.A)(E),$=(0,n.A)(O),Z=e=>(0,i.A)({endpoint:`socialMedia/${e}`,types:["shared/SOCIALMEDIA_LOAD_PENDING",S,"shared/SOCIALMEDIA_LOAD_ERROR"]}),V={adsEnabled:!0,canonicalUrl:null,disableLazyLoad:!1,mpsConfig:{},isChromeless:!1,label:null,originalCorrelationId:void 0,pageView:null,section:null,series:null,show:null,socialMediaProfiles:{},subTopic:null,taboolaFeed:!1,taboolaLoaderLoaded:!1,topic:null,query:{bento:null,curator:null},vertical:null,view:null};function B(e,{type:t,payload:r}){let n={...V,...e};switch(t){case h:return{...n,pageView:r};case c:return{...n,packageEmbed:r};case o:return{...n,canonicalUrl:r};case p:return{...n,originalCorrelationId:r};case b:return{...n,topic:r};case w:return{...n,query:r};case E:if(!r)return{...n,vertical:"news"};return{...n,vertical:r};case m:if(!r)return{...n,section:""};return{...n,section:r};case v:if(!r)return{...n,subTopic:""};return{...n,subTopic:r};case g:if(!r)return{...n,series:""};return{...n,series:r};case d:if(!r)return{...n,label:""};return{...n,label:r};case y:if(!r)return{...n,show:""};return{...n,show:r};case s:return{...n,adsEnabled:r};case S:{let{social:{socialMediaProfiles:e}}=r.data;return{...n,socialMediaProfiles:e}}case u:return{...n,isChromeless:!0};case l:return{...n,showChromelessMarquee:!0};case f:return{...n,mpsConfig:r};case _:return{...n,taboolaLoaderLoaded:!0};case a:return{...n,disableLazyLoad:!0};case T:return{...n,taboolaFeed:!0};case A:return{...n,platform:r};case O:return{...n,view:r};default:return n}}},11431:e=>{"use strict";e.exports=function(e,t,r,n,i,a,s,o){if(!e){var u;if(void 0===t)u=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,i,a,s,o],c=0;(u=Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},11806:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>H});let n=e=>"string"==typeof e,i=()=>{let e,t,r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},a=e=>null==e?"":""+e,s=/###/g,o=e=>e&&e.indexOf("###")>-1?e.replace(s,"."):e,u=e=>!e||n(e),l=(e,t,r)=>{let i=n(t)?t.split("."):t,a=0;for(;a<i.length-1;){if(u(e))return{};
5let t=o(i[a]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return u(e)?{}:{obj:e,k:o(i[a])}},c=(e,t,r)=>{let{obj:n,k:i}=l(e,t,Object);if(void 0!==n||1===t.length){n[i]=r;return}let a=t[t.length-1],s=t.slice(0,t.length-1),o=l(e,s,Object);for(;void 0===o.obj&&s.length;)a=`${s[s.length-1]}.${a}`,(o=l(e,s=s.slice(0,s.length-1),Object))&&o.obj&&void 0!==o.obj[`${o.k}.${a}`]&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=r},d=(e,t)=>{let{obj:r,k:n}=l(e,t);if(r)return r[n]},f=(e,t,r)=>{for(let i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?n(e[i])||e[i]instanceof String||n(t[i])||t[i]instanceof String?r&&(e[i]=t[i]):f(e[i],t[i],r):e[i]=t[i]);return e};var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};let h=e=>n(e)?e.replace(/[&<>"'\/]/g,e=>p[e]):e;class m{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let g=[" ",",","?","!",";"],y=new m(20),v=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(r),i=e;for(let e=0;e<n.length;){let t;if(!i||"object"!=typeof i)return;let a="";for(let s=e;s<n.length;++s)if(s!==e&&(a+=r),a+=n[s],void 0!==(t=i[a])){if(["string","number","boolean"].indexOf(typeof t)>-1&&s<n.length-1)continue;e+=s-e+1;break}i=t}return i},_=e=>e&&e.replace("_","-"),b={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||b,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,i){return i&&!this.debug?null:(n(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new w(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new w(this.logger,e)}}var E=new w;class S{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[n,i]=t;for(let t=0;t<i;t++)n.apply(n,[e,...r])})}}class T extends S{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,o=void 0!==a.ignoreJSONStructure?a.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],r&&(Array.isArray(r)?i.push(...r):n(r)&&s?i.push(...r.split(s)):i.push(r)));let u=d(this.data,i);return(!u&&!t&&!r&&e.indexOf(".")>-1&&(e=i[0],t=i[1],r=i.slice(2).join(".")),!u&&o&&n(r))?v(this.data&&this.data[e]&&this.data[e][t],r,s):u}addResource(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[e,t];r&&(s=s.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),c(this.data,s,n),i.silent||this.emit
5("added",e,t,r,n)}addResources(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let i in r)(n(r[i])||Array.isArray(r[i]))&&this.addResource(e,t,i,r[i],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let o=d(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?f(o,r,i):o={...o,...r},c(this.data,s,o),a.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var A={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,i))}),t}};let O={};class C extends S{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
5i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=E.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],s=r&&e.indexOf(r)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,r)=>{t=t||"",r=r||"";let n=g.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let i=y.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),a=!i.test(e);if(!a){let t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a})(e,r,i);if(s&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:n(a)?[a]:a};let s=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),e=s.join(i)}return{key:e,namespaces:n(a)?[a]:a}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:s,namespaces:o}=this.extractFromKey(e[e.length-1],t),u=o[o.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return i?{res:`${u}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:`${u}${e}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:s}let d=this.resolve(e,t),f=d&&d.res,p=d&&d.usedKey||s,h=d&&d.exactUsedKey||s,m=Object.prototype.toString.apply(f),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!n(f)&&"boolean"!=typeof f&&"number"!=typeof f;if(y&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(m)&&!(n(g)&&Array.isArray(f))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...t,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(t),d):e}if(a){let e=Array.isArray(f),r=e?[]:{},n=e?h:p;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${n}${a}${e}`;r[e]=this.translate(i,{...t,joinArrays:!1,ns:o}),r[e]===i&&(r[e]=f[e])}f=r}}else if(y&&n(g)&&Array.isArray(f))(f=f.join(g))&&(f=this.extendTranslation(f,e,t,r));else{let i=!1,o=!1,c=void 0!==t.count&&!n(t.count),p=C.hasDefaultValue(t),h=c?this.pluralResolver.getSuffix(l,t.count,t):"",m=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),y=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${h}`]||t[`defaultValue${m}`]||t.defaultValue;!this.isValidLookup(f)&&p&&(i=!0,f=y),this.isValidLookup(f)||(o=!0,f=s);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:f,_=p&&y!==f&&this.options.updateMissing;if(o||i||_){if(this.logger.log(_?"updateKey":"missingKey",l,u,s,_?y:f),a){let e=this.resolve(s,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let n=(e,r,n)=>{let i=p&&n!==f?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,r,i,_,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,u,r,i,_,t),this.emit
5("missingKey",e,u,r,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{let r=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>r.indexOf(`${this.options.pluralSeparator}zero`)&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{n([e],s+r,t[`defaultValue${r}`]||y)})}):n(e,s,y))}f=this.extendTranslation(f,e,t,d,r),o&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${u}:${s}`),(o||i)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,i?f:void 0):this.options.parseMissingKeyHandler(f))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(t),d):f}extendTranslation(e,t,r,i,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){let o;r.interpolation&&this.interpolator.init({...r,...{interpolation:{...this.options.interpolation,...r.interpolation}}});let u=n(e)&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(u){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let l=r.replace&&!n(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||i.usedLng,r),u){let t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(r.lng=this.language||i.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return a&&a[0]===n[0]&&!r.context?(s.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):s.translate(...n,t)},r)),r.interpolation&&this.interpolator.reset()}let o=r.postProcess||this.options.postProcess,u=n(o)?[o]:o;return null!=e&&u&&u.length&&!1!==r.applyPostProcessor&&(e=A.handle(u,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,i,a,s,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let u=this.extractFromKey(e,o),l=u.key;r=l;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let d=void 0!==o.count&&!n(o.count),f=d&&!o.ordinal&&0===o.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==o.context&&(n(o.context)||"number"==typeof o.context)&&""!==o.context,h=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);
5c.forEach(e=>{this.isValidLookup(t)||(s=e,!O[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(O[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${h.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(r=>{let n;if(this.isValidLookup(t))return;a=r;let s=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,r,e,o);else{let e;d&&(e=this.pluralResolver.getSuffix(r,o.count,o));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(s.push(l+e),o.ordinal&&0===e.indexOf(n)&&s.push(l+e.replace(n,this.options.pluralSeparator)),f&&s.push(l+t)),p){let r=`${l}${this.options.contextSeparator}${o.context}`;s.push(r),d&&(s.push(r+e),o.ordinal&&0===e.indexOf(n)&&s.push(r+e.replace(n,this.options.pluralSeparator)),f&&s.push(r+t))}}for(;n=s.pop();)this.isValidLookup(t)||(i=n,t=this.getResource(r,e,n,o))}))})}),{res:t,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!n(e.replace),r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}let k=e=>e.charAt(0).toUpperCase()+e.slice(1);class I{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}getScriptPartFromCode(e){if(!(e=_(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=_(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(n(e)&&e.indexOf("-")>-1){if("u">typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}let t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=k(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=k(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=k(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),n(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];
5return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return n(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):n(e)&&a(this.formatLanguageCode(e)),r.forEach(e=>{0>i.indexOf(e)&&a(this.formatLanguageCode(e))}),i}}let x=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(+(1!=e&&(e%10!=1||e%100==11))),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4)),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},L=["v1","v2","v3"],R=["v4"],P={zero:0,one:1,two:2,few:3,many:4,other:5};class D{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=E.create("pluralResolver"),(!this.options.compatibilityJSON||R.includes(this.options.compatibilityJSON))&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{let e={};return x.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:N[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{let r=_("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:n});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a=new Intl.PluralRules(r,{type:n});return this.pluralRulesCache[i]=a,a}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
5return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>P[e]-P[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let i=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}
5shouldUseIntlApi(){return!L.includes(this.options.compatibilityJSON)}}let M=function(e,t,r){let i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",s=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=void 0!==(i=d(e,r))?i:d(t,r);return!o&&s&&n(r)&&void 0===(o=v(e,r,a))&&(o=v(t,r,a)),o};class U{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=E.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:o,formatSeparator:u,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:h,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):a||"{{",this.suffix=s?s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):o||"}}",this.formatSeparator=u||",",this.unescapePrefix=l?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=p?p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):m||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,i){let s,o,u,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(0>e.indexOf(this.formatSeparator)){let n=M(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(n,void 0,r,{...i,...t,interpolationkey:e}):n}let n=e.split(this.formatSeparator),a=n.shift().trim(),s=n.join(this.formatSeparator).trim();return this.format(M(t,l,a,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...i,...t,interpolationkey:a})};this.resetRegExp();let d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e.replace(/\$/g,"$$$$")},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e).replace(/\$/g,"$$$$"):e.replace(/\$/g,"$$$$")}].forEach(t=>{for(u=0;s=t.regex.exec(e);){let r=s[1].trim();if(void 0===(o=c(r)))if("function"==typeof d){let t=d(e,s,i);o=n(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,r))o="";else if(f){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o="";else n(o)||this.useRawValueToEscape||(o=a(o));let l=t.safeValue(o);if(e=e.replace(s[0],l),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=s[0].length):t.regex.lastIndex=0,++u>=this.maxReplaces)break}}),e}nest(e,t){let r,i,s,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=(e,t)=>{let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),i=`{${n[1]}`;e=n[0];let a=(i=this.interpolate(i,s)).match(/'/g),o=i.match(/"/g);(a&&a.length%2==0&&!o||o.length%2!=0)&&(i=i.replace(/'/g,'"'));try{s=JSON.parse(i),t&&(s={...t,...s})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let l=[];(s=(s={...o}).replace&&!n(s.replace)?s.replace:s).applyPostProcessor=!1,delete s.defaultValue;
5let c=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),l=e,c=!0}if((i=t(u.call(this,r[1].trim(),s),s))&&r[0]===e&&!n(i))return i;n(i)||(i=a(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),c&&(i=l.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}let j=e=>{let t={};return(r,n,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let s=n+JSON.stringify(a),o=t[s];return o||(o=e(_(n),i),t[s]=o),o(r)}};class ${constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=E.create("formatter"),this.options=e,this.formats={number:j((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:j((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:j((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:j((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:j((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=j(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&0>i[0].indexOf(")")&&i.find(e=>e.indexOf(")")>-1)){let e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=(e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);"currency"===t&&0>i.indexOf(":")?r.currency||(r.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),a=t.trim();r[a]||(r[a]=i),"false"===i&&(r[a]=!1),"true"===i&&(r[a]=!0),isNaN(i)||(r[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[i]){let t=e;try{let s=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},o=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[i](e,o,{...a,...n,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class Z extends S{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=E.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){let i={},a={},s={},o={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===a[s]&&(a[s]=!0):(this.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===o[t]&&(o[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(o)}}loaded(e,t,r){let n=e.split("|"),i=n[0],a=n[1];t&&this.emit("failedLoading",i,a,t),!t&&r&&this.store.addResourceBundle(i,a,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let s={};this.queue.forEach(r=>{((e,t,r)=>{let{obj:n,k:i}=l(e,t,Object);n[i]=n[i]||[],n[i].push(r)})(r.loaded,[i],a),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEac
5h(e=>{s[e]||(s[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:a});this.readingCalls++;let s=(s,o)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&o&&n<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*i,a)},i):a(s,o)},o=this.backend[r].bind(this.backend);if(2===o.length){try{let r=o(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}return}return o(e,t,s)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();n(e)&&(e=this.languageUtils.toResolveHierarchy(e)),n(t)&&(t=[t]);let a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,a)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,a),this.loaded(e,r,a)})}saveMissing(e,t,r,n,i){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=r&&""!==r){if(this.backend&&this.backend.create){let o={...a,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let i;(i=5===u.length?u(e,t,r,n,o):u(e,t,r,n))&&"function"==typeof i.then?i.then(e=>s(null,e)).catch(s):s(null,i)}catch(e){s(e)}else u(e,t,r,n,s,o)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}let V=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),n(e[1])&&(t.defaultValue=e[1]),n(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),B=e=>(n(e.ns)&&(e.ns=[e.ns]),n(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),n(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),F=()=>{};class z extends S{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=B(e),this.services={},this.logger=E,this.modules={external:[]},(e=>
5{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(n(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let a=V();this.options={...a,...this.options,...B(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);let s=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?E.init(s(this.modules.logger),this.options):E.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"u">typeof Intl&&(t=$);let r=new I(this.options);this.store=new T(this.options.resources,this.options);let n=this.services;n.logger=E,n.resourceStore=this.store,n.languageUtils=r,n.pluralResolver=new D(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(n.formatter=s(t),n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new U(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Z(s(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}),this.modules.languageDetector&&(n.languageDetector=s(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=s(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=F),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let o=i(),u=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,r=t,i=n(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e
5=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=i();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=F),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&A.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let a=i();this.emit("languageChanging",e);let s=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,n)=>{n?(s(n),this.translator.changeLanguage(n),this.isLanguageChangingTo=void 0,this.emit("languageChanged",n),this.logger.log("languageChanged",n)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},u=t=>{e||t||!this.services.languageDetector||(t=[]);let r=n(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||s(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e):u(this.services.languageDetector.detect()),a}getFixedT(e,t,r){var i=this;let a=function(e,t){let n,s;if("object"!=typeof t){for(var o=arguments.length,u=Array(o>2?o-2:0),l=2;l<o;l++)u[l-2]=arguments[l];n=i.options.overloadTranslationOptionHandler([e,t].concat(u))}else n={...t};n.lng=n.lng||a.lng,n.lngs=n.lngs||a.lngs,n.ns=n.ns||a.ns,""!==n.keyPrefix&&(n.keyPrefix=n.keyPrefix||r||a.keyPrefix);let c=i.options.keySeparator||".";return s=n.keyPrefix&&Array.isArray(e)?e.map(e=>`${n.keyPrefix}${c}${e}`):n.keyPrefix?`${n.keyPrefix}${c}${e}`:e,i.t(s,n)};return n(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
5if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let a=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,a);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!n||a(i,e)))}loadNamespaces(e,t){let r=i();return this.options.ns?(n(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=i();n(e)&&(e=[e]);let a=this.options.preload||[],s=e.filter(e=>0>a.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return s.length?(this.options.preload=a.concat(s),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new I(V())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new z(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},i=new z(n);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new T(this.store.data,n),i.services.resourceStore=i.store),i.translator=new C(i.services,n),i.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit(e,...r)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let H=z.createInstance();H.createInstance=z.createInstance,H.createInstance,H.dir,H.init,H.loadResources,H.reloadResources,H.use,H.changeLanguage,H.getFixedT,H.t,H.exists,H.setDefaultNamespace,H.hasLoadedNamespace,H.loadNamespaces,H.loadLanguages},12631:e=>{"use strict";e.exports=JSON.parse('{"ABCDEFGHIJKLMNOPQRSTUVWXYZ":"ABCDEFGHIJKLMN\xd1OPQRSTUVWXYZ","Ad Playing":"Publicidad","Advertisement":"Anuncio","Air Date":"Emitido","April":"Abr.","Aug.":"Ag.","BREAKING":"\xdaltima hora","BREAKING NEWS":"\xdaLTIMA HORA","Best Of":"Mejor de","By":"Por","CLEAR":"BORRA","CLEAR ALL":"BORRA TODO","CONTENT BY STACKCOMMERCE":"CONTENIDO POR STACKCOMMERCE","Clear all":"Borra todo","Clear filter":"Borra filtro","Click to see more info":"Haga clic para ver m\xe1s","Copied":"Copiado","DATA GRAPHIC":"GR\xc1FICO DE DATOS","DEVELOPING":"En desarrollo","DONE":"LISTO","Dec.":"Dic.","ERROR_H1_404":"Lo sentimos","ERROR_H1_500":"\xa1Oops! Error inesperado...","ERROR_TEXT_404":"La p\xe1gina que buscas ya no est\xe1 disponible. Pero hay mucho m\xe1s para ver en {{link}}.","ERROR_TEXT_500":"Pero ya lo estamos arreglando. Mientras, mira todo lo que tenemos para ti en {{link}}.","EVENT ENDED":"EVENTO FINALIZADO","EXCLUSIVE":"EXCLUSIVA","English":"Ingl\xe9s","Episode":"Cap\xedtulo ","FIRST ON NBC NEWS":"PRIMERO EN NOTICIAS TELEMUNDO","FOR SUBSCRIBERS":"PARA SUSCRIPTORES","Feb.":"Feb.","Get The Recipe":"Obt\xe9n la receta","Get the":"Consigue el","How can we improve this page?":"\xbfComo podemos mejorar esta pagina?","IE11 ALERT":"IE 11 no es compatible. Para una experiencia \xf3ptima, visite nuestro sitio en otro navegador.","Images":"Im\xe1genes","Interests":"Intereses","Invalid email":"Email inv\xe1lido","Jan.":"En.","July":"Jul.","June":"Jun.","Just now":"Justo ahora","Key Updates":"Actualizaciones Importantes ","LIVE":"EN VIVO","LIVE COVERAGE":"COBERTURA EN VIVO","LIVE NOW":"EN VIVO AHORA","Last updated ":"\xdaltima actualizaci\xf3n ","Latest":"\xdaltimo","Latest Video":"Video m\xe1s reciente","Less":"Menos","Live":"En Vivo","Live Blog":"Blog en vivo","Live Updates":"Blog en vivo","Load More":"Ver M\xe1s","Loa
5d More Posts":"Load More Publicaciones","Loading":"Cargando","Loading ...":"Cargando ...","Local news around you":"Noticias locales a tu alrededor","MORE":"M\xc1S","March":"Mar.","May":"May.","More":"M\xe1s","NEW":"NUEVO","NEW_FEM_PLURAL":"NUEVAS","NEW_FEM_SINGULAR":"NUEVA","NEW_MAS_PLURAL":"NUEVOS","NOW PLAYING":"EST\xc1S VIENDO","Next":"Pr\xf3ximo","No":"No","Non Broadcast Live Video":"Video en vivo sin transmisi\xf3n","Nope":"No","Nov.":"Nov.","Now Playing":"Est\xe1s viendo","Oct.":"Oct.","Off":"Apagado","On the show":"En el show","Opinion":"Opini\xf3n","Options":"Opciones","Out of stock":"AGOTADO","PAID CONTENT":"CONTENIDO PAGADO","PHOTOS":"FOTOS","POST":"PUBLICACION","POSTS":"PUBLICACIONES","Paid Content":"Contenido Pagado","Pinned":"Destacado","Play All":"Reproducir todos","Prev":"Anterior","Price":"Precio","Privacy Policy":"Pol\xedtica de privacidad","READ LESS":"LEE MENOS","READ MORE":"LEE MAS","Rate your overall experience":"Califica tu experiencia general","Read":"Lee","Recommended":"Recomendado","Result":"Resultado","Results":"Resultados","SEE":"VER","SEE ALL":"VER TODO","SEE NEW":"VER NUEVO","SEE_NEW_FEM_PLURAL":"VER NUEVAS","SEE_NEW_FEM_SINGULAR":"VER NUEVA","SEE_NEW_MAS_PLURAL":"VER NUEVOS","SHOP":"TIENDA","SHOPPING CONTENT BY STACKCOMMERCE":"CONTENIDO POR STACKCOMMERCE","SPECIAL REPORT":"REPORTAJE ESPECIAL","SPONSORED":"PATROCINADO","SUBSCRIBE":"SUSCR\xcdBETE","Search":"Busca","Season":"Temporada ","See All":"Ver Todo","See All From The Show":"Ver todo del show","See local affiliates":"Ver afiliados locales","See story":"Ver historia","Sept.":"Sept.","Share this":"Comparte esto","Show more":"Mostrar m\xe1s","Sign Up":"Reg\xedstrate","Sign Up For Updates":"Reg\xedstrate para recibir las \xfaltimas noticias","Skip to Content":"Saltar al Contenido","Slideshow":"Slideshow","Source":"Fuente","Spanish":"Espa\xf1ol","Sponsored By":"Presentado por","Sports":"Deportes","Submit":"Enviar","Tap to Unmute":"Toca para dejar de silenciar","Terms of Service":"T\xe9rminos de servicio","The page design helps me find other stories Iâm interested in":"El dise\xf1o de la p\xe1gina me ayuda a encontrar otras historias que me interesan","The page design helps me find other videos Iâm interested in":"El dise\xf1o de la p\xe1gina me ayuda a encontrar otros videos que me interesan","The page design helps me find the content Iâm interested in":"El dise\xf1o de la p\xe1gina me ayuda a encontrar el contenido que me interesa","The page design helps me understand the news":"El dise\xf1o de la p\xe1gina me ayuda a entender las Noticias","The page design makes the article easy to read":"El dise\xf1o de la p\xe1gina hace que el art\xedculo sea f\xe1cil de leer","The page design makes the video easy to watch":"El dise\xf1o de la p\xe1gina hace que el video sea f\xe1cil de ver","This ad will end in {{seconds}}":"Este anuncio terminar\xe1 en {{seconds}}","This content was paid for by an advertiser and created by the NBC News Brand Studio. The NBC News editorial organization was not involved in its creation or production. This content represents the views and opinions of the advertiser, who is responsible for all of the material contained therein. Links are not endorsements by NBC News.":"Este contenido fue pagado por un anunciante y creado por NBC News Brand Studio. La organizaci\xf3n editorial de NBC News no particip\xf3 en su creaci\xf3n o producci\xf3n. Este contenido representa los puntos de vista y opiniones del anunciante, quien es responsable de todo el material contenido en el mismo. Los enlaces no son avales de NBC News.","This site is protected by recaptcha":"Este sitio est\xe1 protegido por recaptcha","Top Moments":"Mejores Momentos ","Top Stories":"Destacados","Trending":"Tendencias","Trending Gift Guides":"Tendencias en Gu\xedas de regalos","UP NEXT":"SIGUIENTE","UPDATE":"ACTUALIZAR","UPDATES":"ACTUALIZACIONES","Updated":"Actualizado","Updated now":"Actualizado ahora","VIEW":"VER","Videos":"Videos","View the story on Storify":"Vea la historia en Storify","View this graphic on":"Ver este gr\xe1fico en","WATCH":"VER","Want a response?":"\xbfQuieres una respuesta?","Watch":"Ver","Watch More":"Ver m\xe1s","Watch in NBC":"Mira en NBC.com","Watch in Telemundo App":"Mira en Telemundo App","We apologize, this video has expired.":"Disculpa, este video ha expirado.","We apologize, we were unable to find your local news. Please try another location.":"Disculpa, no pudimos encontrar tus noticias locales. Por favor, intenta con otra ubicaci\xf3n.","What's this?":"\xbfQu\xe9 es esto?","What\'s this?":"\xbfQu\xe9 es esto?","Who":"Qui\xe9n","Yea":"S\xed","Yes":"S\xed","You have been successfully added to our newsletter":"Gracias por suscribirte al email de Noticias Telemundo","Your Email Address":"Tu correo electr\xf3nico","Your Video Begins in":"Tu video comienza en","Zip code here":"C\xf3digo postal aqu\xed","and":"y","contributed":"contribuy\xf3","copied!":"copiado","developingStory":"Esta noticia de \xfaltima hora est\xe1 en<1> desarrollo </1>. Por favor regrese en breve para m\xe1s informaci\xf3n.","in":"en","newsletter":"newsletter","photos":"fotos","return to Home page":"regresa a la p\xe1gina principal","time_ago":"Hace {{time}}","unknown":"desconocido","updated_time_ago":"Actualizado hace {{time}}"}')},13192:(e,t,r)=>{"use strict";r.d(t,{I:()=>l,a:()=>o});var n=r(13675);let i="newsletter/NEWSLETTER_LOAD_PENDING",a="newsletter/NEWSLETTER_LOAD_COMPLETE",s="newsletter/NEWSLETTER_LOAD_FAILED",o=()=>(0,n.A)({endpoint:"newsletter",types:[i,a,s],api:"services"}),u={newsletterLoading:!1,newsletterLoaded:!1,newsletterError:!1,newsletterData:{}},l=(e=u,{type:t,payload:r})=>{switch(t){case i:return{...e,newsletterLoading:!0};case a:return{...e,newsletterLoading:!1,newsletterLoaded:!0,newsletterData:r.data};case s:return{...e,newsletterLoading:!1,newsletterLoaded:!0,newsletterError:!0};default:return e}}},13197:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=({documentTracing:e,type:t},{correlationID:r})=>({...e,correlationID:r,type:t})},13675:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(54955),i=r(19081),a=r(97883),s=r(88051);function o(e,t){return{payload:e,headers:t.headers}}function u({endpoint:e,types:t,additionalActionTypeData:r,additionalRequestData:l={headers:{},requestBody:{}},api:c,cacheKey:d,omitCredentials:f=!1,failedValidationCallback:p=null,modifyResponse:h}){return async(u,m)=>{if(p)return p(u);let{serverRuntimeConfig:g,publicRuntimeConfig:y}=(0,i.Ay)(),{API_URL_MYNEWS_SERVER:v,API_URL_SERVICES_SERVER:_}=g,{API_URL_MYNEWS_PUBLIC:b,API_URL_SERVICES_PUBLIC:w}=y,E=m(),[S,T,A]=t,O=(0,n.A)(S),C=(0,n.A)(T),k=(0,n.A)(A,e=>e,()=>({additionalActionTypeData:r}));u(O(e));try{let n=(0,s.H)();t[0]?.includes("MYNEWS")&&(n=v||b||n);let i=_||w||n,p=n;c&&"services"===c&&(p=i);let m=(0,a.parseOnClient)(p);if(m.pathname){let{hostname:e,pathname:t,port:r,protocol:n}=m;p=`${n}//${e}${r?`:${r}`:""}${t}`}let g=[];!c&&E.shared?.query?.bento&&(g.push(`bento=${E.shared.query.bento}
5`),E.shared.query.curator&&g.push(`curator=${E.shared.query.curator}`));let y=e.includes("?"),S=g.length?`${y?"&":"?"}${g.join("&")}`:"",{originalCorrelationId:T}=E.shared,A=await (({baseUrl:e,endpoint:t,query:r,additionalRequestData:n,omitCredentials:i=!1})=>{let{headers:a={},requestBody:s={}}=n,o=Object.keys(a).length,u=Object.keys(s).length,{...l}=s,c=i||e.includes("mynewsapi");return o&&u?fetch(`${e}/${t}${r}`,{method:"POST",headers:a,body:JSON.stringify({...l}),credentials:c?"omit":"include"}):o&&!u?fetch(`${e}/${t}${r}`,{headers:a,credentials:c?"omit":"include"}):fetch(`${e}/${t}${r}`)})({additionalRequestData:{...l,headers:{...l.headers,...T?{"x-original-correlation-id":T}:{}}},baseUrl:p,endpoint:e,omitCredentials:f,query:S});if(A.status>=400){let e=`${A.statusText} (${A.status}) @ ${A.url}`;return u(k({message:e,status:A.status,url:A.url})),null}let O=await A.json();if(h){let e=await h(O);return u(C({...e,additionalActionTypeData:r,cacheKey:d})),o(e,A)}return u(C({...O,additionalActionTypeData:r,cacheKey:d})),o(O,A)}catch(e){return u(k(e.message)),null}}}},13923:(e,t,r)=>{"use strict";r.d(t,{D4:()=>k,GP:()=>w,K$:()=>b,MC:()=>g,Oj:()=>S,Wy:()=>E,rW:()=>T,x9:()=>y});var n=r(54955);let i="localnews/LOCAL_LOCATION_PENDING",a="localnews/LOCAL_LOCATION_SUCCESS",s="localnews/LOCAL_LOCATION_FAILED",o="localnews/LOCAL_NEWS_PENDING",u="localnews/LOCAL_NEWS_SUCCESS",l="localnews/LOCAL_NEWS_FAILED",c="localnews/LOCAL_SET_LOCATION",d="localnews/LOCAL_WEATHER_PENDING",f="localnews/LOCAL_WEATHER_SUCCESS",p="localnews/LOCAL_WEATHER_ERROR",h="localnews/LOCAL_OPTIMISTIC_ZIP_SET",m="localnews/LOCAL_OPTIMISTIC_ZIP_CLEAR",g="not-found",y="service",v=new Map,_=e=>{let t=v.get(e);if(t)return t;let r=(async()=>{try{let t=await fetch(`/local-news-api/${encodeURIComponent(e)}`),r=t.ok?await t.json():null;return{ok:t.ok,status:t.status,body:r}}finally{v.delete(e)}})();return v.set(e,r),r},b=e=>async t=>{t({type:i,meta:{zip:e}});try{let{ok:r,status:n,body:i}=await _(e);if(r)return t({type:a,payload:i.location,meta:{zip:e}}),!0;return t({type:s,payload:{errorKind:404===n?g:y},meta:{zip:e}}),!1}catch(r){return t({type:s,payload:{errorKind:y,cause:r},meta:{zip:e}}),!1}},w=e=>async t=>{t({type:o,meta:{zip:e}});try{let{ok:r,body:n}=await _(e);if(r&&n?.news!=null)return t({type:u,payload:n.news,meta:{zip:e}}),!0;return t({type:l,payload:Error("news_unavailable"),meta:{zip:e}}),!1}catch(r){return t({type:l,payload:r,meta:{zip:e}}),!1}},E=e=>async t=>{t({type:d,meta:{zip:e}});try{let{ok:r,body:n}=await _(e);if(r&&n?.weather!=null)return t({type:f,payload:n.weather,meta:{zip:e}}),!0;return t({type:p,payload:Error("weather_unavailable"),meta:{zip:e}}),!1}catch(r){return t({type:p,payload:r,meta:{zip:e}}),!1}};(0,n.A)(c);let S=(0,n.A)(h),T=(0,n.A)(m),A=Object.freeze({news:[],zip:null,city:null,state:null,latitude:null,longitude:null,error:null,loading:!1,newsLoading:!1,requestedZip:null,optimisticZip:null,preservedContent:null,weather:{error:null,hours:[],loading:!1}}),O=(e,t)=>t?.zip!=null&&null!=e.requestedZip&&t.zip!==e.requestedZip,C=e=>e?.error?[]:e;function k(e=A,{type:t,payload:r,meta:n}){switch(t){case"localnews/RESET_LOCAL_NEWS":return{...A};case a:if(O(e,n))return e;return{...e,zip:r?.city_data?.postal_code??n?.zip??e.zip,city:r?.city_data?.city??null,state:r?.state_data?.state_code??null,latitude:r?.location_data?.latitude??null,longitude:r?.location_data?.longitude??null,preservedContent:null,loading:!1};case i:return{...e,requestedZip:n?.zip??e.requestedZip,news:C(e.news),weather:e.weather?.error?{...e.weather,error:null}:e.weather,loading:!0};case s:{if(O(e,n))return e;let t=r?.errorKind===g?g:y,i=!!e.city&&!!e.state&&Array.isArray(e.news)&&e.news.length>0;return{...e,preservedContent:i?{city:e.city,state:e.state,zip:e.zip,news:e.news,weather:e.weather}:e.preservedContent,city:null,state:null,zip:null,latitude:null,longitude:null,weather:{error:null,hours:[],loading:!1},news:{error:t},loading:!1}}case u:if(O(e,n))return e;return{...e,news:r.data,loading:!1,newsLoading:!1};case o:return{...e,requestedZip:n?.zip??e.requestedZip,news:C(e.news),loading:!0,newsLoading:!0};case l:if(O(e,n))return e;return{...e,news:[],loading:!1,newsLoading:!1};case c:return{...e,...r};case h:return{...e,optimisticZip:r};case m:return{...e,optimisticZip:null};case d:return{...e,requestedZip:n?.zip??e.requestedZip,weather:{...e.weather,error:null,loading:!0}};case f:if(O(e,n))return e;return{...e,weather:{...r,loading:!1}};case p:if(O(e,n))return e;if(e.weather?.hours?.length>0)return{...e,weather:{...e.weather,loading:!1}};return{...e,weather:{error:r,loading:!1}};default:return e}}},14134:()=>{},14551:(e,t,r)=>{"use strict";r.d(t,{Cd:()=>s,JM:()=>c,Qn:()=>o,UR:()=>a,fU:()=>l,pI:()=>u});var n=r(56557),i=r.n(n);let a=e=>!!e&&"live-blog"===e.split("/")[3],s=e=>"blog"===e,o=e=>/ncrd\d+$/.test(e),u=e=>!!e&&"string"==typeof e&&"event ended"===e.toLowerCase(),l=e=>!!e&&Date.now()-new Date(e).getTime()<828e5;function c({latestDate:e,flag:t,eventDateTimeEndsAt:r}){return"string"==typeof r&&i()(r).isValid()?i()().isBefore(r):!!e&&!u(t)&&l(e)}},16006:(e,t,r)=>{"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(64252)._(r(14232)),i=r(72936),a=[],s=[],o=!1;function u(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class l{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function u(){if(!a){let t=new l(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!o){let e=r.webpack&&1?r.webpack():r.modules;e&&s.push(t=>{for(let r of e)if(t.includes(r))return u()})}function c(e,t){let s;u(),(s=n.default.useContext(i.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(e=>{s(e)});let o=n.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),n.default.useMemo(()=>{var t;return o.loading||o.error?n.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:a.retry}):o.loaded?n.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>u(),c.displayName="LoadableComponent",n.default.forwardRef(c)}(u,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),c.preloadReady=(e=[])=>new Promise(t=>{let r=()=>(o=!0,t());d(s,e).then(r,r)}),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},16213:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(59696);function i(e,t){if(e){if("string"==typeof e)return(0,n.A)(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.A)(e,t):void 0}}},18847:(e,t,r)=>{e.exports=r(20705)},18923:(e,t,r)=>{"use strict";r.d(t,{F7:()=>s,JL:()=>l,Ji:()=>c,Ys:()=>a,h2:()=>o,zR:()=>u});var n=r(38333);let i=e=>e?.layouts||[],a=(0,n.A)(e=>i(e).flatMap(e=>e?.packages||[])),s=(0,n.A)(e=>{let t=new Set;return a(e).forEach(e=>{e?.type&&t.add(e.type)}),t}),o=(0,n.A)(e=>{let t=new Set;return a(e).forEach(e=>{e?.subType&&t.add(e.subType)}),t}),u=(e,t)=>{let r=e=>(e?.items??[]).some(e=>e?.item?.source?.organization?.name===t);return i(e).some(e=>(e?.packages??[]).some(r))},l=(e,t)=>{let r=[];return i(e).forEach(e=>{let n=e?.packages??[];r.push(...n.filter(e=>e.type===t))}),r},c=(e,t)=>{let r=e=>(e?.items??[]).some(e=>e?.computedValues?.url?.startsWith(t));return i(e).some(e=>(e?.packages??[]).some(r))}},19081:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,Ke:()=>l});var n=r(66152),i=r.n(n),a=r(65364);let{parseIntOrNull:s,buildServerRuntimeConfig:o,buildPublicRuntimeConfig:u}=i();function l(){{let e=window.__RAMEN_PUBLIC_RUNTIME_CONFIG__;if(e)return e}return u(a.env,{dev:!1})}let c=function(){return{serverRuntimeConfig:o(a.env),publicRuntimeConfig:l()}}},19459:(e,t,r)=>{"use strict";e.exports={en:{translation:r(78924)},es:{translation:r(12631)}}},19567:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});let n=r(14232).createContext({name:null})},20030:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let n={};function i(e,{location:t="head",attributes:r={},force:a=!1}={}){return!a&&n[e]||(n[e]=new Promise(n=>{let i=document.createElement("script");
5if(i.src=e,i.onload=n,Object.keys(r).forEach(e=>{let t=r[e];if("boolean"==typeof t){if(!t)return;i.setAttribute(e,e);return}i.setAttribute(e,t)}),t instanceof Node)return void t.appendChild(i);let a=document.querySelector(t);a&&a.appendChild(i)}),n[e].thenOnFirstLoad=t=>(n[e].thenOnFirstLoad=()=>n[e],n[e].then(t))),n[e]}},20705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return l},noSSR:function(){return u}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(64252);r(37876),r(14232);let s=a._(r(16006));function o(e){return{default:e?.default||e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}function l(e,t){let r=s.default,n={loading:({error:e,isLoading:t,pastDelay:r})=>null};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let i=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=i?i().then(o):Promise.resolve(o(()=>null))}):(delete n.webpack,delete n.modules,u(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21584:(e,t,r)=>{"use strict";r.d(t,{AQ:()=>d,PL:()=>a,QF:()=>o,T2:()=>l,o4:()=>i,pY:()=>c,rt:()=>f,uG:()=>s,z7:()=>u});var n=r(44774);let i=e=>e?.prices?e.prices.reduce((e,t)=>({...e,[t.type.toLowerCase()]:t.price}),{}):{},a=(e={})=>{let{unencodedExternalUrl:t=""}=e,[,r]=t?.match(/^https?:\/\/(?:www\.)?target\.com\/.*-(\d+).*/i)||[];return r},s=e=>e?.prices?{...i(e),state:e.state,priceDiscount:e.priceDiscount}:{},o=e=>{let t=e?.offers,r=e?.item?.offers,n=(t||r||[]).find(e=>e.isPrimaryOffer);return n?{...s(n)}:{}},u=e=>e?parseFloat(e.replace(/[ ,]/g,"")):null,l=({salePrice:e,listPrice:t})=>{let r=e,n=t;return"string"==typeof r&&(r=u(r)),"string"==typeof n&&(n=u(n)),!!r&&r<n};function c(e){let{offers:t=[]}=e||{},r=t.filter(e=>e?.state===n.OFFER_AVAILABLE),i=t.filter(e=>e?.state===n.OFFER_UNAVAILABLE),a=t.filter(e=>e?.state===n.OFFER_OUT_OF_STOCK);return[...r,...i,...t.filter(e=>e?.state===null),...a]}function d(e){return e.filter(e=>e).map(e=>{let[t]=c(e.item).map(a).filter(e=>e);return t}).filter(e=>!!e)}function f(e,t){let r=t,n=e;return"string"==typeof r&&(r=u(r)),"string"==typeof n&&(n=u(n)),Math.round((n-r)/n*100)}},23520:(e,t,r)=>{"use strict";var n=r(97225),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function u(e){return n.isMemo(e)?s:o[e.$$typeof]||i}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=s;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var o=u(t),m=u(r),g=0;g<s.length;++g){var y=s[g];if(!a[y]&&!(n&&n[y])&&!(m&&m[y])&&!(o&&o[y])){var v=f(r,y);try{l(t,y,v)}catch(e){}}}}return t}},23565:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});var n=r(42060),i=r(14232);function a(e){let t=(0,i.useMemo)(()=>{let t,r;return t=t=>t?.name===e,r=null,{subscribe:function(i){if(!e)return()=>{};let a=!1;function s(e){let t=e?.value??null;a||t===r||i(r=t)}let o=window.cookieStore;if(!o){Promise.resolve({value:(0,n.Ri)(e)}).then(s);let t=window.setInterval(()=>{s({value:(0,n.Ri)(e)})},500);return()=>{a=!0,window.clearInterval(t)}}function u(e){e.changed.filter(t).forEach(s),e.deleted.filter(t).forEach(s)}return o.get(e).then(s),o.addEventListener("change",u),()=>{a=!0,o.removeEventListener("change",u)}},getSnapshot:()=>r}},[e]);return(0,i.useSyncExternalStore)(t.subscribe,t.getSnapshot,()=>null)}},24091:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>y,J8:()=>v,Jk:()=>_,MB:()=>g,OX:()=>m,U:()=>u,VF:()=>l,Vz:()=>S,dp:()=>o,fD:()=>p,kY:()=>d,mK:()=>b,mN:()=>A,mZ:()=>E,n3:()=>w,sy:()=>c,vq:()=>s,wM:()=>f,wT:()=>T});var n=r(51845),i=r(21584),a=r(88051);let s=60,o=()=>{(0,n.stub)("register","waffle_filters")},u=(e,t,r,i)=>{(0,n.stub)("track","waffle_filters",{action:r?"add filter":"remove filter",filter:e,value:t,view:i?"accordion":"dropdown"})},l=e=>{(0,n.stub)("track","waffle_filters",{action:"open"===e?"open":"close",view:"dropdown"})},c=()=>{(0,n.stub)("track","waffle_filters",{action:"open",view:"accordion"})},d=()=>{(0,n.stub)("track","waffle_filters",{action:"done",view:"accordion"})},f=e=>{(0,n.stub)("track","waffle_filters",{action:"clear",view:e?"accordion":"dropdown"})},p=[{value:"0,25",label:"Under $25",min:0,max:25},{value:"25,50",label:"$25 to $50",min:25,max:50},{value:"50,100",label:"$50 to $100",min:50,max:100},{value:"100,200",label:"$100 to $200",min:100,max:200},{value:"200,*",label:"$200 & Above",min:200,max:Number.MAX_SAFE_INTEGER}],h=p.reduce((e,{value:t,min:r,max:n})=>({...e,[t]:{min:r,max:n}}),{}),m=(e=[])=>e.map(e=>({categoryName:e.filterLabel,values:(e.filterItems||[]).filter(({itemTaxonomy:e})=>e?.taxonomyPath&&e?.taxonomyName).map(({itemTaxonomy:{taxonomyPath:e,taxonomyName:t}})=>({key:e,name:t,value:e,selected:!1,disabled:!1}))}
5)),g=(e=[],t=[])=>{let r=(e||[]).map((e,t)=>({categoryId:`customFilter${t+1}`,categoryName:e.filterLabel,type:"taxonomy",values:(e.filterItems||[]).filter(({itemTaxonomy:e})=>e?.taxonomyPath&&e?.taxonomyName).map(({itemTaxonomy:{taxonomyPath:e,taxonomyName:t}})=>({key:e,name:t,value:e,selected:!1,disabled:!1}))}));return t?.length&&r.push({categoryId:"priceFilter",categoryName:t[0].label||"Price",type:"price",values:p.map(({value:e,label:t})=>({key:e,name:t,value:e,selected:!1,disabled:!1}))}),r},y=(e,t,r,n,i)=>e.map(e=>e.categoryName!==t?e:{...e,values:e.values.map(e=>e.key===r?{...e,selected:n}:i?e:{...e,selected:!1})}),v=(e,t,r)=>t.reduce((e,{values:t})=>{let n=t.filter(({selected:e})=>e).map(({key:e})=>e);return n.length?e.filter(({id:e})=>{let t=r[e]??[];return n.some(e=>t.some(t=>new RegExp(e).test(t)))}):e},e),_=(e,t)=>{if(!t)return e;let r=t.values.filter(({selected:e})=>e).map(({key:e})=>e);return r.length?e.filter(e=>{if(!e?.item)return!0;let{list:t,sale:n}=(0,i.QF)(e.item),a=n||t;return r.some(e=>{let t=h[e];return!!t&&a>=t.min&&a<=t.max})}):e},b=async(e,t,r,n="")=>{let i=n?`${n}/curation/taxonomy-terms/${e}/${r||-1}${t}`:`/bentoapi/curation/taxonomy-terms/${e}/${r||-1}${t}`;try{let e=await fetch(i,{}),{data:{curation:t={}}}=await e.json(),r=(({layouts:e=[]})=>e.reduce((e,{packages:t=[]})=>[...e,...t.reduce((e,{items:t=[]})=>[...e,...t.filter(e=>e)],[])],[]))(t);return((e=[])=>e.reduce((e,{id:t,item:r})=>{let{taxonomy:n}=r||{};return e[t]=(({allTerms:e=[]}={})=>e.map(({path:e})=>e))(n),e},{}))(r)}catch(e){throw Error("Failed to Fetch Taxonomy")}},w=(e=[],t=[])=>e.reduce((e,r)=>{let n=[...e],i=t[n.length];for(;i?.isCustomAd;)n.push(i),i=t[n.length];return n.push(r),n},[]),E=(e="/",t,r)=>{let n,i,[a,s]=e.split("?"),o="";window.location?.search?o=window.location.search.substring(1):s&&(o=s);let u=((n=new URLSearchParams(o)).set("page",t),(i=Object.entries(r||{}).map(([e,t])=>[e,Object.entries(t).filter(e=>e[1])]).filter(([,e])=>e.length>0).map(([e,t])=>`${"priceFilter"===e?"price":e}=${t.map(e=>e[0]).join("|")}`).join("&"))?n.set("filters",i):n.delete("filters"),n.toString());return`${a}?${u}`},S=(e,t="")=>{let r=[];t.split("&").filter(Boolean).forEach(e=>{let[t,n]=e.split("=");r.push({type:t,values:n.split("|")})});let n=e.priceFilter??{};return(r.find(e=>"price"===e.type)?.values??[]).forEach(e=>{n[e]=!0}),Object.entries(e).forEach(([e,t])=>{"priceFilter"!==e&&(r.find(t=>t.type===e)?.values??[]).forEach(e=>{t[e]=!0})}),{...e,priceFilter:n}},T=async(e,t,r,n,i)=>{let{page:s,filters:o}=r||{},u=s?parseInt(s,10):1,l=JSON.parse(JSON.stringify(n)),c=l.data.curation.layouts[0].packages.find(e=>"waffle"===e.type),{customFilters:d=[],priceFilter:f=[]}=c.metadata,h={};d.forEach((e,t)=>{h[`customFilter${t+1}`]=Object.fromEntries((e.filterItems||[]).filter(({itemTaxonomy:e})=>e?.taxonomyPath&&e?.taxonomyName).map(({itemTaxonomy:{taxonomyPath:e}})=>[e,!1]))}),f[0]&&(h.priceFilter=Object.fromEntries(p.map(({value:e})=>[e,!1])));let m=S(h,o),g=Object.entries(m).filter(([e])=>"priceFilter"!==e).map(([,e])=>({values:Object.entries(e).map(([e,t])=>({key:e,selected:t}))})),y=m.priceFilter??{},w=Object.keys(y).length?{values:Object.entries(y).map(([e,t])=>({key:e,selected:t}))}:void 0,E=await b(e,t?`/${t}`:n.data.curation.pageRoute,null,(0,a.H)()),T=_(v(c.items,g,E),w);if(o){let e=(u-1)*i;c.items=T.slice(e,e+i),c.pagination={page:u,count:c.items.length,totalCount:T.length,totalPages:Math.ceil(T.length/i),pageSize:i,urlFilter:o||null,clientSideMode:!1}}else c.items=T,c.pagination={page:u,count:T.length,totalCount:T.length,totalPages:Math.ceil(T.length/i),pageSize:i,urlFilter:null,clientSideMode:!0};return l},A=(e,t,r,n,i)=>{if("today"===e||"select"===e){let{curation:a}=n.data,s=a.layouts[0].packages.find(e=>"waffle"===e.type&&"autofilledProductWaffle"===e.subType);if(s&&s.items.length>60)return i(e,t,r,n,60)}return n}},26252:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,Kq:()=>s,ZC:()=>o});var n=r(14232),i=r(85877),a=n.createContext(new i.A),s=a.Provider,o=a.Consumer;let u=a},26364:(e,t,r)=>{"use strict";r.d(t,{M:()=>a});var n=r(48505),i=r(91797);let a=(e,t)=>{let r=(0,n.B0)(i.HIDE_GLOBAL_MENU_NAV,e);return r?.useFeatureFlag&&void 0!==t?t:!!r}},26420:(e,t,r)=>{"use strict";
5Object.defineProperty(t,"__esModule",{value:!0});let n=r(59534),i=r(82075);t.default=(e,t)=>{let r;switch(e.code){case n.ZodIssueCode.invalid_type:r=e.received===i.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case n.ZodIssueCode.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,i.util.jsonStringifyReplacer)}`;break;case n.ZodIssueCode.unrecognized_keys:r=`Unrecognized key(s) in object: ${i.util.joinValues(e.keys,", ")}`;break;case n.ZodIssueCode.invalid_union:r="Invalid input";break;case n.ZodIssueCode.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${i.util.joinValues(e.options)}`;break;case n.ZodIssueCode.invalid_enum_value:r=`Invalid enum value. Expected ${i.util.joinValues(e.options)}, received '${e.received}'`;break;case n.ZodIssueCode.invalid_arguments:r="Invalid function arguments";break;case n.ZodIssueCode.invalid_return_type:r="Invalid function return type";break;case n.ZodIssueCode.invalid_date:r="Invalid date";break;case n.ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:i.util.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case n.ZodIssueCode.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case n.ZodIssueCode.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case n.ZodIssueCode.custom:r="Invalid input";break;case n.ZodIssueCode.invalid_intersection_types:r="Intersection results could not be merged";break;case n.ZodIssueCode.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case n.ZodIssueCode.not_finite:r="Number must be finite";break;default:r=t.defaultError,i.util.assertNever(e)}return{message:r}}},26620:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(83908),t),i(r(92214),t),i(r(28779),t),i(r(82075),t),i(r(74894),t),i(r(59534),t)},28779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29070:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});var n=r(88220).Buffer;function i(e=""){let t=String(e).split(".")[1];if(t)try{return JSON.parse(function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.padEnd(4*Math.ceil(t.length/4),"=");if(void 0!==n)return n.from(r,"base64").toString("utf-8");if("function"==typeof atob)return decodeURIComponent(Array.from(atob(r),e=>`%${e.charCodeAt(0).toString(16).padStart(2,"0")}`).join(""));throw Error("No base64 decoder available (Buffer and atob are both undefined)")}(t))}catch{return}}},29429:(e,t,r)=>{"use strict";var n=r(14232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,s=n.useEffect,o=n.useLayoutEffect,u=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return o(function(){i.value=r,i.getSnapshot=t,l(i)&&c({inst:i})},[e,r,t]),s(function(){return l(i)&&c({inst:i}),e(function(){l(i)&&c({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},31406:(e,t,r)=>{e=r.nmd(e);var n,i,a,s,o="__lodash_hash_undefined__",u=1/0,l="[object Arguments]",c="[object Array]",d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",m="[object Map]",g="[object Number]",y="[object Object]",v="[object Promise]",_="[object RegExp]",b="[object Set]",w="[object String]",E="[object Symbol]",S="[object WeakMap]",T="[object ArrayBuffer]",A="[object DataView]",O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,k=/^\./,I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,N=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,R={};
5R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[l]=R[c]=R[T]=R[d]=R[A]=R[f]=R[p]=R[h]=R[m]=R[g]=R[y]=R[_]=R[b]=R[w]=R[S]=!1;var P="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,M=P||D||Function("return this")(),U=t&&!t.nodeType&&t,j=U&&e&&!e.nodeType&&e,$=j&&j.exports===U&&P.process,Z=function(){try{return $&&$.binding("util")}catch(e){}}(),V=Z&&Z.isTypedArray;function B(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function F(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function z(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function H(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var Y=Array.prototype,G=Function.prototype,W=Object.prototype,q=M["__core-js_shared__"],K=(i=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",J=G.toString,X=W.hasOwnProperty,Q=W.toString,ee=RegExp("^"+J.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),et=M.Symbol,er=M.Uint8Array,en=W.propertyIsEnumerable,ei=Y.splice,ea=(a=Object.keys,s=Object,function(e){return a(s(e))}),es=eP(M,"DataView"),eo=eP(M,"Map"),eu=eP(M,"Promise"),el=eP(M,"Set"),ec=eP(M,"WeakMap"),ed=eP(Object,"create"),ef=eV(es),ep=eV(eo),eh=eV(eu),em=eV(el),eg=eV(ec),ey=et?et.prototype:void 0,ev=ey?ey.valueOf:void 0,e_=ey?ey.toString:void 0;function eb(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ew(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eE(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eS(e){var t=-1,r=e?e.length:0;for(this.__data__=new eE;++t<r;)this.add(e[t])}function eT(e){this.__data__=new ew(e)}function eA(e,t){for(var r=e.length;r--;)if(eF(e[r][0],t))return r;return -1}eb.prototype.clear=function(){this.__data__=ed?ed(null):{}},eb.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eb.prototype.get=function(e){var t=this.__data__;if(ed){var r=t[e];return r===o?void 0:r}return X.call(t,e)?t[e]:void 0},eb.prototype.has=function(e){var t=this.__data__;return ed?void 0!==t[e]:X.call(t,e)},eb.prototype.set=function(e,t){return this.__data__[e]=ed&&void 0===t?o:t,this},ew.prototype.clear=function(){this.__data__=[]},ew.prototype.delete=function(e){var t=this.__data__,r=eA(t,e);return!(r<0)&&(r==t.length-1?t.pop():ei.call(t,r,1),!0)},ew.prototype.get=function(e){var t=this.__data__,r=eA(t,e);return r<0?void 0:t[r][1]},ew.prototype.has=function(e){return eA(this.__data__,e)>-1},ew.prototype.set=function(e,t){var r=this.__data__,n=eA(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},eE.prototype.clear=function(){this.__data__={hash:new eb,map:new(eo||ew),string:new eb}},eE.prototype.delete=function(e){return eR(this,e).delete(e)},eE.prototype.get=function(e){return eR(this,e).get(e)},eE.prototype.has=function(e){return eR(this,e).has(e)},eE.prototype.set=function(e,t){return eR(this,e).set(e,t),this},eS.prototype.add=eS.prototype.push=function(e){return this.__data__.set(e,o),this},eS.prototype.has=function(e){return this.__data__.has(e)},eT.prototype.clear=function(){this.__data__=new ew},eT.prototype.delete=function(e){return this.__data__.delete(e)},eT.prototype.get=function(e){return this.__data__.get(e)},eT.prototype.has=function(e){return this.__data__.has(e)},eT.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ew){var n=r.__data__;if(!eo||n.length<199)return n.push([e,t]),this;r=this.__data__=new eE(n)}return r.set(e,t),this};var eO=(n=function(e,t){return e&&eC(e,t,eQ)},function(e,t){if(null==e)return e;if(!eY(e))return n(e,t);for(var r=e.length,i=-1,a=Object(e);++i<r&&!1!==t(a[i],i,a););return e}),eC=function(e,t,r){for(var n=-1,i=Object(e),a=r(e),s=a.length;s--;){var o=a[++n];if(!1===t(i[o],o,i))break}return e};function ek(e,t){var r;t=eU(t,e)?[t]:eH(r=t)?r:e$(r);for(var n=0,i=t.length;null!=e&&n<i;)e=e[eZ(t[n++])];return n&&n==i?e:void 0}function eI(e,t){return null!=e&&t in Object(e)}function ex(e,t,r,n,i){return e===t||(null!=e&&null!=t&&(eq(e)||eK(t))?function(e,t,r,n,i,a){var s=eH(e),o=eH(t),u=c,h=c;s||(u=(u=eD(e))==l?y:u),o||(h=(h=eD(t))==l?y:h);var v=u==y&&!F(e),S=h==y&&!F(t),O=u==h;if(O&&!v)return a||(a=new eT),s||eX(e)?eL(e,t,r,n,i,a):function(e,t,r,n,i,a,s){switch(r){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case T:if(e.byteLength!=t.byteLength||!n(new er(e),new er(t)))break;return!0;case d:case f:case g:return eF(+e,+t);case p:return e.name==t.name&&e.message==t.message;case _:case w:return e==t+"";case m:var o=z;
5case b:var u=2&a;if(o||(o=H),e.size!=t.size&&!u)break;var l=s.get(e);if(l)return l==t;a|=1,s.set(e,t);var c=eL(o(e),o(t),n,i,a,s);return s.delete(e),c;case E:if(ev)return ev.call(e)==ev.call(t)}return!1}(e,t,u,r,n,i,a);if(!(2&i)){var C=v&&X.call(e,"__wrapped__"),k=S&&X.call(t,"__wrapped__");if(C||k){var I=C?e.value():e,x=k?t.value():t;return a||(a=new eT),r(I,x,n,i,a)}}return!!O&&(a||(a=new eT),function(e,t,r,n,i,a){var s=2&i,o=eQ(e),u=o.length;if(u!=eQ(t).length&&!s)return!1;for(var l=u;l--;){var c=o[l];if(!(s?c in t:X.call(t,c)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=s;++l<u;){var h=e[c=o[l]],m=t[c];if(n)var g=s?n(m,h,c,t,e,a):n(h,m,c,e,t,a);if(!(void 0===g?h===m||r(h,m,n,i,a):g)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var y=e.constructor,v=t.constructor;y!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v)&&(f=!1)}return a.delete(e),a.delete(t),f}(e,t,r,n,i,a))}(e,t,ex,r,n,i):e!=e&&t!=t)}function eN(e,t){var r;return eO(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function eL(e,t,r,n,i,a){var s=2&i,o=e.length,u=t.length;if(o!=u&&!(s&&u>o))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var c=-1,d=!0,f=1&i?new eS:void 0;for(a.set(e,t),a.set(t,e);++c<o;){var p=e[c],h=t[c];if(n)var m=s?n(h,p,c,t,e,a):n(p,h,c,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!B(t,function(e,t){if(!f.has(t)&&(p===e||r(p,e,n,i,a)))return f.add(t)})){d=!1;break}}else if(!(p===h||r(p,h,n,i,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function eR(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function eP(e,t){var r,n=null==e?void 0:e[t];return!(!eq(n)||(r=n,K&&K in r))&&(eG(n)||F(n)?ee:N).test(eV(n))?n:void 0}var eD=function(e){return Q.call(e)};function eM(e,t){return!!(t=null==t?0x1fffffffffffff:t)&&("number"==typeof e||L.test(e))&&e>-1&&e%1==0&&e<t}function eU(e,t){if(eH(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||eJ(e))||C.test(e)||!O.test(e)||null!=t&&e in Object(t)}(es&&eD(new es(new ArrayBuffer(1)))!=A||eo&&eD(new eo)!=m||eu&&eD(eu.resolve())!=v||el&&eD(new el)!=b||ec&&eD(new ec)!=S)&&(eD=function(e){var t=Q.call(e),r=t==y?e.constructor:void 0,n=r?eV(r):void 0;if(n)switch(n){case ef:return A;case ep:return m;case eh:return v;case em:return b;case eg:return S}return t});function ej(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}var e$=eB(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(eJ(e))return e_?e_.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}(t);var t,r=[];return k.test(e)&&r.push(""),e.replace(I,function(e,t,n,i){r.push(n?i.replace(x,"$1"):t||e)}),r});function eZ(e){if("string"==typeof e||eJ(e))return e;var t=e+"";return"0"==t&&1/e==-u?"-0":t}function eV(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eB(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s),s};return r.cache=new(eB.Cache||eE),r}function eF(e,t){return e===t||e!=e&&t!=t}function ez(e){var t;return eK(t=e)&&eY(t)&&X.call(e,"callee")&&(!en.call(e,"callee")||Q.call(e)==l)}eB.Cache=eE;var eH=Array.isArray;function eY(e){return null!=e&&eW(e.length)&&!eG(e)}function eG(e){var t=eq(e)?Q.call(e):"";return t==h||"[object GeneratorFunction]"==t}function eW(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eq(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eK(e){return!!e&&"object"==typeof e}function eJ(e){return"symbol"==typeof e||eK(e)&&Q.call(e)==E}var eX=V?function(e){return V(e)}:function(e){return eK(e)&&eW(e.length)&&!!R[Q.call(e)]};function eQ(e){return eY(e)?function(e){var t=eH(e)||ez(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],r=t.length,n=!!r;
5for(var i in e)X.call(e,i)&&!(n&&("length"==i||eM(i,r)))&&t.push(i);return t}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||W))return ea(e);var t,r,n=[];for(var i in Object(e))X.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}function e0(e){return e}e.exports=function(e,t,r){var n,i,a,s,o,u,l=eH(e)?B:eN;return r&&function(e,t,r){if(!eq(r))return!1;var n=typeof t;return("number"==n?!!(eY(r)&&eM(t,r.length)):"string"==n&&t in r)&&eF(r[t],e)}(e,t,r)&&(t=void 0),l(e,"function"==typeof(u=t)?u:null==u?e0:"object"==typeof u?eH(u)?(n=u[0],i=u[1],eU(n)&&(a=i)==a&&!eq(a)?ej(eZ(n),i):function(e){var t,r,a,s,o,u=(t=e,r=n,void 0===(a=null==t?void 0:ek(t,r))?void 0:a);return void 0===u&&u===i?(s=e,o=n,null!=s&&function(e,t,r){t=eU(t,e)?[t]:eH(n=t)?n:e$(n);for(var n,i,a=-1,s=t.length;++a<s;){var o=eZ(t[a]);if(!(i=null!=e&&r(e,o)))break;e=e[o]}if(i)return i;var s=e?e.length:0;return!!s&&eW(s)&&eM(o,s)&&(eH(e)||ez(e))}(s,o,eI)):ex(i,u,void 0,3)}):1==(o=function(e){for(var t=eQ(e),r=t.length;r--;){var n,i=t[r],a=e[i];t[r]=[i,a,(n=a)==n&&!eq(n)]}return t}(s=u)).length&&o[0][2]?ej(o[0][0],o[0][1]):function(e){return e===s||function(e,t){var r=t.length,n=r;if(null==e)return!n;for(e=Object(e);r--;){var i=t[r];if((0,i[2])?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++r<n;){var a=(i=t[r])[0],s=e[a],o=i[1];if(0,i[2]){if(void 0===s&&!(a in e))return!1}else{var u,l=new eT;if(!(void 0===u?ex(o,s,void 0,3,l):u))return!1}}return!0}(e,o)}:function(e){var t;return eU(e)?(t=eZ(e),function(e){return null==e?void 0:e[t]}):function(t){return ek(t,e)}}(u))}},31586:(e,t,r)=>{"use strict";r.d(t,{hZ:()=>O});var n=r(34957),i=(r(4319),r(44774)),a=r(84245),s=r(69641),o=r(51845),u=r(79424),l=r(42060),c=r(91797),d=r(48505),f=r(42111),p=r(29070),h=r(97159),m=r(74455),g=r(72419),y=r(40365),v=r(55528);class _ extends Error{constructor(e="Session invalid"){super(e),this.name="SessionInvalidError"}}let b=()=>{try{let{origin:e="",pathname:t=""}=window.location||{};return`${e}${t}`}catch(e){return""}},w=(e,t,r)=>{let n=e instanceof Error?e:Error(String(e)),i=b();(0,m.vV)(n,{feature:"bedrock-auth",action:t,pageUrl:i,subscriptions:r().subscriptions,authenticationState:r().authenticationState})},E={user:{address_line1:"",address_line2:null,birth_year:"",email:"",email_verified:!1,first_name:"",gender:"",last_name:"",password:"",phone_number:"",state:"",user_id:void 0,zipcode:""},settings:{zipcode:""},access_token:null,authenticationState:a.UP,brand:"",entryScreen:s.cq.REGISTER,error:"",hasSubscribedToAll:!1,isCheckoutFlow:!1,loading:!1,loginStarted:!1,newsletterSubscriptions:[],pageView:null,pianoCheckoutCompletedAt:0,pianoTrackCompletedAt:0,piano_token:"",returnToPageAfterAuth:!1,screen:s.cq.REGISTER,showAuthenticationModal:!1,showGate:!0,signInType:"",subscriptionPlan:null,social:{firstName:"",idToken:"",isNewUser:!1,platform:""},smsSignupFlagEnabled:!1,suppressPianoExecute:!1,subscriptions:{nbcNews:!1,startToday:!1},tinypass_token:null},S=e=>new Promise(t=>setTimeout(t,e)),T=()=>{try{window.localStorage?.removeItem("piano_checkout_completed")}catch(e){}},A=(e,t)=>{let r={screen:e,error:"",loginStarted:!0};return e===s.cq.LOGIN_SUCCESS&&(r.showGate=!1),e===s.cq.LOGIN&&(r.user={email:t?.email||"",password:t?.password||""}),r},O=(0,n.vt)((e,t)=>({...E,reset:()=>{let r=(0,y.R)(),{entryScreen:n}=t();e({...E,entryScreen:n,screen:n},!1,"reset"),r||(0,u.rQ)().catch(()=>{}),g.A.setUserAndReload("")},setLoading:t=>e({loading:t},!1,"setLoading"),setError:t=>e({error:t},!1,"setError"),setCheckoutFlow:t=>e({isCheckoutFlow:t},!1,"setCheckoutFlow"),setReturnToPageAfterAuth:t=>e({returnToPageAfterAuth:t},!1,"setReturnToPageAfterAuth"),markPianoCheckoutComplete:()=>e({pianoCheckoutCompletedAt:Date.now(),pianoTrackCompletedAt:0},!1,"markPianoCheckoutComplete"),markPianoTrackEventComplete:()=>e({pianoTrackCompletedAt:Date.now()},!1,"markPianoTrackEventComplete"),setSmsSignupFlagEnabled:t=>e({smsSignupFlagEnabled:t},!1,"setSmsSignupFlagEnabled"),openCheckoutAuth:({screen:r=s.cq.REGISTER,userFormData:n}={})=>{let{authenticationState:i,showAuthenticationModal:o}
5=t(),u={isCheckoutFlow:!0,...A(r,n)};i===a.K_||o||(u.showAuthenticationModal=!0),e(u,!1,"openCheckoutAuth")},getAuthTokens:()=>({access_token:t().access_token||(0,l.Ri)("access_token")}),setAuthenticationState:r=>{r!==a.UP&&t().setLoading(!1);let n={action:"PageLoad",method:""};r===a.zZ&&(t().track(n),t().reset(),e({loginStarted:t().entryScreen!==s.cq.REGISTER},!1,"setAuthenticationState")),r===a.K_&&(t().track(n),t().loginStarted||e({showGate:!1},!1,"setAuthenticationState")),e({authenticationState:r},!1,"setAuthenticationState")},hasAnyEntitlement:()=>{let{subscriptions:e}=t();return!!e&&"object"==typeof e&&Object.values(e).some(Boolean)},setSuppressPianoExecute:t=>e({suppressPianoExecute:t},!1,"setSuppressPianoExecute"),waitForSubscriptionsAfterCheckout:async(r=20)=>{let{brand:n,user:i,authenticationState:s}=t();if(s!==a.K_||!i?.user_id)return;let o=i.user_id,u=2e3;e({suppressPianoExecute:!0},!1,"waitForSubscriptionsAfterCheckout:suppressStart");try{for(let e=1;e<=r;e+=1){let{authenticationState:e,user:r}=t();if(e!==a.K_||!r?.user_id)return;try{await t().getUserToken(o,n,{skipPianoToken:!0})}catch(e){return}if(t().hasAnyEntitlement()){try{await t().getPianoToken(o)}catch(e){}t().fetchUserSubscriptions().catch(e=>{}),T();return}await S(u),u=Math.min(1.5*u,3e3)}T()}finally{let r=t().piano_token;r&&g.A.setUserAndReload(r),e({suppressPianoExecute:!1},!1,"waitForSubscriptionsAfterCheckout:suppressEnd")}},refreshUserToken:async(r=!1)=>{try{let n=await (0,u.RQ)();if(!n){(0,y.R)()&&t().authenticationState===a.K_||t().setAuthenticationState(a.zZ);return}let{accessToken:i,pianoToken:s,subscriptions:o}=n,{sub:c,brand:d,scope:f}=i||{};if(!c){t().authenticationState!==a.K_&&t().setAuthenticationState(a.zZ);return}let p=(0,l.Ri)("access_token"),h=(0,u.mu)(i);if(e({user:{...t().user,user_id:c},access_token:p,brand:d,...h},!1,"refreshUserToken"),s&&s!==t().piano_token&&e({piano_token:s},!1,"refreshUserToken"),"string"==typeof o)e({subscriptionPlan:o||null},!1,"refreshUserToken:subscriptionPlan");else if(Array.isArray(o)){let[t]=o,r=t?.term?.name||t?.product_id||null;e({subscriptionPlan:r},!1,"refreshUserToken:subscriptionPlan")}r&&"users:read_write"!==f?await t().getUserToken(c,d):t().setAuthenticationState(a.K_)}catch(r){w(r,"refreshUserToken",t),e({error:r.message},!1,"refreshUserTokenError"),r instanceof _?t().setAuthenticationState(a.zZ):(0,m.d5)("tokenRefreshServerError",{feature:"bedrock-auth",action:"refreshUserToken",errorMessage:r.message,pageUrl:b()})}},isTokenExpired:(e="")=>{let t=(0,p.K)(e);if(!t||"number"!=typeof t.exp)return!0;let r=1e3*t.exp;return Date.now()>=r},getUserToken:async(r,n,i={})=>{let{skipPianoToken:s=!1}=i,o=await (0,v.rY)(`/users/${r}/auth/token`,{method:"POST",body:{scope:"users:read_write",brand:n||t().brand}});if(o?.success&&o?.data?.access_token){let n=o.data.access_token,i=(0,v.uS)(n);e({access_token:n,...i},!1,"getUserToken"),s||await t().getPianoToken(r),t().setAuthenticationState(a.K_);return}if(o?.code==="SESSION_INVALID")throw new _(o?.error?.api_message);throw Error(o?.error||"getUserToken: server error")},getPianoToken:async r=>{try{let n=await (0,v.rY)(`/users/${r}/auth/token/piano`,{method:"POST",body:{brand:t().brand}});n?.success&&n?.data?.token?e({piano_token:n.data.token},!1,"reset"):(w(Error(n?.error?.api_message||"getPianoToken"),"getPianoToken",t),e({piano_token:""},!1,"reset"))}catch(r){throw w(r,"getPianoToken",t),e({error:r.message},!1,"getPianoToken"),e({piano_token:""},!1,"reset"),r}},shouldShowSmsSignupOnboarding:()=>{let{brand:e,smsSignupFlagEnabled:r}=t(),n=(0,d.B0)(c.TODAY_SMS_SIGNUP_ONBOARDING,e);return!!n?.enabled&&r},setScreen:(t,r)=>{e(A(t,r),!1,"setScreen")},setEntryScreen:t=>{e({entryScreen:s.xP.includes(t)?t:s.cq.REGISTER},!1,"setEntryScreen")},setAuthenticationModal:(t=!0,{screen:r,userFormData:n}={})=>{let i={showAuthenticationModal:t};t&&r&&Object.assign(i,A(r,n)),e(i,!1,"setAuthenticationModal")},searchUserByEmail:async(r,n)=>{t().setLoading(!0),e({brand:n},!1,"searchUserByEmail");try{let e=await (0,v.rY)("/users/search/profile",{body:{email:r,brand:n}});
5return t().setLoading(!1),e}catch(e){return w(e,"searchUserByEmail",t),t().setLoading(!1),e}},setEmail:t=>e({user:{email:t}},!1,"setEmail"),userRegistration:async({method:r,registrationObj:n})=>{let a;t().setLoading(!0);let o=(0,f.h)(n,i.ALLOWED_USER_REGISTRATION_FIELDS);try{let n=await (0,v.rY)("/users/register",{body:o});n?.success?(t().track({action:"SignUp:Success",method:r,userId:n?.data?.user_id}),t().setLoading(!1),e({signInType:"registration"},!1,"registrationSuccess"),a=s.cq.VERIFY_OTC):(w(Error(n?.error?.api_message||"requestOneTimeCode"),"requestOneTimeCode",t),e({error:n?.error?.user_message},!1,"registrationError"))}catch(r){w(r,"userRegistration",t),e({error:"There was an error registering"},!1,"registrationError")}return t().setLoading(!1),a},userSignin:async({email:r,password:n,brand:i,trackingPayload:a})=>{let s;t().setLoading(!0),i&&e({brand:i},!1,"userSignin");try{t().track(a);let o=await (0,v.rY)("/users/signin",{body:{email:r||t().user.email,password:n,brand:i||t().brand,remember_me:!0}});if(o?.success){let n=Object.fromEntries(Object.keys(E.user).map(e=>[e,o.data[e]]).filter(([,e])=>!!e)),u={...t().user,...n};t().track({action:"SignIn:Success",method:`${a.method}`,userId:u.user_id}),u.email||(u.email=r||t().user.email);let l=(0,v.uS)(o?.data?.access_token);e({user:u,access_token:o?.data?.access_token,signInType:"login",brand:i,...l},!1,"userSignin"),o?.data?.access_token&&await t().fetchUserProfile(o?.data?.access_token),s=await t().getSuccessScreen(o?.data,i)}else w(Error(o?.error?.api_message||"userSigninError"),"userSigninError",t),e({error:o?.error?.user_message},!1,"userSigninError")}catch(r){return w(r,"userSignin",t),e({error:"There was an error logging in"}
5,!1,"userSigninCallError"),t().setLoading(!1),s}return t().setLoading(!1),s},socialLogin:async({socialUser:r,brand:n,platform:i,trackingPayload:a})=>{let o;t().setLoading(!0),n&&e({brand:n},!1,"socialLogin");let{idToken:u,firstName:l,isNewUser:c}=r;if(c)return e({social:{idToken:u,firstName:l,platform:i}},!1,"socialLogin"),t().setLoading(!1),s.cq.SOCIAL_REGISTRATION;try{t().track(a);let r=await (0,v.rY)("/users/social/signin",{body:{id_token:u,brand:n,platform:i}});if(r?.success){let i={action:"SignIn:Success",method:`${a.method}`,userId:r?.data?.user_id};t().track(i);let s=(0,v.uS)(r?.data?.access_token);e({user:{...r?.data},...s},!1,"loginSuccess"),await t().fetchUserProfile(r?.data?.access_token),e({signInType:"login"}),o=t().getSuccessScreen(r?.data,n)}else w(Error(r?.error?.api_message||"loginError"),"loginError",t),e({error:r?.error?.user_message},!1,"loginError")}catch(r){w(r,"socialLogin",t),e({error:"There was an error logging in"},!1,"loginError"),t().setLoading(!1)}return t().setLoading(!1),o},userSocialRegistration:async({brand:r,trackingPayload:n,source:i="default"})=>{let a,s=r||t().brand;try{t().track(n);let r=await (0,v.rY)("/users/social/signin",{body:{id_token:t().social.idToken,brand:s,platform:t().social.platform,first_name:t().social.firstName,source:i}});if(r?.success){let i={action:"SignIn:Success",method:`${n.method}`,userId:r?.data?.user_id};t().track(i);let o=(0,v.uS)(r?.data?.access_token);e({access_token:r?.data?.access_token,...o},!1,"userSocialRegistration"),await t().fetchUserProfile(r?.data?.access_token),e({signInType:"registration"}),a=t().getSuccessScreen(r?.data,s,!1)}else w(Error(r?.error?.api_message||"userSocialRegistration"),"userSocialRegistration",t),e({error:r?.error?.user_message},!1,"userSocialRegistration")}catch(r){w(r,"userSocialRegistration",t),e({error:"There was an error registering"},!1,"userSocialRegistration")}return a},requestOneTimeCode:async({email:r,brand:n,trackingPayload:i})=>{try{t().track(i),n&&e({brand:n},!1,"requestOneTimeCode");let a=await (0,v.rY)("/users/otp/request",{body:{email:r||t().user.email,brand:n||t().brand},headers:{Authorization:`Bearer ${t().clientToken}`}});if(!a.success)return w(Error(a?.error?.api_message||"requestOneTimeCode"),"requestOneTimeCode",t),e({error:a?.error?.user_message},!1,"oneTimeCode"),Promise.reject(a.error);return s.cq.LOGIN_OTC}catch(r){return w(r,"requestOneTimeCode",t),e({error:"There was an error, please try again"},!1,"oneTimeCode"),Promise.reject(r)}},verifyOneTimeCode:async({oneTimeCode:r,brand:n,email:i,trackingPayload:a,accountFlow:o})=>{n&&e({brand:n},!1,"verifyOneTimeCode");try{let u=await (0,v.rY)("/users/otp/verify",{body:{email:t().user.email||i,brand:t().brand||n,one_time_code:r}});if(t().track(a),u?.success){t().track({action:`${o}:Success`,method:"VerifyOTC:SubmitButtonClick",userId:u?.data?.user_id});let r=(0,v.uS)(u?.data?.access_token);return e({...r},!1,"userSocialRegistration"),await t().fetchUserProfile(u?.data?.access_token),await t().getSuccessScreen(u?.data,n,t().screen!==s.cq.VERIFY_OTC)}t().setLoading(!1),w(Error(u?.error?.api_message||"verifyOneTimeCode"),"verifyOneTimeCode",t),e({error:"There was an error verifying the code"},!1,"verifyOneTimeCode")}catch(r){w(r,"verifyOneTimeCode",t),t().setLoading(!1),e({error:"There was an error verifying the code"},!1,"verifyOneTimeCode")}},getSuccessScreen:async(r,n,i=!0)=>(n&&e({brand:n},!1,"getSuccessScreen"),r?.email_verified?!i&&t().shouldShowSmsSignupOnboarding()?s.cq.SMS_TEXT_ALERTS:i?s.cq.LOGIN_SUCCESS:s.cq.REGISTRATION_SUCCESS:s.cq.VERIFY_OTC),userSignout:async()=>{let r;t().setLoading(!0);try{t().track({action:"SignOut:Start",method:"SignOutButton:Click"});let{user_id:e}=t().user;e&&await (0,u.S6)();let n=`${window.location?.origin}${window.location?.pathname}`;t().setAuthenticationState(a.zZ),(0,m.d5)("userSignoutSuccess",{feature:"bedrock-auth",action:"userSignoutSuccess",pageUrl:n}),t().track({action:"SignOut:Success",method:"SignOutButton:Click",signOutSuccess:!0}),r=s.cq.REGISTER}catch(r){w(r,"userSignout",t),e({error:r.user_message||r.message},!1,"userSignout")}
5finally{t().setLoading(!1)}return r},deleteProfile:async({oneTimeCode:e})=>{let r={oneTimeCode:e,email:t().user.email,brand:h.brandSchema.parse(t().brand)};return await (0,v.rY)(`/users/${t().user.user_id}/deleteProfile`,{body:r})},fetchUserProfile:async r=>{if(t().setLoading(!0),!r){t().setAuthenticationState(a.zZ),t().setLoading(!1);return}let{sub:n,brand:i}=(0,u.WO)(r)||{};if(i&&e({brand:i},!1,"fetchUserProfile"),!n){t().setAuthenticationState(a.zZ),t().setLoading(!1);return}try{let r=await (0,v.rY)(`/users/${n}/profile`,{body:{...t().getAuthTokens(),brand:i}});if(r.success){let s=r.data;if(e({user:{...s,user_id:n},brand:i},!1,"fetchUserProfile"),t().setAuthenticationState(a.K_),!t().piano_token)try{await t().getPianoToken(n)}catch(e){w(e,"fetchUserProfile:getTokens",t)}}else w(Error(r?.error?.api_message||"fetchUserProfileError"),"fetchUserProfileError",t),e({error:r.error},!1,"fetchUserProfileError")}catch(r){w(r,"fetchUserProfile",t),e({error:r},!1,"fetchUserProfileError")}t().setLoading(!1)},updateUserProfile:async(r={})=>{let n={};t().setLoading(!0);try{await t().refreshUserToken(!0)}catch(r){return w(r,"updateUserProfile:refreshToken",t),e({error:r.message}
5,!1,"getUserTokenError"),t().setLoading(!1),r.message}let a=(0,f.h)(r,i.ALLOWED_PROFILE_FIELDS);try{let r=await (0,v.rY)(`/users/${t().user.user_id}/profile`,{method:"PATCH",headers:{"x-auth-token":t().access_token},body:{...a,...t().getAuthTokens(),brand:t().brand}});r?.success?(t().fetchUserProfile(t().getAuthTokens().access_token),n.screen="registration"===t().signInType?s.cq.REGISTRATION_SUCCESS:s.cq.LOGIN_SUCCESS,n.success=!0):(w(Error(r?.error?.api_message||"updateUserProfileError"),"updateUserProfileError",t),e({error:r?.error?.user_message},!1,"updateUserProfileError"))}catch(r){w(r,"updateUserProfile",t),e({error:r.message},!1,"updateUserProfileError")}finally{t().setLoading(!1)}return n},updateUserPassword:async({old_password:r,new_password:n})=>{e({loading:!0,error:""},!1,"updateUserPassword:start");try{if(!r||!n){let t="old_password and new_password are required";return e({error:t},!1,"updateUserPassword:validation"),{success:!1,error:t}}try{await t().refreshUserToken()}catch(r){return w(r,"updateUserPassword:refreshToken",t),e({error:r.message},!1,"updateUserPassword:refreshError"),{success:!1,error:r.message}}let{user_id:i}=t().user||{};if(!i){let t="No user in session";return e({error:t},!1,"updateUserPassword:noUser"),{success:!1,error:t}}let a=await (0,v.rY)(`/users/${i}/password`,{method:"PATCH",headers:{"x-auth-token":t().access_token},body:{old_password:r,new_password:n,...t().getAuthTokens(),brand:t().brand}});if(a&&a.success)return{success:!0,message:a?.data?.message||"Password changed successfully."};w(Error(a?.error?.api_message||"updateUserPasswordError"),"updateUserPasswordError",t);let s=a?.error?.user_message||a?.error?.message||"Unable to change password.";return e({error:s},!1,"updateUserPassword:error"),{success:!1,error:s}}catch(n){w(n,"updateUserPassword",t);let r=String(n);return e({error:r},!1,"updateUserPassword:catch"),{success:!1,error:r}}finally{e({loading:!1},!1,"updateUserPassword:finally")}},fetchNewsletterSubscriptions:async()=>{e({loading:!0},!1,"fetchNewsletterSubscriptions:start");try{await t().refreshUserToken();let r=t().user.user_id;if(!r){let r="Cannot fetch newsletter subscriptions without a logged-in user.";return w(Error(r),"fetchNewsletterSubscriptionsError",t),e({error:r},!1,"fetchNewsletterSubscriptions:noUser"),{success:!1,error:{user_message:r}}}t().track({action:"Fetch:Newsletters",method:"fetchNewsletterSubscriptions",userId:r});let n=await (0,v.rY)(`/users/${r}/subscriptions/newsletters`,{method:"POST",body:{...t().getAuthTokens(),brand:t().brand}});if(n?.success){let{subscriptions:t}=n.data;e({newsletterSubscriptions:t},!1,"fetchNewsletterSubscriptions:success")}else w(Error(n?.error?.api_message||"fetchNewsletterSubscriptionsError"),"fetchNewsletterSubscriptionsError",t),e({error:n.error?.user_message||"Failed to fetch subscriptions"},!1,"fetchNewsletterSubscriptions:error");return n}catch(r){return w(r,"fetchNewsletterSubscriptions",t),e({error:r.message},!1,"fetchNewsletterSubscriptions:error"),{success:!1,error:{user_message:r.message}}}finally{e({loading:!1},!1,"fetchNewsletterSubscriptions:finally")}},updateNewsletterSubscriptions:async({subscriptions:r,optimisticState:n,revertState:i,action:a})=>{let{user:{user_id:s},refreshUserToken:o,getAuthTokens:u,brand:l}=t();e(n,!1,`${a}:optimistic`);try{await o(!0);let e=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,+!!t])),n={...u(),brand:l,source:"newsletters",location_source:"account_page",subscriptions:e},{success:i,error:a}=await (0,v.rY)(`/users/${s}/subscriptions/newsletters`,{method:"PATCH",body:n});if(!i)throw w(Error(a?.api_message||"updateNewsletterSubscriptions"),"updateNewsletterSubscriptions",t),Error(a?.user_message||"Failed to update subscriptions")}catch(r){w(r,"updateNewsletterSubscriptions",t),e(i,!1,`${a}:revert`),e({error:r.message},!1,`${a}:error`),console.error(`Newsletter ${a} failed:`,r)}},toggleNewsletterSubscription:async e=>{let r=t().newsletterSubscriptions,n=r.includes(e),i=n?r.filter(t=>t!==e):[...r,e],a={subscriptions:{[e]:!n},optimisticState:{newsletterSubscriptions:i},revertState:{newsletterSubscriptions:r,hasSubscribedToAll:t().hasSubscribedToAll},action:"toggleNewsletterSubscription"};n&&(a.optimisticState.hasSubscribedToAll=!1),await t().updateNewsletterSubscriptions(a)},subscribeToAllNewsletters:async(r=[])=>{let n=t().newsletterSubscriptions,i=r.map(({newsletter_id:e})=>e),a=Object.fromEntries(i.map(e=>[e,!0]));n.length===i.length?e({hasSubscribedToAll:!0},!1,"subscribeToAllNewsletters"):await t().updateNewsletterSubscriptions({subscriptions:a,optimisticState:{newsletterSubscriptions:i,hasSubscribedToAll:!0},revertState:{newsletterSubscriptions:n,hasSubscribedToAll:t().hasSubscribedToAll},action:"subscribeToAllNewsletters"})},unsubscribeFromAllNewsletters:async e=>{let r=t().newsletterSubscriptions,n=Object.fromEntries(e.map(({newsletter_id:e})=>e).map(e=>[e,!1]));0!==r.length&&await t().updateNewsletterSubscriptions({subscriptions:n,optimisticState:{newsletterSubscriptions:[],hasSubscribedToAll:!1},revertState:{newsletterSubscriptions:r},action:"unsubscribeFromAllNewsletters"})},fetchContentInterests:async()=>{let{getAuthTokens:r,refreshUserToken:n,user:{user_id:i},brand:a}=t();
5t().setLoading(!0);try{await n();let{access_token:e}=r();if(!e)throw Error("Cannot fetch interests without a valid session and access token");if(!i)throw Error("Cannot fetch interests without a valid user id");let t=await (0,v.rY)(`/users/${i}/preferences`,{method:"POST",body:{...r(),category:"preferences",brand:a}});return t.find(e=>"preferences"===e.category)?.values??{shows:[],topics:[]}}catch(r){return w(r,"fetchContentInterests",t),e({error:String(r)},!1,"fetchPreferencesError"),{shows:[],topics:[]}}finally{t().setLoading(!1)}},updateContentInterests:async r=>{let{getAuthTokens:n,refreshUserToken:i,user:{user_id:a}}=t();t().setLoading(!0);try{await i();let{access_token:e}=n();if(!e)throw Error("Cannot update interests without a valid session and access token");if(!a)throw Error("Cannot update interests without a valid user id");await (0,u.PK)({category:"preferences",values:{...r}})}catch(r){throw w(r,"updateContentInterests",t),e({error:String(r)},!1,"updatePreferencesError"),r}finally{t().setLoading(!1)}},fetchZipCodeSettings:async()=>{let{getAuthTokens:r,refreshUserToken:n,isTokenExpired:i,brand:a}=t();try{let{access_token:t}=r();if(!t||i(t)&&(await n(),{access_token:t}=r(),!t))return;let{sub:s}=(0,u.WO)(t)||{};if(!s)return;let o=await (0,v.rY)(`/users/${s}/preferences`,{method:"POST",body:{access_token:t,category:"settings",brand:a}});e({settings:{zipcode:o?.find(e=>"settings"===e.category)?.values?.zipcode??""}},!1,"fetchZipCodeSettings")}catch(e){w(e,"fetchZipCodeSettings",t)}},saveZipCodeSettings:async({zipcode:r})=>{let{getAuthTokens:n,refreshUserToken:i}=t();try{await i(!0);let{access_token:t}=n();if(!t)return{success:!1,error:"No access token"};let{sub:a}=(0,u.WO)(t)||{};if(!a)return{success:!1,error:"No user ID"};return await (0,u.PK)({category:"settings",values:{zipcode:r}}),e({settings:{zipcode:r}},!1,"saveZipCodeSettings"),{success:!0}}catch(r){return w(r,"saveZipCodeSettings",t),e({error:r?.message},!1,"saveZipCodeSettingsError"),{success:!1,error:r?.message}}},saveProfileZip:async({zipcode:r})=>{let{getAuthTokens:n,refreshUserToken:i,brand:a}=t();try{await i(!0);let{access_token:s}=n();if(!s)return{success:!1,error:"No access token"};let{sub:o}=(0,u.WO)(s)||{};if(!o)return{success:!1,error:"No user ID"};let l=await (0,v.rY)(`/users/${o}/profile`,{method:"PATCH",headers:{"x-auth-token":s},body:{zipcode:r,...n(),brand:a}});if(!l?.success){let r=l?.error?.api_message||"saveProfileZipError";return w(Error(r),"saveProfileZipError",t),e({error:l?.error?.user_message},!1,"saveProfileZipError"),{success:!1,error:r}}return e({user:{...t().user,zipcode:r}},!1,"saveProfileZip"),{success:!0}}catch(r){return w(r,"saveProfileZip",t),e({error:r?.message},!1,"saveProfileZipError"),{success:!1,error:r?.message}}},updateUserEmail:async(r,n)=>{e({loading:!0},!1,"updateUserEmail:start");try{await t().refreshUserToken()}catch(r){return w(Error(r?.message||"updateUserEmail:refreshToken"),"updateUserEmail:refreshToken",t),e({error:r?.message},!1,"updateUserEmail:refreshError"),{success:!1,error:r?.message}}try{let i=await (0,v.rY)(`/users/${t().user.user_id}/email`,{method:"PATCH",body:{...t().getAuthTokens(),old_email:t().user.email,new_email:r,brand:t().brand,password:n}});if(i?.success)return e({user:{...t().user,email:r,email_verified:!1},error:""},!1,"updateUserEmail:success"),{success:!0};let a=i?.error?.user_message||i?.error?.message||"Unable to update email.";return w(Error(a),"updateUserEmail:error",t),e({error:a},!1,"updateUserEmail:error"),{success:!1,error:a}}catch(r){return w(Error(r?.message||"updateUserEmail"),"updateUserEmail",t),e({error:r?.message},!1,"updateUserEmail:error"),{success:!1,error:r?.message}}finally{e({loading:!1},!1,"updateUserEmail:finally")}},fetchUserSubscriptions:async(r=!0)=>{let{refreshUserToken:n,getAuthTokens:i,user:{user_id:a},brand:s}=t();try{r&&await n();let{access_token:e}=i();if(!a||!e)throw Error("Missing auth credentials or user id");if("today"!==s&&"nbcnews"!==s)throw Error("brand is not today or nbcnews");let t=await (0,u.qL)({user_id:a,access_token:e,brand:s});return{success:!0,data:t}}catch(r){return w(r,"fetchUserSubscriptions",t),e({error:String(r)},!1,"fetchUserSubscriptionsError"),{success:!1,data:[]}}},track:e=>{let r=e.userId||t().user.user_id||null,n=r?a.K_:a.zZ,i=e.signOutSuccess,u=i?s.cq.REGISTER:t().screen,l=u.charAt(0).toUpperCase()+u.slice(1),c=i?"AccountPage":t().pageView,d=null;if(e.method){let r=t().showAuthenticationModal?"ModalOverlay:":"",n=`${r}${l}:${e.method}`;d=c?`${c}:${n}`:n}let f=t().subscriptionPlan||null,p={...e,userId:r,authState:n,method:d,activeSubscriptions:t().subscriptions,subscriptionPlan:f};(0,o.stub)("track","ramen_authflow",p)},setPageView:t=>{e({pageView:t},!1,"setPageView")},getSubscriptionSource:(e="")=>{let t=e.toLowerCase().includes("apple"),r=e.toLowerCase().includes("google");return t?"ios":r?"google":e}}))},32632:(e,t,r)=>{"use strict";r.d(t,{W1:()=>c,wE:()=>u});var n=r(13675),i=r(13197);let a="menu/MENU_LOAD_PENDING",s="menu/MENU_LOAD_SUCCESS",o="menu/MENU_LOAD_ERROR",u=e=>(0,n.A)({endpoint:`menu/${e}`,types:[a,s,o]}),l={loading:!1,current:null};function c(e=l,t){switch(t.type){case a:return{...e,loading:!0};case s:{let{data:{menu:r},extensions:n}=t.payload;return{...e,loading:!1,current:{...r,documentTracing:(0,i.A)(r,n)}}}case o:return{...e,loading:!1,error:t.payload};default:return e}}},34598:(e,t,r)=>{"use strict";r.d(t,{KR:()=>l,eD:()=>u});var n=r(13675);let i="profileFeed/PROFILE_FEED_FETCH_PENDING",a="profileFeed/PROFILE_FEED_FETCH_SUCCESS",s="profileFeed/PROFILE_FEED_FETCH_ERROR",o={items:[],loading:!1,error:null,latestRequestKe
5y:null};function u(e=o,{type:t,payload:r,meta:n}={}){switch(t){case i:return{...e,loading:!0,error:null,latestRequestKey:r??e.latestRequestKey};case a:{let t=r?.additionalActionTypeData?.requestKey;if(t&&t!==e.latestRequestKey)return e;let{data:{search:n=null}={}}=r||{};if(!n)return{...e,items:[],loading:!1,error:Error("Fetching profile feed failed")};return{...e,items:n.items||[],loading:!1,error:null}}case s:{let t=n?.additionalActionTypeData?.requestKey;if(t&&t!==e.latestRequestKey)return e;return{...e,items:[],loading:!1,error:r||Error("Fetching profile feed failed")}}default:return e}}let l=({queryLimit:e=10,taxonomyPaths:t=[]}={})=>{let r=["type:Article",((e=[])=>e.length?`(${e.map(e=>`taxonomy:${e}`).join(" OR ")})`:"")(t),"autoCuration:true"].filter(Boolean),o=`/feed?filters=${r.join(" AND ")}&size=${e}`;return(0,n.A)({endpoint:o,additionalActionTypeData:{requestKey:o},types:[i,a,s]})}},34846:(e,t,r)=>{"use strict";r.d(t,{xC:()=>W,x6:()=>B,r9:()=>U,Bd:()=>G});var n,i=r(85190),a=r(8972),s=r(14232),o=r(54945),u=r(42443),l=r.n(u),c=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function d(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(l()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var i=new RegExp(c),a=null;null!==(a=i.exec(e));)if(a[0].trim())if(a[1]){var s=a[1].trim(),o=[s,""];s.indexOf("=")>-1&&(o=s.split("=")),t.attrs[o[0]]=o[1],i.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,p=/^\s*$/,h=Object.create(null);let m=function(e,t){t||(t={}),t.components||(t.components=h);var r,n=[],i=[],a=-1,s=!1;if(0!==e.indexOf("<")){var o=e.indexOf("<");n.push({type:"text",content:-1===o?e:e.substring(0,o)})}return e.replace(f,function(o,u){if(s){if(o!=="</"+r.name+">")return;s=!1}var l,c="/"!==o.charAt(1),f=o.startsWith("\x3c!--"),h=u+o.length,m=e.charAt(h);if(f){var g=d(o);return a<0?n.push(g):(l=i[a]).children.push(g),n}if(c&&(a++,"tag"===(r=d(o)).type&&t.components[r.name]&&(r.type="component",s=!0),r.voidElement||s||!m||"<"===m||r.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===a&&n.push(r),(l=i[a-1])&&l.children.push(r),i[a]=r),(!c||r.voidElement)&&(a>-1&&(r.voidElement||r.name===o.slice(2,-1))&&(r=-1==--a?n:i[a]),!s&&"<"!==m&&m)){l=-1===a?n:i[a].children;var y=e.indexOf("<",h),v=e.slice(h,-1===y?void 0:y);p.test(v)&&(v=" "),(y>-1&&a+l.length>=0||" "!==v)&&l.push({type:"text",content:v})}}),n};function g(){if(console&&console.warn){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}var y={};function v(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&y[t[0]]||("string"==typeof t[0]&&(y[t[0]]=new Date),g.apply(void 0,t))}var _=function(e,t){return function(){e.isInitialized?t():e.on("initialized",function r(){setTimeout(function(){e.off("initialized",r)},0),t()})}};function b(e,t,r){e.loadNamespaces(t,_(e,r))}function w(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach(function(t){0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,_(e,n))}var E=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,S={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"â¦","…":"â¦","/":"/","/":"/"},T=function(e){return S[e]};function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
5t%2?A(Object(r),!0).forEach(function(t){(0,i.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var C={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(E,T)}},k=["format"],I=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){(0,i.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function L(e,t){if(!e)return!1;var r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function R(e){return e?e.props?e.props.children:e.children:[]}function P(e){return Array.isArray(e)?e:[e]}var D=r(59524),M=r(44212),U={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};C=O(O({},C),e)}(e.options.react),n=e}},j=(0,s.createContext)(),$=function(){function e(){(0,D.A)(this,e),this.usedNamespaces={}}return(0,M.A)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}(),Z=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function B(e){var t=e.children,r=e.count,u=e.parent,l=e.i18nKey,c=e.context,d=e.tOptions,f=e.values,p=e.defaults,h=e.components,y=e.ns,_=e.i18n,b=e.t,w=e.shouldUnescape,E=(0,a.A)(e,Z),S=(0,s.useContext)(j)||{},T=S.i18n,A=S.defaultNS,O=_||T||n,x=b||O&&O.t.bind(O);return function(e){var t=e.children,r=e.count,i=e.parent,u=e.i18nKey,l=e.context,c=e.tOptions,d=void 0===c?{}:c,f=e.values,p=e.defaults,h=e.components,y=e.ns,_=e.i18n,b=e.t,w=e.shouldUnescape,E=(0,a.A)(e,I),S=_||n;if(!S)return v("You will need to pass in an i18next instance by using i18nextReactModule"),t;var T=b||S.t.bind(S)||function(e){return e};l&&(d.context=l);var A=N(N({},C),S.options&&S.options.react),O=y||T.ns||S.options&&S.options.defaultNS;O="string"==typeof O?[O]:O||["translation"];var x=p||function e(t,r){if(!t)return"";var n="",i=P(t),u=r.transSupportBasicHtmlNodes&&r.transKeepBasicHtmlNodesFor?r.transKeepBasicHtmlNodesFor:[];return i.forEach(function(t,i){if("string"==typeof t)n+="".concat(t);else if((0,s.isValidElement)(t)){var l=Object.keys(t.props).length,c=u.indexOf(t.type)>-1,d=t.props.children;if(!d&&c&&0===l)n+="<".concat(t.type,"/>");else if(d||c&&0===l)if(t.props.i18nIsDynamicList)n+="<".concat(i,"></").concat(i,">");else if(c&&1===l&&"string"==typeof d)n+="<".concat(t.type,">").concat(d,"</").concat(t.type,">");else{var f=e(d,r);n+="<".concat(i,">").concat(f,"</").concat(i,">")}else n+="<".concat(i,"></").concat(i,">")}else if(null===t)g("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,o.A)(t)){var p=t.format,h=Object.keys((0,a.A)(t,k));if(1===h.length){var m=p?"".concat(h[0],", ").concat(p):h[0];n+="{{".concat(m,"}}")}else g("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}
5else g("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)}),n}(t,A)||A.transEmptyNodeValue||u,D=A.hashTransKey,M=u||(D?D(x):x),U=f?d.interpolation:{interpolation:N(N({},d.interpolation),{},{prefix:"#$?",suffix:"?$#"})},j=N(N(N(N({},d),{},{count:r},f),U),{},{defaultValue:x,ns:O}),$=function(e,t,r,n,i,a){if(""===t)return[];var u=n.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(u.join("|")).test(t);if(!e&&!l)return[t];var c={};!function e(t){P(t).forEach(function(t){"string"!=typeof t&&(L(t)?e(R(t)):"object"!==(0,o.A)(t)||(0,s.isValidElement)(t)||Object.assign(c,t))})}(e);var d=m("<0>".concat(t,"</0>")),f=N(N({},c),i);function p(e,t,r){var n=R(e),i=g(n,t.children,r);return"[object Array]"===Object.prototype.toString.call(n)&&n.every(function(e){return(0,s.isValidElement)(e)})&&0===i.length?n:i}function h(e,t,r,n,i){e.dummy&&(e.children=t),r.push((0,s.cloneElement)(e,N(N({},e.props),{},{key:n}),i?void 0:t))}function g(t,i,c){var d=P(t);return P(i).reduce(function(t,i,m){var y=i.children&&i.children[0]&&i.children[0].content&&r.services.interpolator.interpolate(i.children[0].content,f,r.language);if("tag"===i.type){var v,_,b,w=d[parseInt(i.name,10)];!w&&1===c.length&&c[0][i.name]&&(w=c[0][i.name]),w||(w={});var E=0!==Object.keys(i.attrs).length?(v={props:i.attrs},(b=N({},_=w)).props=Object.assign(v.props,_.props),b):w,S=(0,s.isValidElement)(E),T=S&&L(i,!0)&&!i.voidElement,A=l&&"object"===(0,o.A)(E)&&E.dummy&&!S,O="object"===(0,o.A)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof E){var C=r.services.interpolator.interpolate(E,f,r.language);t.push(C)}else if(L(E)||T){var k=p(E,i,c);h(E,k,t,m)}else if(A){var I=g(d,i.children,c);t.push((0,s.cloneElement)(E,N(N({},E.props),{},{key:m}),I))}else if(Number.isNaN(parseFloat(i.name)))if(O){var x=p(E,i,c);h(E,x,t,m,i.voidElement)}else if(n.transSupportBasicHtmlNodes&&u.indexOf(i.name)>-1)if(i.voidElement)t.push((0,s.createElement)(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var R=g(d,i.children,c);t.push((0,s.createElement)(i.name,{key:"".concat(i.name,"-").concat(m)},R))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var P=g(d,i.children,c);t.push("<".concat(i.name,">").concat(P,"</").concat(i.name,">"))}else if("object"!==(0,o.A)(E)||S)1===i.children.length&&y?t.push((0,s.cloneElement)(E,N(N({},E.props),{},{key:m}),y)):t.push((0,s.cloneElement)(E,N(N({},E.props),{},{key:m})));else{var D=i.children[0]?y:null;D&&t.push(D)}}else if("text"===i.type){var M=n.transWrapTextNodes,U=a?n.unescape(r.services.interpolator.interpolate(i.content,f,r.language)):r.services.interpolator.interpolate(i.content,f,r.language);M?t.push((0,s.createElement)(M,{key:"".concat(i.name,"-").concat(m)},U)):t.push(U)}return t},[])}return R(g([{dummy:!0,children:e||[]}],d,P(e||[]))[0])}(h||t,M?T(M,j):x,S,A,j,w),Z=void 0!==i?i:A.defaultTransParent;return Z?(0,s.createElement)(Z,E,$):$}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach(function(t){(0,i.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({children:t,count:r,parent:u,i18nKey:l,context:c,tOptions:void 0===d?{}:d,values:f,defaults:p,components:h,ns:y||x&&x.ns||A||O&&O.options&&O.options.defaultNS,i18n:O,t:b,shouldUnescape:w},E))}var F=r(71165);function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach(function(t){(0,i.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Y=function(e,t){var r=(0,s.useRef)();return(0,s.useEffect)(function(){r.current=t?r.current:e},[e,t]),r.current};function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,i=(0,s.useContext)(j)||{},a=i.i18n,u=i.defaultNS,l=r||a||n;if(l&&!l.reportNamespaces&&(l.reportNamespaces=new $),!l){v("You will need to pass in an i18next instance by using initReactI18next");var c=function(e,t){return"string"==typeof t?t:t&&"object"===(0,o.A)(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},d=[c,{},!1];return d.t=c,d.i18n={},d.ready=!1,d}l.options.react&&void 0!==l.options.react.wait&&v("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var f=H(H(H({},C),l.options.react),t),p=f.useSuspense,h=f.keyPrefix,m=e||u||l.options&&l.options.defaultNS;m="string"==typeof m?[m]:m||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(m);var g=(l.isInitialized||l.initializedStoreOnce)&&m.every(function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0===t.options.ignoreJSONStructure?function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var s=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!s(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(n,e)&&(!i||s(a,e)))}(e,t,r):t.hasLoadedNamespace(e,{lng:r.lng,precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
5isLanguageChangingTo,e))return!1}}):(v("i18n.languages were undefined or empty",t.languages),!0)}(e,l,f)});function y(){return l.getFixedT(t.lng||null,"fallback"===f.nsMode?m:m[0],h)}var _=(0,s.useState)(y),E=(0,F.A)(_,2),S=E[0],T=E[1],A=m.join();t.lng&&(A="".concat(t.lng).concat(A));var O=Y(A),k=(0,s.useRef)(!0);(0,s.useEffect)(function(){var e=f.bindI18n,r=f.bindI18nStore;function n(){k.current&&T(y)}return k.current=!0,g||p||(t.lng?w(l,t.lng,m,function(){k.current&&T(y)}):b(l,m,function(){k.current&&T(y)})),g&&O&&O!==A&&k.current&&T(y),e&&l&&l.on(e,n),r&&l&&l.store.on(r,n),function(){k.current=!1,e&&l&&e.split(" ").forEach(function(e){return l.off(e,n)}),r&&l&&r.split(" ").forEach(function(e){return l.store.off(e,n)})}},[l,A]);var I=(0,s.useRef)(!0);(0,s.useEffect)(function(){k.current&&!I.current&&T(y),I.current=!1},[l,h]);var x=[S,l,g];if(x.t=S,x.i18n=l,x.ready=g,g||!g&&!p)return x;throw new Promise(function(e){t.lng?w(l,t.lng,m,function(){return e()}):b(l,m,function(){return e()})})}function W(e){var t=e.i18n,r=e.defaultNS,n=e.children,i=(0,s.useMemo)(function(){return{i18n:t,defaultNS:r}},[t,r]);return(0,s.createElement)(j.Provider,{value:i},n)}},34875:(e,t,r)=>{"use strict";r.d(t,{bW:()=>c,bs:()=>u});var n=r(13675),i=r(13197);let a="slideshow/LOAD_PENDING",s="slideshow/LOAD_SUCCESS",o="slideshow/LOAD_ERROR",u=(e=1)=>(0,n.A)({endpoint:`slideshow/${e}`,types:[a,s,o]}),l={loading:!1,current:null};function c(e=l,t){switch(t.type){case a:return{...e,loading:!0};case s:{let{data:{slideshow:r},extensions:n}=t.payload;return{...e,loading:!1,current:{...r,documentTracing:(0,i.A)(r,n)}}}case o:return{...e,loading:!1,error:t.payload};default:return e}}},34957:(e,t,r)=>{"use strict";r.d(t,{vt:()=>c});let n=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>s,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},s=t=e(n,i,a);return a};var i=r(14232),a=r(8875);let{useDebugValue:s}=i,{useSyncExternalStoreWithSelector:o}=a,u=!1,l=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?e?n(e):n:e,r=(e,r)=>(function(e,t=e=>e,r){r&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let n=o(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return s(n),n})(t,e,r);return Object.assign(r,t),r},c=e=>e?l(e):l},36382:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(14232).createContext({setStickyVideoFlag:()=>{},isLiveBlog:!1})},38333:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var r,i,a=0;a<e.length;a++)if(!((r=e[a])===(i=t[a])||n(r)&&n(i))&&1)return!1;return!0}function a(e,t){void 0===t&&(t=i);var r=null;function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var a=e.apply(this,n);return r={lastResult:a,lastArgs:n,lastThis:this},a}return n.clear=function(){r=null},n}},38806:(e,t,r)=>{"use strict";e.exports=r(29429)},38883:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});let n=(0,r(14232).createContext)(!1)},39376:(e,t,r)=>{"use strict";r.d(t,{J:()=>a,c:()=>i});var n=r(14232);let i=n.createContext({});function a(){return n.useContext(i)}},40365:(e,t,r)=>{"use strict";function n(){return"true"===new URLSearchParams(window.location?.search??"").get("chromeless")}r.d(t,{R:()=>n})},40670:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},40778:(e,t,r)=>{"use strict";r.d(t,{iK:()=>h,oE:()=>d,zn:()=>f});var n=r(13675);let i="showblog",a=`${i}/SHOW_LEAD_LOAD_PENDING`,s=`${i}/SHOW_LEAD_LOAD_COMPLETE`,o=`${i}/SHOW_LEAD_LOAD_FAILED`,u=`${i}/NAV_LOAD_PENDING`,l=`${i}/NAV_LOAD_COMPLETE`,c=`${i}/NAV_LOAD_FAILED`,d=(e,t)=>(0,n.A)({endpoint:`curation/slug/${e}/${t}`,types:[a,s,o]}),f=(e,t,r)=>(0,n.A)({endpoint:`showBlogNavigation/${r}/${t}/${e}/`,types:[u,l,c]}),p={showLead:{},showLeadLoading:!1,showLeadError:null,nav:{},navLoading:!1,navError:null};function h(e=p,t){switch(t.type){case a:return{...e,showLeadLoading:!0,showLeadError:!1};case s:{let r=t?.payload?.data?.curation?.layouts??[],n=(r?.[0]?.packages??[]).find(e=>"showLead"===e.type);return{...e,showLead:n,showLeadLoading:!1,showLeadError:!1}}case o:return{...e,showLeadLoading:!1,showLeadError:t.payload};case u:return{...e,navLoading:!0,navError:!1};
5case l:{let r=t?.payload?.data?.next?.items?.[0]??null,n=t?.payload?.data?.previous?.items?.[0]??null,i=t?.payload?.data?.latest?.items?.[0]??null;return{...e,nav:{next:r,previous:n,latest:i},navLoading:!1,navError:!1}}case c:return{...e,navLoading:!1,navError:t.payload};default:return e}}},42060:(e,t,r)=>{"use strict";function n(e){try{let t=document?.cookie?.match(`(^|;)\\s*${e}\\s*=\\s*([^;]+)`)??null;return t?.pop()??null}catch(e){return null}}r.d(t,{Ri:()=>n,TV:()=>i});let i=(e,t,r)=>{if(document&&(r||(document.cookie=`${e}=${t};path=/;`),r)){let n=24*r*3600,i=new Date;i.setTime(i.getTime()+1e3*n);let a=`expires=${i.toUTCString()};max-age=${n};`;document.cookie=`${e}=${t};path=/;${a}`}}},42111:(e,t,r)=>{"use strict";function n(e,t){return Object.fromEntries(Object.entries(e).filter(([e])=>t.includes(e)))}function i(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}r.d(t,{Y:()=>i,h:()=>n})},42443:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},43237:(e,t,r)=>{"use strict";e.exports=r(60762)},43581:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case c:case h:case p:case o:return e;default:return t}}case n:return t}}}(e)===u}},44212:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(10810);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,n.A)(i.key),i)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},44501:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{A:()=>n})},44774:e=>{"use strict";let t="https://nodeassets.nbcnews.com/assets/fonts/shared",r=`${t}/fontface.4381183aa8657c4e016eb0d9f4457556.css`,n=`${t}/fontface-opensans.2acd4a3b0407ee2e6ba07ca3b90257a4.css`,i=`${t}/fontface-lato.57dd3ddc846785d510606888c358734c.css`,a=`${t}/fontface-today.b7c3f1186929665bcb168452d476f666.css`,s=`${t}/fontface-oswald.e89a49cf6fec000beadbf7dbcc3ba9f2.css`;e.exports={OFFER_OUT_OF_STOCK:"OUT_OF_STOCK",OFFER_AVAILABLE:"AVAILABLE",OFFER_UNAVAILABLE:"UNAVAILABLE",SHOP_LIST_BY_ONE_PRODUCT:"shopListByOneProduct",PRODUCT_BACON:"oneOneProduct",BETTER:"better",ENTRETENIMIENTO:"entretenimiento",EONLINE:"eonline",MSNBC:"msnbc",NEWS:"news",NOTICIAS:"noticias",SELECT_CNBC:"select_cnbc",SELECT_NEWS:"select_news",SHOWS:"shows",TELEMUNDO:"telemundo",THINK:"think",TODAY:"today",SHARE_LINK_COPIED_TEXT:"Share link copied",LINK_COPIED_TEXT:"Copied",EMBED_COPIED_TEXT:"Copied",FONTFACE_DEFAULT:r,FONTFACE_OPENSANS:n,FONTFACE_LATO:i,FONTFACE_TODAY:a,FONTFACE_OSWALD:s,FONTFACE_BY_VERTICAL:{eonline:[r,n],select:[i],today:[a],default:[r,s]},JW_PLAYER_LIBRARY_URL:"https://nodeassets.nbcnews.com/jwplayer/jwplayer-8.30.1/jwplayer.js",ALLOWED_USER_REGISTRATION_FIELDS:["email","password","brand","source","profile","first_name","last_name"],ALLOWED_PROFILE_FIELDS:["last_name","first_name","birth_year","gender","address_line1","address_line2","state","zipcode","phone_number"],PACKAGE_TYPES:{STORYLINE:"Storyline",MULTI_STORYLINE3:"MultiStoryline3",POST_LIST:"postList"}}},45105:(e,t,r)=>{e.exports=r(13209)},45689:(e,t,r)=>{"use strict";r.d(t,{QE:()=>o,Tc:()=>h,b5:()=>m,dJ:()=>s,hU:()=>y,zL:()=>c});var n=r(19081),i=r(13675),a=r(13197);let s="AVAILABLE_PREVIEW",o="AVAILABLE_PRODUCTION",u="recipe/LOAD_PENDING",l="recipe/LOAD_SUCCESS",c="recipe/LOAD_ERROR",d="recipe/FETCH_PENDING",f="recipe/FETCH_SUCCESS",p="recipe/FETCH_ERROR",h=e=>{let t=["type:Recipe","id:tdrp*",`NOT id:${e}`,"NOT taxonomy:today/recipeCategory/shoppable","autoCuration:true"];return(0,i.A)({endpoint:`recipe/${e}?filters=${t.join(" AND ")}`,types:[u,l,c]})},m=e=>(({courseTypePath:e,currentRecipe:t,queryLimit:r},n)=>{let a=["type:Recipe","id:tdrp*",`NOT id:${t}`,`taxonomy:${e}`,"autoCuration:true"],s=`recipe/related?filters=${a.join(" AND ")}&size=${r}`;return(0,i.A)({endpoint:s,types:n})})(e,[d,f,p]),g={current:null,fetchingRelated:!1,loading:!1,relatedRecipes:null};function y(e=g,t){switch(t.type){case u:return{...e,loading:!0};case l:{let{publicRuntimeConfig:{API_URL_BENTO_PUBLIC:r=""}={}}=(0,n.Ay)(),i=r.includes("//preview"),{data:{recipe:s,search:{items:o}={}},extensions:u}=t.payload;return s.isPreviewEnvironment=i,{...e,loading:!1,current:{...s,mostPopularRecipes:o,documentTracing:(0,a.A)(s,u)}}}case c:return{...e,loading:!1,error:t.payload};case d:return{...e,fetchingRelated:!0};case f:{let{data:{search:{items:r}}}=t.payload;return{...e,fetchingRelated:!1,relatedRecipes:[...r.map(e=>({...e,url:{...e.url,primary:e?.url?.primary,short:e?.url?.short,slug:e?.url?.slug},icid:"recipes_baconmodule"})).sort((e,t)=>
5e.ecommerceEnabled?-1:+!!t.ecommerceEnabled)]}}case p:return{...e,fetchingRelated:!1,error:t.payload};default:return e}}},45712:(e,t,r)=>{"use strict";e.exports=r(58214)},45812:(e,t,r)=>{"use strict";r.d(t,{$y:()=>c,CX:()=>l,qM:()=>f});var n=r(13675),i=r(97883);let a="product/FINDER_PENDING",s="product/FINDER_SUCCESS",o="product/FINDER_ERROR",u="product/BESTSELLERS_SUCCESS",l=({recaptchaToken:e,...t})=>(0,n.A)({endpoint:`product-finder${(0,i.serialize)(t,!1)}`,types:[a,s,o],additionalRequestData:{headers:e?{"x-recaptcha-token":e}:{},requestBody:{}}}),c=e=>(0,n.A)({endpoint:`products/search${(0,i.serialize)(e,!1)}`,types:["product/BESTSELLERS_PENDING",u,"product/BESTSELLERS_ERROR"]}),d={items:[],loading:!0,error:null,bestsellers:[]};function f(e=d,{type:t,payload:r}){switch(t){case"product/SEARCH_PENDING":case a:return{...e,loading:!0,error:null};case"product/SEARCH_SUCCESS":return{...e,items:r?.data?.search?.items??[],error:null,loading:!1};case s:return{...e,items:r?.data?.productFinder?.items??[],error:null,loading:!1};case u:return{...e,bestsellers:r?.data?.search?.items??[]};case"product/SEARCH_ERROR":case o:return{...e,error:r,loading:!1};default:return e}}},46866:e=>{e.exports={gateCloseBtn:"globalPianoStyles_gateCloseBtn__F9O4V"}},47559:(e,t,r)=>{"use strict";let{verticalSiteConfigs:n}=r(61979),{brandSchema:i}=r(97159),a=["eonline","news","today","msnbc","telemundo"],s=["mach","better","think","select"],o=["noticias","deportes","localstationdeportes","shows","entretenimiento"],u={better:"BETTER",eonline:"E! Online",mach:"MACH",msnbc:"MSNBC",news:"NBC News",select:"Select",think:"THINK",today:"TODAY",noticias:"Noticias Telemundo",deportes:"Deportes Telemundo",localstationdeportes:"Deportes Telemundo",shows:"Shows Telemundo",entretenimiento:"Entretenimiento Telemundo",telemundo:"Telemundo"},l={better:"better",eonline:"eonline",mach:"mach",msnbc:"msnbc",news:"news",select:"select",think:"think",today:"today",noticias:"noticias",telemund
5o:"telemundo",deportes:"deportes"},c={select:"select_news"},d={"telemundo/canales-de-streaming-en-vivo":"telemundoahora"},f={today:"today",msnbc:"msnbc",news:"nbcnews",select:"nbcnews",better:"nbcnews",think:"nbcnews",mach:"nbcnews",telemundo:"telemundo",noticias:"telemundo",deportes:"telemundo",shows:"telemundo",entretenimiento:"telemundo"},p=[...a,...s,...o];e.exports={brands:a,capitalizedVerticals:new Set([...s,...o].map(e=>`${e[0]?.toUpperCase()}${e.slice(1)}`)),getBedrockBrandForVertical:function(e){let t=f[e],r=i.safeParse(t);if(!r.success)throw Error(`${t} from vertical ${e} is not a supported bedrock brand`);return r.data},tryGetBedrockBrandForVertical:function(e){let t=i.safeParse(f[e]);return t.success?t.data:void 0},getDisplayNameForVertical:e=>u[e]||"",getHfsIdentifierForVertical:(e,t)=>d[`${e}${t}`]||c[e]||e,getSiteConfigs:e=>n[e]?n[e]:["entretenimiento","shows"].includes(e)?n.telemundo:n.news,getSlugForVertical:e=>l[e]||e,getSubscriptionNameForVertical:function(e){switch(e){case"news":return"nbcNews";case"today":return"startToday";default:return e}},isNewsVertical:e=>[...s,"news"].includes(e),isTelemundoVertical:e=>[...o,"telemundo"].includes(e),newsVerticals:s,publicoHeadlineBrands:["think","today"],publisherNameMap:f,telemund
5oVerticals:o,verticalNameMap:u,verticals:p,verticalSlugMap:l,verticalToPath:{better:"nbcnews.com/better",knowyourvalue:"nbcnews.com/know-your-value",msnbc:"msnbc.com",news:"nbcnews.com",select:"nbcnews.com/select",selected:"nbcnews.com/select",think:"nbcnews.com/think",today:"today.com"}}},47785:(e,t,r)=>{"use strict";var n=r(14232),i=r(43237),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,o=n.useRef,u=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=s(e,(d=l(function(){function e(e){if(!u){if(u=!0,s=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return o=t}return o=e}if(t=o,a(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(s=e,o=r)}var s,o,u=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,i]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},48011:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>$,Ng:()=>j,wA:()=>B,d4:()=>g});var n=r(38806),i=r(45712),a=r(98477);let s=function(e){e()};var o=r(14232);let u=Symbol.for("react-redux-context"),l="u">typeof globalThis?globalThis:{},c=function(){var e;if(!o.createContext)return{};let t=null!=(e=l[u])?e:l[u]=new Map,r=t.get(o.createContext);return r||(r=o.createContext(null),t.set(o.createContext,r)),r}();function d(e=c){return function(){return(0,o.useContext)(e)}}let f=d(),p=()=>{throw Error("uSES not initialized!")},h=p,m=(e,t)=>e===t,g=function(e=c){let t=e===c?f:d(e);return function(e,r={}){let{equalityFn:n=m,stabilityCheck:i,noopCheck:a}="function"==typeof r?{equalityFn:r}:r,{store:s,subscription:u,getServerState:l,stabilityCheck:c,noopC
5heck:d}=t();(0,o.useRef)(!0);let f=(0,o.useCallback)({[e.name]:t=>e(t)}[e.name],[e,c,i]),p=h(u.addNestedSub,s.getState,l||s.getState,f,n);return(0,o.useDebugValue)(p),p}}();var y=r(44501),v=r(40670),_=r(23520),b=r.n(_),w=r(74817);let E=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function S(e){return function(t){let r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function T(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function A(e,t){return function(t,{displayName:r}){let n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=T(e);let i=n(t,r);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=T(i),i=n(t,r)),i},n}}function O(e,t){return(r,n)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function C(e,t,r){return(0,y.A)({},r,e,t)}let k={notify(){},get:()=>[]};function I(e,t){let r,n=k,i=0,a=!1;function o(){c.onStateChange&&c.onStateChange()}function u(){if(i++,!r){let i,a,u;r=t?t.addNestedSub(o):e.subscribe(o),i=s,a=null,u=null,n={clear(){a=null,u=null},notify(){i(()=>{let e=a;for(;e;)e.callback(),e=e.next})},get(){let e=[],t=a;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,r=u={callback:e,next:null,prev:u};return r.prev?r.prev.next=r:a=r,function(){t&&null!==a&&(t=!1,r.next?r.next.prev=r.prev:u=r.prev,r.prev?r.prev.next=r.next:a=r.next)}}}}}function l(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=k)}let c={addNestedSub:function(e){u();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,u())},tryUnsubscribe:function(){a&&(a=!1,l())},getListeners:()=>n};return c}let x="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;function N(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function L(e,t){if(N(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!N(e[r[n]],t[r[n]]))return!1;return!0}let R=["reactReduxForwardedRef"],P=p,D=[null,null];function M(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function U(e,t){return e===t}let j=function(e,t,r,{pure:n,areStatesEqual:i=U,areOwnPropsEqual:a=L,areStatePropsEqual:s=L,areMergedPropsEqual:u=L,forwardRef:l=!1,context:d=c}={}){let f=e?"function"==typeof e?A(e,"mapStateToProps"):O(e,"mapStateToProps"):S(()=>({})),p=t&&"object"==typeof t?S(e=>(function(e,t){let r={};for(let n in e){let i=e[n];"function"==typeof i&&(r[n]=(...e)=>t(i(...e)))}return r})(t,e)):t?"function"==typeof t?A(t,"mapDispatchToProps"):O(t,"mapDispatchToProps"):S(e=>({dispatch:e})),h=r?"function"==typeof r?function(e,{displayName:t,areMergedPropsEqual:n}){let i,a=!1;return function(e,t,s){let o=r(e,t,s);return a?n(o,i)||(i=o):(a=!0,i=o),i}}:O(r,"mergeProps"):()=>C,m=!!e;return e=>{let t=e.displayName||e.name||"Component",r=`Connect(${t})`,n={shouldHandleStateChanges:m,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:u};function c(t){var r;let i,[a,s,u]=o.useMemo(()=>{let{reactReduxForwardedRef:e}=t,r=(0,v.A)(t,R);return[t.context,e,r]},[t]),l=o.useMemo(()=>a&&a.Consumer&&(0,w.isContextConsumer)(o.createElement(a.Consumer,null))?a:d,[a,d]),c=o.useContext(l),f=!!t.store&&!!t.store.getState&&!!t.store.dispatch,p=!!c&&!!c.store,h=f?t.store:c.store,g=p?c.getServerState:h.getState,_=o.useMemo(()=>(function(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:i}=t,a=(0,v.A)(t,E);return function(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:s}){let o,u,l,c,d,f=!1;return function(p,h){return f?function(f,p){let h=!a(p,u),m=!i(f,o,p,u);
5if(o=f,u=p,h&&m)return l=e(o,u),t.dependsOnOwnProps&&(c=t(n,u)),d=r(l,c,u);if(h)return e.dependsOnOwnProps&&(l=e(o,u)),t.dependsOnOwnProps&&(c=t(n,u)),d=r(l,c,u);if(m){let t,n;return n=!s(t=e(o,u),l),l=t,n&&(d=r(l,c,u)),d}return d}(p,h):(l=e(o=p,u=h),c=t(n,u),d=r(l,c,u),f=!0,d)}}(r(e,a),n(e,a),i(e,a),e,a)})(h.dispatch,n),[h]),[b,S]=o.useMemo(()=>{if(!m)return D;let e=I(h,f?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[h,f,c]),T=o.useMemo(()=>f?c:(0,y.A)({},c,{subscription:b}),[f,c,b]),A=o.useRef(),O=o.useRef(u),C=o.useRef(),k=o.useRef(!1);o.useRef(!1);let N=o.useRef(!1),L=o.useRef();x(()=>(N.current=!0,()=>{N.current=!1}),[]);let U=o.useMemo(()=>()=>C.current&&u===O.current?C.current:_(h.getState(),u),[h,u]),j=o.useMemo(()=>e=>{if(!b)return()=>{};if(!m)return()=>{};let t=!1,r=null,n=()=>{let n,i;if(t||!N.current)return;let a=h.getState();try{n=_(a,O.current)}catch(e){i=e,r=e}i||(r=null),n===A.current?k.current||S():(A.current=n,C.current=n,k.current=!0,e())};return b.onStateChange=n,b.trySubscribe(),n(),()=>{if(t=!0,b.tryUnsubscribe(),b.onStateChange=null,r)throw r}},[b]);r=[O,A,k,u,C,S],x(()=>M(...r),void 0);try{i=P(j,U,g?()=>_(g(),u):U)}catch(e){throw L.current&&(e.message+=` 6The error may be correlated with this previous error: 7${L.current.stack} 8 9`),e}x(()=>{L.current=void 0,C.current=void 0,A.current=i});let $=o.useMemo(()=>o.createElement(e,(0,y.A)({},i,{ref:s})),[s,e,i]);return o.useMemo(()=>m?o.createElement(l.Provider,{value:T},$):$,[l,$,T])}let g=o.memo(c);if(g.WrappedComponent=e,g.displayName=c.displayName=r,l){let t=o.forwardRef(function(e,t){return o.createElement(g,(0,y.A)({},e,{reactReduxForwardedRef:t}))});return t.displayName=r,t.WrappedComponent=e,b()(t,e)}return b()(g,e)}},$=function({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){let s=o.useMemo(()=>{let t=I(e);return{store:e,subscription:t,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),u=o.useMemo(()=>e.getState(),[e]);return x(()=>{let{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),u!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[s,u]),o.createElement((t||c).Provider,{value:s},r)};function Z(e=c){let t=e===c?f:d(e);return function(){let{store:e}=t();return e}}let V=Z(),B=function(e=c){let t=e===c?V:Z(e);return function(){return t().dispatch}}();h=i.useSyncExternalStoreWithSelector,P=n.useSyncExternalStore,s=a.unstable_batchedUpdates},48505:(e,t,r)=>{"use strict";function n(e,t){return e?.[t]??e?.default}r.d(t,{B0:()=>n}),r(19081)},51802:(e,t,r)=>{"use strict";let n;r.d(t,{YO:()=>eC,zM:()=>eA,au:()=>eD,gM:()=>ex,k5:()=>eR,eu:()=>eL,ai:()=>eT,Ik:()=>ek,vk:()=>eP,g1:()=>eN,Yj:()=>eS,KC:()=>eI,L5:()=>eO});var i,a,s,o,u=r(81645),l=r(86990);let c=(e,t)=>{let r;switch(e.code){case u.eq.invalid_type:r=e.received===l.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case u.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,l.ZS.jsonStringifyReplacer)}`;break;case u.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${l.ZS.joinValues(e.keys,", ")}`;break;case u.eq.invalid_union:r="Invalid input";break;case u.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${l.ZS.joinValues(e.options)}`;break;case u.eq.invalid_enum_value:r=`Invalid enum value. Expected ${l.ZS.joinValues(e.options)}, received '${e.received}'`;break;case u.eq.invalid_arguments:r="Invalid function arguments";break;case u.eq.invalid_return_type:r="Invalid function return type";break;case u.eq.invalid_date:r="Invalid date";break;case u.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:l.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case u.eq.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case u.eq.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case u.eq.custom:r="Invalid input";break;
9case u.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case u.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case u.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,l.ZS.assertNever(e)}return{message:r}};(i=s||(s={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},i.toString=e=>"string"==typeof e?e:e?.message;let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}};function f(e,t){let r=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c,void 0].filter(e=>!!e)});e.common.issues.push(r)}class p{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return h;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return p.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),y=e=>"u">typeof Promise&&e instanceof Promise;class v{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let _=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new u.G(e.common.issues);return this._error=t,this._error}}};function b(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??r??i.defaultError}},description:i}}class w{get description(){return this._def.description}_getType(e){return(0,l.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,l.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new p,ctx:{common:e.parent.common,data:e.data,parsedType:(0,l.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(y(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return _(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return"valid"===r.status?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)},n=this._parse({data:e,path:r.path,parent:r});return _(r,await (y(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),a=()=>n.addIssue({code:u.eq.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eh({schema:this,typeName:o.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return em.create(this,this._def)}nullable(){return eg.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return J.create(this)}promise(){return ep.create(this,this._def)}or(e){return Q.create([this,e],this._def)}and(e){return er.create(this,e,this._def)}transform(e){return new eh({...b(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ey({...b(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:o.ZodDefault})}brand(){return new eb({typeName:o.ZodBranded,type:this,...b(this._def)})}catch(e){return new ev({...b(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ew.create(this,e)}readonly(){return eE.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let E=/^c[^\s-]{8,}
9$/i,S=/^[0-9a-z]+$/,T=/^[0-9A-HJKMNP-TV-Z]{26}$/i,A=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,O=/^[a-z0-9_-]{21}$/i,C=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,k=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,I=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,x=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,N=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,L=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,R=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,P=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,D=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,M="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",U=RegExp(`^${M}$`);function j(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}class $ extends w{_parse(e){var t,r,i,a;let s;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==l.Zp.string){let t=this._getOrReturnCtx(e);return f(t,{code:u.eq.invalid_type,expected:l.Zp.string,received:t.parsedType}),h}let o=new p;for(let c of this._def.checks)if("min"===c.kind)e.data.length<c.value&&(f(s=this._getOrReturnCtx(e,s),{code:u.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),o.dirty());else if("max"===c.kind)e.data.length>c.value&&(f(s=this._getOrReturnCtx(e,s),{code:u.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),o.dirty());else if("length"===c.kind){let t=e.data.length>c.value,r=e.data.length<c.value;(t||r)&&(s=this._getOrReturnCtx(e,s),t?f(s,{code:u.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):r&&f(s,{code:u.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),o.dirty())}else if("email"===c.kind)I.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"email",code:u.eq.invalid_string,message:c.message}),o.dirty());else if("emoji"===c.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"emoji",code:u.eq.invalid_string,message:c.message}),o.dirty());else if("uuid"===c.kind)A.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"uuid",code:u.eq.invali
9d_string,message:c.message}),o.dirty());else if("nanoid"===c.kind)O.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"nanoid",code:u.eq.invalid_string,message:c.message}),o.dirty());else if("cuid"===c.kind)E.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"cuid",code:u.eq.invalid_string,message:c.message}),o.dirty());else if("cuid2"===c.kind)S.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"cuid2",code:u.eq.invalid_string,message:c.message}),o.dirty());else if("ulid"===c.kind)T.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"ulid",code:u.eq.invalid_string,message:c.message}),o.dirty());else if("url"===c.kind)try{new URL(e.data)}catch{f(s=this._getOrReturnCtx(e,s),{validation:"url",code:u.eq.invalid_string,message:c.message}),o.dirty()}else"regex"===c.kind?(c.regex.lastIndex=0,c.regex.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"regex",code:u.eq.invalid_string,message:c.message}),o.dirty())):"trim"===c.kind?e.data=e.data.trim():"includes"===c.kind?e.data.includes(c.value,c.position)||(f(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),o.dirty()):"toLowerCase"===c.kind?e.data=e.data.toLowerCase():"toUpperCase"===c.kind?e.data=e.data.toUpperCase():"startsWith"===c.kind?e.data.startsWith(c.value)||(f(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:{startsWith:c.value},message:c.message}),o.dirty()):"endsWith"===c.kind?e.data.endsWith(c.value)||(f(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:{endsWith:c.value},message:c.message}),o.dirty()):"datetime"===c.kind?(function(e){let t=`${M}T${j(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(c).test(e.data)||(f(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:"datetime",message:c.message}),o.dirty()):"date"===c.kind?U.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:"date",message:c.message}),o.dirty()):"time"===c.kind?RegExp(`^${j(c)}$`).test(e.data)||(f(s=this._getOrReturnCtx(e,s),{code:u.eq.invalid_string,validation:"time",message:c.message}),o.dirty()):"duration"===c.kind?k.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"duration",code:u.eq.invalid_string,message:c.message}),o.dirty()):"ip"===c.kind?(t=e.data,!(("v4"===(r=c.version)||!r)&&x.test(t)||("v6"===r||!r)&&L.test(t))&&1&&(f(s=this._getOrReturnCtx(e,s),{validation:"ip",code:u.eq.invalid_string,message:c.message}),o.dirty())):"jwt"===c.kind?!function(e,t){if(!C.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,c.alg)&&(f(s=this._getOrReturnCtx(e,s),{validation:"jwt",code:u.eq.invalid_string,message:c.message}),o.dirty()):"cidr"===c.kind?(i=e.data,!(("v4"===(a=c.version)||!a)&&N.test(i)||("v6"===a||
9!a)&&R.test(i))&&1&&(f(s=this._getOrReturnCtx(e,s),{validation:"cidr",code:u.eq.invalid_string,message:c.message}),o.dirty())):"base64"===c.kind?P.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"base64",code:u.eq.invalid_string,message:c.message}),o.dirty()):"base64url"===c.kind?D.test(e.data)||(f(s=this._getOrReturnCtx(e,s),{validation:"base64url",code:u.eq.invalid_string,message:c.message}),o.dirty()):l.ZS.assertNever(c);return{status:o.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:u.eq.invalid_string,...s.errToObj(r)})}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...s.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...s.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...s.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...s.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...s.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...s.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...s.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...s.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...s.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...s.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...s.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...s.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...s.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...s.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...s.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...s.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...s.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...s.errToObj(t)})}nonempty(e){return this.min(1,s.errToObj(e))}trim(){return new $({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new $({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new $({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}$.create=e=>new $({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...b(e)});class Z extends w{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==l.Zp.number){let t=this._getOrReturnCtx(e);
9return f(t,{code:u.eq.invalid_type,expected:l.Zp.number,received:t.parsedType}),h}let r=new p;for(let n of this._def.checks)"int"===n.kind?l.ZS.isInteger(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:u.eq.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:u.eq.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:u.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:u.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:u.eq.not_finite,message:n.message}),r.dirty()):l.ZS.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.toString(t))}setLimit(e,t,r,n){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:s.toString(n)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:s.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:s.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:s.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:s.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&l.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...b(e)});class V extends w{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==l.Zp.bigint)return this._getInvalidInput(e);let r=new p;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:u.eq.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:u.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(f(t=this._getOrReturnCtx(e,t),{code:u.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):l.ZS.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);
9return f(t,{code:u.eq.invalid_type,expected:l.Zp.bigint,received:t.parsedType}),h}gte(e,t){return this.setLimit("min",e,!0,s.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.toString(t))}setLimit(e,t,r,n){return new V({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:s.toString(n)}]})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:s.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:s.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:s.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:s.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}V.create=e=>new V({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...b(e)});class B extends w{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==l.Zp.boolean){let t=this._getOrReturnCtx(e);return f(t,{code:u.eq.invalid_type,expected:l.Zp.boolean,received:t.parsedType}),h}return g(e.data)}}B.create=e=>new B({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...b(e)});class F extends w{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==l.Zp.date){let t=this._getOrReturnCtx(e);return f(t,{code:u.eq.invalid_type,expected:l.Zp.date,received:t.parsedType}),h}if(Number.isNaN(e.data.getTime()))return f(this._getOrReturnCtx(e),{code:u.eq.invalid_date}),h;let r=new p;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(f(t=this._getOrReturnCtx(e,t),{code:u.eq.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(f(t=this._getOrReturnCtx(e,t),{code:u.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):l.ZS.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:s.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:s.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}F.create=e=>new F({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...b(e)});class z extends w{_parse(e){if(this._getType(e)!==l.Zp.symbol){let t=this._getOrReturnCtx(e);return f(t,{code:u.eq.invalid_type,expected:l.Zp.symbol,received:t.parsedType}),h}return g(e.data)}}z.create=e=>new z({typeName:o.ZodSymbol,...b(e)});class H extends w{_parse(e){if(this._getType(e)!==l.Zp.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:u.eq.invalid_type,expected:l.Zp.undefined,received:t.parsedType}),h}return g(e.data)}}H.create=e=>new H({typeName:o.ZodUndefined,...b(e)});class Y extends w{_parse(e){if(this._getType(e)!==l.Zp.null){let t=this._getOrReturnCtx(e);return f(t,{code:u.eq.invalid_type,expected:l.Zp.null,received:t.parsedType}),h}return g(e.data)}}Y.create=e=>new Y({typeName:o.ZodNull,...b(e)});class G extends w{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}G.create=e=>new G({typeName:o.ZodAny,...b(e)});class W extends w{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}W.create=e=>new W({typeName:o.ZodUnknown,...b(e)});class q extends w{_parse(e){let t=this._getOrReturnCtx(e);
9return f(t,{code:u.eq.invalid_type,expected:l.Zp.never,received:t.parsedType}),h}}q.create=e=>new q({typeName:o.ZodNever,...b(e)});class K extends w{_parse(e){if(this._getType(e)!==l.Zp.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:u.eq.invalid_type,expected:l.Zp.void,received:t.parsedType}),h}return g(e.data)}}K.create=e=>new K({typeName:o.ZodVoid,...b(e)});class J extends w{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==l.Zp.array)return f(t,{code:u.eq.invalid_type,expected:l.Zp.array,received:t.parsedType}),h;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(f(t,{code:e?u.eq.too_big:u.eq.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(f(t,{code:u.eq.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(f(t,{code:u.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new v(t,e,t.path,r)))).then(e=>p.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new v(t,e,t.path,r)));return p.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new J({...this._def,minLength:{value:e,message:s.toString(t)}})}max(e,t){return new J({...this._def,maxLength:{value:e,message:s.toString(t)}})}length(e,t){return new J({...this._def,exactLength:{value:e,message:s.toString(t)}})}nonempty(e){return this.min(1,e)}}J.create=(e,t)=>new J({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...b(t)});class X extends w{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=l.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==l.Zp.object){let t=this._getOrReturnCtx(e);return f(t,{code:u.eq.invalid_type,expected:l.Zp.object,received:t.parsedType}),h}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof q&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let s=[];for(let e of i){let t=n[e],i=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new v(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof q){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&(f(r,{code:u.eq.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new v(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>p.mergeObjectSync(t,e)):p.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return s.errToObj,new X({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:s.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new X({...this._def,unknownKeys:"strip"})}passthrough(){return new X({...this._def,unknownKeys:"passthrough"})}extend(e){return new X({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new X({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new X({...this._def,catchall:e})}pick(e){let t={};for(let r of l.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new X({...this._def,shape:()=>t})}omit(e){let t={};for(let r of l.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new X({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof X){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=em.create(e(i))}return new X({...t._def,shape:()=>r})}
9if(t instanceof J)return new J({...t._def,type:e(t.element)});if(t instanceof em)return em.create(e(t.unwrap()));if(t instanceof eg)return eg.create(e(t.unwrap()));if(t instanceof en)return en.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of l.ZS.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new X({...this._def,shape:()=>t})}required(e){let t={};for(let r of l.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof em;)e=e._def.innerType;t[r]=e}return new X({...this._def,shape:()=>t})}keyof(){return ec(l.ZS.objectKeys(this.shape))}}X.create=(e,t)=>new X({shape:()=>e,unknownKeys:"strip",catchall:q.create(),typeName:o.ZodObject,...b(t)}),X.strictCreate=(e,t)=>new X({shape:()=>e,unknownKeys:"strict",catchall:q.create(),typeName:o.ZodObject,...b(t)}),X.lazycreate=(e,t)=>new X({shape:e,unknownKeys:"strip",catchall:q.create(),typeName:o.ZodObject,...b(t)});class Q extends w{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new u.G(e.ctx.common.issues));return f(t,{code:u.eq.invalid_union,unionErrors:r}),h});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new u.G(e));return f(t,{code:u.eq.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}Q.create=(e,t)=>new Q({options:e,typeName:o.ZodUnion,...b(t)});let ee=e=>{if(e instanceof eu)return ee(e.schema);if(e instanceof eh)return ee(e.innerType());if(e instanceof el)return[e.value];if(e instanceof ed)return e.options;if(e instanceof ef)return l.ZS.objectValues(e.enum);else if(e instanceof ey)return ee(e._def.innerType);else if(e instanceof H)return[void 0];else if(e instanceof Y)return[null];else if(e instanceof em)return[void 0,...ee(e.unwrap())];else if(e instanceof eg)return[null,...ee(e.unwrap())];else if(e instanceof eb)return ee(e.unwrap());else if(e instanceof eE)return ee(e.unwrap());else if(e instanceof ev)return ee(e._def.innerType);else return[]};class et extends w{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.object)return f(t,{code:u.eq.invalid_type,expected:l.Zp.object,received:t.parsedType}),h;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(f(t,{code:u.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ee(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new et({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...b(r)})}}class er extends w{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if("aborted"===e.status||"aborted"===n.status)return h;let i=function e(t,r){let n=(0,l.CR)(t),i=(0,l.CR)(r);if(t===r)return{valid:!0,data:t};if(n===l.Zp.object&&i===l.Zp.object){let n=l.ZS.objectKeys(r),i=l.ZS.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===l.Zp.array&&i===l.Zp.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);
9if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===l.Zp.date&&i===l.Zp.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return i.valid?(("dirty"===e.status||"dirty"===n.status)&&t.dirty(),{status:t.value,value:i.data}):(f(r,{code:u.eq.invalid_intersection_types}),h)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}er.create=(e,t,r)=>new er({left:e,right:t,typeName:o.ZodIntersection,...b(r)});class en extends w{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.array)return f(r,{code:u.eq.invalid_type,expected:l.Zp.array,received:r.parsedType}),h;if(r.data.length<this._def.items.length)return f(r,{code:u.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&r.data.length>this._def.items.length&&(f(r,{code:u.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new v(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>p.mergeArray(t,e)):p.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new en({...this._def,rest:e})}}en.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new en({items:e,typeName:o.ZodTuple,rest:null,...b(t)})};class ei extends w{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.object)return f(r,{code:u.eq.invalid_type,expected:l.Zp.object,received:r.parsedType}),h;let n=[],i=this._def.keyType,a=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new v(r,e,r.path,e)),value:a._parse(new v(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?p.mergeObjectAsync(t,n):p.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ei(t instanceof w?{keyType:e,valueType:t,typeName:o.ZodRecord,...b(r)}:{keyType:$.create(),valueType:e,typeName:o.ZodRecord,...b(t)})}}class ea extends w{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.map)return f(r,{code:u.eq.invalid_type,expected:l.Zp.map,received:r.parsedType}),h;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new v(r,e,r.path,[a,"key"])),value:i._parse(new v(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ea.create=(e,t,r)=>new ea({valueType:t,keyType:e,typeName:o.ZodMap,...b(r)});class es extends w{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.set)return f(r,{code:u.eq.invalid_type,expected:l.Zp.set,received:r.parsedType}),h;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(f(r,{code:u.eq.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(f(r,{code:u.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return h;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let s=[...r.data.values()].map((e,t)=>i._parse(new v(r,e,r.path,t)));return r.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new es({...this._def,minSize:{value:e,message:s.toString(t)}})}max(e,t){return new es({...this._def,maxSize:{value:e,message:s.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}es.create=(e,t)=>
9new es({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...b(t)});class eo extends w{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.function)return f(t,{code:u.eq.invalid_type,expected:l.Zp.function,received:t.parsedType}),h;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c].filter(e=>!!e),issueData:{code:u.eq.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c].filter(e=>!!e),issueData:{code:u.eq.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof ep){let e=this;return g(async function(...t){let s=new u.G([]),o=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(r(t,e)),s}),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw s.addIssue(n(l,e)),s})})}{let e=this;return g(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new u.G([r(t,s.error)]);let o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,i);if(!l.success)throw new u.G([n(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eo({...this._def,args:en.create(e).rest(W.create())})}returns(e){return new eo({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eo({args:e||en.create([]).rest(W.create()),returns:t||W.create(),typeName:o.ZodFunction,...b(r)})}}class eu extends w{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eu.create=(e,t)=>new eu({getter:e,typeName:o.ZodLazy,...b(t)});class el extends w{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return f(t,{received:t.data,code:u.eq.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ec(e,t){return new ed({values:e,typeName:o.ZodEnum,...b(t)})}el.create=(e,t)=>new el({value:e,typeName:o.ZodLiteral,...b(t)});class ed extends w{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{expected:l.ZS.joinValues(r),received:t.parsedType,code:u.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{received:t.data,code:u.eq.invalid_enum_value,options:r}),h}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ed.create(e,{...this._def,...t})}exclude(e,t=this._def){return ed.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ed.create=ec;class ef extends w{_parse(e){let t=l.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==l.Zp.string&&r.parsedType!==l.Zp.number){let e=l.ZS.objectValues(t);return f(r,{expected:l.ZS.joinValues(e),received:r.parsedType,code:u.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(l.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=l.ZS.objectValues(t);return f(r,{received:r.data,code:u.eq.invalid_enum_value,options:e}),h}return g(e.data)}get enum(){return this._def.values}}ef.create=(e,t)=>new ef({values:e,typeName:o.ZodNativeEnum,...b(t)});class ep extends w{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==l.Zp.promise&&!1===t.common.async?(f(t,{code:u.eq.invalid_type,expected:l.Zp.promise,received:t.parsedType}),h):g((t.parsedType===l.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ep.create=(e,t)=>
9new ep({type:e,typeName:o.ZodPromise,...b(t)});class eh extends w{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{f(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return h;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"valid"!==e.status?h:Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if("valid"!==e.status)return h;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}l.ZS.assertNever(n)}}eh.create=(e,t,r)=>new eh({schema:e,typeName:o.ZodEffects,effect:t,...b(r)}),eh.createWithPreprocess=(e,t,r)=>new eh({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...b(r)});class em extends w{_parse(e){return this._getType(e)===l.Zp.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}em.create=(e,t)=>new em({innerType:e,typeName:o.ZodOptional,...b(t)});class eg extends w{_parse(e){return this._getType(e)===l.Zp.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:o.ZodNullable,...b(t)});class ey extends w{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===l.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...b(t)});class ev extends w{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return y(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new u.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new u.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...b(t)});class e_ extends w{_parse(e){if(this._getType(e)!==l.Zp.nan){let t=this._getOrReturnCtx(e);return f(t,{code:u.eq.invalid_type,expected:l.Zp.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}e_.create=e=>new e_({typeName:o.ZodNaN,...b(e)}),Symbol("zod_brand");class eb extends w{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ew extends w{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ew({in:e,out:t,typeName:o.ZodPipeline})}}class eE extends w{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return y(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}eE.create=(e,t)=>
9new eE({innerType:e,typeName:o.ZodReadonly,...b(t)}),X.lazycreate,(a=o||(o={})).ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly";let eS=$.create,eT=Z.create;e_.create,V.create;let eA=B.create;F.create,z.create,H.create,Y.create,G.create;let eO=W.create;q.create,K.create;let eC=J.create,ek=X.create;X.strictCreate;let eI=Q.create,ex=et.create;er.create,en.create;let eN=ei.create;ea.create,es.create,eo.create,eu.create;let eL=el.create,eR=ed.create;ef.create,ep.create,eh.create,em.create,eg.create;let eP=eh.createWithPreprocess;ew.create;let eD={string:e=>$.create({...e,coerce:!0}),number:e=>Z.create({...e,coerce:!0}),boolean:e=>B.create({...e,coerce:!0}),bigint:e=>V.create({...e,coerce:!0}),date:e=>F.create({...e,coerce:!0})}},51845:function(e,t,r){e.exports=function(){"use strict";var e="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==r.g?r.g:"u">typeof self?self:{};return{stub:function(){let t,r="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this;return r.$t=r.$t||((t=function e(...t){let r="getSaves";return t.length>=1&&r!==t[0]&&e.storedCommands.push(t),r===t[0]?e.storedCommands:""}).storedCommands=[],t.stub="2.0",t),r.$t}()}}()},51930:function(e,t,r){!function(e){"use strict";function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function n(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function i(e,t,r){i.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}function a(e,t){a.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function s(e,t){s.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function o(e,t,r){o.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}function u(e,t,r){var n=e.slice((r||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,n),e}function l(e){var t=void 0===e?"undefined":b(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function c(e,t,r,n,d,f,p){d=d||[],p=p||[];var h,m=d.slice(0);if(void 0!==f){if(n){if("function"==typeof n&&n(m,f))return;if("object"===(void 0===n?"undefined":b(n))){if(n.prefilter&&n.prefilter(m,f))return;if(n.normalize){var g=n.normalize(m,f,e,t);g&&(e=g[0],t=g[1])}}}m.push(f)}"regexp"===l(e)&&"regexp"===l(t)&&(e=e.toString(),t=t.toString());var y=void 0===e?"undefined":b(e),v=void 0===t?"undefined":b(t),_="undefined"!==y||p&&p[p.length-1].lhs&&p[p.length-1].lhs.hasOwnProperty(f),w="undefined"!==v||p&&p[p.length-1].rhs&&p[p.length-1].rhs.hasOwnProperty(f);if(!_&&w)r(new a(m,t));else if(!w&&_)r(new s(m,e));else if(l(e)!==l(t))r(new i(m,e,t));else if("date"===l(e)&&e-t!=0)r(new i(m,e,t));else if("object"===y&&null!==e&&null!==t)if(p.filter(function(t){return t.lhs===e}).length)e!==t&&r(new i(m,e,t));else{if(p.push({lhs:e,rhs:t}),Array.isArray(e)){for(e.length,h=0;h<e.length;h++)h>
9=t.length?r(new o(m,h,new s(void 0,e[h]))):c(e[h],t[h],r,n,m,h,p);for(;h<t.length;)r(new o(m,h,new a(void 0,t[h++])))}else{var E=Object.keys(e),S=Object.keys(t);E.forEach(function(i,a){var s=S.indexOf(i);s>=0?(c(e[i],t[i],r,n,m,i,p),S=u(S,s)):c(e[i],void 0,r,n,m,i,p)}),S.forEach(function(e){c(void 0,t[e],r,n,m,e,p)})}p.length=p.length-1}else e!==t&&("number"===y&&isNaN(e)&&isNaN(t)||r(new i(m,e,t)))}function d(e,t,r,n){return n=n||[],c(e,t,function(e){e&&n.push(e)},r),n.length?n:void 0}function f(e,t,r){if(e&&t&&r&&r.kind){for(var n=e,i=-1,a=r.path?r.path.length-1:0;++i<a;)void 0===n[r.path[i]]&&(n[r.path[i]]="number"==typeof r.path[i]?[]:{}),n=n[r.path[i]];switch(r.kind){case"A":!function e(t,r,n){if(n.path&&n.path.length){var i,a=t[r],s=n.path.length-1;for(i=0;i<s;i++)a=a[n.path[i]];switch(n.kind){case"A":e(a[n.path[i]],n.index,n.item);break;case"D":delete a[n.path[i]];break;case"E":case"N":a[n.path[i]]=n.rhs}}else switch(n.kind){case"A":e(t[r],n.index,n.item);break;case"D":t=u(t,r);break;case"E":case"N":t[r]=n.rhs}return t}(r.path?n[r.path[i]]:n,r.index,r.item);break;case"D":delete n[r.path[i]];break;case"E":case"N":n[r.path[i]]=r.rhs}}}function p(e,t,r,n){switch(void 0===e?"undefined":b(e)){case"object":return"function"==typeof e[n]?e[n].apply(e,w(r)):e[n];case"function":return e(t);default:return e}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},T,e),r=t.logger,n=t.stateTransformer,i=t.errorTransformer,a=t.predicate,s=t.logErrors,o=t.diffPredicate;if(void 0===r)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var u=[];return function(e){var r=e.getState;return function(e){return function(l){if("function"==typeof a&&!a(r,l))return e(l);var c,f,h,m,g,y,b,E,T,A,O,C,k={};u.push(k),k.started=_.now(),k.startedTime=new Date,k.prevState=n(r()),k.action=l;var I=void 0;if(s)try{I=e(l)}catch(e){k.error=i(e)}else I=e(l);k.took=_.now()-k.started,k.nextState=n(r());var x=t.diff&&"function"==typeof o?o(r,l):t.diff;if(m=(c=Object.assign({},t,{diff:x})).logger,g=c.actionTransformer,b=void 0===(y=c.titleFormatter)?(f=c.timestamp,h=c.duration,function(e,t,r){var n=["action"];return n.push("%c"+String(e.type)),f&&n.push("%c@ "+t),h&&n.push("%c(in "+r.toFixed(2)+" ms)"),n.join(" ")}):y,E=c.collapsed,T=c.colors,A=c.level,O=c.diff,C=void 0===c.titleFormatter,u.forEach(function(e,t){var r=e.started,n=e.startedTime,i=e.action,a=e.prevState,s=e.error,o=e.took,l=e.nextState,f=u[t+1];f&&(l=f.prevState,o=f.started-r);var h=g(i),y="function"==typeof E?E(function(){return l},i,e):E,_=v(n),k=T.title?"color: "+T.title(h)+";":"",I=["color: gray; font-weight: lighter;"];I.push(k),c.timestamp&&I.push("color: gray; font-weight: lighter;"),c.duration&&I.push("color: gray; font-weight: lighter;");var x=b(h,_,o);try{y?T.title&&C?m.groupCollapsed.apply(m,["%c "+x].concat(I)):m.groupCollapsed(x):T.title&&C?m.group.apply(m,["%c "+x].concat(I)):m.group(x)}catch(e){m.log(x)}var N=p(A,h,[a],"prevState"),L=p(A,h,[h],"action"),R=p(A,h,[s,a],"error"),P=p(A,h,[l],"nextState");if(N)if(T.prevState){var D="color: "+T.prevState(a)+"; font-weight: bold";m[N]("%c prev state",D,a)}else m[N]("prev state",a);if(L)if(T.action){var M="color: "+T.action(h)+"; font-weight: bold";m[L]("%c action ",M,h)}else m[L]("action ",h);if(s&&R)if(T.error){var U="color: "+T.error(s,a)+"; font-weight: bold;";m[R]("%c error ",U,s)}else m[R]("error ",s);if(P)if(T.nextState){var j="color: "+T.nextState(l)+"; font-weight: bold";m[P]("%c next state",j,l)}else m[P]("next state",l);O&&function(e,t,r,n){var i=d(e,t);try{n?r.groupCollapsed("diff"):r.group("diff")}catch(e){r.log("diff")}
9i?i.forEach(function(e){var t=e.kind,n=function(e){var t=e.kind,r=e.path,n=e.lhs,i=e.rhs,a=e.index,s=e.item;switch(t){case"E":return[r.join("."),n,"â",i];case"N":return[r.join("."),i];case"D":return[r.join(".")];case"A":return[r.join(".")+"["+a+"]",s];default:return[]}}(e);r.log.apply(r,["%c "+S[t].text,"color: "+S[t].color+"; font-weight: bold"].concat(w(n)))}):r.log("ââ no diff ââ");try{r.groupEnd()}catch(e){r.log("ââ diff end ââ ")}}(a,l,m,y);try{m.groupEnd()}catch(e){m.log("ââ log end ââ")}}),u.length=0,k.error)throw k.error;return I}}}}var m,g,y=function(e,t){return Array(t-e.toString().length+1).join("0")+e},v=function(e){return y(e.getHours(),2)+":"+y(e.getMinutes(),2)+":"+y(e.getSeconds(),2)+"."+y(e.getMilliseconds(),3)},_="u">typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},E=[];(g=(m="object"===(void 0===r.g?"undefined":b(r.g))&&r.g?r.g:"u">typeof window?window:{}).DeepDiff)&&E.push(function(){void 0!==g&&m.DeepDiff===d&&(m.DeepDiff=g,g=void 0)}),t(i,n),t(a,n),t(s,n),t(o,n),Object.defineProperties(d,{diff:{value:d,enumerable:!0},observableDiff:{value:c,enumerable:!0},applyDiff:{value:function(e,t,r){e&&t&&c(e,t,function(n){r&&!r(e,t,n)||f(e,t,n)})},enumerable:!0},applyChange:{value:f,enumerable:!0},revertChange:{value:function(e,t,r){if(e&&t&&r&&r.kind){var n,i,a=e;for(i=r.path.length-1,n=0;n<i;n++)void 0===a[r.path[n]]&&(a[r.path[n]]={}),a=a[r.path[n]];switch(r.kind){case"A":!function e(t,r,n){if(n.path&&n.path.length){var i,a=t[r],s=n.path.length-1;for(i=0;i<s;i++)a=a[n.path[i]];switch(n.kind){case"A":e(a[n.path[i]],n.index,n.item);break;case"D":case"E":a[n.path[i]]=n.lhs;break;case"N":delete a[n.path[i]]}}else switch(n.kind){case"A":e(t[r],n.index,n.item);break;case"D":case"E":t[r]=n.lhs;break;case"N":t=u(t,r)}return t}(a[r.path[n]],r.index,r.item);break;case"D":case"E":a[r.path[n]]=r.lhs;break;case"N":delete a[r.path[n]]}}},enumerable:!0},isConflict:{value:function(){return void 0!==g},enumerable:!0},noConflict:{value:function(){return E&&(E.forEach(function(e){e()}),E=null),d},enumerable:!0}});var S={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},T={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,r=e.getState;return"function"==typeof t||"function"==typeof r?h()({dispatch:t,getState:r}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};e.defaults=T,e.createLogger=h,e.logger=A,e.default=A,Object.defineProperty(e,"__esModule",{value:!0})}(t)},53073:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});let n=RegExp(/^\/start-today-app-view\/./,"i");function i(e){return n.test(e)}},54945:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{A:()=>n})},54955:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(11431),i=r.n(n);let a=function(e){return"function"==typeof e},s=function(e){return e},o=function(e){return null===e};function u(e,t,r){void 0===t&&(t=s),i()(a(t)||o(t),"Expected payloadCreator to be a function, undefined or null");var n=o(t)||t===s?s:function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e instanceof Error?e:t.apply(void 0,[e].concat(n))},u=a(r),l=e.toString(),c=function(){var t=n.apply(void 0,arguments),i={type:e};return t instanceof Error&&(i.error=!0),void 0!==t&&(i.payload=t),u&&(i.meta=r.apply(void 0,arguments)),i};return c.toString=function(){return l},c}},55032:(e,t,r)=>{"use strict";r.d(t,{$4:()=>_,$Z:()=>w,Jl:()=>E,P4:()=>b,Wm:()=>T,vg:()=>d,wH:()=>v});var n=r(54955),i=r(13675),a=r(18923),s=r(31406),o=r.n(s),u=r(24091);let l="front/FRONT_LOAD_PENDING",c="front/FRONT_LOAD_COMPLETE",d="front/FRONT_LOAD_FAILED",f="front/SET_DRAFT_ID",p="front/SET_PAID_CONTENT_POSITION",h="front/SET_HAS_NO_PAID_CONTENT",m=(0,n.A)(d)({status:404}),g=/^[/a-zA-Z0-9_-]+$/,y=e=>e(m),v=(e,t,r)=>(0,i.A)({endpoint:`curation/slug/${e}${t?`/${t}`:""}`,types:[l,c,d],failedValidationCallback:t&&!g.test(t)?y:null,modifyResponse:async n=>(0,u.mN)(e,t,r,n,u.wT)}),_=(e,t,r,n)=>(0,i.A)({endpoint:`curation/draft/${e}`,types:[l,c,d],modifyResponse:async e=>(0,u.mN)(t,r,n,e,u.wT)}),b=e=>({type:f,payload:{draftId:e}}),w=e=>({type:p,payload:{paidContentPosition:e}}),E=()=>({type:h}),S={loading:!1,draftId:null,curation:{},error:null,paidContentPosition:null,hasNoPaidContent:!1,isEmbedProgramGuide:!1,weather:{error:null,hours:[],loading:!1}};function T(e=S,t){switch(t.type){case l:return{...e,loading:!0};case c:{let{curation:r}=t.payload.data,n=o()(r.layouts,{packages:[{type:"embed",items:[{computedValues:{url:"https://master.d2gnmmimbvzgnk.amplifyapp.com/?vertical=true"}}]}]});return{...e,curation:r,loading:!1,stackCommerceFront:(0,a.zR)(r,"StackCommerce"),isEmbedProgramGuide:n}}case f:return{...e,draftId:t.payload.draftId};case d:return{...e,loading:!1,error:t.payload};case p:if(null!==e.paidContentPosition)return e;return{...e,paidContentPosition:t.payload.paidContentPosition};case h:return{...e,hasNoPaidContent:!0};
9case"localnews/LOCAL_WEATHER_PENDING":return{...e,weather:{...e.weather,loading:!0}};case"localnews/LOCAL_WEATHER_SUCCESS":return{...e,weather:{...t.payload,loading:!1}};case"localnews/LOCAL_WEATHER_ERROR":return{...e,weather:{error:t.payload,loading:!1}};default:return e}}},55528:(e,t,r)=>{"use strict";r.d(t,{Qz:()=>o,rY:()=>u,uS:()=>l});var n=r(79424),i=r(42060),a=r(79593);r(1713);var s=r(74455);function o(e,{customerId:t}={}){let r=(0,i.Ri)("access_token"),n=(0,a.D)(),u={method:"post",headers:{"X-Auth-Token":String(r),"Content-Type":"application/json"},credentials:"omit",body:JSON.stringify({customerId:t,mparticleId:n})};return fetch(`${window.origin}${e}`,{...u}).then(e=>{if(e.ok)return e.json();throw Error("Network response was not ok.")}).catch(t=>{let r=`${window.location.origin}${window.location.pathname}`;throw(0,s.vV)(t,{feature:"bedrock-auth",action:"myNewsApi",pageUrl:r,url:e}),Error(t.message)})}function u(e,{body:t={},method:r="post",headers:n={}}={}){let i={method:r,headers:{"Content-Type":"application/json",...n}};return"get"!==r.toLocaleLowerCase()&&(i.body=JSON.stringify(t)),fetch(`/auth${e}`,i).then(e=>e.json())}function l(e){let t=(0,n.WO)(e);return(0,n.mu)(t??{exp:0})}},55909:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.errorUtil=void 0,(n=r||(t.errorUtil=r={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},n.toString=e=>"string"==typeof e?e:e?.message},56557:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",a="month",s="quarter",o="year",u="date",l="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},p="en",h={};h[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof b||!(!e||!e[m])},y=function e(t,r,n){var i;if(!t)return p;if("string"==typeof t){var a=t.toLowerCase();h[a]&&(i=a),r&&(h[a]=r,i=a);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;h[o]=t,i=o}return!n&&i&&(p=i),i||!n&&p},v=function(e,t){if(g(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new b(r)},_={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,a),s=r-i<0,o=t.clone().add(n+(s?-1:1),a);return+(-(n+(r-i)/(s?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return({M:a,y:o,w:i,d:"day",D:u,h:n,m:r,s:t,ms:e,Q:s})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};_.l=y,_.i=g,_.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var b=function(){function f(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var p=f.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(c);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return _},p.isValid=function(){return this.$d.toString()!==l},p.isSame=function(e,t){var r=v(e);return this.startOf(t)<=r&&r<=this.endOf(t)},p.isAfter=function(e,t){return v(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<v(e)},p.$g=function(e,t,r){return _.u(e)?this[t]:this.set(r,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,s){var l=this,c=!!_.u(s)||s,d=_.p(e),f=function(e,t){var r=_.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return c?r:r.endOf("day")},p=function(e,t){return _.w(l.toDate()[e].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},h=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case o:return c?f(1,0):f(31,11);case a:return c?f(1,m):f(0,m+1);
9case i:var v=this.$locale().weekStart||0,b=(h<v?h+7:h)-v;return f(c?g-b:g+(6-b),m);case"day":case u:return p(y+"Hours",0);case n:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case t:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(i,s){var l,c=_.p(i),d="set"+(this.$u?"UTC":""),f=((l={}).day=d+"Date",l[u]=d+"Date",l[a]=d+"Month",l[o]=d+"FullYear",l[n]=d+"Hours",l[r]=d+"Minutes",l[t]=d+"Seconds",l[e]=d+"Milliseconds",l)[c],p="day"===c?this.$D+(s-this.$W):s;if(c===a||c===o){var h=this.clone().set(u,1);h.$d[f](p),h.init(),this.$d=h.set(u,Math.min(this.$D,h.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[_.p(e)]()},p.add=function(e,s){var u,l=this;e=Number(e);var c=_.p(s),d=function(t){var r=v(l);return _.w(r.date(r.date()+Math.round(t*e)),l)};if(c===a)return this.set(a,this.$M+e);if(c===o)return this.set(o,this.$y+e);if("day"===c)return d(1);if(c===i)return d(7);var f=((u={})[r]=6e4,u[n]=36e5,u[t]=1e3,u)[c]||1,p=this.$d.getTime()+e*f;return _.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),a=this.$H,s=this.$m,o=this.$M,u=r.weekdays,c=r.months,f=r.meridiem,p=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},h=function(e){return _.s(a%12||12,e,"0")},m=f||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return _.s(t.$y,4,"0");case"M":return o+1;case"MM":return _.s(o+1,2,"0");case"MMM":return p(r.monthsShort,o,c,3);case"MMMM":return p(c,o);case"D":return t.$D;case"DD":return _.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,u,2);case"ddd":return p(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(a);case"HH":return _.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(a,s,!0);case"A":return m(a,s,!1);case"m":return String(s);case"mm":return _.s(s,2,"0");case"s":return String(t.$s);case"ss":return _.s(t.$s,2,"0");case"SSS":return _.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,u,l){var c,d=this,f=_.p(u),p=v(e),h=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,g=function(){return _.m(d,p)};switch(f){case o:c=g()/12;break;case a:c=g();break;case s:c=g()/3;break;case i:c=(m-h)/6048e5;break;case"day":c=(m-h)/864e5;break;case n:c=m/36e5;break;case r:c=m/6e4;break;case t:c=m/1e3;break;default:c=m}return l?c:_.a(c)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return h[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=y(e,t,!0);return n&&(r.$L=n),r},p.clone=function(){return _.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},f}(),w=b.prototype;return v.prototype=w,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",o],["$D",u]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),v.extend=function(e,t){return e.$i||(e(t,b,v),e.$i=!0),v},v.locale=y,v.isDayjs=g,v.unix=function(e){return v(1e3*e)},v.en=h[p],v.Ls=h,v.p={},v}()},57078:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(85190);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEac
9h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}},57261:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;let o=a(r(26620));t.z=o,s(r(26620),t),t.default=o},58214:(e,t,r)=>{"use strict";var n=r(14232),i=r(38806),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,o=n.useRef,u=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=s(e,(d=l(function(){function e(e){if(!u){if(u=!0,s=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return o=t}return o=e}if(t=o,a(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,o=r)}var s,o,u=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,i]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},59524:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{A:()=>n})},59534:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;let n=r(82075);
9t.ZodIssueCode=n.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),t.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class i extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof i))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.util.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}t.ZodError=i,i.create=e=>new i(e)},59696:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{A:()=>n})},59870:(e,t,r)=>{"use strict";r.d(t,{Lr:()=>b,MQ:()=>h,NZ:()=>p,dK:()=>c,e6:()=>y,rU:()=>g,sV:()=>_,tJ:()=>w,yO:()=>f});var n=r(56557),i=r.n(n),a=r(71576),s=r.n(a),o=r(5618);r(14551);var u=r(78095),l=r(88051);let c={FIRST_PAGE:150,FIRST_PAGE_TWITTER:15,LOAD_MORE:10},d=c.FIRST_PAGE;i().extend(s());let f=(e,t)=>{if(e?.[0]?.isIntersecting){let e=t?.articles?.[0]?.id;o.A.trigger("articleInView",e)}},p=e=>{let t;if(e){let{date:{publishedAt:r}}=e;t=i()(r).utc().format()}return t},h=e=>{let t=e.content.markupAndEmbeds,r=[],n=e.content.markupAndEmbeds.findIndex(e=>e.widget?.properties?.embed?.type==="SHOW_MORE_BUTTON"&&e.widget.properties.embed.displayShowMore),i=n>-1;return i&&(t=e.content.markupAndEmbeds.slice(0,n+1),r=e.content.markupAndEmbeds.slice(n+1)),{...e.content,visibleMarkupAndEmbeds:t,hiddenMarkupAndEmbeds:r,hasShowMoreBreakpoint:i}},m={size:"medium",style:"default",_overriddenByGetProcessedCardData:!0},g=e=>{let t=e?.content?.markupAndEmbeds??[];return e.content=e.content||{markupAndEmbeds:[],text:[]},e.headline=e.headline||{},e.content.markupAndEmbeds=t.filter(e=>!!e).map(e=>(e.presentation?e.presentation={...e.presentation,...m}:"markup"===e.type&&"p"!==e.element&&(e.presentation=m),(0,u.Z)(e))),e.replies&&e?.replies.map(g),e};function y(e){let t=function({datePublished:e,queryLimit:t,articleId:r}){let n=new URLSearchParams({size:t,articleId:r});return e&&n.set("datePublished",e.replace(/\+(\d){2}:(\d){2}$/,"")),`articlecards/search?${n}`}(e),r=(0,l.H)();return`${r}/${t}`}function v(e){let t=e?.data?.article?.cards?.items;return Array.isArray(t)?{...e?.data.article,cards:{items:t.map(e=>g(e))}}:{...e?.data?.article,cards:{items:[]}}}function _(e,t=v){return fetch(e).then(e=>{if(!e.ok)throw Error(`Error fetching live blog cards: ${e.status} ${e.statusText} ${e.url}`);return e.json()}).then(t)}function b(e){let t=(0,l.H)();return fetch(`${t}/card/${e}`).then(t=>{if(!t.ok)throw Error(`Error fetching card with ID ${e}: ${t.status} ${t.statusText} ${t.url}`);return t.json()}).then(e=>e?.data?.card).then(e=>g(e))}function w({queryLimit:e=d,articleId:t,datePublished:r}){return _(y({queryLimit:e,articleId:t,datePublished:r}))}},60762:(e,t,r)=>{"use strict";var n=r(14232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,s=n.useEffect,o=n.useLayoutEffect,u=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return o(function(){i.value=r,i.getSnapshot=t,l(i)&&c({inst:i})},[e,r,t]),s(function(){return l(i)&&c({inst:i}),e(function(){l(i)&&c({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},61979:e=>{"use strict";e.exports.verticalSiteConfigs={news:{iconUrl:"nbcnews",ogSiteName:"NBC News",twitter:"https://x.com/nbcnews",pinterest:"https://www.pinterest.com/nbcnews/",facebook:"https://www.facebook.com/NBCNews/",instagram:"https://www.instagram.com/nbcnews/",youtube:"https://www.youtube.com/nbcnews",snapchat:"https://www.snapchat.com/p/8bb879c7-45c0-499c-bb3c-7a3d0e229301/2193844248074240",tiktok:"https://www.tiktok.com/@nbcnews?lang=en",siteUrl:"https://www.nbcnews.com",twitterContentCreator:"NBCNews",twitterIntentVia:"NBCNews",twitterSite:"@NBCNews",wikipedia:"https://en.wikipedia.org/wiki/NBC_News"},today:{iconUrl:"today",ogSiteName:"TODAY.com",twitter:"https://x.com/TODAYshow",pinterest:"https://pinterest.com/todayshow",facebook:"https://www.facebook.com/todayshow",instagram:["https://www.instagram.com/todayshow","https://www.instagram.com/je
9nnaandfriends/"],youtube:"https://www.youtube.com/today",snapchat:"https://www.snapchat.com/add/todayshow",tiktok:"https://www.tiktok.com/@jennaandfriends_",threads:["https://www.threads.com/@todayshow","https://www.threads.com/@jennaandfriends"],siteUrl:"https://www.today.com",twitterContentCreator:"TodayShow",twitterIntentVia:"NBCNews",twitterSite:"@TODAYshow"},shop:{iconUrl:"today",ogSiteName:"SHOP TODAY",twitter:"https://x.com/shoptoday",facebook:"https://www.facebook.com/shoptoday",instagram:"https://www.instagram.com/shoptoday/",youtube:"https://www.youtube.com/@ShopTODAY",tiktok:"https://www.tiktok.com/@shoptoday",threads:"https://www.threads.com/@shoptoday",bluesky:"https://bsky.app/profile/shoptoday.today.com",twitterContentCreator:"ShopToday",twitterIntentVia:"NBCNews",twitterSite:"@ShopTODAY"},msnbc:{iconUrl:"msnbc",ogSiteName:"MSNBC.com",twitter:"https://x.com/msnbc",pinterest:"https://www.pinterest.com/msnbc/",facebook:"https://www.facebook.com/msnbc",instagram:"https://www.instagram.com/msnbc/",youtube:"https://www.youtube.com/msnbc",snapchat:"https://www.snapchat.com/add/msnbc",tiktok:"https://www.tiktok.com/@msnbc?lang=en",siteUrl:"https://www.msnbc.com",twitterContentCreator:"MSNBC",twitterIntentVia:"MSNBC",twitterSite:"@MSNBC"},noticias:{iconUrl:"telemundo",ogSiteName:"TELEMUNDO.com",twitter:"https://x.com/TelemundoNews",pinterest:"",facebook:"https://www.facebook.com/NoticiasTelemundo",instagram:"https://www.instagram.com/noticiastelemundo/",youtube:"https://www.youtube.com/telemundo",snapchat:"",tiktok:"https://www.tiktok.com/@noticiastelemundo?lang=es",threads:"https://www.threads.com/@noticiastelemundo",whatsapp:"https://whatsapp.com/channel/0029Va5e5IxHltY2lQwmYQ2j",siteUrl:"https://www.telemundo.com",twitterContentCreator:"TELEMUNDO",twitterIntentVia:"TelemundoNews",twitterSite:"@TELEMUNDO"},deportes:{iconUrl:"telemundo",ogSiteName:"TELEMUNDO.com",twitter:"https://x.com/telemundosports",pinterest:"",facebook:"https://www.facebook.com/TELEMUNDODEPORTES/",youtube:"https://www.youtube.com/channel/UCjZ7QPKb89R-4SxzBoceyOg",snapchat:"",tiktok:"https://www.tiktok.com/@telemundodeportes?lang=es",threads:"https://www.threads.com/@telemundodeportes",siteUrl:"https://www.telemundo.com",twitterContentCreator:"TELEMUNDO",twitterIntentVia:"TelemundoSports",twitterSite:"@TELEMUNDO"},localstationdeportes:{iconUrl:"telemundo",ogSiteName:"TELEMUNDO.com",twitter:"https://x.com/Telemundo",pinterest:"",facebook:"https://www.facebook.com/Telemundo/",youtube:"https://www.youtube.com/telemundo",snapchat:"",tiktok:"https://www.tiktok.com/@telemundo?lang=es",threads:"https://www.threads.com/@telemundo",siteUrl:"https://www.telemundo.com",twitterContentCreator:"TELEMUNDO",twitterIntentVia:"TelemundoSports",twitterSite:"@TELEMUNDO"},telemundo:{iconUrl:"telemundo",ogSiteName:"TELEMUNDO.com",twitter:"https://x.com/Telemundo",pinterest:"",facebook:"https://www.facebook.com/Telemundo/",youtube:"https://www.youtube.com/telemundo",snapchat:"",tiktok:"https://www.tiktok.com/@telemundo?lang=es",threads:"https://www.threads.com/@telemundo",siteUrl:"https://www.telemundo.com",twitterContentCreator:"TELEMUNDO",twitterIntentVia:"Telemundo",twitterSite:"@TELEMUNDO"},entretenimiento:{iconUrl:"telemundo",ogSiteName:"TELEMUNDO.com",twitter:"https://x.com/Telemundo",pinterest:"",facebook:"https://www.facebook.com/Telemundo/",youtube:"https://www.youtube.com/telemundo",snapchat:"",tiktok:"https://www.tiktok.com/@telemundo?lang=es",threads:"https://www.threads.com/@telemundo",siteUrl:"https://www.telemundo.com",twitterContentCreator:"TELEMUNDO",twitterIntentVia:"Telemundo",twitterSite:"@TELEMUNDO"},shows:{iconUrl:"telemundo",ogSiteName:"TELEMUNDO.com",twitter:"https://x.com/Telemundo",pinterest:"",facebook:"https://www.facebook.com/Telemundo/",youtube:"https://www.youtube.com/telemundo",snapchat:"",tiktok:"https://www.tiktok.com/@telemundo?lang=es",threads:"https://www.threads.com/@telemundo",siteUrl:"https://www.telemundo.com",twitterContentCreator:"TELEMUNDO",twitterIntentVia:"Telemundo",twitterSite:"@TELEMUNDO"},select:{iconUrl:"select",darkIconUrl:"select/select-dark",ogSiteName:"NBC News",twitter:"https://x.com/nbcselect",pinterest:"",facebook:"https://www.facebook.com/NBCSelect",instagram:"https://www.instagram.com/nbcselect/",youtube:"https://www.youtube.com/@NBCSelect",snapchat:"",tiktok:"https://www.tiktok.com/@nbcselect",threads:"https://www.threads.com/@nbcselect",bluesky:"https://bsky.app/profile/nbcselect.nbcnews.com",siteUrl:"https://www.nbcnews.com/select",twitterContentCreator:"shopwithselect",twitterIntentVia:"ShopwithSelect",twitterSite:"@shopwithselect"}}
9},62336:(e,t,r)=>{"use strict";r.d(t,{kj:()=>i,xo:()=>d,u6:()=>f,cq:()=>p.c,MQ:()=>m.M,_b:()=>h,if:()=>g,FN:()=>a.F,Pl:()=>s.P,O1:()=>o.O,AL:()=>y.A,Jp:()=>p.J});var n=r(14232);let i=n.createContext({id:null});var a=r(19567),s=r(83815),o=r(89830),u=r(37876),l=r(8459);let c={isS:!1,isM:!1,isL:!1,isXL:!0,isXXL:!1,isXXXL:!1,isSorM:!1,isLorXL:!0,hasCheckedViewportSize:!1},d=n.createContext(c),f=({children:e})=>{let[t,r]=n.useState(c),i=n.useCallback(()=>{r({isS:l.A.isS(),isM:l.A.isM(),isL:l.A.isL(),isXL:l.A.isXL(),isXXL:l.A.isXXL(),isXXXL:l.A.isXXXL(),isSorM:l.A.isSorM(),isLorXL:l.A.isLorXL(),hasCheckedViewportSize:!0})},[l.A]);return n.useEffect(()=>(l.A.listenToAll(i),()=>{l.A.removeFromAll(i)}),[l.A,i]),n.useEffect(()=>{r({isS:l.A.isS(),isM:l.A.isM(),isL:l.A.isL(),isXL:l.A.isXL(),isXXL:l.A.isXXL(),isXXXL:l.A.isXXXL(),isSorM:l.A.isSorM(),isLorXL:l.A.isLorXL(),hasCheckedViewportSize:!0})},[]),(0,u.jsx)(d.Provider,{value:t,children:e})};var p=r(39376);let h=n.createContext({isLive:!1,taxonomyPath:null});r(38883);var m=r(1642);let g=n.createContext({packageIndex:null,topOfPagePackages:!1,pkgTitleColorIndex:null,zone:null,zonePackageTypes:[],isRailAdjacent:null,railContext:null});var y=r(36382)},62550:(e,t,r)=>{"use strict";r.d(t,{A6:()=>k,CT:()=>M,HZ:()=>O,Jt:()=>D,PW:()=>P,RR:()=>A,SA:()=>C,SX:()=>x,bz:()=>I,dx:()=>N,oe:()=>j,rt:()=>L,yd:()=>R});var n=r(54955),i=r(13675);let a="tve/LOAD_FEATURED_PENDING",s="tve/LOAD_FEATURED_SUCCESS",o="tve/LOAD_FEATURED_ERROR",u="tve/LOAD_OPTIONS_PENDING",l="tve/LOAD_OPTIONS_SUCCESS",c="tve/LOAD_OPTIONS_ERROR",d="tve/LOAD_MVPD_PENDING",f="tve/LOAD_MVPD_SUCCESS",p="tve/LOAD_MVPD_ERROR",h="tve/LOAD_EPG_PENDING",m="tve/LOAD_EPG_SUCCESS",g="tve/LOAD_EPG_ERROR",y="tve/SET_AUTHENTICATION",v="tve/SET_AUTHORIZATION",_="tve/SET_TEMP_PASS_PROVIDER",b="tve/SET_ACCOUNT_METADATA",w="tve/HIDE_PROVIDER_SELECT",E="tve/SHOW_PROVIDER_SELECT",S="tve/SHOW_PROVIDER_IFRAME",T="tve/HIDE_PROVIDER_IFRAME",A=e=>(0,i.A)({endpoint:`tve/mvpd/${e}/featured`,types:[a,s,o],api:"services"}),O=e=>(0,i.A)({endpoint:`tve/mvpd/${e}/options`,types:[u,l,c],api:"services"}),C=(e,t)=>(0,i.A)({endpoint:`tve/mvpd/${e}/id/${t}`,types:[d,f,p],api:"services"}),k=e=>(0,i.A)({endpoint:`tve/schedule/${e}`,types:[h,m,g],api:"services"}),I=(0,n.A)(y),x=(0,n.A)(v),N=(0,n.A)(_),L=(0,n.A)(b),R=(0,n.A)(w),P=(0,n.A)(E),D=(0,n.A)(S),M=(0,n.A)(T),U={authenticated:null,authorization:null,featured:[],loadingFeatured:!1,loadingMVPD:!1,loadingOptions:!1,metadata:null,options:[],provider:null,providerIFrameVisible:!1,providerSelectVisible:!1,selected:null,hasTempPass:!1,tempPassProviderID:null,epgCurrent:{},epgUpcoming:[],epgLoading:!1};function j(e=U,{type:t,payload:r}){switch(t){case y:{let{tempPassProviderID:t,hasTempPass:n}=e,i=r?.provider??e.provider,a=r?.authenticated??!1,s=n;return a&&(s=t===i),{...e,authenticated:a,hasTempPass:s,provider:i}}case v:return{...e,authorization:r?.token??null};case b:{let t=Object.keys(r)[0];return{...e,metadata:{...e.metadata,[t]:r?.[t]??null}}}case _:return{...e,tempPassProviderID:r||null};case w:return{...e,providerSelectVisible:!1};case E:return{...e,providerSelectVisible:!0};case T:return{...e,providerIFrameVisible:!1};case S:return{...e,providerIFrameVisible:!0};case a:return{...e,loadingFeatured:!0};case s:return{...e,featured:r?.featured??[],loadingFeatured:!1};case o:return{...e,loadingFeatured:!1};case u:return{...e,loadingOptions:!0};case l:return{...e,options:r?.options??[],loadingOptions:!1};case c:return{...e,loadingOptions:!1};case d:return{...e,loadingMVPD:!0,selected:null};case f:return{...e,loadingMVPD:!1,selected:r?.MVPD??[]};case p:return{...e,loadingMVPD:!1,selected:null};case h:return{...e,epgLoading:!0};case m:{let t=new Date().getTime(),n=r?.schedule?.entries??[];return{...e,epgCurrent:n[0],epgUpcoming:n.filter(e=>e.startTime>=t).slice(0,12),epgLoading:!1}}case g:return{...e,epgLoading:!1};default:return e}}},64301:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,i){var a,s=function(e,r,n){void 0===n&&(n={});var i,a,s,o,u=new Date(e);return(void 0===(i=n)&&(i={}),(o=t[s=r+"|"+(a=i.timeZoneName||"short")])||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),t[s]=o),o).formatToParts(u)},o=function(t,r){for(var n=s(t,r),a=[],o=0;o<n.length;o+=1){var u=n[o],l=u.type,c=u.value,d=e[l];d>=0&&(a[d]=parseInt(c,10))}var f=a[3],p=a[0]+"-"+a[1]+"-"+a[2]+" "+(24===f?0:f)+":"+a[4]+":"+a[5]+":000",h=+t;return(i.utc(p).valueOf()-(h-=h%1e3))/6e4},u=n.prototype;u.tz=function(e,t){void 0===e&&(e=a);
9var r,n=this.utcOffset(),s=this.toDate(),o=s.toLocaleString("en-US",{timeZone:e}),u=Math.round((s-new Date(o))/1e3/60),l=-(15*Math.round(s.getTimezoneOffset()/15))-u;if(Number(l)){if(r=i(o,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),t){var c=r.utcOffset();r=r.add(n-c,"minute")}}else r=this.utcOffset(0,t);return r.$x.$timezone=e,r},u.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),r=s(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var l=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(r,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,r){var n=r&&t,s=r||t||a,u=o(+i(),s);if("string"!=typeof e)return i(e).tz(s);var l=function(e,t,r){var n=e-60*t*1e3,i=o(n,r);if(t===i)return[n,t];var a=o(n-=60*(i-t)*1e3,r);return i===a?[n,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,n).valueOf(),u,s),c=l[0],d=l[1],f=i(c).utcOffset(d);return f.$x.$timezone=s,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}}()},64609:(e,t,r)=>{"use strict";r.d(t,{jM:()=>F});var n,i=Symbol.for("immer-nothing"),a=Symbol.for("immer-draftable"),s=Symbol.for("immer-state");function o(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var u=Object.getPrototypeOf;function l(e){return!!e&&!!e[s]}function c(e){return!!e&&(f(e)||Array.isArray(e)||!!e[a]||!!e.constructor?.[a]||y(e)||v(e))}var d=Object.prototype.constructor.toString();function f(e){if(!e||"object"!=typeof e)return!1;let t=u(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===d}function p(e,t){0===h(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function h(e){let t=e[s];return t?t.type_:Array.isArray(e)?1:y(e)?2:3*!!v(e)}function m(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t,r){let n=h(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function y(e){return e instanceof Map}function v(e){return e instanceof Set}function _(e){return e.copy_||e.base_}function b(e,t){if(y(e))return new Map(e);if(v(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=f(e);if(!0!==t&&("class_only"!==t||r)){let t=u(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[s];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(u(e),t)}}function w(e,t=!1){return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=E),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>w(t,!0))),e}function E(){o(2)}function S(e){return Object.isFrozen(e)}var T={};function A(e){let t=T[e];return t||o(0),t}function O(e,t){t&&(A("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function C(e){k(e),e.drafts_.forEach(x),e.drafts_=null}function k(e){e===n&&(n=e.parent_)}function I(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function x(e){let t=e[s];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function N(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[s].modified_&&(C(t),o(4)),c(e)&&(e=L(t,e),t.parent_||P(t,e)),t.patches_&&A("Patches").generateReplacementPatches_(r[s].base_,e,t.patches_,t.inversePatches_)):e=L(t,r,[]),C(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function L(e,t,r){if(S(t))return t;let n=t[s];if(!n)return p(t,(i,a)=>R(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return P(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,i=t,a=!1;3===n.type_&&(i=new Set(t),t.clear(),a=!0),p(i,(i,s)=>R(e,n,t,i,s,r,a)),P(e,t,!1),r&&e.patches_&&A("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}
9function R(e,t,r,n,i,a,s){if(l(i)){let s=L(e,i,a&&t&&3!==t.type_&&!m(t.assigned_,n)?a.concat(n):void 0);if(g(r,n,s),!l(s))return;e.canAutoFreeze_=!1}else s&&r.add(i);if(c(i)&&!S(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;L(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&Object.prototype.propertyIsEnumerable.call(r,n)&&P(e,i)}}function P(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&w(t,r)}var D={get(e,t){if(t===s)return e;let r=_(e);if(!m(r,t)){var n;let i;return n=e,(i=j(r,t))?"value"in i?i.value:i.get?.call(n.draft_):void 0}let i=r[t];return e.finalized_||!c(i)?i:i===U(e.base_,t)?(Z(e),e.copy_[t]=V(i,e)):i},has:(e,t)=>t in _(e),ownKeys:e=>Reflect.ownKeys(_(e)),set(e,t,r){let n=j(_(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=U(_(e),t),i=n?.[s];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||m(e.base_,t)))return!0;Z(e),$(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Z(e),$(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=_(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){o(11)},getPrototypeOf:e=>u(e.base_),setPrototypeOf(){o(12)}},M={};
9function U(e,t){let r=e[s];return(r?_(r):e)[t]}function j(e,t){if(!(t in e))return;let r=u(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=u(r)}}function $(e){!e.modified_&&(e.modified_=!0,e.parent_&&$(e.parent_))}function Z(e){e.copy_||(e.copy_=b(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function V(e,t){let r=y(e)?A("MapSet").proxyMap_(e,t):v(e)?A("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),i={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},a=i,s=D;r&&(a=[i],s=M);let{revoke:o,proxy:u}=Proxy.revocable(a,s);return i.draft_=u,i.revoke_=o,u}(e,t);return(t?t.scope_:n).drafts_.push(r),r}p(D,(e,t)=>{M[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),M.deleteProperty=function(e,t){return M.set.call(this,e,t,void 0)},M.set=function(e,t,r){return D.set.call(this,e[0],t,r,e[0])};var B=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&o(6),void 0!==r&&"function"!=typeof r&&o(7),c(e)){let i=I(this),a=V(e,void 0),s=!0;try{n=t(a),s=!1}finally{s?C(i):k(i)}return O(i,r),N(n,i)}if(e&&"object"==typeof e)o(1);else{if(void 0===(n=t(e))&&(n=e),n===i&&(n=void 0),this.autoFreeze_&&w(n,!0),r){let t=[],i=[];A("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;c(e)||o(8),l(e)&&(l(t=e)||o(10),e=function e(t){let r;if(!c(t)||S(t))return t;let n=t[s];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=b(t,n.scope_.immer_.useStrictShallowCopy_)}else r=b(t,!0);return p(r,(t,n)=>{g(r,t,e(n))}),n&&(n.finalized_=!1),r}(t));let r=I(this),n=V(e,void 0);return n[s].isManual_=!0,k(r),n}finishDraft(e,t){let r=e&&e[s];r&&r.isManual_||o(9);let{scope_:n}=r;return O(n,t),N(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=A("Patches").applyPatches_;return l(e)?n(e,t):this.produce(e,e=>n(e,t))}},F=B.produce;B.produceWithPatches.bind(B),B.setAutoFreeze.bind(B),B.setUseStrictShallowCopy.bind(B),B.applyPatches.bind(B),B.createDraft.bind(B),B.finishDraft.bind(B)},65114:(e,t,r)=>{"use strict";r.d(t,{l:()=>a,z:()=>o});var n=r(13675);let i="video/LOAD_RELATED_SUCCESS",a=e=>(0,n.A)({endpoint:`video/${e}`,types:["video/LOAD_RELATED_PENDING",i,"video/LOAD_RELATED_ERROR"],bentoApi:!0}),s={},o=(e=s,t)=>{let r;return(t.payload&&({data:r}=t.payload),t.type===i)?{headline:r.video?.headline||{},description:r.video?.description||{},ecommerceEnabled:!1,url:r.video?.url?.primary||""}:e}},65698:(e,t,r)=>{"use strict";r.d(t,{$j:()=>o,K5:()=>s});var n=r(37876),i=r(14232);let a=(0,i.createContext)(null);function s({now:e,children:t}){let r=(0,i.useMemo)(()=>new Date(e),[e]);return(0,n.jsx)(a.Provider,{value:r,children:t})}function o(e){let t=(0,i.useContext)(a)||new Date,[r,n]=(0,i.useState)(t);return(0,i.useEffect)(()=>{if(n(new Date),e){let t=setInterval(()=>{n(new Date)},1e3*e);return()=>clearInterval(t)}},[e]),r}a.displayName="ServerDateTimeContext"},66152:(e,t,r)=>{"use strict";var n=r(65364);let i="ASSET_PREFIX";function a(e){let t=Number.parseInt(e??"",10);return Number.isNaN(t)?null:t}function s(e,t){if(!e)return t;try{return JSON.parse(e)}catch{return t}}function o(e){let t=(e[i]||"/").replace(/\/+$/,"");return"production"===e.NODE_ENV?`${t}/_next/`:"/_next/"}function u(e,t){return"/_next/"===t?e:e.map(e=>e.replace(/^\/?_next\//,t))}function l(e){return{assetManifest:s(e.RAMEN_ASSET_MANIFEST,{}),API_URL_BENTO_SERVER:e.API_URL_BENTO_SERVER,API_URL_SERVICES_SERVER:e.API_URL_SERVICES_SERVER,API_URL_MYNEWS_SERVER:e.API_URL_MYNEWS_SERVER,API_CACHE_TTL:e.API_CACHE_TTL,SCHEDULE_DATA_API_CACHE_TTL:e.SCHEDULE_DATA_API_CACHE_TTL,JWT_PUBLIC_KEY:e.JWT_PUBLIC_KEY,TEXT_TO_SPEECH_API_URL:e.TEXT_TO_SPEECH_API_URL,OVERRIDES_SCRIPT:e.OVERRIDES_SCRIPT}}function c(e,{dev:t}){let r=o(e),n=(e[i]||"/").replace(/\/+$/,"")||void 0,l=u(s(e.RAMEN_ICONFONT_ASSET_PATHS,[]),r),d=e.RAMEN_ADS_BUNDLE_PATH||"",f=
9d?d.replace(/^\/?_next\//,r):void 0;return{dev:t,assetPrefix:n,assetPublicPath:r,themesCssManifest:s(e.RAMEN_THEMES_CSS_MANIFEST,{}),adsBundlePath:f,iconfontAssetPaths:l,appVersion:e.RAMEN_APP_VERSION||"0.0.0",NDP_URL:e.NDP_URL,NDP_BASE_BUILD:e.NDP_BASE_BUILD,NDP_HLS_BUILD:e.NDP_HLS_BUILD,API_URL_BENTO_PUBLIC:e.API_URL_BENTO_PUBLIC,API_URL_MYNEWS_PUBLIC:e.API_URL_MYNEWS_PUBLIC,API_URL_SERVICES_PUBLIC:e.API_URL_SERVICES_PUBLIC,CNBC_STAGE_DOMAIN:e.CNBC_STAGE_DOMAIN,DEFAULT_AD_REFRESH_INTERVAL:e.DEFAULT_AD_REFRESH_INTERVAL||"30",DFP_AD_UNIT:e.DFP_AD_UNIT,LIVE_BLOG_POLLING_INTERVAL:e.LIVE_BLOG_POLLING_INTERVAL,MPS_URL_NBCNEWS:e.MPS_URL_NBCNEWS,MPS_URL_TELEMUNDO:e.MPS_URL_TELEMUNDO,STAR_RATER_URL:e.STAR_RATER_URL,TOP_BANNER_AD_REFRESH_INTERVAL:e.TOP_BANNER_AD_REFRESH_INTERVAL,COMMERCE_AMAZON_CI_ENABLE:"true"===e.COMMERCE_AMAZON_CI_ENABLE,ENABLE_NEWS_MARQUEE_ON_TODAY:"true"===e.ENABLE_NEWS_MARQUEE_ON_TODAY,ENABLE_RELATIVE_LINKS:"true"===e.ENABLE_RELATIVE_LINKS,ENABLE_THEME_PALETTE:"true"===e.ENABLE_THEME_PALETTE,ENABLED_FEATURES:e.ENABLED_FEATURES,ENABLE_ERROR_PAGE_PREVIEW:"true"===e.ENABLE_ERROR_PAGE_PREVIEW,ENABLE_VERTICAL_OVERRIDE:"true"===e.ENABLE_VERTICAL_OVERRIDE,ENABLE_AUTOPLAY_TEST:"true"===e.ENABLE_AUTOPLAY_TEST,AUTOPLAY_TEST_DESKTOP_ANY_PERCENTAGE:e.AUTOPLAY_TEST_DESKTOP_ANY_PERCENTAGE,AUTOPLAY_TEST_DESKTOP_UNMUTED_PERCENTAGE:e.AUTOPLAY_TEST_DESKTOP_UNMUTED_PERCENTAGE,AUTOPLAY_TEST_DESKTOP_DISABLED_PERCENTAGE:e.AUTOPLAY_TEST_DESKTOP_DISABLED_PERCENTAGE,AUTOPLAY_TEST_MOBILE_ANY_PERCENTAGE:e.AUTOPLAY_TEST_MOBILE_ANY_PERCENTAGE,AUTOPLAY_TEST_MOBILE_UNMUTED_PERCENTAGE:e.AUTOPLAY_TEST_MOBILE_UNMUTED_PERCENTAGE,AUTOPLAY_TEST_MOBILE_DISABLED_PERCENTAGE:e.AUTOPLAY_TEST_MOBILE_DISABLED_PERCENTAGE,DISABLE_AUTH_TVE_MSNBC:"true"===e.DISABLE_AUTH_TVE_MSNBC,ADOBE_LAUNCH_ENV:e.ADOBE_LAUNCH_ENV,TVE_CONCURRENCY_API:e.TVE_CONCURRENCY_API,TVE_CONCURRENCY_APPID:e.TVE_CONCURRENCY_APPID,ACCESS_ENABLER_SCRIPT_URL:e.ACCESS_ENABLER_SCRIPT_URL,TVE_SCRIPT:e.TVE_SCRIPT,TVE_SOFTWARE_STATEMENT:e.TVE_SOFTWARE_STATEMENT,SAILTHRU_CUSTOMER_ID:e.SAILTHRU_CUSTOMER_ID,VIAFOURA_NEWS_SITE_ID:e.VIAFOURA_NEWS_SITE_ID,VIAFOURA_TODAY_SITE_ID:e.VIAFOURA_TODAY_SITE_ID,ELECTIONS_NAV_2022_BASE_URL:e.ELECTIONS_NAV_2022_BASE_URL,ELECTIONS_NAV_2024_BASE_URL:e.ELECTIONS_NAV_2024_BASE_URL,ELECTIONS_NAV_2026_BASE_URL:e.ELECTIONS_NAV_2026_BASE_URL,CODE_ENVIRONMENT:e.CODE_ENVIRONMENT,PREVIEW_MODE:"true"===e.PREVIEW_MODE,NORTHFORK_SCRIPT:e.NORTHFORK_SCRIPT,NORTHFORK_CSS:e.NORTHFORK_CSS,DD_ENV:e.DD_ENV,DD_RUM_APP_ID:e.DD_RUM_APP_ID,DD_RUM_CLIENT_TOKEN:e.DD_RUM_CLIENT_TOKEN,DD_RUM_SAMPLE_RATE:a(e.DD_RUM_SAMPLE_RATE),DD_RUM_SESSION_REPLAY_SAMPLE_RATE:a(e.DD_RUM_SESSION_REPLAY_SAMPLE_RATE),JW_PLAYER_LIBRARY_URL:e.JW_PLAYER_LIBRARY_URL,JW_PLAYER_LIBRARY_KEY:e.JW_PLAYER_LIBRARY_KEY,PLAYWRIGHT_TEST:"true"===e.PLAYWRIGHT_TEST,IDENTITY_ENV:e.IDENTITY_ENV||"staging",SUBSCRIPTION_PREFERENCES_API_URL:e.SUBSCRIPTION_PREFERENCES_API_URL,NEWS_APPLE_CLIENT_ID:e.NEWS_APPLE_CLIENT_ID,NEWS_GOOGLE_CLIENT_ID:e.NEWS_GOOGLE_CLIENT_ID,TODAY_APPLE_CLIENT_ID:e.TODAY_APPLE_CLIENT_ID,TODAY_GOOGLE_CLIENT_ID:e.TODAY_GOOGLE_CLIENT_ID,CONVIVA_ENVIRONMENT:e.CONVIVA_ENVIRONMENT,PIANO_URI:e.PIANO_URI,PIANO_NEWS_AID:e.PIANO_NEWS_AID,PIANO_TODAY_AID:e.PIANO_TODAY_AID,NEXT_PUBLIC_PIANO_ENV:e.NEXT_PUBLIC_PIANO_ENV||"sandbox",NEWSLETTER_MANAGER_NEWS_API_URL:e.NEWSLETTER_MANAGER_NEWS_API_URL,NEWSLETTER_MANAGER_TODAY_API_URL:e.NEWSLETTER_MANAGER_TODAY_API_URL,PROFILE_MENU_MANAGER_NEWS_API_URL:e.PROFILE_MENU_MANAGER_NEWS_API_URL,PROFILE_MENU_MANAGER_TODAY_API_URL:e.PROFILE_MENU_MANAGER_TODAY_API_URL,TOPIC_TAXONOMY_MANAGER_NEWS_API_URL:e.TOPIC_TAXONOMY_MANAGER_NEWS_API_URL,SPORT_RADAR_WIDGET_URL:e.SPORT_RADAR_WIDGET_URL,OMEGA_STREAM_CDN_NEWS:e.OMEGA_STREAM_CDN_NEWS,OMEGA_STREAM_CDN_GEO:e.OMEGA_STREAM_CDN_GEO,OMEGA_STREAM_CDN_SPORTS:e.OMEGA_STREAM_CDN_SPORTS,OMEGA_STREAM_CDN_STAGING:e.OMEGA_STREAM_CDN_STAGING,PYM_URL:e.PYM_URL||"https://nodeassets.nbcnews.com/cdnassets/pym/1.3.2/pym.min.js"}}function d(e){return void 0!==e.RAMEN_DEV?"true"===e.RAMEN_DEV:"production"!==e.NODE_ENV}function f(){return l(n.env)}function p(){return c(n.env,{dev:d(n.env)})}function h(){return{serverRuntimeConfig:f(),publicRuntimeConfig:p()}}e.exports=h,e.exports.default=h,e.exports.setConfig=function(){},e.exports.getPublicRuntimeConfig=p,e.exports.getServerRuntimeConfig=f,e.exports.parseIntOrNull=a,e.exports.buildPublicRuntimeConfig=c,e.exports.buildServerRuntimeConfig=l,e.exports.getRuntimeAssetPublicPath=o,e.exports.rebaseAssetPaths=u,e.exports.resolveCjsDev=d,e.exports.parseJsonOrFallback=s},69641:(e,t,r)=>{"use strict";r.d(t,{Gd:()=>s,NZ:()=>u,cq:()=>n,g5:()=>l,gg:()=>o,le:()=>i,n7:()=>c,xP:()=>a});let n={REGISTER:"register",LOGIN:"login",SOCIAL_REGISTRATION:"socialRegistration",LOGIN_OTC_EMAIL:"loginOTCEmail",VERIFY_OTC:"verifyOneTimeCode",LOGIN_OTC:"loginWithOneTimeCode",USER_NAME:"userName",SMS_TEXT_ALERTS:"smsTextAlerts",REGISTRATION_SUCCESS:"registrationSuccess",REGISTRATION_COMPLETE:"registrationComplete",LOGIN_SUCCESS:"loginSuccess",NBCU_PROFILE:"nbcuProfile",UNIVERSAL_CART_LOGIN_SUCCESS:"universalCartLoginSuccess",UNIVERSAL_CART_REGISTRATION_SUCCESS:"universalCartRegistrationSuccess"},i=[n.REGISTER,n.LOGIN],a=[n.LOGIN,n.REGISTER],s=[n.REGISTER,n.LOGIN],o=[n.LOGIN_SUCCESS,n.REGISTRATION_SUCCESS,n.REGISTRATION_COMPLETE,n.UNIVERSAL_CART_LOGIN_SUCCESS,n.UNIVERSAL_CART_REGISTRATION_SUCCESS],u=[...o],l=[n.LOGIN_SUCCESS,n.REGISTRATION_COMPLETE,n.UNIVERSAL_CART_LOGIN_SUCCESS],c=[n.UNIVERSAL_CART_REGISTRATION_SUCCESS]},70510:(e,t,r)=>{"use strict";var n=r(65364);
9let i=r(82780),{TVE_SCRIPT:a,TVE_SOFTWARE_STATEMENT:s}=n.env,o={featured:"featured",field_mvpd_authorized_err:"errAuth",field_mvpd_display_name:"displayName",field_mvpd_freewheel_hash:"freewheelHash",field_mvpd_generic_err:"errGeneric",field_mvpd_id:"id",field_white_logo_2x:"logo2xWhite",field_mvpd_dark_color:"logoColor",concurrencyFlow:"concurrencyFlow"},u={msnbc:{linear:"https://feed.entertainment.tv.theplatform.com/f/HNK2IC/prod-msnbc-live-listing"}},l=["guid","startTime","program.title","program.guid","program.description","program.runtime","seriesId"],c={msnbc:{linear:"https://nodeassets.nbcnews.com/msnbc/schedule/thumbnails"}},d=(e,t="linear",r="index.json")=>{let n=i(c,`${e}.${t}`,!1);return!!n&&`${n}/${r}`};e.exports={ACCESS_ENABLER_OBJ:"__AccessEnabler",applyThumbnailsToSchedule:({schedule:e,thumbnails:t={},type:r="linear",vertical:n})=>{let i={...e};return i.entries&&Array.isArray(i.entries)&&(i.entries=i.entries.map(e=>{let i={...e};i.thumbnail=d(n,r,"default142w.mp4"),i.thumbSm=d(n,r,"default142w.mp4"),i.thumbMd=d(n,r,"default750w.mp4");let{seriesId:a}=i;return a&&"string"==typeof a&&(a=a.substring(a.lastIndexOf("/")+1),"object"==typeof t&&t[a]&&(i.thumbnail=d(n,r,`${a}/142w.mp4`),i.thumbSm=d(n,r,`${a}/142w.mp4`),i.thumbMd=d(n,r,`${a}/750w.mp4`))),i})),i},configTempPass:{checkInterval:60,checkTTL:12e5,checkName:"tve-temppass-check",expirationName:"tve-temppass-exp",expirationTTL:6e5,reset:{utcHours:5,utcMinutes:0}},configTVE:{iframeSrc:"/blank.html",path:"/","msnbc.com":{backgroundLogin:!0,backgroundLogout:!1,channelTitle:"msnbc",guid:2007680,itemTitle:"MSNBC",requestorID:"msnbc",stream:"MSNBC_TVE"},"nbcnews.com":{backgroundLogin:!0,backgroundLogout:!1,channelTitle:"msnbc",guid:2007680,itemTitle:"MSNBC",requestorID:"msnbc",stream:"MSNBC_TVE"}},accessEnablerConfig:{script:a,softwareStatement:s},getResourceID:(e,t,r)=>`<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> 10 <channel> 11 <title>${e}</title> 12 <item> 13 <title>${t}</title> 14 <guid>${r}</guid> 15 </item> 16 </channel> 17</rss>`,getScheduleFeed:({vertical:e,type:t="linear",form:r="cjson",count:n=14,fields:a=l,startTime:s,endTime:o})=>{let c=new Date().getTime(),d=i(u,`${e}.${t}`,!1);return!!d&&`${d}?form=${r}&range=1-${n}&fields=${a.join(",")}&byEndTime=${s||c}~${o||c+864e5}&sort=startTime|asc`},getScheduleThumbnailURL:d,mapScheduleFeed:e=>{let t={...e};return t.entries&&Array.isArray(t.entries)&&(t.entries=t.entries.map(e=>{let t={...e},r=new Date(t.startTime).toLocaleTimeString("en-US",{timeZone:"America/New_York"});return t.startTimeFormatted=r.replace(/(\d+):(\d+):\d+\s((a|p)m)/i,"$1:$2 $3 ET"),t})),t},mapScheduleThumbnails:e=>{let t={};return Array.isArray(e)&&e.forEach(e=>{e.guid&&e.title&&(t[e.guid]=e.title)}),t},notifyErrorMap:{Z100:"Unfortunately, this stream is not available with your cable subscription.",Z130:"Something went wrong, please <i>try again</i> or use a different browser."},providerMap:e=>Array.isArray(e)?e.map(e=>{let t=Object.keys(o);return Object.keys(e).filter(e=>t.includes(e)).reduce((t,r)=>(t[o[r]]=e[r],t),{})}):e,TVE_CANONICAL_ROUTE:"live"}},70704:function(e){e.exports=function(e,t,r){t.prototype.dayOfYear=function(e){var t=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}},70789:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case a:case o:case s:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case m:case u:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=n,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=o,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===o||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b||e.$$typeof===y)},t.typeOf=w},71106:(e,t,r)=>{"use strict";r.d(t,{Ni:()=>d,TE:()=>i,W5:()=>f,_g:()=>c,mh:()=>l});var n=r(19081);let{PIANO_URI:i,PIANO_NEWS_AID:a,PIANO_TODAY_AID:s,NEXT_PUBLIC_PIANO_ENV:o}=(0,n.Ay)()?.publicRuntimeConfig,u=Object.freeze({today:s,news:a}),l=e=>u?.[e]??null,c={FULL_WIDTH:"piano-full-width",INLINE:"piano-inline",FORM_TITLE:"piano-form-title",FORM_CTA:"piano-form-cta",VERTICAL_VIDEO_GATE:"piano-vertical-video-gate",ARTICLE_GATE:"tp-article-gate",SUBSCRIPTION_CTA:"tp-subscription-cta",CONTENT_REGISTRATION_GATE:"tp-content-registration-gate"},d="piano:container-ready",f='[id^="tp-"], [id^="piano-"]'},71165:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(16213);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,s,o=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(e){l=!0,i=e}
17finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw i}}return o}}(e,t)||(0,n.A)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},71473:(e,t,r)=>{"use strict";r.d(t,{Zp:()=>d,dd:()=>l,ET:()=>u});var n=r(54955),i=r(13675);let a=console,s="layout/LAYOUT_LOAD_NAV_SUCCESS",o="layout/LAYOUT_SET_TRIGGER_TOP",u=(0,n.A)(o),l=e=>(0,i.A)({endpoint:`navigation/${e}`,types:["layout/LAYOUT_LOAD_NAV_PENDING",s,"layout/LAYOUT_LOAD_NAV_FAILED"]}),c={header:{html:[]},footer:{html:[]},menu:{html:[]},triggerTop:0,navigation:{globalMenu:{menuItems:[]},localMenu:{menuItems:[]}}};function d(e=c,{type:t,payload:r}){switch(t){case"layout/LAYOUT_LOAD_HEADER_SUCCESS":return{...e,header:r};case"layout/LAYOUT_LOAD_FOOTER_SUCCESS":return{...e,footer:r};case"layout/LAYOUT_LOAD_ERROR":return a.error(r),e;case o:return{...e,triggerTop:r};case s:return{...e,navigation:{global:r?.data?.navigation?.global??[],local:r?.data?.navigation?.local??[]}};default:return e}}},71576:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,a){var s=i.prototype;a.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},s.utc=function(t){var r=a(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},s.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var o=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var u=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var l=s.utcOffset;s.utcOffset=function(n,i){var a=this.$utils().u;if(a(n))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if("string"==typeof n&&null===(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],a=i[0],s=60*i[1]+ +i[2];return 0===s?0:"+"===a?s:-s}(n)))return this;var s=16>=Math.abs(n)?60*n:n,o=this;if(i)return o.$offset=s,o.$u=0===n,o;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(s+u,e)).$offset=s,o.$x.$localOffset=u}else o=this.utc();return o};var c=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=s.diff;s.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var n=this.local(),i=a(e).local();return f.call(n,i,t,r)}}}()},72419:(e,t,r)=>{"use strict";function n(e){window.tp||=[],"function"==typeof window.tp.push&&window.tp.push(e)}function i(e){e?n(["setExternalJWT",e]):n(["setExternalJWT",""])}function a(e,t){n(["setCustomVariable",e,t])}r.d(t,{A:()=>u});let s=0,o=null,u={tpPush:n,setUserReference:i,reloadGate:function(){if(!window.tp?.experience?.execute)return;let e=Date.now();e-s<1e3||(s=e,window.tp.experience.execute())},setCurrentOfferParams:function(e){o=e},getCurrentOfferParams:function(){return o},clearCurrentOfferParams:function(){o=null},setVariable:a,setUserAndReload:function(e){i(e),a("updatedEvents","true"),window.tp?.experience?.execute&&window.tp.experience.execute()},waitForSDK:function(){return new Promise(e=>
17{(window.tp||=[],void 0!==window.tp.experience)?e(!0):window.tp.push(["init",function(){e(!0)}])})},executeCommand:function(e){return new Promise((t,r)=>{try{n([...e,t])}catch(e){r(e)}})}}},72936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(64252)._(r(14232)).default.createContext(null)},72957:(e,t,r)=>{"use strict";r.d(t,{A:()=>w,P:()=>b});var n=r(37876),i=r(14232),a=r(45105),s=r.n(a),o=r(51845),u=r(48505),l=r(80441),c=r(69641),d=r(84245),f=r(91797),p=r(10540),h=r(78757),m=r(48011),g=r(71106),y=r(72419),v=r(93915);(0,o.stub)("register","ramen_pianoflow");let _=(0,i.createContext)(null),b=()=>(0,i.useContext)(_);function w({children:e}){let{vertical:t}=(0,l.C)(),{isChromeless:r}=(0,m.d4)(({shared:e})=>e),a=r&&!!(h.A.getAndroidBridge()||h.A.getIosBridge()),b=(0,u.B0)(f.PIANO,t),E=b&&(0,u.B0)(f.PIANO,t),S=(0,i.useMemo)(()=>(0,g.mh)(t),[t]),T=S?`${g.TE}/xbuilder/experience/load?aid=${S}`:null,A=(0,p.hZ)(e=>e.authenticationState),O=(0,p.hZ)(e=>e.setAuthenticationModal),C=(0,p.hZ)(e=>e.showAuthenticationModal),k=(0,p.hZ)(e=>e.setAuthenticationModal),I=(0,p.hZ)(e=>e.piano_token),x=(0,p.hZ)(e=>e.showGate),N=(0,p.hZ)(e=>e.openCheckoutAuth),L=(0,p.hZ)(e=>e.markPianoCheckoutComplete),R=(0,p.hZ)(e=>e.markPianoTrackEventComplete),P=(0,p.hZ)(e=>e.user_id),D=(0,p.hZ)(e=>e.brand);(0,i.useEffect)(()=>{(0,o.stub)("register",b?"piano_event":"ramen_pianoflow")},[]);let M=(0,i.useCallback)(()=>{A===d.K_||C||k(!0)},[A,C,k]),{tpPush:U,setUserReference:j,waitForSDK:$}=y.A,[Z,V]=(0,i.useState)(!1),B=(0,p.hZ)(e=>e.waitForSubscriptionsAfterCheckout);(0,i.useEffect)(()=>{if(!E)return()=>{};let e=e=>{let t=e.data||{};if("OPEN_AUTH_MODAL"===t.type){window.tp?.modal?.close?.(),window.tp?.offer?.close?.();let{eventData:e}=t;if(a){if("free-account"===t.view)h.A.viewLoginFlow("article-gated-registration");else{let r=window.tp?.customVariables?.contentId||"";h.A.viewPaywall({source:t?.offerId||"",articleId:r,pianoParam:e})}return}N({screen:"log-in"===t.view?c.cq.LOGIN:c.cq.REGISTER})}if("CHECKOUT_COMPLETE"===t.type){L(),O(!1),window.tp?.experience?.execute&&window.tp.experience.execute();try{let{user:e}=p.hZ.getState();localStorage.setItem("piano_checkout_completed",JSON.stringify({ts:Date.now(),userId:e?.user_id??null}))}catch(e){}B()}if("TRACK_EVENT"===t.type)if(b){let e={eventName:t.eventName,eventData:t.eventData??{}};(0,o.stub)("track","piano_event",e),R()}else(0,o.stub)("track","ramen_pianoflow",e.payload),R()};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[E,M,P,D,O,L,R,N,B,b]),(0,i.useEffect)(()=>{b&&$().then(()=>{V(!0)})},[b]);let F=(0,p.hZ)(e=>e.suppressPianoExecute),z=(0,p.hZ)(e=>e.isCheckoutFlow),H=(0,i.useCallback)(e=>{!E||!Z||F||e&&e!==window.tp?.externalJWT&&(z&&(window.tp?.modal?.close?.(),window.tp?.offer?.close?.()),y.A.setUserAndReload(e))},[E,Z,F,z]),Y=(0,i.useCallback)(()=>{!E||!Z||F||document.querySelector(g.W5)&&y.A.reloadGate()},[E,Z,F]);(0,i.useEffect)(()=>{if(!E)return;let e=()=>{Y()};return window.addEventListener(g.Ni,e),()=>{window.removeEventListener(g.Ni,e)}},[E,Y]),(0,i.useEffect)(()=>{Y()},[Y]),(0,i.useEffect)(()=>{E&&Z&&((0,v.l)(U),H(I))},[E,Z,I,H]);let G=(0,p.hZ)(e=>e.hasAnyEntitlement);(0,i.useEffect)(()=>{if(!F&&A===d.K_&&Z&&!x&&window.__pendingCheckout&&window.tp?.externalJWT){if(G()){window.__pendingCheckout=null;return}window.postMessage("PIANO_USER_AUTHENTICATED","*")}},[A,I,Z,x,F,G]);let W=(0,i.useMemo)(()=>Object.freeze({pianoEnabled:E,push:U,setUserRef:j,authenticate:M,sdkReady:Z}),[E,U,j,M,Z]);return(0,n.jsxs)(n.Fragment,{children:[b&&T&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{id:"piano-pre",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:"window.tp = window.tp || [];"}}),(0,n.jsx)(s(),{id:"piano-runtime",strategy:"beforeInteractive",src:T})]}),(0,n.jsx)(_.Provider,{value:W,children:e})]})}},73074:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(92692)}])},73679:function(e){e.exports=function(e,t,r){var n=function(e){return e.add(4-e.isoWeekday(),"day")},i=t.prototype;i.isoWeekYear=function(){return n(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),"day");var t,i,a,s=n(this),o=(t=this.isoWeekYear(),a=4-(i=(this.$u?r.utc:r)().year(t).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(a+=7),i.add(a,"day"));return s.diff(o,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}},73716:(e,t,r)=>{"use strict";r.d(t,{Q6:()=>f,eD:()=>h});var n=r(13675),i=r(54955),a=r(47559),s=r(24091);let o="waffle/AUTOMATED_WAFFLE_FETCH_PENDING",u="waffle/AUTOMATED_WAFFLE_FETCH_SUCCESS",l="waffle/AUTOMATED_WAFFLE_FETCH_ERROR",c={items:[],aggregation:null,loading:!1,error:null,pagination:null,isInitialSet:!1},d=null;function f(e=c,{type:t,payload:r}){switch(t){case o:return{...e,loading:!0};case u:{let{data:{search:t=null}={}}=r||{};if(!t||!r)return{...e,loading:!1,error:Error("Fetching Waffle failed")};let{pagination:n,aggregation:i,items:a}=t;return{...e,pagination:n,aggregation:i,items:a,error:null,loading:!1,isInitialSet:!0,initialFilters:d||e.initialFilters}}case l:return{...e,pagination:null,aggregations:null,items:[],error:null,loading:!1,isInitialSet:!1};default:return e}}let p=(e,{value:t,name:r})=>{if(t){let t=e;return t+=t?" OR ":"",t+=`type:${r}`}return e},h=({vertical:e,metadata:t={},searchFilters:r=null,page:c=1,queryLimit:f=s.vq,initialFilters:h})=>
17{if(!(d=h||((e,t)=>{let{recipeContentType:r,slideshowContentType:n,productContentType:i,videoContentType:s,articleContentType:o,taxonomyTerms:u,excludeTaxonomyTerms:l}=e,c="";if(!(c=i?"type:product":[{value:r,name:"recipe"},{value:s,name:"video"},{value:n,name:"slideshow"},{value:o,name:"article"}].reduce(p,c)))return null;let d=[],f=`((${c}) AND publisher:${a.publisherNameMap[t]})`;if(d.push(f),u?.length){let e=u.filter(e=>!!e.taxonomyTerm).map(e=>`taxonomy:${e.taxonomyTerm}`);e.length&&d.push(`(${e.join(" OR ")})`)}if(l?.length){let e=l.filter(e=>!!e.excludeTaxonomyTerm).map(e=>`NOT taxonomy:${e.excludeTaxonomyTerm}`);e.length&&d.push(`(${e.join(" OR ")})`)}return d.push("NOT externalSource:Workbench"),d})(t,e)))return(0,i.A)(l);let m=[...d];r&&r.length&&r.forEach(e=>{m.push(`(taxonomy:${e.join(" OR taxonomy:")})`)});let g=`/waffle/automated?filters=${m.join(" AND ")}&size=${f}&page=${c}`;return(0,n.A)({endpoint:g,types:[o,u,l]})}},73963:e=>{var t,r,n=1/0,i=0/0,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=/^(?:0|[1-9]\d*)$/,c=parseInt;function d(e){return e!=e}var f=Object.prototype,p=f.hasOwnProperty,h=f.toString,m=f.propertyIsEnumerable,g=(t=Object.keys,r=Object,function(e){return t(r(e))}),y=Math.max,v=Array.isArray;function _(e){var t,r,n;return null!=e&&"number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=0x1fffffffffffff&&"[object Function]"!=(n=b(r=e)?h.call(r):"")&&"[object GeneratorFunction]"!=n}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){return!!e&&"object"==typeof e}e.exports=function(e,t,r,E){e=_(e)?e:function(e){return e?function(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}(_(e)?function(e){var t,r,n,i,a=v(e)||w(r=t=e)&&_(r)&&p.call(t,"callee")&&(!m.call(t,"callee")||"[object Arguments]"==h.call(t))?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],s=a.length,o=!!s;for(var u in e){p.call(e,u)&&!(o&&("length"==u||(n=u,(i=null==(i=s)?0x1fffffffffffff:i)&&("number"==typeof n||l.test(n))&&n>-1&&n%1==0&&n<i)))&&a.push(u)}return a}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||f))return g(e);var t,r,n=[];for(var i in Object(e))p.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e),function(t){return e[t]}):[]}(e),r=r&&!E?(A=(T=(S=r)?(S=function(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||w(t)&&"[object Symbol]"==h.call(t))return i;if(b(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=b(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=o.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}(S))===n||S===-n?(S<0?-1:1)*17976931348623157e292:S==S?S:0:0===S?S:0)%1,T==T?A?T-A:T:0):0;var S,T,A,O,C=e.length;return r<0&&(r=y(C+r,0)),"string"==typeof(O=e)||!v(O)&&w(O)&&"[object String]"==h.call(O)?r<=C&&e.indexOf(t,r)>-1:!!C&&function(e,t,r){if(t!=t){for(var n=e.length,i=r+-1;++i<n;)if(d(e[i]))return i;return -1}for(var a=r-1,s=e.length;++a<s;)if(e[a]===t)return a;return -1}(e,t,r)>-1}},74455:(e,t,r)=>{"use strict";r.d(t,{Lp:()=>s,d5:()=>l,vV:()=>u,qh:()=>c});var n=r(1658),i=r(19081),a=r(42060);function s(){let e=(0,a.Ri)("dd_debug_session"),t=!!e,r=!!(0,a.Ri)("dd_sample_session"),s=function({debugSession:e=!1,forceRumSampling:t=!1}={}){let{publicRuntimeConfig:{DD_RUM_APP_ID:r,DD_RUM_CLIENT_TOKEN:n,DD_RUM_SAMPLE_RATE:a,DD_RUM_SESSION_REPLAY_SAMPLE_RATE:s,DD_ENV:o,appVersion:u}}=(0,i.Ay)();return{applicationId:r||"41db0d73-b61c-47a2-8cc7-22fc31d40948",clientToken:n||"pub7f966390e40b86f9ca3ce812e183ad51",env:o||"dev",version:u||"",sessionSampleRate:e||t?100:a??10,sessionReplaySampleRate:e?100:s??0}}({debugSession:t,forceRumSampling:t||r});s.applicationId&&(n.L.init({...s,trackUserInteractions:!0,defaultPrivacyLevel:"mask-user-input",service:"ramen-frontend",allowedTracingUrls:[window.location.origin],trackResources:!0}),t&&(n.L.setUser({id:e??void 0,name:"debug-session"}),n.L.startSessionReplayRecording()))}function o(e){try{DD_RUM.onReady(()=>e(DD_RUM))}catch(e){console.error("Error attempting to log to Datadog:",e)}}function u(e,t){o(r=>r.addError(e,t))}function l(e,t){o(r=>r.addAction(e,t))}function c(e){o(t=>t.setGlobalContextProperty("ssrCorrelationId",e))}},74626:(e,t,r)=>{"use strict";r.d(t,{HN:()=>s,L2:()=>u});var n=r(54955);let i="video/CLEAR_ERROR",a="video/SET_ERROR";(0,n.A)(i);let s=(0,n.A)(a),o=!1,u=(e=o,t)=>{switch(t.type){case i:return!1;case a:return t.payload;default:return e}}},74817:(e,t,r)=>{"use strict";e.exports=r(43581)},74894:(e,t,r)=>{"use strict";var n,i;let a;
17Object.defineProperty(t,"__esModule",{value:!0}),t.discriminatedUnion=t.date=t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.ZodReadonly=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=void 0,t.datetimeRegex=L,t.custom=ev;let s=r(59534),o=r(83908),u=r(55909),l=r(92214),c=r(82075);class d{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let f=(e,t)=>{if((0,l.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new s.ZodError(e.common.issues);return this._error=t,this._error}}};function p(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??r??i.defaultError}},description:i}}class h{get description(){return this._def.description}_getType(e){return(0,c.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,c.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new l.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,c.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,l.isAsync)(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.getParsedType)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return f(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.getParsedType)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return(0,l.isValid)(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>(0,l.isValid)(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.getParsedType)(e)},n=this._parse({data:e,path:r.path,parent:r});return f(r,await ((0,l.isAsync)(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),a=()=>n.addIssue({code:s.ZodIssueCode.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eu({schema:this,typeName:n.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return el.create(this,this._def)}nullable(){return ec.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return H.create(this)}promise(){return eo.create(this,this._def)}or(e){return G.create([this,e],this._def)}and(e){return K.create(this,e,this._def)}transform(e){return new eu({...p(this._def),schema:this,typeName:n.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ed({...p(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:n.ZodDefault})}brand(){return new eh({typeName:n.ZodBranded,type:this,...p(this._def)})}catch(e){return new ef({...p(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:n.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return em.create(this,e)}readonly(){return eg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=h,t.Schema=h,t.ZodSchema=h;let m=/^c[^\s-]{8,}
17$/i,g=/^[0-9a-z]+$/,y=/^[0-9A-HJKMNP-TV-Z]{26}$/i,v=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,_=/^[a-z0-9_-]{21}$/i,b=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,w=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,E=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,S=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,T=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,A=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,O=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,C=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,k=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,I="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",x=RegExp(`^${I}$`);function N(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function L(e){let t=`${I}T${N(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class R extends h{_parse(e){var t,r,n,i;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==c.ZodParsedType.string){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.string,received:t.parsedType}),l.INVALID}let u=new l.ParseStatus;for(let d of this._def.checks)if("min"===d.kind)e.data.length<d.value&&(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{code:s.ZodIssueCode.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),u.dirty());else if("max"===d.kind)e.data.length>d.value&&(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{code:s.ZodIssueCode.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),u.dirty());else if("length"===d.kind){let t=e.data.length>d.value,r=e.data.length<d.value;(t||r)&&(o=this._getOrReturnCtx(e,o),t?(0,l.addIssueToContext)(o,{code:s.ZodIssueCode.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}):r&&(0,l.addIssueToContext)(o,{code:s.ZodIssueCode.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}),u.dirty())}else if("email"===d.kind)E.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"email",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty());else if("emoji"===d.kind)a||(a=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),a.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"emoji",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty());else if("uuid"===d.kind)v.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"uuid",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty());else if("nanoid"===d.kind)_.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"nanoid",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty());else if("cuid"===d.kind)m.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"cuid",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty());else if("cuid2"===d.kind)g.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"cuid2",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty());else if("ulid"===d.kind)y.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"ulid",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty());else if("url"===d.kind)try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"url",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty()}else"regex"===d.kind?(d.regex.lastIndex=0,d.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"regex",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty())):"trim"===d.kind?e.data=e.data.trim():"includes"===d.kind?e.data.includes(d.value,d.position)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{code:s.ZodIssueCode.invalid_string,validation:{includes:d.value,position:d.position},message:d.message}),u.dirty()):"toLowerCase"===d.kind?e.data=e.data.toLowerCase():"toUpperCase"===d.kind?e.data=e.data.toUpperCase():"startsWith"===d.kind?e.data.startsWith(d.value)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{code:s.ZodIssueCode.invalid_string,validation:{startsWith:d.value},message:d.message}),u.dirty()):"endsWith"===d.kind?e.data.endsWith(d.value)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{code:s.ZodIssueCode.invalid_string,validation:{endsWith:d.value},message:d.message}),u.dirty()):"datetime"===d.kind?L(d).test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{code:s.ZodIssueCode.invalid_string,validation:"datetime",message:d.message}),u.dirty()):"date"===d.kind?x.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{code:s.ZodIssueCode.invalid_string,validation:"date",message:d.message}),u.dirty()):"time"===d.kind?RegExp(`^${N(d)}$`).test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{code:s.ZodIssueCode.invalid_string,validation:"time",message:d.message}),u.dirty()):"duration"===d.kind?w.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"duration",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty()):"ip"===d.kind?(t=e.data,!(("v4"===(r=d.version)||!r)&&S.test(t)||("v6"===r||!r)&&A.test(t))&&1&&(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"ip",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty())):"jwt"===d.kind?!function(e,t){if(!b.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,d.alg)&&(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"jwt",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty()):"cidr"===d.kind?(n=e.data,!(("v4"===(i=d.version)||!i)&&T.test(n)||("v6"===i||!i)&&O.test(n))&&1&&
17(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"cidr",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty())):"base64"===d.kind?C.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"base64",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty()):"base64url"===d.kind?k.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,l.addIssueToContext)(o,{validation:"base64url",code:s.ZodIssueCode.invalid_string,message:d.message}),u.dirty()):c.util.assertNever(d);return{status:u.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:s.ZodIssueCode.invalid_string,...u.errorUtil.errToObj(r)})}_addCheck(e){return new R({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...u.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...u.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...u.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...u.errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...u.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...u.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...u.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...u.errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...u.errorUtil.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...u.errorUtil.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...u.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...u.errorUtil.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...u.errorUtil.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...u.errorUtil.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...u.errorUtil.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...u.errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...u.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...u.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...u.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...u.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...u.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...u.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...u.errorUtil.errToObj(t)})}nonempty(e){return this.min(1,u.errorUtil.errToObj(e))}trim(){return new R({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new R({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new R({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}t.ZodString=R,R.create=e=>new R({checks:[],typeName:n.ZodString,coerce:e?.coerce??!1,...p(e)});class P extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==c.ZodParsedType.number){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.number,received:t.parsedType}),l.INVALID}let r=new l.ParseStatus;for(let n of this._def.checks)"int"===n.kind?c.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.not_finite,message:n.message}),r.dirty()):c.util.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,u.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,u.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,u.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,u.errorUtil.toString(t))}setLimit(e,t,r,n){return new P({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:u.errorUtil.toString(n)}]})}_addCheck(e){return new P({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:u.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:u.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:u.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:u.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:u.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:u.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:u.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:u.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:u.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&c.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}t.ZodNumber=P,P.create=e=>new P({checks:[],typeName:n.ZodNumber,coerce:e?.coerce||!1,...p(e)});class D extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==c.ZodParsedType.bigint)return this._getInvalidInput(e);let r=new l.ParseStatus;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):c.util.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.bigint,received:t.parsedType}),l.INVALID}gte(e,t){return this.setLimit("min",e,!0,u.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,u.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,u.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,u.errorUtil.toString(t))}setLimit(e,t,r,n){return new D({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:u.errorUtil.toString(n)}]})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}
17positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:u.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:u.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:u.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:u.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:u.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}t.ZodBigInt=D,D.create=e=>new D({checks:[],typeName:n.ZodBigInt,coerce:e?.coerce??!1,...p(e)});class M extends h{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==c.ZodParsedType.boolean){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.boolean,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}t.ZodBoolean=M,M.create=e=>new M({typeName:n.ZodBoolean,coerce:e?.coerce||!1,...p(e)});class U extends h{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==c.ZodParsedType.date){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.date,received:t.parsedType}),l.INVALID}if(Number.isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_date}),l.INVALID}let r=new l.ParseStatus;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):c.util.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:u.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:u.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}t.ZodDate=U,U.create=e=>new U({checks:[],coerce:e?.coerce||!1,typeName:n.ZodDate,...p(e)});
17class j extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.symbol){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.symbol,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}t.ZodSymbol=j,j.create=e=>new j({typeName:n.ZodSymbol,...p(e)});class $ extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.undefined){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.undefined,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}t.ZodUndefined=$,$.create=e=>new $({typeName:n.ZodUndefined,...p(e)});class Z extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.null){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.null,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}t.ZodNull=Z,Z.create=e=>new Z({typeName:n.ZodNull,...p(e)});class V extends h{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,l.OK)(e.data)}}t.ZodAny=V,V.create=e=>new V({typeName:n.ZodAny,...p(e)});class B extends h{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,l.OK)(e.data)}}t.ZodUnknown=B,B.create=e=>new B({typeName:n.ZodUnknown,...p(e)});class F extends h{_parse(e){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.never,received:t.parsedType}),l.INVALID}}t.ZodNever=F,F.create=e=>new F({typeName:n.ZodNever,...p(e)});class z extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.undefined){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.void,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}t.ZodVoid=z,z.create=e=>new z({typeName:n.ZodVoid,...p(e)});class H extends h{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==c.ZodParsedType.array)return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.array,received:t.parsedType}),l.INVALID;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&((0,l.addIssueToContext)(t,{code:e?s.ZodIssueCode.too_big:s.ZodIssueCode.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&((0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&((0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new d(t,e,t.path,r)))).then(e=>l.ParseStatus.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new d(t,e,t.path,r)));return l.ParseStatus.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new H({...this._def,minLength:{value:e,message:u.errorUtil.toString(t)}})}max(e,t){return new H({...this._def,maxLength:{value:e,message:u.errorUtil.toString(t)}})}length(e,t){return new H({...this._def,exactLength:{value:e,message:u.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}t.ZodArray=H,H.create=(e,t)=>new H({type:e,minLength:null,maxLength:null,exactLength:null,typeName:n.ZodArray,...p(t)});class Y extends h{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=c.util.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==c.ZodParsedType.object){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.object,received:t.parsedType}),l.INVALID}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof F&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=n[e],i=r.data[e];
17o.push({key:{status:"valid",value:e},value:t._parse(new d(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof F){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&((0,l.addIssueToContext)(r,{code:s.ZodIssueCode.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=r.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new d(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>l.ParseStatus.mergeObjectSync(t,e)):l.ParseStatus.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return u.errorUtil.errToObj,new Y({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:u.errorUtil.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new Y({...this._def,unknownKeys:"strip"})}passthrough(){return new Y({...this._def,unknownKeys:"passthrough"})}extend(e){return new Y({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Y({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:n.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Y({...this._def,catchall:e})}pick(e){let t={};for(let r of c.util.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new Y({...this._def,shape:()=>t})}omit(e){let t={};for(let r of c.util.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new Y({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof Y){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=el.create(e(i))}return new Y({...t._def,shape:()=>r})}if(t instanceof H)return new H({...t._def,type:e(t.element)});if(t instanceof el)return el.create(e(t.unwrap()));if(t instanceof ec)return ec.create(e(t.unwrap()));if(t instanceof J)return J.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of c.util.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new Y({...this._def,shape:()=>t})}required(e){let t={};for(let r of c.util.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof el;)e=e._def.innerType;t[r]=e}return new Y({...this._def,shape:()=>t})}keyof(){return ei(c.util.objectKeys(this.shape))}}t.ZodObject=Y,Y.create=(e,t)=>new Y({shape:()=>e,unknownKeys:"strip",catchall:F.create(),typeName:n.ZodObject,...p(t)}),Y.strictCreate=(e,t)=>new Y({shape:()=>e,unknownKeys:"strict",catchall:F.create(),typeName:n.ZodObject,...p(t)}),Y.lazycreate=(e,t)=>new Y({shape:e,unknownKeys:"strip",catchall:F.create(),typeName:n.ZodObject,...p(t)});class G extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new s.ZodError(e.ctx.common.issues));return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union,unionErrors:r}),l.INVALID});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new s.ZodError(e));return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union,unionErrors:i}),l.INVALID}}get options(){return this._def.options}}t.ZodUnion=G,G.create=(e,t)=>
17new G({options:e,typeName:n.ZodUnion,...p(t)});let W=e=>{if(e instanceof er)return W(e.schema);if(e instanceof eu)return W(e.innerType());if(e instanceof en)return[e.value];if(e instanceof ea)return e.options;if(e instanceof es)return c.util.objectValues(e.enum);else if(e instanceof ed)return W(e._def.innerType);else if(e instanceof $)return[void 0];else if(e instanceof Z)return[null];else if(e instanceof el)return[void 0,...W(e.unwrap())];else if(e instanceof ec)return[null,...W(e.unwrap())];else if(e instanceof eh)return W(e.unwrap());else if(e instanceof eg)return W(e.unwrap());else if(e instanceof ef)return W(e._def.innerType);else return[]};class q extends h{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.ZodParsedType.object)return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.object,received:t.parsedType}),l.INVALID;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),l.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let i=new Map;for(let r of t){let t=W(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of t){if(i.has(n))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);i.set(n,r)}}return new q({typeName:n.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...p(r)})}}t.ZodDiscriminatedUnion=q;class K extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if((0,l.isAborted)(e)||(0,l.isAborted)(n))return l.INVALID;let i=function e(t,r){let n=(0,c.getParsedType)(t),i=(0,c.getParsedType)(r);if(t===r)return{valid:!0,data:t};if(n===c.ZodParsedType.object&&i===c.ZodParsedType.object){let n=c.util.objectKeys(r),i=c.util.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===c.ZodParsedType.array&&i===c.ZodParsedType.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===c.ZodParsedType.date&&i===c.ZodParsedType.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return i.valid?(((0,l.isDirty)(e)||(0,l.isDirty)(n))&&t.dirty(),{status:t.value,value:i.data}):((0,l.addIssueToContext)(r,{code:s.ZodIssueCode.invalid_intersection_types}),l.INVALID)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}t.ZodIntersection=K,K.create=(e,t,r)=>new K({left:e,right:t,typeName:n.ZodIntersection,...p(r)});class J extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.array)return(0,l.addIssueToContext)(r,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.array,received:r.parsedType}),l.INVALID;if(r.data.length<this._def.items.length)return(0,l.addIssueToContext)(r,{code:s.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.INVALID;!this._def.rest&&r.data.length>this._def.items.length&&((0,l.addIssueToContext)(r,{code:s.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new d(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>l.ParseStatus.mergeArray(t,e)):l.ParseStatus.mergeArray(t,n)}get items(){return this._def.items}
17rest(e){return new J({...this._def,rest:e})}}t.ZodTuple=J,J.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new J({items:e,typeName:n.ZodTuple,rest:null,...p(t)})};class X extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.object)return(0,l.addIssueToContext)(r,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.object,received:r.parsedType}),l.INVALID;let n=[],i=this._def.keyType,a=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new d(r,e,r.path,e)),value:a._parse(new d(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?l.ParseStatus.mergeObjectAsync(t,n):l.ParseStatus.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new X(t instanceof h?{keyType:e,valueType:t,typeName:n.ZodRecord,...p(r)}:{keyType:R.create(),valueType:e,typeName:n.ZodRecord,...p(t)})}}t.ZodRecord=X;class Q extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.map)return(0,l.addIssueToContext)(r,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.map,received:r.parsedType}),l.INVALID;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new d(r,e,r.path,[a,"key"])),value:i._parse(new d(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return l.INVALID;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return l.INVALID;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}t.ZodMap=Q,Q.create=(e,t,r)=>new Q({valueType:t,keyType:e,typeName:n.ZodMap,...p(r)});class ee extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.set)return(0,l.addIssueToContext)(r,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.set,received:r.parsedType}),l.INVALID;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&((0,l.addIssueToContext)(r,{code:s.ZodIssueCode.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&((0,l.addIssueToContext)(r,{code:s.ZodIssueCode.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return l.INVALID;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let o=[...r.data.values()].map((e,t)=>i._parse(new d(r,e,r.path,t)));return r.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new ee({...this._def,minSize:{value:e,message:u.errorUtil.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:u.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}t.ZodSet=ee,ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:n.ZodSet,...p(t)});class et extends h{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.ZodParsedType.function)return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.function,received:t.parsedType}),l.INVALID;function r(e,r){return(0,l.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,o.getErrorMap)(),o.defaultErrorMap].filter(e=>!!e),issueData:{code:s.ZodIssueCode.invalid_arguments,argumentsError:r}})}function n(e,r){return(0,l.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,o.getErrorMap)(),o.defaultErrorMap].filter(e=>!!e),issueData:{code:s.ZodIssueCode.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof eo){let e=this;return(0,l.OK)(async function(...t){let o=new s.ZodError([]),u=await e._def.args.parseAsync(t,i).c
17atch(e=>{throw o.addIssue(r(t,e)),o}),l=await Reflect.apply(a,this,u);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw o.addIssue(n(l,e)),o})})}{let e=this;return(0,l.OK)(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new s.ZodError([r(t,o.error)]);let u=Reflect.apply(a,this,o.data),l=e._def.returns.safeParse(u,i);if(!l.success)throw new s.ZodError([n(u,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:J.create(e).rest(B.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new et({args:e||J.create([]).rest(B.create()),returns:t||B.create(),typeName:n.ZodFunction,...p(r)})}}t.ZodFunction=et;class er extends h{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}t.ZodLazy=er,er.create=(e,t)=>new er({getter:e,typeName:n.ZodLazy,...p(t)});class en extends h{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{received:t.data,code:s.ZodIssueCode.invalid_literal,expected:this._def.value}),l.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ei(e,t){return new ea({values:e,typeName:n.ZodEnum,...p(t)})}t.ZodLiteral=en,en.create=(e,t)=>new en({value:e,typeName:n.ZodLiteral,...p(t)});class ea extends h{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,l.addIssueToContext)(t,{expected:c.util.joinValues(r),received:t.parsedType,code:s.ZodIssueCode.invalid_type}),l.INVALID}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,l.addIssueToContext)(t,{received:t.data,code:s.ZodIssueCode.invalid_enum_value,options:r}),l.INVALID}return(0,l.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ea.create(e,{...this._def,...t})}exclude(e,t=this._def){return ea.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}t.ZodEnum=ea,ea.create=ei;class es extends h{_parse(e){let t=c.util.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==c.ZodParsedType.string&&r.parsedType!==c.ZodParsedType.number){let e=c.util.objectValues(t);return(0,l.addIssueToContext)(r,{expected:c.util.joinValues(e),received:r.parsedType,code:s.ZodIssueCode.invalid_type}),l.INVALID}if(this._cache||(this._cache=new Set(c.util.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=c.util.objectValues(t);return(0,l.addIssueToContext)(r,{received:r.data,code:s.ZodIssueCode.invalid_enum_value,options:e}),l.INVALID}return(0,l.OK)(e.data)}get enum(){return this._def.values}}t.ZodNativeEnum=es,es.create=(e,t)=>new es({values:e,typeName:n.ZodNativeEnum,...p(t)});class eo extends h{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.ZodParsedType.promise&&!1===t.common.async)return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.promise,received:t.parsedType}),l.INVALID;let r=t.parsedType===c.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,l.OK)(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}t.ZodPromise=eo,eo.create=(e,t)=>new eo({type:e,typeName:n.ZodPromise,...p(t)});class eu extends h{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===n.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{(0,l.addIssueToContext)(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return l.INVALID;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?l.INVALID:"dirty"===n.status||"dirty"===t.value?(0,l.DIRTY)(n.value):n});{if("aborted"===t.value)return l.INVALID;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?l.INVALID:"dirty"===n.status||"dirty"===t.value?(0,l.DIRTY)(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?l.INVALID:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?l.INVALID:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>(0,l.isValid)(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):l.INVALID);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!(0,l.isValid)(e))return l.INVALID;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}c.util.assertNever(n)}}t.ZodEffects=eu,t.ZodTransformer=eu,eu.create=(e,t,r)=>new eu({schema:e,typeName:n.ZodEffects,effect:t,...p(r)}),eu.createWithPreprocess=(e,t,r)=>new eu({schema:t,effect:{type:"preprocess",transform:e},typeName:n.ZodEffects,...p(r)});class el extends h{_parse(e){return this._getType(e)===c.ZodParsedType.undefined?(0,l.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodOptional=el,el.create=(e,t)=>
17new el({innerType:e,typeName:n.ZodOptional,...p(t)});class ec extends h{_parse(e){return this._getType(e)===c.ZodParsedType.null?(0,l.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodNullable=ec,ec.create=(e,t)=>new ec({innerType:e,typeName:n.ZodNullable,...p(t)});class ed extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===c.ZodParsedType.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}t.ZodDefault=ed,ed.create=(e,t)=>new ed({innerType:e,typeName:n.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...p(t)});class ef extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return(0,l.isAsync)(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s.ZodError(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new s.ZodError(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}t.ZodCatch=ef,ef.create=(e,t)=>new ef({innerType:e,typeName:n.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...p(t)});class ep extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.nan){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:c.ZodParsedType.nan,received:t.parsedType}),l.INVALID}return{status:"valid",value:e.data}}}t.ZodNaN=ep,ep.create=e=>new ep({typeName:n.ZodNaN,...p(e)}),t.BRAND=Symbol("zod_brand");class eh extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}t.ZodBranded=eh;class em extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?l.INVALID:"dirty"===e.status?(t.dirty(),(0,l.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?l.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new em({in:e,out:t,typeName:n.ZodPipeline})}}t.ZodPipeline=em;class eg extends h{_parse(e){let t=this._def.innerType._parse(e),r=e=>((0,l.isValid)(e)&&(e.value=Object.freeze(e.value)),e);return(0,l.isAsync)(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function ey(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function ev(e,t={},r){return e?V.create().superRefine((n,i)=>{let a=e(n);if(a instanceof Promise)return a.then(e=>{if(!e){let e=ey(t,n),a=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:a})}});if(!a){let e=ey(t,n),a=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:a})}}):V.create()}t.ZodReadonly=eg,eg.create=(e,t)=>new eg({innerType:e,typeName:n.ZodReadonly,...p(t)}),t.late={object:Y.lazycreate},(i=n||(t.ZodFirstPartyTypeKind=n={})).ZodString="ZodString",i.ZodNumber="ZodNumber",i.ZodNaN="ZodNaN",i.ZodBigInt="ZodBigInt",i.ZodBoolean="ZodBoolean",i.ZodDate="ZodDate",i.ZodSymbol="ZodSymbol",i.ZodUndefined="ZodUndefined",i.ZodNull="ZodNull",i.ZodAny="ZodAny",i.ZodUnknown="ZodUnknown",i.ZodNever="ZodNever",i.ZodVoid="ZodVoid",i.ZodArray="ZodArray",i.ZodObject="ZodObject",i.ZodUnion="ZodUnion",i.ZodDiscriminatedUnion="ZodDiscriminatedUnion",i.ZodIntersection="ZodIntersection",i.ZodTuple="ZodTuple",i.ZodRecord="ZodRecord",i.ZodMap="ZodMap",i.ZodSet="ZodSet",i.ZodFunction="ZodFunction",i.ZodLazy="ZodLazy",i.ZodLiteral="ZodLiteral",i.ZodEnum="ZodEnum",i.ZodEffects="ZodEffects",i.ZodNativeEnum="ZodNativeEnum",i.ZodOptional="ZodOptional",i.ZodNullable="ZodNullable",i.ZodDefault="ZodDefault",i.ZodCatch="ZodCatch",i.ZodPromise="ZodPromise",i.ZodBranded="ZodBranded",i.ZodPipeline="ZodPipeline",i.ZodReadonly="ZodReadonly",t.instanceof=(e,t={message:`Input not instance of ${e.name}`})=>ev(t=>t instanceof e,t);let e_=R.create;t.string=e_;let eb=P.create;t.number=eb,t.nan=ep.create,t.bigint=D.create;let ew=M.create;t.boolean=ew,t.date=U.create,t.symbol=j.create,t.undefined=$.create,t.null=Z.create,t.any=V.create,t.unknown=B.create,t.never=F.create,t.void=z.create,t.array=H.create,t.object=Y.create,t.strictObject=Y.strictCreate,t.union=G.create,t.discriminatedUnion=q.create,t.intersection=K.create,t.tuple=J.create,t.record=X.create,t.map=
17Q.create,t.set=ee.create,t.function=et.create,t.lazy=er.create,t.literal=en.create,t.enum=ea.create,t.nativeEnum=es.create,t.promise=eo.create;let eE=eu.create;t.effect=eE,t.transformer=eE,t.optional=el.create,t.nullable=ec.create,t.preprocess=eu.createWithPreprocess,t.pipeline=em.create,t.ostring=()=>e_().optional(),t.onumber=()=>eb().optional(),t.oboolean=()=>ew().optional(),t.coerce={string:e=>R.create({...e,coerce:!0}),number:e=>P.create({...e,coerce:!0}),boolean:e=>M.create({...e,coerce:!0}),bigint:e=>D.create({...e,coerce:!0}),date:e=>U.create({...e,coerce:!0})},t.NEVER=l.INVALID},78095:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});let n={youtube:e=>({type:"embeddedWidget",widget:{...e,name:"youtubeplus"},presentation:{size:"medium"}}),tweet_embed:e=>({type:"embeddedWidget",widget:{...e,name:"tweetplus_embed"},presentation:{size:"medium"}}),facebook_embedded_post:e=>({type:"embeddedWidget",widget:{...e,name:"facebookplus_embedded_post",properties:{...e.properties,"facebookplus-post-url":e.properties["post-url"]}},presentation:{size:"medium"}}),instagram:e=>({type:"embeddedWidget",widget:{...e,name:"instagramplus"},presentation:{size:"medium"}})};function i(e){return"embeddedWidget"!==e.type?e:Object.entries(n[e.widget.name]?n[e.widget.name](e.widget):e).reduce((e,[t,r])=>{if(e[t]=r,"string"==typeof r)try{e[t]=decodeURIComponent(r)}catch(e){}return e},{})}},78757:(e,t,r)=>{"use strict";function n(e){return!function(e){if("isError"in Error&&"function"==typeof Error.isError)return Error.isError(e);if(e instanceof Error)return!0;let t=Object.prototype.toString.call(e);return"[object Error]"===t||"[object DOMException]"===t}(e)?null:e}r.d(t,{A:()=>i});let i={getAndroidBridge:()=>"u">typeof StoryJsInterface?StoryJsInterface:null,getIosBridge(){let{webkit:e}=window;return void 0!==e?e:null},trackPageView(e){let t=this.getAndroidBridge();if(t)try{return t.trackPageView(e),"android"}catch(e){return n(e)}let r=this.getIosBridge();if(r)try{return r.messageHandlers.trackPageView.postMessage(e),"ios"}catch(e){return n(e)}return null},viewShort(e,t){let r=this.getAndroidBridge();if(r)try{return r.viewShort(JSON.stringify({videoId:e,packageVideoIds:t})),"android"}catch(e){return n(e)}let i=this.getIosBridge();if(i)try{return i.messageHandlers.viewShort.postMessage(JSON.stringify({videoId:e,packageVideoIds:t})),"ios"}catch(e){return n(e)}return null},viewVideo(e){let t=this.getAndroidBridge();if(t)try{return t.viewVideo(e),"android"}catch(e){return n(e)}let r=this.getIosBridge();if(r)try{return r.messageHandlers.viewVideo.postMessage(e),"ios"}catch(e){return n(e)}return null},viewFullScreenLiveStream(e){if(e)try{return e.messageHandlers.viewFullScreenLiveStream.postMessage(""),"ios"}catch(e){return n(e)}return null},getVideoStatus:e=>{window.addEventListener("videoStatusChange",t=>{let r=t?.detail?.videoStatus;r&&e(r)})},playbackAction:e=>{window.addEventListener("requestPlaybackAction",t=>{let r=t?.detail?.playbackAction;r&&e(r)})},pipStatus(e){let t=this.getIosBridge();if(t)try{return t.messageHandlers.pipStatus.postMessage(e),"ios"}catch(e){return n(e)}return null},viewPaywall({source:e="",articleId:t="",pianoParam:r}){let i=JSON.stringify({source:e,articleId:t,...void 0!==r&&{pianoParam:r}}),a=this.getAndroidBridge();if(a)try{return a.viewPaywall(i),"android"}catch(e){return n(e)}let s=this.getIosBridge();if(s)try{return s.messageHandlers.viewPaywall.postMessage(i),"ios"}catch(e){return n(e)}return null},detectAppPlatform(){return this.getAndroidBridge()?"android":this.getIosBridge()?"ios":null},viewLoginFlow(e=""){let t=this.getAndroidBridge();if(t)try{return t.viewLoginFlow(e),"android"}catch(e){return n(e)}let r=this.getIosBridge();if(r)try{return r.messageHandlers.viewLoginFlow.postMessage(e),"ios"}catch(e){return n(e)}return null},viewSaveArticle(e,t=""){let r=JSON.stringify({contentType:e,source:t}),i=this.getAndroidBridge();if(i)try{return i.viewSaveArticle(r),"android"}catch(e){return n(e)}let a=this.getIosBridge();if(a)try{return a.messageHandlers.viewSaveArticle.postMessage(r),"ios"}catch(e){return n(e)}return null}}},78924:e=>{"use strict";e.exports=JSON.parse('{"ABCDEFGHIJKLMNOPQRSTUVWXYZ":"ABCDEFGHIJKLMNOPQRSTUVWXYZ","Ad Playing":"Ad Playing","Advert
17isement":"Advertisement","April":"April","Aug.":"Aug.","BREAKING":"BREAKING","BREAKING NEWS":"BREAKING NEWS","Best Of":"Best Of","By":"By","CLEAR":"CLEAR","CLEAR ALL":"CLEAR ALL","CONTENT BY STACKCOMMERCE":"CONTENT BY STACKCOMMERCE","Clear all":"Clear all","Clear filter":"Clear filter","Click to see more info":"Click to see more info","DEVELOPING":"DEVELOPING","DONE":"DONE","Dec.":"Dec.","ERROR_H1_403":"Forbidden","ERROR_H1_404":"Page Not Found","ERROR_H1_500":"Something Went Wrong","ERROR_TEXT_403":"You don\'t have access to this page. Get the latest from {{link}}.","ERROR_TEXT_404":"This page isn\'t available now. Get the latest from {{link}}.","ERROR_TEXT_500":"Access to {{link}} is temporarily unavailable. The problem will be resolved as soon as possible.","EVENT ENDED":"EVENT ENDED","English":"English","Feb.":"Feb.","Fulfilled by":"Fulfilled by","Get The Recipe":"Get The Recipe","Get the":"Get the","How can we improve this page?":"How can we improve this page?","IE11 ALERT":"IE 11 is not supported. For an optimal experience visit our site on another browser.","Images":"Images","Interests":"Interests","Invalid email":"Invalid email","Jan.":"Jan.","July":"July","June":"June","Just now":"Just now","Key Updates":"Key Updates","LIVE":"LIVE","LIVE COVERAGE":"LIVE COVERAGE","LIVE NOW":"LIVE NOW","Last updated ":"Last updated ","Latest":"Latest","Latest Video":"Latest Video","Less":"Less","Live":"Live","Live Blog":"Live Blog","Live Updates":"Live Updates","Load More":"Load More","Load More Posts":"Load More Posts","Loading":"Loading","Loading ...":"Loading ...","Local news around you":"Local news around you","MORE":"MORE","March":"March","May":"May","More":"More","NEW":"NEW","NEW_FEM_PLURAL":"NEW","NEW_FEM_SINGULAR":"NEW","NEW_MAS_PLURAL":"NEW","Next":"Next","No":"No","Non Broadcast Live Video":"Non Broadcast Live Video","Nope":"Nope","Nov.":"Nov.","Now Playing":"Now Playing","Oct.":"Oct.","Off":"Off","On the show":"On the show","Opinion":"Opinion","Options":"Options","Out of stock":"OUT OF STOCK","PAID CONTENT":"PAID CONTENT","PHOTOS":"PHOTOS","POST":"POST","POSTS":"POSTS","Paid Content":"Paid Content","Pinned":"Pinned","Play All":"Play All","Prev":"Prev","Price":"Price","Privacy Policy":"Privacy Policy","READ LESS":"READ LESS","READ MORE":"READ MORE","Rate your overall experience":"Rate your overall experience","Read":"Read","Recommended":"Recommended","Result":"Result","Results":"Results","SEE":"SEE","SEE ALL":"SEE ALL","SEE NEW":"SEE NEW","SEE_NEW_FEM_PLURAL":"SEE NEW","SEE_NEW_FEM_SINGULAR":"SEE NEW","SEE_NEW_MAS_PLURAL":"SEE NEW","SHOP":"SHOP","SHOPPING CONTENT BY STACKCOMMERCE":"SHOPPING CONTENT BY STACKCOMMERCE","SPONSORED":"SPONSORED","SUBSCRIBE":"SUBSCRIBE","Search":"Search","See All":"See All","See All From The Show":"See All From The Show","See local affiliates":"See local affiliates","See story":"See story","Sept.":"Sept.","Share this":"Share this","Sign Up":"Sign Up","Sign Up For Updates":"Sign Up For Updates","Skip to Content":"Skip to Content","Slideshow":"Slideshow","Source":"Source","Spanish":"Spanish","Sponsored By":"Sponsored By","Submit":"Submit","Tap to Unmute":"Tap to Unmute","Terms of Service":"Terms of Service","The page design helps me find other stories Iâm interested in":"The page design helps me find other stories Iâm interested in","The page design helps me find other videos Iâm interested in":"The page design helps me find other videos Iâm interested in","The page design helps me find the content Iâm interested in":"The page design helps me find the content Iâm interested in","The page design helps me understand the news":"The page design helps me understand the news","The page design makes the article easy to read":"The page design makes the article easy to read","The page design makes the video easy to watch":"The page design makes the video easy to watch","This ad will end in {{seconds}}":"This ad will end in {{seconds}}","This content was paid for by an advertiser and created by the NBC News Brand Studio. The NBC News editorial organization was not involved in its creation or production. This content represents the views and opinions of the advertiser, who is responsible for all of the material contained therein. Links are not endorsements by NBC News.":"This content was paid for by an advertiser and created by the NBC News Brand Studio. The NBC News editorial organization was not involved in its creation or production. This content represents the views and opinions of the advertiser, who is responsible for all of the material contained therein. Links are not endorsements by NBC News.","This site is protected by recaptcha":"This site is protected by recaptcha","Top Moments":"Top Moments","Top Stories":"Top Stories","Trending":"Trending","Trending Gift Guides":"Trending Gift Guides","UP NEXT":"UP NEXT","UPDATE":"UPDATE","UPDATES":"UPDATES","Updated":"Updated","Updated now":"Updated now","VIEW":"VIEW","Videos":"Videos","View the story on Storify":"View the story on Storify","View this graphic on":"View this graphic on","Want a response?":"Want a response?","Watch":"Watch","Watch More":"Watch More","We apologize, this video has expired.":"We apologize, this video has expired.","We apologize, we were unable to find your local news. Please try another location.":"We apologize, we were unable to find your local news. Please try another location.","What's this?":"What's this?","What\'s this?":"What\'s this?","Who":"Who","Yea":"Yea","Yes":"Yes","You have been successfully added to our newsletter":"You have been successfully added to our newsletter","Your Email Address":"Your Email Address","Your Video Begins in":"Your Video Begins in","Zip code here":"Zip code here","and":"and","copied!":"copied","developingStory":"This is a<1> developing </1>story. Please check back for updates.","in":"in","newsletter":"newsletter","photos":"photos","return to Home page":"return to Home page","time_ago":"{{time}} ago","unknown":"unknown","updated_time_ago":"Updated {{time}} ago"}')},79424:(e,t,r)=>{"use strict";r.d(t,{PK:()=>Z,RQ:()=>N,S6:()=>j,WO:()=>E,ff:()=>$,kE:()=>R,mu:()=>I,qL:()=>h,rQ:()=>b,yv:()=>x});var n=r(51802),i=r(88220).Buffer,a=Object.defineProperty,s=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?a(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r};
17class o extends Error{constructor({code:e,apiMessage:t,userMessage:r,status:n,context:i}){super(t),s(this,"status"),s(this,"code"),s(this,"api_message"),s(this,"user_message"),s(this,"context"),this.status=n||200,this.code=e,this.api_message=t,this.user_message=r,this.context=i}}let u={},l={nbcnews:"nbcnews.com",today:"today.com"};async function c(e){let{url:t}=e,r={method:"body"in e?e.method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}};"cookie"in e&&(r.headers={...r.headers,cookie:e.cookie}),"authorization"in e&&(r.headers={...r.headers,Authorization:e.authorization}),"body"in e&&(r.body=JSON.stringify(e.body));let n=new URLSearchParams(e.query).toString(),i=n?`${t}?${n}`:t,a=await fetch(`${function(){let{environment:e}=u;if(!e)return"";let t=u.brand??function(){let e="u">typeof window?window.location.hostname:"";for(let t of Object.keys(l)){let r=l[t];if(e===r||e.endsWith(`.${r}`))return t}}();if(!t)return"";let r=l[t];switch(e){case"staging":return`https://staging-ramen2.dev.${r}`;case"prod":return`https://www.${r}`}}()}/auth${i}`,r),s=await a.json();if(!s?.success||!("data"in s))throw function(e,t){let r=d.safeParse(e.error);if(r.success){let{code:e,api_message:n,user_message:i}=r.data;return new o({code:e,apiMessage:n,userMessage:i,status:t})}return new o({code:"UNKNOWN_ERROR",apiMessage:"An unknown error occurred.",userMessage:"An unexpected error occurred. Please try again later.",status:500,context:e})}(s,a.status);return e.responseSchema.parse(s?.data)}let d=n.Ik({code:n.Yj(),api_message:n.Yj(),user_message:n.Yj()});n.Ik({client_token:n.Yj(),expires_at:n.Yj().datetime({offset:!0}),scope:n.Yj(),token_type:n.Yj()});let f=n.Ik({name:n.Yj().default(""),description:n.Yj().default(""),plan_periods:n.YO(n.Yj()).catch([])}),p=n.YO(n.Ik({subscription_id:n.Yj().catch(""),product_name:n.Yj().catch(""),resource_id:n.Yj().catch(""),subscription_source:n.Yj().catch(""),subscription_status:n.Yj().catch(""),next_billing_date:n.vk(e=>{if("string"==typeof e){let t=e.match(/^(?<month>\d{2})-(?<day>\d{2})-(?<year>\d{4})$/);if(t?.groups){let{year:e,month:r,day:n}=t.groups;return`${e}-${r}-${n}T12:00:00.000+00:00`}}return e},n.Yj().datetime({offset:!0})),payment_method:n.Yj().catch(""),"billing-plan":n.Yj().catch(""),auto_renew:n.zM().catch(!1),term:f}));async function h(e){let{user_id:t,...r}=e;return await c({url:`/users/${t}/subscriptions`,body:r,method:"POST",responseSchema:p})}let m=n.Ik({access_token:n.Yj(),token_type:n.Yj(),expires_at:n.Yj().datetime({offset:!0}).pipe(n.au.date()),scope:n.Yj()});async function g(e){let{user_id:t,...r}=e;return await c({url:`/users/${t}/auth/token`,body:r,method:"POST",responseSchema:m})}let y=n.Ik({token:n.Yj()});async function v(e){let{user_id:t,...r}=e;return await c({url:`/users/${t}/auth/token/piano`,body:r,method:"POST",responseSchema:y})}async function _(e){if(window.cookieStore){let t=await window.cookieStore.get(e);return t?.value}return Promise.resolve(document.cookie.split("; ").find(t=>t.startsWith(`${e}=`))?.split("=")[1])}async function b(){let e=["access_token","user_name","SESSION","piano_token","nbc_news_subscriber","edge_entitlements","bedrock_entitlements","subscriptionPlan","start_today_subscriber"],t=function(e){if(!e||!e.includes(".")||/^(?:\d{1,3}\.){3}\d{1,3}$/.test(e)||e.includes(":"))return[];let t=e.split("."),r=[];for(let e=0;e<=t.length-2;e++)r.push(t.slice(e).join("."));return r}(window.location.hostname);window.cookieStore?await Promise.all(e.flatMap(e=>[window.cookieStore.delete(e),...t.map(t=>window.cookieStore.delete({name:e,domain:t,path:"/"}).catch(()=>{}))])):e.forEach(e=>{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`,t.forEach(t=>{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${t}`})})}let w=n.Ik({exp:n.ai(),sub:n.Yj().optional(),given_name:n.Yj().optional(),external_id:n.Yj().optional(),scope:n.Yj().optional(),brand:n.k5(["today","nbcnews"]).optional(),entitlements:n.Ik({StartToday:n.YO(n.Yj()).optional(),SUBS_NBCNEWS:n.YO(n.Yj()).optional()}).optional()});function E(e){try{return S(e)}catch{return}}function S(e){var t;let r=JSON.parse((t=String(e.split(".")[1]).replace(/-/g,"+").replace(/_/g,"/"),void 0!==i?i.from(t,"base64").toString("utf8"):atob(t)));return w.parse(r)}function T(e){if(e)try{return S(e)}catch{return}}function A(e){let{exp:t}=e;return Date.now()>=1e3*t}async function O(){let e=T(await _("access_token"));if(e&&!A(e))return e}async function C(){let e=await _("access_token");if(!e)throw new o({code:"UNAUTHORIZED",apiMessage:"No access token found. Please sign in.",status:401});let t=E(e);if(!t)throw new o({code:"UNAUTHORIZED",apiMessage:"Access token could not be parsed. Please sign in.",status:401});return{raw:e,parsed:t}}async function k(e){let t=await C();if(!t.parsed.sub)throw new o({code:"UNAUTHORIZED",apiMessage:"Access token is missing the required sub claim.",status:401});if(!t.parsed.brand)throw new o({code:"UNAUTHORIZED",apiMessage:"Access token is missing the required brand claim.",status:401});let r=A(t.parsed),n=!!e?.scope&&!t.parsed.scope?.includes(e.scope);if(r||n)try{await g({user_id:t.parsed.sub,brand:t.parsed.brand}),t=await C()}catch{}if(e?.scope&&!t.parsed.scope?.includes(e.scope))throw new o({code:"INSUFFICIENT_SCOPE",apiMessage:`A ${e.scope} scoped access token is required.`,status:403});let{sub:i,brand:a}=t.parsed;if(!i)throw new o({code:"INVALID_TOKEN",apiMessage:"Refreshed access token is missing the required sub claim.",status:401});if(!a)throw new o({code:"INVALID_TOKEN",apiMessage:"Refreshed access token is missing the required brand claim.",status:401});let s={...t.parsed,sub:i,brand:a};return{raw:t.raw,parsed:s}}function I(e){let{entitlements:t}=e;return{subscriptions:{nbcNews:t?.SUBS_NBCNEWS!==void 0,startToday:t?.StartToday!==void 0}}}async function x(e="array"){let t=await _("access_token");if(!t)return null;let r=E(t),n=r?.entitlements,i=[...n?.SUBS_NBCNEWS??[],...n?.StartToday??[]];return 0===i.length?null:"string"===e?i.join("|"):i}async function N(){var e,t;let r,n,i,a=await _("ng_geolocation"),s=new URLSearchParams(window.location.search).has("chromeless");if(!s&&"US"!==a)return void await b();let o=await _("access_token"),u=T(o);if(!u)return;if(s)return{accessToken:u,subscriptions:await _("subscriptionPlan"),pianoToken:await _("piano_token")};let l=!1;if(A(u)){let{brand:e,sub:t}=u;if(!t||!e)return void await b();await g({user_id:t,brand:e});let n=await O();if(!n)return;r=n,l=!0}else r=u;let c=(t=e=r,t.entitlements?.SUBS_NBCNEWS!==void 0||e.entitlements?.StartToday!==void 0);if(l){let{sub:e,brand:t}=r,a=await _("access_token");e&&t&&a&&(c&&(n=await h({user_id:e,access_token:a,brand:t})),i=(await v({user_id:e,brand:t})).token)}else if(!(i=await _("piano_token"))){let{sub:e,brand:t}=r;e&&t&&o&&!i&&(i=(await v({user_id:e,brand:t})).token)}return{accessToken:r,subscriptions:n,pianoToken:i}}let L=n.YO(n.Ik({category:n.eu("follow_topics_taxonomy"),values:n.YO(n.Yj())}));async function R(){let{raw:e,parsed:{sub:t,brand:r}}=await k();return await c({url:`/users/${t}/follow-topics`,body:{access_token:e,brand:r},method:"POST",responseSchema:L})}let P=n.Ik({zipcode:n.Yj().optional().catch(void 0)}),D=n.Ik({shows:n.YO(n.Yj()).catch([]),topics:n.YO(n.Yj()).catch([])});n.YO(n.gM("category",[n.Ik({category:n.eu("settings"),values:P,platform:n.Yj()}),n.Ik({category:n.eu("preferences"),values:D,platform:n.Yj()}),n.Ik({category:n.eu("alerts"),values:n.g1(n.Yj(),n.L5()),platform:n.Yj()})])),n.Ik({app_access:n.YO(n.Yj()),email:n.Yj().email(),features:n.YO(n.Yj()),id:n.Yj()}),n.Ik({first_name:n.Yj().nullish(),last_name:n.Yj().nullish(),gender:n.Yj().nullish(),birth_year:n.Yj().nullish(),phone_number:n.Yj().nullish(),address_line1:n.Yj().nullish(),address_line2:n.Yj().nullish(),zipcode:n.Yj().nullish(),state:n.Yj().nullish(),country:n.Yj().nullish(),user_id:n.Yj().nullish(),email:n.Yj().nullish()}),n.Ik({first_name:n.Yj().nullable(),last_name:n.Yj().nullable(),user_id:n.Yj(),access_token:n.Yj().nullable(),email_verified:n.zM(),message:n.Yj().nullable(),platform:n.Yj(),external_id:n.Yj()});let M=n.Ik({code:n.Yj(),api_message:n.Yj(),user_message:n.Yj(),retry:n.zM(),trace_id:n.Yj(),time_stamp:n.Yj()});n.Ik({success:n.zM(),data:n.Ik({access_token:n.Yj(),app_access:n.YO(n.Yj()),email_verified:n.zM(),external_id:n.Yj(),features:n.YO(n.Yj()),first_name:n.Yj(),last_name:n.Yj(),message:n.Yj(),platform:n.Yj(),user_id:n.Yj()}),error:M}),n.Ik({message:n.Yj()});let U=n.L5();async function j(){let{parsed:{sub:e,brand:t=""}}
17=await k();return await c({url:`/users/${e}/signout`,method:"POST",body:{brand:t},responseSchema:U})}async function $(e){let{raw:t,parsed:{sub:r,brand:n}}=await k({scope:"read_write"});return await c({url:`/users/${r}/follow-topics`,body:{access_token:t,brand:n,data:e.topics},method:"PUT",responseSchema:L})}async function Z(e){let{raw:t,parsed:{sub:r,brand:i}}=await k({scope:"read_write"});await c({url:`/users/${r}/preferences`,body:{access_token:t,brand:i??"",...e},method:"PATCH",responseSchema:n.L5()})}n.Ik({first_name:n.Yj().nullable(),last_name:n.Yj().nullable(),user_id:n.Yj(),access_token:n.Yj().nullable(),email_verified:n.zM(),message:n.Yj().nullable(),platform:n.Yj(),external_id:n.Yj()})},79593:(e,t,r)=>{"use strict";function n(){return void 0!==window.mParticle&&window.mParticle?.Identity?.getCurrentUser?.()?.getMPID?.()||""}r.d(t,{D:()=>n})},79706:(e,t,r)=>{"use strict";var n=r(3717);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,s){if(s!==n){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i}
17;return r.PropTypes=r,r}},80441:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});var n=r(14232),i=r(89830),a=r(44774);function s(){let e=(0,n.useContext)(i.O),t=e===a.BETTER,r=e===a.ENTRETENIMIENTO,s=e===a.EONLINE,o=e===a.MSNBC,u=e===a.NEWS,l=e===a.NOTICIAS,c=e===a.SHOWS,d=e===a.TELEMUNDO,f=e===a.THINK,p=e===a.TODAY;return{vertical:e,isBetter:t,isEntretenimiento:r,isEonline:s,isMsnbc:o,isNews:u,isNoticias:l,isShows:c,isTelemundo:d,isThink:f,isToday:p}}},80909:(e,t,r)=>{"use strict";r.d(t,{Gw:()=>I,LU:()=>T,UI:()=>P,Vm:()=>k,Yf:()=>S,Yl:()=>A,Zb:()=>C,iN:()=>x,oI:()=>N,rU:()=>O,v_:()=>M,xj:()=>R,z9:()=>L});var n=r(54955),i=r(13675),a=r(26364);let s="navbar/ACTIVATE",o="navbar/DEACTIVATE",u="navbar/SET_THEME",l="navbar/SET_HEADLINE",c="navbar/SET_SHORTCUT_VISIBLE",d="navbar/BULK_UPDATE",f="navbar/SET_INITIAL_LOCAL",p="navbar/SET_INITIAL_THEME",h="navbar/SET_DURATION",m="navbar/MINI_PLAYER_LOAD_PENDING",g="navbar/MINI_PLAYER_LOAD_COMPLETE",y="navbar/MINI_PLAYER_LOAD_FAILED",v="navbar/MOST_POPULAR_STORIES_LOAD_PENDING",_="navbar/MOST_POPULAR_STORIES_LOAD_FAILED",b="navbar/MOST_POPULAR_STORIES_LOAD_COMPLETE",w="navbar/MOST_POPULAR_SHOP_LOAD_COMPLETE",E="navbar/MOST_POPULAR_RECIPE_LOAD_COMPLETE",S=(0,n.A)(s),T=(0,n.A)(o),A=(0,n.A)(u),O=(0,n.A)(h),C=(0,n.A)(l),k=(0,n.A)(c),I=(0,n.A)(d),x=(0,n.A)(p),N=(0,n.A)(f),L=e=>(0,i.A)({endpoint:`miniPlayerTease/${e}`,types:[m,g,y],api:"services"}),R=({id:e,type:t})=>(0,i.A)({endpoint:`curatedList/${e}/2`,types:[v,"shop"===t?w:b,_]}),P=()=>(0,i.A)({endpoint:"/mostPopularRecipes/taxonomy?filters=type:recipe AND NOT taxonomy:today/recipeCategory/shoppable",types:[v,E,_]}),D={theme:"light",setDuration:null,hasGlobalInsert:!1,hasLocalInsert:!1,headline:null,active:!1,shortcutsVisible:!0,shareUrl:null,miniPlayerLoading:!1,miniPlayerLoaded:!1,miniplayerError:!1,miniPlayerData:{showTease:!1},read:[],shop:[],recipe:[],loading:!1,error:null},M=(e=D,{type:t,payload:r})=>{switch(t){case s:return{...e,active:!0};case o:return{...e,active:!1};case u:return{...e,theme:r};case h:return{...e,localAnimationDuration:r};case l:return{...e,headline:r};case c:return{...e,shortcutsVisible:r};case d:return{...e,...r};case f:{let{vertical:t,featureFlagQueryParam:n}=r,i=(0,a.M)(t,n);return{...e,hasLocalInsert:i}}case p:{let t="light";return["msnbc","noticias","deportes"].includes(r)?t="vertical":"today"===r&&(t="transparent"),{...e,theme:t}}case m:return{...e,miniPlayerLoading:!0};case g:return{...e,miniPlayerLoading:!1,miniPlayerLoaded:!0,miniPlayerData:r.data};case y:return{...e,miniPlayerLoading:!1,miniPlayerLoaded:!0,miniplayerError:!0};case v:return{...e,loading:!0};case b:{let{data:{curatedList:{content:{items:t}}}}=r;t.forEach((e,r)=>{let{headline:n,url:{primary:i}}=e;t[r]={...e,url:i,headline:n.primary||n.tease,contentType:"article"}});let n={items:[...t],title:"What to Read:",dataActivityMap:"trending-nav-general"};return{...e,mostPopular:{...e.mostPopular,read:{...n}},loading:!1}}case w:{let{data:{curatedList:{content:{items:t}}}}=r;t.forEach((e,r)=>{let{headline:n,url:{primary:i}}=e;t[r]={...e,url:i,headline:n.primary||n.tease,contentType:"article"}});let n={items:[...t],title:"What to Shop:",dataActivityMap:"trending-nav-shop"};return{...e,mostPopular:{...e.mostPopular,shop:n},loading:!1}}case E:{let{data:{search:{items:t}}}=r;t.forEach((e,r)=>{let{headline:{primary:n},url:{primary:i}}=e;t[r]={...e,url:i,headline:n,contentType:"recipe"}});let n={items:[...t],title:"What to Cook:",dataActivityMap:"trending-nav-recipe"};return{...e,mostPopular:{...e.mostPopular,recipe:n},loading:!1}}case _:return{...e,error:!0};default:return e}}},81645:(e,t,r)=>{"use strict";r.d(t,{G:()=>a,eq:()=>i});var n=r(86990);
17let i=n.ZS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class a extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof a))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}a.create=e=>new a(e)},82001:(e,t,r)=>{"use strict";r.d(t,{JG:()=>o,Q:()=>l,mB:()=>u});var n=r(13675),i=r(94937);let a=[],s={primary:"Recommended For You"},o=e=>(0,n.A)({endpoint:`playlist/${e}`,types:[i.am,i.sh,i.lo]}),u=(e,t="current")=>(0,n.A)({endpoint:`videos/${e.join(",")}`,types:[i.am,i.X4,i.lo],cacheKey:t}),l=(e=a,t)=>{let r=null;switch(t.payload&&({data:r}=t.payload),t.type){case i.sh:return[r.videoPlaylist];case i.nd:return[{...r.video.associatedVideoPlaylist,relatedUrl:r.video.relatedUrl}];case i.X4:return[{headline:s,videos:Object.values(r).filter(e=>e)}];default:return e}}},82075:(e,t)=>{"use strict";var r,n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.objectUtil=t.util=void 0,(i=r||(t.util=r={})).assertEqual=e=>{},i.assertIs=function(e){},i.assertNever=function(e){throw Error()},i.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},i.getValidEnumValues=e=>{let t=i.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return i.objectValues(r)},i.objectValues=e=>i.objectKeys(e).map(function(t){return e[t]}),i.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},i.find=(e,t)=>{for(let r of e)if(t(r))return r},i.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,i.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},i.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(n||(t.objectUtil=n={})).mergeShapes=(e,t)=>({...e,...t}),t.ZodParsedType=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),t.getParsedType=e=>{switch(typeof e){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return Number.isNaN(e)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":if(Array.isArray(e))return t.ZodParsedType.array;if(null===e)return t.ZodParsedType.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return t.ZodParsedType.promise;if("u">typeof Map&&e instanceof Map)return t.ZodParsedType.map;if("u">typeof Set&&e instanceof Set)return t.ZodParsedType.set;if("u">typeof Date&&e instanceof Date)return t.ZodParsedType.date;return t.ZodParsedType.object;default:return t.ZodParsedType.unknown}}},82780:(e,t,r)=>{var n,i="__lodash_hash_undefined__",a=1/0,s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=f||p||Function("return this")(),m=Array.prototype,g=Function.prototype,y=Object.prototype,v=h["__core-js_shared__"],_=(n=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(sr
17c)_1."+n:"",b=g.toString,w=y.hasOwnProperty,E=y.toString,S=RegExp("^"+b.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=h.Symbol,A=m.splice,O=D(h,"Map"),C=D(Object,"create"),k=T?T.prototype:void 0,I=k?k.toString:void 0;function x(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function N(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function L(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function R(e,t){for(var r,n,i=e.length;i--;){if(r=e[i][0],r===(n=t)||r!=r&&n!=n)return i}return -1}function P(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function D(e,t){var r,n,i,a=null==e?void 0:e[t];return!(!$(a)||(r=a,_&&_ in r))&&("[object Function]"==(i=$(n=a)?E.call(n):"")||"[object GeneratorFunction]"==i||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(a)?S:d).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(a))?a:void 0}x.prototype.clear=function(){this.__data__=C?C(null):{}},x.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},x.prototype.get=function(e){var t=this.__data__;if(C){var r=t[e];return r===i?void 0:r}return w.call(t,e)?t[e]:void 0},x.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:w.call(t,e)},x.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?i:t,this},N.prototype.clear=function(){this.__data__=[]},N.prototype.delete=function(e){var t=this.__data__,r=R(t,e);return!(r<0)&&(r==t.length-1?t.pop():A.call(t,r,1),!0)},N.prototype.get=function(e){var t=this.__data__,r=R(t,e);return r<0?void 0:t[r][1]},N.prototype.has=function(e){return R(this.__data__,e)>-1},N.prototype.set=function(e,t){var r=this.__data__,n=R(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},L.prototype.clear=function(){this.__data__={hash:new x,map:new(O||N),string:new x}},L.prototype.delete=function(e){return P(this,e).delete(e)},L.prototype.get=function(e){return P(this,e).get(e)},L.prototype.has=function(e){return P(this,e).has(e)},L.prototype.set=function(e,t){return P(this,e).set(e,t),this};var M=U(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Z(e))return I?I.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t);var t,r=[];return u.test(e)&&r.push(""),e.replace(l,function(e,t,n,i){r.push(n?i.replace(c,"$1"):t||e)}),r});function U(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s),s};return r.cache=new(U.Cache||L),r}U.Cache=L;var j=Array.isArray;function $(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Z(e){return"symbol"==typeof e||!!e&&"object"==typeof e&&"[object Symbol]"==E.call(e)}e.exports=function(e,t,r){var n=null==e?void 0:function(e,t){var r;t=!function(e,t){if(j(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||Z(e))||o.test(e)||!s.test(e)||null!=t&&e in Object(t)}(t,e)?j(r=t)?r:M(r):[t];for(var n=0,i=t.length;null!=e&&n<i;)e=e[function(e){if("string"==typeof e||Z(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t[n++])];return n&&n==i?e:void 0}(e,t);return void 0===n?r:n}},83815:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});let n=r(14232).createContext({domain:null,hostname:null,path:"/",ssrCorrelationId:null,statusCode:200})},83908:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultErrorMap=void 0,t.setErrorMap=function(e){a=e},t.getErrorMap=function(){return a};let i=n(r(26420));t.defaultErrorMap=i.default;let a=i.default},84245:(e,t,r)=>{"use strict";r.d(t,{Ax:()=>y,Fo:()=>E,GD:()=>S,G_:()=>m,Ip:()=>v,Iz:()=>s,K_:()=>o,UP:()=>c,bc:()=>g,fj:()=>h,mQ:()=>d,np:()=>b,pn:()=>
17_,tg:()=>l,wI:()=>f,y2:()=>p,zZ:()=>u});var n=r(48505),i=r(91797),a=r.n(i);let s="US",o="authenticated",u="unauthenticated",l="initialized",c="uninitialized",d="ng_geolocation",f="news",p="all",h="article",m="video",g="recipe",y="product",v=30,_={article:"articles",video:"videos",recipe:"recipes",product:"wishlist",all:""},b=Object.fromEntries(Object.entries(_).map(([e,t])=>[t,e])),w={article:"/articles",video:"/videos",recipe:"/recipes",product:"/wishlist"},E=(e,t="/profile/saved")=>`${t}${w[e]||""}`;function S(e=""){let t=("string"==typeof e?e:e?.vertical??"").trim().toLowerCase(),r=Number((0,n.B0)(a().BOOKMARKS_TO_DISPLAY,t)),i=Number(a().BOOKMARKS_TO_DISPLAY.default);return Number.isFinite(r)?r:i}},84308:function(e,t){var r,n,i;i=function(e,t){"use strict";function r(e){try{delete window[e]}catch(t){window[e]=void 0}}function n(e){var t=document.getElementById(e);t&&document.getElementsByTagName("head")[0].removeChild(t)}t.exports=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=e,a=t.timeout||5e3,s=t.jsonpCallback||"callback",o=void 0;return new Promise(function(u,l){var c=t.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),d=s+"_"+c;window[c]=function(e){u({ok:!0,json:function(){return Promise.resolve(e)}}),o&&clearTimeout(o),n(d),r(c)},i+=-1===i.indexOf("?")?"?":"&";var f=document.createElement("script");f.setAttribute("src",""+i+s+"="+c),t.charset&&f.setAttribute("charset",t.charset),t.nonce&&f.setAttribute("nonce",t.nonce),t.referrerPolicy&&f.setAttribute("referrerPolicy",t.referrerPolicy),t.crossorigin&&f.setAttribute("crossorigin","true"),f.id=d,document.getElementsByTagName("head")[0].appendChild(f),o=setTimeout(function(){l(Error("JSONP request to "+e+" timed out")),r(c),n(d),window[c]=function(){r(c)}},a),f.onerror=function(){l(Error("JSONP request to "+e+" failed")),r(c),n(d),o&&clearTimeout(o)}})}},r=[t,e],void 0===(n=i.apply(t,r))||(e.exports=n)},84513:(e,t,r)=>{"use strict";r.d(t,{$Z:()=>g,CZ:()=>m,b9:()=>E,d_:()=>_,n9:()=>w,ne:()=>v,yu:()=>y});var n=r(13675),i=r(13197),a=r(78095),s=r(9373);let o="article/RELATED_ARTICLE_FETCH_PENDING",u="article/RELATED_ARTICLE_FETCH_SUCCESS",l="article/RELATED_ARTICLE_FETCH_ERROR",c="mostPopularModule/MOST_POPULAR_STORIES_LOAD_PENDING",d="mostPopularModule/MOST_POPULAR_STORIES_LOAD_COMPLETE",f="mostPopularModule/MOST_POPULAR_STORIES_LOAD_FAILED",p="article/ARTICLE_LOAD_PENDING",h="article/ARTICLE_LOAD_COMPLETE",m="article/ARTICLE_LOAD_FAILED",g=(e,{additionalRequestData:t,omitCredentials:r,onResponse:i}={})=>(0,n.A)({endpoint:`article/${e}`,types:[p,h,m],additionalRequestData:t,omitCredentials:r,onResponse:i}),y=(e,{additionalRequestData:t}={})=>(0,n.A)({endpoint:`getStartTodayArticlePermissions/${e}`,types:["article/ARTICLE_PERMISSION_LOAD_PENDING","article/ARTICLE_PERMISSION_LOAD_COMPLETE","article/ARTICLE_PERMISSION_LOAD_FAILED"],additionalRequestData:t}),v=(e,t=10)=>(0,n.A)({endpoint:`curatedList/${e}/${t}`,types:[c,d,f]}),_=(e,t=10)=>(0,n.A)({endpoint:`curatedList/${e}/${t}`,types:["article/CURATED_LIST_LOAD_PENDING","article/CURATED_LIST_LOAD_COMPLETE","article/CURATED_LIST_LOAD_FAILED"]}),b={loading:!1,content:[],error:null,isNativeAd:!1,presentation:{},fetchingRelated:!1,relatedArticles:null};function w(e=b,t){switch(t.type){case p:return{...e,loading:!0};case h:{let r,{data:n,extensions:s}=t.payload,o=n?.article;if(!o)return{...e,loading:!1};return{...e,content:[(r=[],Array.isArray(o.body)&&o.body.forEach(e=>{try{let t=(0,a.Z)(e);if(!t)return;r.push(t)}catch(e){}}),{...o,body:r,documentTracing:(0,i.A)(o,s)})],loading:!1,isNativeAd:o.nativeAd,presentation:o?.presentation||{}}}case m:return{...e,loading:!1,error:t.payload};case s.g:{let r=t?.payload?.data?.search?.items?.[0]?.date?.publishedAt??null;if(r&&Array.isArray(e.content)&&e.content.length){let{content:t}=e;if(t[0]?.date?.publishedAt)return t[0].date.publishedAt=r,{...e,content:t}}return{...e}}case c:return{...e,isLoadingMostPopularStories:!0};case d:{let{data:r}=t.payload,n=r?.curatedList;if(!n)return{...e,isLoadingMostPopularStories:!1,mostPopularStoryList:[]};return{...e,mostPopularStoryList:n,isLoadingMostPopularStories:!1}}case f:return console.error("Could not retrieve stories for Most Popular Module"),{...e,isLoadingMostPopularStories:!1,mostPopularStoryList:[]};case o:return{...e,fetchingRelated:!0};case u:{let{data:{search:{items:r}}}=t.payload;return{...e,fetchingRelated:!1,relatedArticles:[...r.map(e=>({...e,url:{...e.url,primary:e?.url?.primary,short:e?.url?.short,slug:e?.url?.slug}}))]}}case l:return{...e,fetchingRelated:!1,error:t.payload};default:return e}}let E=e=>(({taxonomyPath:e,currentArticle:t,queryLimit:r},i)=>{if(!t||!e)return null;let a=["type:Article",`NOT id:${t}`,"NOT contentClassifications:SUBSCRIBER_ONLY",`taxonomy:${e}`,"autoCuration:true"],s=`/article/related?filters=${a.join(" AND ")}&size=${r}`;return(0,n.A)({endpoint:s,types:i})})(e,[o,u,l])},85190:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(10810);function i(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},85877:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(5130).A},86990:(e,t,r)=>{"use strict";var n,i,a;r.d(t,{CR:()=>o,ZS:()=>n,Zp:()=>s}
17),(a=n||(n={})).assertEqual=e=>{},a.assertIs=function(e){},a.assertNever=function(e){throw Error()},a.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},a.getValidEnumValues=e=>{let t=a.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return a.objectValues(r)},a.objectValues=e=>a.objectKeys(e).map(function(t){return e[t]}),a.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},a.find=(e,t)=>{for(let r of e)if(t(r))return r},a.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,a.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},a.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(i||(i={})).mergeShapes=(e,t)=>({...e,...t});let s=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),o=e=>{switch(typeof e){case"undefined":return s.undefined;case"string":return s.string;case"number":return Number.isNaN(e)?s.nan:s.number;case"boolean":return s.boolean;case"function":return s.function;case"bigint":return s.bigint;case"symbol":return s.symbol;case"object":if(Array.isArray(e))return s.array;if(null===e)return s.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return s.promise;if("u">typeof Map&&e instanceof Map)return s.map;if("u">typeof Set&&e instanceof Set)return s.set;if("u">typeof Date&&e instanceof Date)return s.date;return s.object;default:return s.unknown}}},88051:(e,t,r)=>{"use strict";r.d(t,{H:()=>a});var n=r(19081),i=r(97883);function a(){let{serverRuntimeConfig:{API_URL_BENTO_SERVER:e},publicRuntimeConfig:{API_URL_BENTO_PUBLIC:t}}=(0,n.Ay)(),r=(0,i.stripTrailingSlash)(e||t||null);if(!r)throw Error("API_URL_BENTO is not defined in runtime config");return r}},88220:e=>{var t={872:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=u(e),s=a[0],o=a[1],l=new i((s+o)*3/4-o),c=0,d=o>0?s-4:s;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===o&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===o&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],s=0,o=n-i;s<o;s+=16383)a.push(function(e,t,n){for(var i,a=[],s=t;s<n;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=a.length;s<o;++s)r[s]=a[s],n[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},230:function(e,t,r){"use strict";var n=r(872),i=r(321),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|p(n,i),u=s(a),l=u.write(n,i);return l!==a&&(u=u.slice(0,l)),u}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return o.from(c,t,r);var h=function(e){if(o.isBuffer(e)){var t=0|f(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(h)return h;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 16,509 bytes, line 17
17if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),s(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!o.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(l(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return c(e)},o.allocUnsafeSlow=function(e){return c(e)};function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(e).length;default:if(i)return n?-1:A(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,r){var i,a,s,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=x[e[a]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,a=t,s=r,0===a&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){var a;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var a,s=1,o=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(a=r;a<o;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*s}else -1!==c&&(a-=a-c),c=-1}else for(r+u>o&&(r=o-u),a=r;a>=0;a--){for(var d=!0,f=0;f<u;f++)if(l(e,a+f)!==l(t,f)){d=!1;break}if(d)return a}return -1}o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(I(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=o.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(I(a,Uint8Array)&&(a=o.from(a)),!o.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},o.byteLength=p,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):h.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,u=Math.min(a,s),l=this.slice(n,i),c=e.slice(t,r),d=0;d<u;++d)if(l[d]!==c[d]){a=l[d],s=c[d];break}return a<s?-1:+(s<a)},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function v(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,s,o,u,l=e[i],c=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r)switch(d){case 1:l<128&&(c=l);break;case 2:(192&(a=e[i+1]))==128&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[i+1],s=e[i+2],(192&a)==128&&(192&s)==128&&(u=(15&l)<<12|(63&a)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],(192&a)==128&&(192&s)==128&&(192&o)==128&&(u=(15&l)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}var f=n,p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var h="",m=0;m<p;)h+=String.fromCharCode.apply(String,f.slice(m,m+=4096));return h}function _(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function b(e,t,r,n,i,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function w(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,a){return t*=1,r>>>=0,a||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,a){return t*=1,r>>>=0,a||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,s,o,u,l,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var s=0;s<n;++s){var o,u=parseInt(t.substr(2*s,2),16);if((o=u)!=o)break;e[r+s]=u}return s}(this,e,t,r);case"utf8":case"utf-8":return i=t,a=r,k(A(e,this.length-i),this,i,a);case"ascii":return s=t,o=r,k(O(e),this,s,o);case"latin1":case"binary":return function(e,t,r,n){return k(O(t),e,r,n)}(this,e,t,r);case"base64":return u=t,l=r,k(C(e),this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,k(function(e,t){for(var r,n,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,o.prototype),n},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return(e>>>=0,t||_(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var a=1,s=0;for(this[t]=255&e;++s<r&&(a*=256);)this[t+s]=e/a&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var a=r-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<r&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=i-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=o.isBuffer(e)?e:o.from(e,n),u=s.length;
17if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%u]}return this};var T=/[^+/0-9A-Za-z-_]/g;function A(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function O(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function C(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(T,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var x=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},321:function(e,t){t.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,u=(1<<o)-1,l=u>>1,c=-7,d=r?i-1:0,f=r?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-c)-1,p>>=-c,c+=o;c>0;a=256*a+e[t+d],d+=f,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=n;c>0;s=256*s+e[t+d],d+=f,c-=8);if(0===a)a=1-l;else{if(a===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),a-=l}return(p?-1:1)*s*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var s,o,u,l=8*a-i-1,c=(1<<l)-1,d=c>>1,f=5960464477539062e-23*(23===i),p=n?0:a-1,h=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(s++,u/=2),s+d>=c?(o=0,s=c):s+d>=1?(o=(t*u-1)*Math.pow(2,i),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&o,p+=h,o/=256,i-=8);for(s=s<<i|o,l+=i;l>0;e[r+p]=255&s,p+=h,s/=256,l-=8);e[r+p-h]|=128*m}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}},s=!0;try{t[e](a,a.exports,n),s=!1}finally{s&&delete r[e]}return a.exports}n.ab="//",e.exports=n(230)},89830:(e,t,r)=>{"use strict";r.d(t,{O:()=>n});let n=r(14232).createContext("news")},90186:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,B:()=>n});let n=()=>!0,i={hasUserAgent:()=>"u">typeof navigator&&(navigator.userAgent||" "),isSafari(){if(this.hasUserAgent()){let e=navigator.userAgent.toLowerCase();return -1!==e.indexOf("safari")&&-1===e.indexOf("chrome")}return!1},isChrome(){if(this.hasUserAgent()){let e=navigator.userAgent.toLowerCase();return!!window.chrome&&-1!==e.indexOf("chrome")}return!1},isIE(){if(this.hasUserAgent()){let e=navigator.userAgent.toLowerCase();return e.indexOf("msie ")>-1||e.indexOf("trident/")>-1}return!1},isFirefox(){return!!this.hasUserAgent()&&navigator.userAgent.toLowerCase().includes("firefox")},version(){let e=this.hasUserAgent();if(e){let t=e.indexOf("Edge/");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);let r=e.match(/(?:version|chrome|firefox)\/(\d+)/i);if(r?.[1])return parseInt(r[1],10);let n=e.indexOf("MSIE ");if(n>0)return parseInt(e.substring(n+5,e.indexOf(".",n)),10);if(e.indexOf("Trident/")>0){let t=e.indexOf("rv:");return parseInt(e.substring(t+3,e.indexOf(".",t)),10)}}return -1},isAndroidWebView(){if("u">typeof navigator){let e=navigator.userAgent.toLowerCase();return e.includes("android")&&e.includes("wv")}return!1}}},90951:(e,t)=>{"use strict";t.q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},i=e.split(";"),a=(t||{}).decode||r,s=0;s<i.length;s++){var o=i[s],u=o.indexOf("=");if(!(u<0)){var l=o.substring(0,u).trim();if(void 0==n[l]){var c=o.substring(u+1,o.length).trim();'"'===c[0]&&(c=c.slice(1,-1)),n[l]=function(e,t){try{return t(e)}catch(t){return e}}(c,a)}}}return n},t.l=function(e,t,r){var a=r||{},s=a.encode||n;if("function"!=typeof s)throw TypeError("option encode is invali
17d");if(!i.test(e))throw TypeError("argument name is invalid");var o=s(t);if(o&&!i.test(o))throw TypeError("argument val is invalid");var u=e+"="+o;if(null!=a.maxAge){var l=a.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(l)}if(a.domain){if(!i.test(a.domain))throw TypeError("option domain is invalid");u+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw TypeError("option path is invalid");u+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invalid");u+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(u+="; HttpOnly"),a.secure&&(u+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var r=decodeURIComponent,n=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},91797:(e,t,r)=>{"use strict";let n=r(19081).Ay,i=n?.()?.publicRuntimeConfig?.ELECTIONS_NAV_2022_BASE_URL||"https://www.nbcnews.com/politics/2022-elections/recirc-nav/embed/borders",a=n?.()?.publicRuntimeConfig?.ELECTIONS_NAV_2024_BASE_URL||"https://www.nbcnews.com/politics/2024-elections/recirc-nav/embed/borders",s=n?.()?.publicRuntimeConfig?.ELECTIONS_NAV_2026_BASE_URL||"https://www.nbcnews.com/politics/2026-primary-elections/recirc-nav/embed/borders",o={teaseSaveEnabled:!1,saveButtonStyle:"withText",extendedAccountLinks:["subscription","preferences","history"],bookmark:{bookmarkText:"Your saved stories and videos",historyText:"Your recently viewed stories and videos",productText:"",enableLinks:!1},accountSaveButtonStyle:"contentTypeShape"};e.exports={RELATED_ARTICLE_BOTTOM_RECIRC:{default:!1,today:!0},AUTHOR_HUB:{default:null,msnbc:{url:"/opinion/columnists",text:"View All MSNBC Columnists"}},USE_MPX_VIDEO_PARAMS:{default:!1,shows:!0,noticias:!0,deportes:!0,localstationdeportes:!0,telemundo:!0,entretenimiento:!0},LINEAR_VIDEO_BANNER:{default:!0,noticias:!1,telemundo:!1,deportes:!1},AUTOPLAY_ARTICLE_HERO_VIDEOS:{default:!1,noticias:{autoplay:!0,chromelessAutoplay:!1,muted:!0},deportes:{autoplay:!0,chromelessAutoplay:!1,muted:!0},localstationdeportes:{autoplay:!0,chromelessAutoplay:!1,muted:!0},entretenimiento:{autoplay:!0,chromelessAutoplay:!1,muted:!0},shows:{autoplay:!0,chromelessAutoplay:!1,muted:!0},telemundo:{autoplay:!0,chromelessAutoplay:!1,muted:!0},news:{autoplay:!0,muted:!0},today:{autoplay:!0,muted:!0},better:{autoplay:!0,muted:!0},think:{autoplay:!0,muted:!0},mach:{autoplay:!0,muted:!0},msnbc:{autoplay:!0,muted:!0},select:{autoplay:!0,muted:!0}},AUTOPLAY_CANONICAL_VIDEOS_MUTED_ON_MOBILE:{default:!0,telemundo:!1},PRELOAD_FONT_FAMILY:{select:["Lato-Regular.","Lato-Bold.","Lato-Black."],today:["Prata-Regular","Mada-VariableFont_wght"],noticias:["FoundersGroteskMonoWeb-Regular","FoundersGroteskCondensedWeb-Semibold","PublicoHeadline-Light-Web","PublicoText-Roman-Web"],default:["FoundersGroteskMonoWeb-Regular","FoundersGroteskCondensedWeb-Semibold","PublicoHeadline-Light-Web"]},QUICK_LINKS:{default:!1,news:!0},ARTICLE_TAXONOMY_SECTION_NUMBERING:{default:!1,msnbc:["nbcnews/section/opinion"]},DEFAULT_LANGUAGE:{default:"en",entretenimiento:"es",deportes:"es",localstationdeportes:"es",noticias:"es",shows:"es",telemundo:"es"},ENABLE_MINI_TEASE:{default:!1,msnbc:{MsnbcTVE:{default:"MsnbcTVE",local:"MsnbcLive"}},news:{newsspecialreport:{default:"NewsNow",local:"NewsNow"},newsnow:{default:"NewsNow",local:"WatchNowTease"}},today:{todayallday:{default:"TodayAllDay",local:"TodayLive"}},noticias:{noticiasahora:{default:"NoticiasAhora",local:"NoticiasAhora"}},telemundo:{telemundoaldia:{default:"TelemundoAlDia",local:"TelemundoAlDia"}},deportes:{telemundodeportesahora:{default:"TelemundoDeportesAhora",local:"TelemundoDeportesAhora"}}},LOCAL_NAV_INSERT_OVERRIDE:{default:!1,noticias:!0,telemundo:!0,deportes:!0},ENABLE_NEWS_MEDIA_ORG_SCHEMA_TYPE:{default:!1,today:!0,msnbc:!0,news:!0,select:!0,telemundo:!0,noticias:!0,deportes:!0,entretenimiento:!0,shows:!0,localstationdeportes:!0},ENABLE_NEW_AUTHOR_PAGE_SEO:{default:!1,today:!0,msnbc:!0,news:!0},HIDE_TIMESTAMP_FOR_BREAKING_BIG_HEADLINE:{default:!1,msnbc:!0},LAYOUT_7_LEFT_COLUMNS_AT_LARGE_BREAKPOINT:{default:!1,entretenimiento:!0,shows:!0,telemund
17o:!0,today:!0},LD_JSON_RECIPE_CAROUSELS:{default:!1,today:!0},MOBILE_PLAYLIST_NUMBER_OF_VIDEOS:{default:6,noticias:20,deportes:20,localstationdeportes:20,entretenimiento:20,shows:20,telemundo:20},NL_SIGNUP_BUTTON_ANIMATED:{default:!0,select:!1},RECOMMENDATIONS_ENABLED:{default:!0,entretenimiento:!1,noticias:!1,deportes:!1,localstationdeportes:!1,shows:!1,telemundo:!1},REMOVE_NOW_PLAYING_VIDEO_FROM_PLAYLIST:{default:!1,entretenimiento:!0,noticias:!0,deportes:!0,localstationdeportes:!0,shows:!0,telemundo:!0},REORDER_PLAYLIST_SO_NEXT_VIDEO_IS_ALWAYS_AT_TOP:{default:!1,entretenimiento:!0,noticias:!0,deportes:!0,localstationdeportes:!0,shows:!0,telemundo:!0},SLIDESHOW_SCROLLABLE_TYPE:{default:!1,eonline:!0},TEASE_LIST_ALTERNATE_ITEM_DISPLAY:{default:!1,entretenimiento:!0,shows:!0,telemundo:!0,today:!0},TEASE_LIST_ROUND_IMAGES:{default:!1,entretenimiento:!0,shows:!0,telemundo:!0,today:!0},HIDE_GLOBAL_MENU_NAV:{default:!1,news:!0,sponsoredcontent:!0,today:!0,msnbc:!0},HIDE_GLOBAL_MENU_NAV_BY_ROUTE:{default:!1,telemundo:{url:["/canales-de-streaming-en-vivo"]}},UNIVERSAL_CHECKOUT_ENABLED:{default:!1},UNIVERSAL_CHECKOUT_WELLS_FARGO_BANNER:{default:!1},SLIDESHOW_TABOOLA_FEED:{default:!1,eonline:!0},TABOOLA_CUSTOM_PLACEMENT:{default:!1,entretenimiento:!0},TABOOLA_RECO_REEL:{default:!1,noticias:{onlyIfParagraphsCount:7,displayAfter:5,inverted:!1},deportes:{onlyIfParagraphsCount:7,displayAfter:5,inverted:!1},localstationdeportes:{onlyIfParagraphsCount:7,displayAfter:5,inverted:!1},entretenimiento:{onlyIfParagraphsCount:7,displayAfter:5,inverted:!1},shows:{onlyIfParagraphsCount:7,displayAfter:5,inverted:!1},telemundo:{onlyIfParagraphsCount:7,displayAfter:5,inverted:!1}},RENDER_SLIDESHOW_AS_COLLAGE_ON_COVER:{default:!0,news:!1}
17,APPLE_ITUNES_APP_ID:{default:null,telemundo:0x289110e0,deportes:0x28e6db1a,localstationdeportes:0x28e6db1a,noticias:0x3ecae216,shows:0x289110e0,entretenimiento:0x289110e0},LIVE_VIDEO_EMBED_LOGO:{default:!0},PLAYMAKER_ONLY_LIVE_LOGO:{default:!0,telemundo:!1,deportes:!1,localstationdeportes:!1,noticias:!1,shows:!1,entretenimiento:!1},ALLOW_EMBED_PIP_FULLSCREEN:{default:!1,telemundo:!0,deportes:!0,localstationdeportes:!0,noticias:!0,shows:!0,entretenimiento:!0},MYNEWS_ENABLED:{default:!1,news:{headerSaveButton:!0,...o},better:o,mach:o,select:o,think:o,today:{showBookmark:!0,teaseSaveEnabled:!0,saveButtonStyle:"contentTypeShape",extendedAccountLinks:["dashboard"],extendedContentTypes:["recipe","product"],bookmark:{bookmarkText:"Find recipes, stories and videos \n to populate your saved list",productText:"Discover new products, deals, and \n trending shopping news here!",enableLinks:!0},accountSaveButtonStyle:"contentTypeShape"}},TODAY_SMS_SIGNUP_ONBOARDING:{default:{enabled:!1},today:{enabled:!0}},HAS_SUBSCRIPTIONS:{default:!1,news:{hasSubscriptions:!0,subscriptionLink:"/profile/subscription"},today:{hasSubscriptions:!1}},BOOKMARKS_TO_DISPLAY:{default:20,news:24,today:20},SHOW_BLOGS:{msnbc:{"/rachel-maddow-show/maddowblog/":{frontRoute:"maddowblog",allPostsLink:"https://www.msnbc.com/maddowblog",allPostsText:"ALL MADDOWBLOG PO
17STS",ampArticleSubPath:"shows/maddow/blog/"},"/the-reidout/reidout-blog/":{frontRoute:"reidoutblog",allPostsLink:"https://www.msnbc.com/reidoutblog",allPostsText:"ALL REIDOUTBLOG POSTS",ampArticleSubPath:"shows/reidout/blog/"},"/deadline-white-house/deadline-legal-blog/":{frontRoute:"deadline-legal-blog",allPostsLink:"https://www.msnbc.com/deadline-legal-blog",allPostsText:"ALL DEADLINE: LEGAL POSTS",ampArticleSubPath:"shows/deadlinewhitehouse/blog/"},"/top-stories/latest/":{frontRoute:"top-stories",allPostsLink:"https://www.msnbc.com/top-stories",allPostsText:"LATEST",ampArticleSubPath:"shows/top-stories/blog/",pageNavigation:{hideTop:!0}}},news:{"/meet-the-press/meetthepressblog/":{frontRoute:"meetthepressblog",allPostsLink:"https://www.nbcnews.com/meetthepressblog",allPostsText:"LATEST POSTS",ampArticleSubPath:"shows/meetthepress/blog/"}}},PROCESS_TELEMUNDO_IMAGE:{default:!1,telemundo:!0,deportes:!0,localstationdeportes:!0,noticias:!0,shows:!0,entretenimiento:!0},ENABLE_ELECTIONS_NAV_THEME:{default:!1,news:{yearPosition:0,firecrackerEmbedURL:{2020:"https://www.nbcnews.com/politics/2020-elections/recirc-nav/embed/borders",2022:i,2024:a,2026:s}},noticias:{yearPosition:3,firecrackerEmbedURL:{2022:`${i}?brand=telemundo`,2024:`${a}?brand=telemundo`,2026:`${s}?brand=telemundo`}}},LIVEBLOG_DEEPLINK:{telemundo:"noticias",msnbc:"msnbc",default:"nbcnews"},UNIBROW_OVERRIDE:{select:{link:"https://www.nbcnews.com/select",text:"Shopping"},default:!1},ARTICLE_INLINE_NEWSLETTER:{default:!0,telemundo:!1,deportes:!1,localstationdeportes:!1,noticias:!1,shows:!1,entretenimiento:!1},MID_ARTICLE_NEWSLETTER:{default:!1,news:!0},AIRSHIP_WEB_NOTIFICATIONS:{default:void 0,msnbc:{all:{channelTag:"msnbc",cookie:"webNotifSoftOptin",optOutCountLocalStorageKey:"AirshipWebNotificationsOptOutCount",sdkPath:{test:"https://nodeassets.nbcnews.com/airship/msnbc/airshipSdk-green.js",prod:"https://nodeassets.nbcnews.com/airship/msnbc/airshipSdk-green.js"},softOptInDisplayDelay:8e3,softOptInDisplayInterval:[2,"week"],softOptInDisplayIntervals:[{optOutCount:1,interval:[2,"week"]},{optOutCount:2,interval:[2,"week"]},{optOutCount:3,interval:[2,"week"]}],softOptInMaxAskLimit:4}},today:{shop:{channelTag:"todayshop",cookie:"webNotifSoftOptinTodayShop",optOutCountLocalStorageKey:"AirshipWebNotificationsOptOutCountTodayShop",sdkPath:{test:"https://nodeassets.nbcnews.com/airship/today/test-snippet.js",prod:"https://nodeassets.nbcnews.com/airship/today/production-snippet.js"},softOptInDisplayDelay:8e3,softOptInDisplayInterval:[2,"week"],softOptInDisplayIntervals:[{optOutCount:1,interval:[2,"week"]},{optOutCount:2,interval:[2,"week"]},{optOutCount:3,interval:[2,"week"]}],softOptInMaxAskLimit:4}}},NEWSLETTER_SIGNUP_POPUP_MODULE:{default:!0,msnbc:!1,today:!1},MARQUEE_PUBLISHER:{telemundo:"telemundo",noticias:"telemundo",deportes:"telemundo",localstationdeportes:"telemundo",entretenimiento:"telemundo",shows:"telemundo",today:"today",msnbc:"msnbc",default:"nbcnews"},QUERYLY_SEARCH_METADATA:{default:!1,today:!0},CURATOR_AD_PLACEHOLDER:{default:!1,today:!0},FLUID_WIDTH_FRONT:{default:!1,today:!0},UP_PKG_PAID_ENABLED:{default:!0,today:!1,sponsoredcontent:!1},ENABLE_RETINA:{default:!1,today:!0,select:!0},HAS_BACON_VIDEO_PLAYLISTS:{default:!1,today:!0},HAS_CUSTOM_TITLE:{today:!0,deault:!1},ARTICLE_HERO_LAYOUT:{default:{default:!0},today:{wide:!0}},ADDITIONAL_SELLERS:{default:!1,today:!0,select:!0},BUTTON_TYPE:{default:"button-hover-animation",today:"button-tilt"},TXT_IMG_TANDEM_HOVER:{default:!1,today:!0},EMAIL_PLACEHOLDER_TXT:{default:"Enter your email",today:"Your email address"},RENDER_SHORT_BIO:{default:!1,news:!0,msnbc:!1,today:!0,select:!0},SHOW_USER_ACTIONS:{default:!1,news:{hideFromChromeless:!0},today:{showPinterest:!0}},USER_ACTIONS_BELOW_ARTICLE:{default:!1,news:!0,select:!0,today:!0},MOBILE_CAROUSEL_DRAWER:{default:!1,today:!0},GATED_CONTENT:{default:!1,today:!0},MOST_POPULAR_MODULE_BRAND_CONFIG:{default:!1,news:!0},SHOW_MOBILE_WEB_NAV:{default:!1,today:!0,news:!0},SHOW_2x3_CARD_GRADIENT:{default:!0,today:!1},SHOW_2x3_BUTTON_CARET:{default:!1,today:!0},AUTHOR_FEED_UNDERLINE_VARIANT:{default:!1,today:!0},AUTHOR_FEED_TEASE_VARIANT:{default:!1,today:!0},SEE_MORE_BUTTON:{default:!1,today:!0},PRODUCT_WAFFLE_DISCLAIMER_LINK:{today:"https://www.today.com/shop/everything-you
17-need-know-about-shop-today-t161374",select:"https://www.nbcnews.com/select/shopping/about-ncna1280612",default:""},UPDATED_CANONICAL_VIDEO:{default:!1,today:!0},CARD_SHARE_THIS:{default:!0,today:!1},CANONICAL_VIDEO_SHARE_THIS:{default:!1,msnbc:!0,noticias:!0,deportes:!0,localstationdeportes:!0,entretenimiento:!0,shows:!0,telemundo:!0},ARTICLE_PINTEREST:{default:!1,today:!0},TRENDING_NAV:{default:!1,today:!0},NEWSARTICLE_LDJSON_DATES:{default:!1,noticias:!0,deportes:!0,localstationdeportes:!0,entretenimiento:!0,shows:!0,telemundo:!0},NEWSARTICLE_PRIMARY_IMAGE_OF_PAGE:{default:!1,news:!0,select:!0,today:!0},PIANO:{default:!1,today:!0,news:!0},HIDE_TABOOLA_ADS:{default:!1,news:!0,better:!0,mach:!0,select:!0,think:!0},HIDE_GAMMA_DATE:{default:!1,noticias:!0,deportes:!0,localstationdeportes:!0,entretenimiento:!0,shows:!0,telemundo:!0},ADD_TO_GOOGLE:{default:{enabled:!1,text:"",href:""},news:{enabled:!0,text:"Add to Google",href:"https://www.google.com/preferences/source?q=nbcnews.com"},today:{enabled:!0,text:"Add to Google",href:"https://www.google.com/preferences/source?q=today.com"}}}},92214:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.EMPTY_PATH=t.makeIssue=void 0,t.addIssueToContext=function(e,r){let n=(0,i.getErrorMap)(),s=(0,t.makeIssue)({issueData:r,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===a.default?void 0:a.default].filter(e=>!!e)});e.common.issues.push(s)};let i=r(83908),a=n(r(26420));t.makeIssue=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}},t.EMPTY_PATH=[];class s{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if("aborted"===i.status)return t.INVALID;"dirty"===i.status&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return s.mergeObjectSync(e,r)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:r,value:a}=i;if("aborted"===r.status||"aborted"===a.status)return t.INVALID;"dirty"===r.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"!==r.value&&(void 0!==a.value||i.alwaysSet)&&(n[r.value]=a.value)}return{status:e.value,value:n}}}t.ParseStatus=s,t.INVALID=Object.freeze({status:"aborted"}),t.DIRTY=e=>({status:"dirty",value:e}),t.OK=e=>({status:"valid",value:e}),t.isAborted=e=>"aborted"===e.status,t.isDirty=e=>"dirty"===e.status,t.isValid=e=>"valid"===e.status,t.isAsync=e=>"u">typeof Promise&&e instanceof Promise},92692:(e,t,r)=>{"use strict";let n;r.r(t),r.d(t,{default:()=>t7});var i,a,s,o,u,l,c,d={};r.r(d),r.d(d,{admantx:()=>e8,entitlements:()=>e7,xfinity:()=>tr});var f=r(37876),p=r(18847),h=r.n(p),m=r(19081),g=r(14232),y=r(10958);function v(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(i){return"function"==typeof i?i(r,n,e):t(i)}}}}var _=v();_.withExtraArgument=v;var b=r(48011),w=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),E=function(){return(E=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},S=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{u(n.next(e))}catch(e){a(e)}}function o(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}u((n=n.apply(e,t||[])).next())})},T=function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){var u=[a,o];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(6===u[0]&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},A=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},O="__NEXT_REDUX_WRAPPER_HYDRATE__",C=function(){return"u"<typeof window},k=function(e,t){var r=(void 0===t?{}:t).deserializeState;return r?r(e):e},I=function(e,t){var r=(void 0===t?{}:t).serializeState;return r?r(e):e},x=function(e){var t=e.makeStore,r=e.context,n=function(){return t(r)};if(C()){var i=void 0;return(r.req&&(i=r.req),r.ctx&&r.ctx.req&&(i=r.ctx.req),i)?(i.__nextReduxWrapperStore||(i.__nextReduxWrapperStore=n()),i.__nextReduxWrapperStore):n()}return c||(c=n()),c};let N={slots:[],articleHeight:50};var L=r(84513),R=r(55032),P=r(71473),D=r(9373),M=r(13923),U=r(32632),j=r(80909),$=r(13192),Z=r(4218),V=r(45812),B=r(34598),F=r(45689),z=r(54955);let H="router/GLOBAL_LOAD_PENDING",Y="router/GLOBAL_LOAD_COMPLETE",G="route/SET_STATUS_PAGE_NOT_FOUND";(0,z.A)(H);let W=(0,z.A)(Y);(0,z.A)(G);let q={domain:null,error:null,host:null,loaded:!1,navigating:!1,path:"/",status:200};var K=r(11426),J=r(40778),X=r(8603),Q=r(34875),ee=r(62550),et=r(7885),er=r(73716);let en=(0,y.HY)({adTest:function(e=N){return e},article:L.n9,front:R.Wm,layout:P.Zp,liveBlog:D.Jt,localnews:M.D4,menu:U.W1,navbar:j.v_,newsletter:$.I,person:Z.MV,product:V.qM,profileFeed:B.eD,recipe:F.hU,router:(e=q,{payload:t,type:r})=>{switch(r){case R.vg:case L.CZ:case F.zL:return{...e,status:t.status};case H:return{...e,navigating:!0};case Y:return{...e,navigating:!1,path:t.path,domain:t.domain,status:t.status||e.status,host:t.host};case G:return{...e,status:404};default:return e}},schedule:X._,shared:K.ue,showBlog:J.iK,slideshow:Q.bW,tve:ee.oe,video:et.Ki,waffle:er.Q6}),{DISABLE_REDUX_LOGGING:ei,NODE_ENV:ea}=r(65364).env,es=(e,t)=>t.type===O?{...e,...t.payload}:en(e,t),eo=(a=()=>{let e=[_];return(0,y.y$)(es,(e=>{if("production"!==ea&&"false"===ei){let{createLogger:t}=r(51930);return e.push(t({collapsed:!0})),(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||r(10958).Zz)((0,y.Tw)(...e))}return(0,y.Tw)(...e)})(e))},s={debug:!1},o=function(e){var t=e.callback,r=e.context;return S(void 0,void 0,void 0,function(){var e,n,i,o,u;return T(this,function(l){switch(l.label){case 0:if(e=x({context:r,makeStore:a}),s.debug&&console.log("1. getProps created store with state",e.getState()),!(o=n=t&&t(e)))return[3,2];return[4,n(r)];case 1:o=l.sent(),l.label=2;case 2:return i=o||{},s.debug&&console.log("3. getProps after dispatches has store state",e.getState()),u=e.getState(),[2,{initialProps:i,initialState:C()?I(u,s):u}]}})})}
17,{getServerSideProps:function(e){return function(t){return S(void 0,void 0,void 0,function(){return T(this,function(r){switch(r.label){case 0:return[4,u(e)(t)];case 1:return[2,r.sent()]}})})}},getStaticProps:u=function(e){return function(t){return S(void 0,void 0,void 0,function(){var r,n,i;return T(this,function(a){switch(a.label){case 0:return[4,o({callback:e,context:t})];case 1:return n=(r=a.sent()).initialProps,i=r.initialState,[2,E(E({},n),{props:E(E({},n.props),{initialState:i})})]}})})}},getInitialAppProps:function(e){return function(t){return S(void 0,void 0,void 0,function(){var r,n,i;return T(this,function(a){switch(a.label){case 0:return[4,o({callback:e,context:t})];case 1:return n=(r=a.sent()).initialProps,i=r.initialState,[2,E(E({},n),{initialState:i})]}})})}},getInitialPageProps:function(e){return function(t){return S(void 0,void 0,void 0,function(){return T(this,function(r){return"getState"in t?[2,e&&e(t)]:[2,o({callback:e,context:t})]})})}},withRedux:function(e){var t,r="withRedux("+(e.displayName||e.name||"Component")+")",n="getInitialProps"in e;return(t=function(t){function n(e,r){var n=t.call(this,e,r)||this;return n.store=null,n.hydrate(e,r),n}return w(n,t),n.prototype.hydrate=function(e,t){var n,i=e.initialState,o=(e.initialProps,A(e,["initialState","initialProps"])),u=null==(n=null==o?void 0:o.pageProps)?void 0:n.initialState;!this.store&&(this.store=x({makeStore:a,context:t}),s.debug&&console.log("4. WrappedApp created new store with",r,{initialState:i,initialStateFromGSPorGSSR:u})),i&&this.store.dispatch({type:O,payload:k(i,s)}),u&&this.store.dispatch({type:O,payload:k(u,s)})},n.prototype.shouldComponentUpdate=function(e,t,r){var n,i,a,s;return((null==(n=null==e?void 0:e.pageProps)?void 0:n.initialState)!==(null==(a=null==(i=this.props)?void 0:i.pageProps)?void 0:a.initialState)||(null==e?void 0:e.initialState)!==(null==(s=this.props)?void 0:s.initialState))&&this.hydrate(e,r),!0},n.prototype.render=function(){var t,r,n=this.props,i=(n.initialState,n.initialProps),a=A(n,["initialState","initialProps"]),s=a;return i&&i.pageProps&&(s.pageProps=E(E({},i.pageProps),a.pageProps)),(null==(t=null==a?void 0:a.pageProps)?void 0:t.initialState)&&(s=E(E({},a),{pageProps:E({},a.pageProps)}),delete s.pageProps.initialState),(null==(r=null==s?void 0:s.pageProps)?void 0:r.initialProps)&&(s.pageProps=E(E({},s.pageProps),s.pageProps.initialProps),delete s.pageProps.initialProps),g.createElement(b.Kq,{store:this.store},g.createElement(e,E({},i,s)))},n}(g.Component)).displayName=r,t.getInitialProps=n?e.getInitialProps:void 0,t}});var eu=r(85877),el=r(5130),ec=r(26252),ed=(l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ef=function(e){function t(t){var r=e.call(this,t)||this;return t.cookies?r.cookies=t.cookies:r.cookies=new el.A,r}return ed(t,e),t.prototype.render=function(){return g.createElement(ec.Kq,{value:this.cookies},this.props.children)},t}(g.Component),ep=r(95062),eh=r.n(ep),em=r(73963),eg=r.n(em),ey=r(91797),ev=r(48505),e_=r(99829),eb=r(53073),ew=r(62336),eE=r(38883),eS=r(5618);let eT=RegExp("/embedded-newsletter/|/embedded-pkg|/embedded-video|/playmaker/");async function eA(e){return await Promise.all((e?.marquees||[]).map(async e=>{!e.hidden&&"embed"===e.marqueeType&&e.embed?.url&&function(e){try{let t=new URL(e);return"true"===t.searchParams.get("inline-contents")}catch{return!1}}(e.embed.url)&&(e.embed.preloadedHtml=await fetch(e.embed.url).then(e=>e.text()).catch(()=>void 0))})),e}for(var eO=r(74455),eC="visibilityChange",ek="enterViewport",eI="fullyEnterViewport",ex="exitViewport",eN="partiallyExitViewport",eL="locationChange",eR="stateChange",eP=[eC,ek,eI,ex,eN,eL,eR],eD="u"<typeof window,eM=!eD,eU={top:0,bottom:0},ej=function(){function e(e,t,r){this.container=e,this.watchItem=t,this.locked=!1,this.callbacks={};var n,i,a,s,o,u,l=this;r?"number"==typeof r?this.offsets={top:r,bottom:r}:this.offsets={top:"top"in r?r.top:eU.top,bottom:"bottom"in r?r.bottom:eU.bottom}:this.offsets=eU;for(var c=0,d=eP.length;c<d;c++)l.callbacks[eP[c]]=[];this.locked=!1;var f=!1;function p(e,t){if(f=!0,0!==e.length)for(o=e.length;o--;
17)(u=e[o]).callback.call(l,t,l),u.isOne&&e.splice(o,1)}this.triggerCallbacks=function(e){this.isInViewport&&!n&&p(this.callbacks[ek],e),this.isFullyInViewport&&!i&&p(this.callbacks[eI],e),this.isAboveViewport!==a&&this.isBelowViewport!==s&&(p(this.callbacks[eC],e),i||this.isFullyInViewport||(p(this.callbacks[eI],e),p(this.callbacks[eN],e)),n||this.isInViewport||(p(this.callbacks[ek],e),p(this.callbacks[ex],e))),!this.isFullyInViewport&&i&&p(this.callbacks[eN],e),!this.isInViewport&&n&&p(this.callbacks[ex],e),this.isInViewport!==n&&p(this.callbacks[eC],e),f&&(f=!1,p(this.callbacks[eR],e)),n=this.isInViewport,i=this.isFullyInViewport,a=this.isAboveViewport,s=this.isBelowViewport},this.recalculateLocation=function(){if(!this.locked){var e=this.top,t=this.bottom;if(this.watchItem.nodeName){var r=this.watchItem.style.display;"none"===r&&(this.watchItem.style.display="");for(var n=0,i=this.container;i.containerWatcher;)n+=i.containerWatcher.top-i.containerWatcher.container.viewportTop,i=i.containerWatcher.container;var a=this.watchItem.getBoundingClientRect();this.top=a.top+this.container.viewportTop-n,this.bottom=a.bottom+this.container.viewportTop-n,"none"===r&&(this.watchItem.style.display=r)}else this.watchItem===+this.watchItem?this.watchItem>0?this.top=this.bottom=this.watchItem:this.top=this.bottom=this.container.documentHeight-this.watchItem:(this.top=this.watchItem.top,this.bottom=this.watchItem.bottom);this.top-=this.offsets.top,this.bottom+=this.offsets.bottom,this.height=this.bottom-this.top,(void 0!==e||void 0!==t)&&(this.top!==e||this.bottom!==t)&&p(this.callbacks[eL],void 0)}},this.recalculateLocation(),this.update(),n=this.isInViewport,i=this.isFullyInViewport,a=this.isAboveViewport,s=this.isBelowViewport}return e.prototype.on=function(e,t,r){switch(void 0===r&&(r=!1),!0){case e===eC&&!this.isInViewport&&this.isAboveViewport:case e===ek&&this.isInViewport:case e===eI&&this.isFullyInViewport:case e===ex&&this.isAboveViewport&&!this.isInViewport:case e===eN&&this.isInViewport&&this.isAboveViewport:if(t.call(this,this),r)return}if(this.callbacks[e])this.callbacks[e].push({callback:t,isOne:r});else throw Error("Tried to add a scroll monitor listener of type "+e+". Your options are: "+eP.join(", "))},e.prototype.off=function(e,t){if(this.callbacks[e]){for(var r,n=0;r=this.callbacks[e][n];n++)if(r.callback===t){this.callbacks[e].splice(n,1);break}}else throw Error("Tried to remove a scroll monitor listener of type "+e+". Your options are: "+eP.join(", "))},e.prototype.one=function(e,t){this.on(e,t,!0)},e.prototype.recalculateSize=function(){this.watchItem instanceof HTMLElement&&(this.height=this.watchItem.offsetHeight+this.offsets.top+this.offsets.bottom,this.bottom=this.top+this.height)},e.prototype.update=function(){this.isAboveViewport=this.top<this.container.viewportTop,this.isBelowViewport=this.bottom>this.container.viewportBottom,this.isInViewport=this.top<this.container.viewportBottom&&this.bottom>this.container.viewportTop,this.isFullyInViewport=this.top>=this.container.viewportTop&&this.bottom<=this.container.viewportBottom||this.isAboveViewport&&this.isBelowViewport},e.prototype.destroy=function(){var e=this.container.watchers.indexOf(this);this.container.watchers.splice(e,1),this.callbacks={}},e.prototype.lock=function(){this.locked=!0},e.prototype.unlock=function(){this.locked=!1},e}(),e$=function(e){return function(t,r){void 0===r&&(r=!1),this.on.call(this,e,t,r)}},eZ=0,eV=eP.length;eZ<eV;eZ++){var eB=eP[eZ];ej.prototype[eB]=e$(eB)}function eF(e){return eD?0:e===document.body?window.innerHeight||document.documentElement.clientHeight:e.clientHeight}function ez(e){return eD?0:e===document.body?Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight):e.scrollHeight}function eH(e){return eD?0:e===document.body?window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop}var eY=!1;if(eM)try{var eG=Object.defineProperty({},"passive",{get:function(){eY=!0}});window.addEventListener("test",null,eG)}catch(e){}var eW=!!eY&&{capture:!1,passive:!0},eq=new(function(){function e(t,r){this.eventTypes=eP;var n,i,a,s=this;this.item=t,this.watchers=[],this.viewportTop=null,this.viewportBottom=null,this.documentHeight=ez(t),this.viewportHe
17ight=eF(t),this.DOMListener=function(){e.prototype.DOMListener.apply(s,arguments)},r&&(this.containerWatcher=r.create(t)),this.update=function(){if(s.viewportTop=eH(t),s.viewportBottom=s.viewportTop+s.viewportHeight,s.documentHeight=ez(t),s.documentHeight!==n){for(i=s.watchers.length;i--;)s.watchers[i].recalculateLocation();n=s.documentHeight}for(a=s.watchers.length;a--;)s.watchers[a].update();for(a=s.watchers.length;a--;)s.watchers[a].triggerCallbacks(void 0)},this.recalculateLocations=function(){this.documentHeight=0,this.update()}}return e.prototype.listenToDOM=function(){eM&&(this.item===document.body?window.addEventListener("scroll",this.DOMListener,eW):this.item.addEventListener("scroll",this.DOMListener,eW),window.addEventListener("resize",this.DOMListener),this.destroy=function(){this.item===document.body?(window.removeEventListener("scroll",this.DOMListener,eW),this.containerWatcher.destroy()):this.item.removeEventListener("scroll",this.DOMListener,eW),window.removeEventListener("resize",this.DOMListener)})},e.prototype.destroy=function(){},e.prototype.DOMListener=function(e){this.updateState(),this.updateAndTriggerWatchers(e)},e.prototype.updateState=function(){var e=eH(this.item),t=eF(this.item),r=ez(this.item),n=t!==this.viewportHeight||r!==this.contentHeight;if(this.viewportTop=e,this.viewportHeight=t,this.viewportBottom=e+t,this.contentHeight=r,n)for(var i=this.watchers.length;i--;)this.watchers[i].recalculateLocation()},e.prototype.updateAndTriggerWatchers=function(e){for(var t=this.watchers.length;t--;)this.watchers[t].update();for(t=this.watchers.length;t--;)this.watchers[t].triggerCallbacks(e)},e.prototype.createContainer=function(t){var r=new e("string"==typeof t?document.querySelector(t):Array.isArray(t)||t instanceof NodeList?t[0]:t,this);return this.updateState(),r.listenToDOM(),r},e.prototype.create=function(e,t){var r="string"==typeof r?document.querySelector(r):Array.isArray(e)||e instanceof NodeList?e[0]:e,n=new ej(this,r,t);return this.watchers.push(n),n},e.prototype.beget=function(e,t){return this.create(e,t)},e}())(eM?document.body:void 0);eM&&(eq.updateState(),eq.listenToDOM(),window.scrollMonitor=eq);var eK=r(20030);let eJ=(e,t)=>{try{return JSON.parse(e)}catch(e){return t}},eX=e=>{if(void 0===e)return e;let t=parseInt(e,10);return Number.isNaN(t)?0:t},eQ=e=>void 0===e?e:"true"===e,e0="mpsready",e1=(e=e0)=>(window.mps=window.mps||{},window.mps._queue=window.mps._queue||{},window.mps._queue[e]=window.mps._queue[e]||[],window.mps._queue[e]),e2=(e,t={},r)=>{if(!document)return null;let n=document.createElement(e);return Object.keys(t).forEach(e=>{let r=t[e];if("boolean"==typeof r){if(!r)return;n.setAttribute(e,e);return}n.setAttribute(e,r)}),r.appendChild(n),n},e5=e=>{window&&void 0!==window.requestAnimationFrame?window.requestAnimationFrame(e):setTimeout(e,66)};class e4{constructor(e,t,r,n=1500){this.startTime=Date.now(),this.maxWaitTime=n,this.testCondition=t,this.setTargeting=r,this.promise=new Promise((t,r)=>{try{e(),this.resolveAfterConditionOrMaxTime(t)}catch(e){r(e)}})}then(...e){return this.promise.then(...e)}catch(...e){return this.promise.catch(...e)}resolveAfterConditionOrMaxTime(e){var t;let r,n;!0===this.testCondition()||Date.now()-this.startTime>this.maxWaitTime?e(this.setTargeting()):(t=()=>{this.resolveAfterConditionOrMaxTime(e)},r=!1,setTimeout(n=()=>{r||(r=!0,t())},16),e5(n))}}let e3=[],e6=null,e8=e=>{let{url:t,id:r=e6}=e;if(!t||!r||"undefined"===t||"undefined"===r)throw Error("Admantx requires a canonical url and publisher key");return e6=r,new e4(()=>{let e=window.escape(t),n=window.escape(JSON.stringify({decorator:"template.nbc_template",key:r,method:"descriptor",filter:"default",mode:"async",type:"URL",body:e})),i=`https://usasync01.admantx.com/admantx/service?request=${n}`;window.admantx_callback||(window.admantx_callback=e=>{e3.push(e),window.admantx_callback=null},(0,eK.A)(i,{attributes:{async:!0}}))},()=>null===window.admantx_callback,()=>{let e={},t=e3.length;return t&&(e={adg:e3[t-1].admants}),{targeting:e}})};var e9=r(79424);let e7=()=>{let e,t=0,r=()=>{t+=1,Promise.resolve().then(()=>(0,e9.yv)("string")).then(t=>{e=t??null}).catch(()=>
17{if(t>=3){e=null;return}setTimeout(r,100)})};return new e4(()=>r(),()=>void 0!==e,()=>e?{targeting:{entitlements:e}}:{},500)},te=["assets.nbcnews.com","assets.today.com"],tt=["xfinity.comcast.net","xfinity.today.com","xfinity.nbcnews.com","my.xfinity.com"],tr=()=>{let e=!1;return new e4(()=>{let t,r,n=document.querySelector("xc-header");if(("X"===(()=>{let e=document.cookie,t=e.toUpperCase().indexOf("P7=");if(-1!==t){let r=t+2+1,n=-1!==e.indexOf(";",r)?e.indexOf(";",r):e.length;return unescape(e.substring(r,n))}return""})()||(t=document?.referrer,r=t?.split("//"),t&&!(r.length<2)&&tt.filter(e=>0===r[1].indexOf(e)).length&&(te.forEach(e=>{let t=new window.Image,r=new window.Date;t.src=`//${e}/rendering/crossdomaincookiepush.ashx/X?d=${r.getTime()}`}),1)))&&null==n){document.body.classList.add("xfinity");let e=document.createElement("div");e.innerHTML='<xc-header tab="myxfinity" client-id="nbcnews"></xc-header>';let t=e.childNodes[0];document.body.insertBefore(t,document.body.childNodes[0]),(0,eK.A)("https://polaris.xfinity.com/polaris.js",{attributes:{async:!0}})}e=!0},()=>e,()=>document.body.className.includes("xfinity")?{targeting:{xfinityTag:"xfinity"}}:{})},tn=async e=>{let t=await Promise.all(Object.entries(e).map(([e,t])=>{if(!d[e])return null;let r=e=>null;try{return Promise.resolve(d[e](t)).catch(r)}catch(e){return r(e)}})),r={};return t.map(e=>e?.targeting).forEach(e=>{Object.assign(r,e)}),r},ti=[],ta=!1,ts=!1,to=0;function tu(){ts||(ts=!0,e5(()=>{let e=window.innerWidth;ti.forEach(t=>{t(to,e)}),to=e,ts=!1}))}class tl{static{this.adInstances=[]}static get instances(){return tl.adInstances}static findByElement(e){return tl.adInstances.find(t=>t.element===e)}static register(e){tl.adInstances.push(e)}}let tc={CREATING:"creating",CREATED:"created",REQUESTING:"requesting",REQUESTED:"requested",RENDERING:"rendering",RENDERED:"rendered",RECYCLING:"recycling",RECYCLED:"recycled",DESTROYING:"destroying",DESTROYED:"destroyed"},td=[tc.CREATING,tc.REQUESTING,tc.RENDERING,tc.RECYCLING,tc.DESTROYING],tf=[tc.REQUESTED,tc.RENDERED,tc.RECYCLED,tc.DESTROYED];class tp{is(e){return this.statuses[e]}isProcessing(){return td.some(e=>this.statuses[e])}set(e,t){return e in this.statuses&&(this.statuses[e]=t),this}clearAllStatuses(){return Object.keys(tc).forEach(e=>{tc[e]!==tc.CREATED&&(this.statuses[tc[e]]=!1)}),this}clearFinishedStatuses(){return tf.forEach(e=>{this.statuses[e]=!1}),this}doneProcessing(){return td.forEach(e=>{this.statuses[e]=!1}),this}constructor(){this.statuses={[tc.CREATING]:!1,[tc.CREATED]:!1,[tc.REQUESTING]:!1,[tc.REQUESTED]:!1,[tc.RENDERING]:!1,[tc.RENDERED]:!1,[tc.RECYCLING]:!1,[tc.RECYCLED]:!1,[tc.DESTROYING]:!1,[tc.DESTROYED]:!1}}}let th=({targeting:e,adUnit:t,mpscall:r,mpsUrl:n})=>{let{ksg:i,kuid:a,adg:s,xfinity:o,site:u,type:l,pos:c,pageid:d,referrer:f,entitlements:p,...h}=e,m=r||{};Object.keys(h).forEach(e=>{"string"==typeof h[e]?m[`cag[${e}]`]=h[e]:Array.isArray(h[e])&&(m[`cag[${e}]`]=h[e].join("|"))}),m.adunit=t,m.type=l,m.content_id=d,m.referrer=f,m.cat=(e=>{let[,,,t,r]=e.split("/"),n=[t,r].filter(e=>!!e);return n.length?n.join("|"):"home"})(t),p&&(m["cag[tier]"]=p);let g=n?.split("ext/load-")?.[1]?.split(".js")?.[0]??null;return(m.site||g)&&(m.site=m.site||g),{mps:m,gpt:{ksg:i,kuid:a,adg:s,xfinity:o,referrer:f}}},tm=()=>(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag),tg=(e={},t=null)=>{tm().cmd.push(()=>{let r=t||tm()?.pubads();Object.keys(e).forEach(t=>{void 0!==e[t]&&r?.setTargeting(t,e[t])})})},ty=0,tv=e=>`div-mps-ad-${e}-${ty+=1}`,t_=null,tb=null;class tw{static{this.ready=Promise.resolve()}static{this.configured=void 0}static{this.config=null}static{this.getAdId=e=>tv(e)}static async configure(e={}){if(!window)return;let{breakpoints:t=[],vendors:r={},preprocessors:n={},targeting:i={},refreshInterval:a}=e;tw.configured?await tw.reconfigure(e):tw.configured=new Promise(e=>{tw.ready=Promise.resolve().then(async()=>{let s=await tn(n);tw.targeting={...i,...s},tw.config={breakpoints:t,vendors:r,refreshInterval:a},t_=r?.mpsUrl??"",tb=r?.gptAdUnitPath??"";let o=r?.mpsUrl?.replace("https://","")?.split("/")?.[0];window.mpsopts={host:o,updatecorrelator:!1};let u=th({targeting:tw.targeting,adUnit:tb,mpscall:window.mpscall,mpsUrl:t_});tg(u?.gpt),window.mpscall=u.mps,(0,eK.A)(t_,{attributes:{async:!0}}).thenOnFirstLoad(()=>{e()})})}).then(async()=>{await tw.ready})}static async reconfigure(e={}){if(!tw.configured)throw Error("MPS has not been configured");let{preprocessors:t={},targeting:r={},vendors:n={}}=e;
17tw.ready=Promise.resolve().then(async()=>{let e=await tn(t);tw.targeting={...r,...e},tw.config={...tw.config,vendors:n},tb=n?.gptAdUnitPath??"";let i=th({targeting:tw.targeting,adUnit:tb,mpscall:window.mpscall,mpsUrl:t_});tm().cmd.push(()=>{tm()?.pubads()?.clearTargeting()}),tg(i?.gpt),e1(e0).push(()=>{window.mpscall=i.mps,window.mps.makeRequest("more"),window.mps._correlator.update()})}),await tw.ready}static async createAd(e,t){await tw.configured,await tw.ready;let{id:r,slot:n,element:i,targeting:a={}}=e,s=r||tv(n);e2("div",{id:s},i);let o={id:s,slot:n};return e1("adload").push(e=>{let r=e._mps;r._slot===n&&(o.advar=r.advar,t({empty:e.isEmpty,mps:r,eo:e}))}),new Promise(e=>{e1(e0).push(()=>{let t={pos:n,...a},r=th({targeting:a,adUnit:tb,mpscall:window.mpscall,mpsUrl:t_}),i=Object.keys(r.mps).reduce((e,t)=>window.mpscall[t]!==r[t]?`${e}${t}=${r.mps[t]};`:e,"");o.adTargeting=t,o.customTargeting=i,e(o)})})}static renderAd(e){return new Promise(t=>{let{id:r,slot:n,customTargeting:i}=e;e1(e0).push(()=>{["news","msnbc"].includes(window?.__vertical)&&window?.__isarticle&&"boxinline"===n?setTimeout(()=>{window.mps.cloneAd(`#${r}`,n,i)},2e3):window.mps.cloneAd(`#${r}`,n,i),t()})})}static destroyAd(e){return new Promise(t=>{e1(e0).push(()=>{let{id:r}=e;window.mps._remove(document.getElementById(r)),void 0!==e.advar&&delete window.gpt[e.advar],t()})})}static recycleAd(e){return new Promise(t=>{e1(e0).push(()=>{void 0!==e.advar&&window.mps.refreshAds([window.gpt[e.advar]]),t()})})}}let tE="secondsUpdated";class tS{constructor(){this.intervalId=null,this.eventEmitter=document?.createElement("span"),this.running=!1,this.paused=!1,this.totalSeconds=0,this.start=()=>{this.running||(this.paused||(this.intervalId=setInterval(this.updateTimer,1e3)),this.running=!0,this.paused=!1)},this.updateTimer=()=>{this.paused||(this.totalSeconds+=1,this.eventEmitter?.dispatchEvent(new CustomEvent(tE)))},this.pause=()=>{this.running=!1,this.paused=!0},this.reset=()=>{clearInterval(this.intervalId),this.intervalId=void 0,this.totalSeconds=0,this.running=!1,this.paused=!1,this.start()},this.isPaused=()=>this.paused,this.getTotalSeconds=()=>this.totalSeconds,this.addEventListener=e=>{this.eventEmitter?.addEventListener(tE,e)},this.removeEventListener=e=>{this.eventEmitter?.removeEventListener(tE,e)}}}let tT=()=>window.performance&&"function"==typeof window.performance.now?window.performance.now():Date.now();class tA{constructor(e,{slot:t,...r}={}){if(this.id=null,this.ready=Promise.resolve(),this.events={},this.element=null,this.elementObserver=null,this.slot=null,this.options={},this.refreshInterval=null,this.recycleOnBreakpoint=!0,this.renderOnView=!0,this.offset=50,this.offsetViewport=null,this.activeTab=!0,this.renderEventData=void 0,this.timer=null,this.timerWasPaused=!1,this.scrollMonitor=null,this.onRenderCallbacks=[],this.adLifecycle=new tp,this.requestStartedAt=null,this.render=async()=>{if(await this.ready,!(this.adLifecycle.isProcessing()||this.adLifecycle.is(tc.REQUESTED))){if(this.removeListeners(),!document.hasFocus()&&this.activeTab)return void this.renderOnFocus();this.adLifecycle.set(tc.RENDERING,!0).set(tc.REQUESTING,!0),this.requestStartedAt=tT(),await tw.renderAd(this.ad),this.adLifecycle.doneProcessing().set(tc.REQUESTED,!0)}},this.recycle=async()=>{if(await this.ready,!this.adLifecycle.is(tc.RECYCLING)){if(this.removeListeners(),!document.hasFocus()&&this.activeTab)return void this.recycleOnFocus();this.adLifecycle.clearFinishedStatuses().set(tc.RECYCLING,!0).set(tc.REQUESTING,!0),this.requestStartedAt=tT(),await tw.recycleAd(this.ad),this.adLifecycle.doneProcessing().set(tc.REQUESTED,!0).set(tc.RECYCLED,!0)}},this.destroy=async()=>{await this.ready,this.adLifecycle.clearFinishedStatuses().set(tc.DESTROYING,!0),await tw.destroyAd(this.ad),this.adLifecycle.clearAllStatuses().set(tc.DESTROYED,!0),this.removeListeners()},this.onInitialRender=(e={})=>{if(!this.adLifecycle.is(tc.REQUESTED)||this.adLifecycle.is(tc.RENDERED))return;this.adLifecycle.set(tc.RENDERED,!0),this.elementObserver.disconnect(),this.scrollMonitor.destroy();let t=-(this.element.offsetHeight/2)||this.offset;this.scrollMonitor=eq.create(this.element,t),this.refreshInterval&&(this.scrollMonitor.recalculateLocation(),this.setupRefreshInterval()),this.scrollMonitor.isInViewport||(this.timer.pause(),this.timerWasPaused=this.timer.isPaused()),this.recycleOnBreakpoint&&this.setupRecycleOnBreakpoint();let{empty:r=!1,requestTime:n=null,...i}=e;this.renderEventData={empty:r,requestTime:n,additionalData:i},this.logResponseTiming({empty:r,requestTime:n}),this.fireRenderCallbacks(this.renderEventData)},this.startTimer=()=>{this.timer.start()},this.pauseTimer=()=>{this.timer.pause()},this.resumeTimerOnFocus=()=>{!this.timerWasPaused&&this.scrollMonitor.isInViewport&&this.startTimer()},this.pauseTimeOnBlur=()=>{this.timerWasPaused=this.timer.isPaused(),this.pauseTimer()},this.recycleWhenTimesUp=()=>{this.timer.getTotalSeconds()>=this.refreshInterval&&this.recycle()},!window)return;if(!e||!t)throw Error("Element and slot must be set");this.id=tw.getAdId(t),this.slot=t,this.element=e,tl.register(this),this.adLifecycle.set(tc.CREATING,!0),this.ready=tw.ready.then(async()=>{let{renderOnView:n=!0,recycleOnBreakpoint:i=!0,refreshInterval:a=0,offset:s=50,offsetViewport:o,sizes:u,preprocessors:l={},targeting:c={},vendors:d,activeTab:f=!0}=r;this.activeTab=f,this.options=r,this.renderOnView=n,this.offset=o?window.innerHeight*o/100:s,this.recycleOnBreakpoint=i,this.refreshInterval=void 0!==a?a:tw.config.refreshInterval;let p=await tn(l),h={...tw.targeting,...c,...p};"referrer"in h||(h.referrer=document.referrer),h.referrer=h.referrer.replace(/^(https?:\/\/(www)?)/,"").replace(/[./:]/g,""),this.setupElementObserver(),this.ad=await tw.createAd({id:this.id,targeting:h,element:e,slot:t,vendors:d,sizes:u},this.onInitialRender),this.adLifecycle.set(tc.CREATING,!1).set(tc.CREATED,!0),this.scrollMonitor=eq.create(e,this.offset),this.scrollMonitor.stateChange(()=>{this.scrollMonitor.recalculateLocation()}),this.timer=new tS,this.renderOnView&&this.setupRenderOnView()})}logResponseTiming({empty:e,requestTime:t}){null!==this.requestStartedAt&&((0,eO.d5)("adResponseTiming",{slot:this.slot,empty:e,requestTime:t,responseDurationMs:Math.round(tT()-this.requestStartedAt)}),this.requestStartedAt=null)}onRender(e){this.adLifecycle.is(tc.RENDERED)?e.call(this,this.renderEventData,this):this.onRenderCallbacks.push(e)}fireRenderCallbacks(e={}){this.onRenderCallbacks.forEach(t=>t.call(this,e,this))}setupElementObserver(){this.elementObserver=new MutationObserver(e=>
17{e.forEach(e=>{e.removedNodes.forEach(e=>{e.id===this.id&&e2("div",{id:this.id},this.element)})})}),this.elementObserver.observe(this.element,{subtree:!0,childList:!0})}setupRefreshInterval(){this.startTimer(),this.scrollMonitor.enterViewport(this.startTimer),this.scrollMonitor.exitViewport(this.pauseTimer),window.addEventListener("focus",this.resumeTimerOnFocus),window.addEventListener("blur",this.pauseTimeOnBlur),this.timer.addEventListener(this.recycleWhenTimesUp)}setupRenderOnView(){this.scrollMonitor.enterViewport(this.render)}setupRecycleOnView(){this.scrollMonitor.enterViewport(this.recycle)}setupRecycleOnBreakpoint(){let{breakpoints:e}=tw.config;if(e.length){var t;t=(t,r)=>{e.find(e=>e>=Math.min(t,r)&&e<=Math.max(t,r))&&this.recycle()},ti.push(t),window&&!ta&&(ta=!0,to=window.innerWidth,window.addEventListener("resize",tu))}}renderOnFocus(){let e=()=>{this.setupRenderOnView(),window.removeEventListener("focus",e)};window.addEventListener("focus",e)}recycleOnFocus(){let e=()=>{this.setupRecycleOnView(),window.removeEventListener("focus",e)};window.addEventListener("focus",e)}removeScrollListeners(){this.scrollMonitor.off("enterViewport",this.startTimer),this.scrollMonitor.off("enterViewport",this.setupRenderOnView),this.scrollMonitor.off("enterViewport",this.setupRecycleOnView),this.scrollMonitor.off("exitViewport",this.pauseTimer)}removeListeners(){this.timer.reset(),this.timer.removeEventListener(this.recycleWhenTimesUp),this.removeScrollListeners(),window.removeEventListener("focus",this.resumeTimerOnFocus),window.removeEventListener("blur",this.pauseTimeOnBlur)}}var tO=r(272),tC=r(10540),tk=r(23565),tI=r(42060),tx=r(84245),tN=r(11806),tL=r(34846);let{slice:tR,forEach:tP}=[],tD=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,tM={create(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*r*1e3)),n&&(i.domain=n),document.cookie=((e,t,r)=>{let n=r||{};n.path=n.path||"/";let i=encodeURIComponent(t),a=`${e}=${i}`;if(n.maxAge>0){let e=n.maxAge-0;if(Number.isNaN(e))throw Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(e)}`}if(n.domain){if(!tD.test(n.domain))throw TypeError("option domain is invalid");a+=`; Domain=${n.domain}`}if(n.path){if(!tD.test(n.path))throw TypeError("option path is invalid");a+=`; Path=${n.path}`}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw TypeError("option expires is invali
17d");a+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"none":a+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return a})(e,encodeURIComponent(t),i)},read(e){let t=`${e}=`,r=document.cookie.split(";");for(let e=0;e<r.length;e++){let n=r[e];for(;" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},remove(e){this.create(e,"",-1)}};var tU={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"u">typeof document)return tM.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:r,cookieMinutes:n,cookieDomain:i,cookieOptions:a}=t;r&&"u">typeof document&&tM.create(r,e,n,i,a)}},tj={name:"querystring",lookup(e){let t,{lookupQuerystring:r}=e;if("u">typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));let n=e.substring(1).split("&");for(let e=0;e<n.length;e++){let i=n[e].indexOf("=");i>0&&n[e].substring(0,i)===r&&(t=n[e].substring(i+1))}}return t}};let t$=null,tZ=()=>{if(null!==t$)return t$;try{t$="undefined"!==window&&null!==window.localStorage;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){t$=!1}return t$};var tV={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&tZ())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:r}=t;r&&tZ()&&window.localStorage.setItem(r,e)}};let tB=null,tF=()=>{if(null!==tB)return tB;try{tB="undefined"!==window&&null!==window.sessionStorage;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){tB=!1}return tB};var tz={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&tF())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:r}=t;r&&tF()&&window.sessionStorage.setItem(r,e)}},tH={name:"navigator",lookup(e){let t=[];if("u">typeof navigator){let{languages:e,userLanguage:r,language:n}=navigator;if(e)for(let r=0;r<e.length;r++)t.push(e[r]);r&&t.push(r),n&&t.push(n)}return t.length>0?t:void 0}},tY={name:"htmlTag",lookup(e){let t,{htmlTag:r}=e,n=r||("u">typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},tG={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("u"<typeof window)return;let r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(r))return r["number"==typeof t?t:0]?.replace("/","")}},tW={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,r="u">typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r["number"==typeof t?t+1:1]}};class tq{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return tP.call(tR.call(arguments,1),t=>{if(t)for(let r in t)void 0===e[r]&&(e[r]=t[r])}),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(tU),this.addDetector(tj),this.addDetector(tV),this.addDetector(tz),this.addDetector(tH),this.addDetector(tY),this.addDetector(tG),this.addDetector(tW)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let t=[];
17return(e.forEach(e=>{if(this.detectors[e]){let r=this.detectors[e].lookup(this.options);r&&"string"==typeof r&&(r=[r]),r&&(t=t.concat(r))}}),t=t.map(e=>this.options.convertDetectedLanguage(e)),this.services.languageUtils.getBestMatchFromCodes)?t:t.length>0?t[0]:null}cacheUserLanguage(e,t){t||(t=this.options.caches),!t||this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)})}}tq.type="languageDetector";var tK=r(19459),tJ=r.n(tK);tN.Ay.use(tq).use(tL.r9).init({detection:{order:["htmlTag"],lookupCookie:"i18next"},debug:!1,resources:tJ(),fallbackLng:"en",interpolation:{escapeValue:!1},returnNull:!0});var tX=r(90186);r(14134);let tQ={noticias:"es",deportes:"es",localstationdeportes:"es",entretenimiento:"es",telemundo:"es",shows:"es"};var t0=r(72957),t1=r(65698),t2=r(51845);r(46866),(0,t2.stub)("register","ramen_authflow");let t5=h()(()=>Promise.all([r.e(8322),r.e(7319),r.e(3364),r.e(6469),r.e(7691),r.e(129),r.e(2954),r.e(1648),r.e(1258)]).then(r.bind(r,51899)),{loadableGenerated:{webpack:()=>[51899]},ssr:!1}),t4=h()(()=>Promise.all([r.e(5812),r.e(9364)]).then(r.bind(r,36983)).then(e=>e.AirshipWebNotifications),{loadableGenerated:{webpack:()=>[36983]}}),t3=h()(()=>Promise.all([r.e(7524),r.e(3364),r.e(2954),r.e(5605)]).then(r.bind(r,15605)).then(e=>e.AccountDebugPanel),{loadableGenerated:{webpack:()=>[15605]},ssr:!1}),{publicRuntimeConfig:{dev:t6,ENABLE_THEME_PALETTE:t8}}=(0,m.Ay)();function t9({accountDebugCookies:e=null,airshipWebNotificationsEnabled:t,Component:r,cookies:i={},featureFlagQueryParam:a=!1,useGammaVod:s,pageProps:o,launchDarklyFlags:u,launchDarklyVersion:l,now:c,ssrCorrelationId:d}){let p,h,m,y,v,_=(0,tC.hZ)(e=>e.refreshUserToken);p=(0,tk.G)("access_token"),h=(0,tC.hZ)(e=>e.authenticationState),m=(0,g.useRef)(null),(y=(0,g.useRef)(h)).current=h,(0,g.useEffect)(()=>{let e=!!m.current,t=!!p,r=m.current;if(m.current=p??null,!t&&e&&y.current===tx.K_){let e=setTimeout(()=>{if(y.current!==tx.K_)return;let e=r?(0,e9.WO)(r):null;(0,eO.d5)("unexpectedAccessTokenDeletion",{feature:"bedrock-auth",userId:e?.sub??null,hasNbcNewsSubscriberCookie:!!(0,tI.Ri)("nbc_news_subscriber"),pageUrl:`${window.location.origin}${window.location.pathname}`})},100);return()=>clearTimeout(e)}},[p,h]);let{domain:b,hostname:w,path:E,statusCode:S,vertical:T}=o;v=tQ[T]||"en",tN.Ay.changeLanguage(v);let A=!eT.test(E)&&t,O=(0,ev.B0)(ey.MYNEWS_ENABLED,T),C=!1!==O&&!!O;return g.useEffect(()=>{function e(e){return tl.findByElement(e)||new tA(e,(e=>{let{slot:t,sizes:r,offset:n,targeting:i,renderOnView:a,refreshInterval:s,activeTab:o,offsetViewport:u}=e.dataset;return{slot:t,sizes:eJ(r,[]),targeting:eJ(i,null),refreshInterval:"false"===s?0:eX(s),offset:eX(n),renderOnView:eQ(a),offsetViewport:eX(u),activeTab:eQ(o)}})(e))}function t(t){t(tw,e)}return(window.__nbcnd__=window.__nbcnd__||{},window.__nbcnd__.adQueue=window.__nbcnd__.adQueue||[],window.__mpsconfig)?(tw.configure(window.__mpsconfig),Array.prototype.forEach.call(document.querySelectorAll("[data-mps]"),e),window.__nbcnd__.adQueue.forEach(t),window.__nbcnd__.adQueue.length=0,window.__nbcnd__.adQueue.push=t):console.error("window.__mpsconfig has not been set. set it or else."),eS.A.monitorScroll(),eS.A.monitorResize(),()=>{eS.A.deregisterScroll(),eS.A.deregisterResize()}},[]),(0,g.useEffect)(()=>{d&&(0,eO.qh)(d)},[d]),(0,g.useEffect)(()=>{C&&_("profile"===o.routePageType)},[]),(0,g.useEffect)(()=>{(0,t2.stub)("register","launchdarkly_flags_loaded"),(0,t2.stub)("track","launchdarkly_flags_loaded",{flags:u,path:E,version:l})},[u,E,l]),(0,f.jsx)(ef,{cookies:(0,tX.B)()?void 0:i,children:(0,f.jsx)(ew.O1.Provider,{value:T,children:(0,f.jsx)(ew.cq.Provider,{value:{...u,featureFlagQueryParam:a},children:(0,f.jsx)(t1.K5,{now:c,children:(0,f.jsx)(t0.A,{children:(0,f.jsx)(ew.Pl.Provider,{value:{domain:b,hostname:w,path:E,ssrCorrelationId:d,statusCode:S},children:(0,f.jsxs)(ew.u6,{children:[(0,f.jsxs)(eE.q.Provider,{value:s,children:[(0,f.jsx)(r,{...o}),(0,f.jsx)(t5,{})]}),n&&(0,f.jsx)(n,{vertical:T}),(0,f.jsx)(t3,{accountDebugCookies:e}),A?(0,f.jsx)(t4,{}):null]})})})})})})})}(0,tX.B)()&&!t6&&(0,eO.Lp)(),t9.propTypes={airshipWebNotificationsEnabled:eh().bool.isRequired,Component:eh().elementType.isRequired,cookies:eh().shape({cookies:eh().shape({access_token:eh().string})}),featureFlagQueryParam:eh().bool,useGammaVod:eh().bool,launchDarklyFlags:eh().objectOf(eh().string),launchDarklyVersion:eh().string,pageProps:eh().shape({domain:eh().string.isRequired,hostname:eh().string.isRequired,path:eh().string.isRequired,statusCode:eh().number.isRequired,vertical:eh().string.isRequired}).isRequired},t9.getInitialProps=eo.getInitialAppProps(e=>async t=>{var r;let{Component:n,ctx:i,ctx:{query:{page:a},req:{originalUrl:s,url:o}={},res:{locals:{correlationId:u,domain:l,getLaunchDarklyFlag:c,hostname:d,launchDarklyFlags:f,layout:p,vertical:h,fullUrl:m,launchDarklyVersion:g}={},statusCode:y}}}=t;await e.dispatch((0,K.Zk)(h));let v=(({flagName:e=null,customParams:t={}})=>!!c&&!!e&&c(e,e=>e({custom:{pageType:a,vertical:h,fullUrl:m,...t}})))({flagName:"airship-web-notifications"}),_={...i,store:e},b={};n.getInitialProps&&(b=await n.getInitialProps(_)),b.view=null;let w=function(e){let{statusCode:t,initialProps:{statusCode:r}={}}=e;return t||r}(b);w>=400&&(t.ctx.res.statusCode=w);let E=t?.query?.featureFlag??!1,S=!eg()(E,"false"),T=[e.dispatch((0,K.Ok)("ramen-nextjs")),e.dispatch((0,j.iN)(h)),e.dispatch((0,j.oI)({vertical:h,featureFlagQueryParam:S})),e.dispatch(W({domain:l,host:d,navigating:b.navigating||!1,path:s}))],{chromeless:A,lazyload:O,taboolafeed:C,showChromelessMarquee:k}=s&&(0,e_.A)(s)||{};(0,eb.H)(o)||tO.l.includes(A?.toLowerCase())?(T.push(e.dispatch((0,K.AX)())),T.push(e.dispatch((0,K.g6)(tO.g.START_TODAY_APP))),b.view=tO.g.START_TODAY_APP):A?.toLowerCase()==="true"&&(T.push(e.dispatch((0,K.AX)())),k?.toLowerCase()==="true"&&T.push(e.dispatch((0,K.dr)()))),"false"===O&&T.push(e.dispatch((0,K.pf)())),C&&"true"===C.toLowerCase()&&T.push(e.dispatch((0,K.FJ)())),T.push(e.dispatch((0,K.QS)(h)));let I=eA(p);await Promise.all(T),b.namespacesRequired||(b.namespacesRequired=[]);let x=null;if(f?.["enable-account-debug-menu"]&&i.req?.universalCookies){let e=e=>{let t=i.req.universalCookies.get(e,{doNotParse:!0});return"string"==typeof t?t:null};x={SESSION:e("SESSION"),edge_entitlements:e("edge_entitlements")}}return{accountDebugCookies:x,airshipWebNotificationsEnabled:await v,cookies:(r=t.ctx,r?.req?.universalCookies?r.req.universalCookies:new eu.A),featureFlagQueryParam:S,launchDarklyFlags:f,launchDarklyVersion:g,now:new Date().getTime(),ssrCorrelationId:u??null,pageProps:{domain:l,hostname:d,host:d,layout:await I,path:s,statusCode:y,vertical:h,routePageType:a,...b}}});let t7=eo.withRedux(t9)},93915:(e,t,r)=>{"use strict";r.d(t,{l:()=>a,z:()=>i});let n=null;function i(e){n=e}function a(e){if(!n)return;let{dateCreated:t,contentAuthor:r,contentSection:i,tags:a,contentIsNative:s,ecommerceEnabled:o,pageType:u,contentId:l}=n;e(["setContentCreated",t]),e(["setContentAuthor",r]),e(["setContentSection",i]),e(["setTags",a]),e(["setContentIsNative",s]),void 0!==o&&e(["setCustomVariable","ecommerceEnabled",o]),void 0!==u&&e(["setCustomVariable","pageType",u]),void 0!==l&&e(["setCustomVariable","contentId",l])}},94937:(e,t,r)=>{"use strict";r.d(t,{$s:()=>p,C1:()=>h,Mr:()=>a,Vh:()=>f,X4:()=>d,Zq:()=>o,aN:()=>s,am:()=>l,lo:()=>c,nd:()=>i,pq:()=>n,sh:()=>u});let n="video/LOAD_PENDING",i="video/LOAD_SUCCESS",a="video/LOAD_ERROR",s="video/SET_AUTO_PLAY",o="videos/SET_CURRENT",u="video/LOAD_PLAYLIST_SUCCESS",l="video/LOAD_PLAYLIST_PENDING",c="video/LOAD_PLAYLIST_ERROR",d="videos/LOAD_VIDEOS_BY_IDS_SUCCESS",f="videos/TOP_PLAYLIST_PENDING",p="videos/TOP_PLAYLIST_SUCCESS",h="videos/TOP_PLAYLIST_ERROR"},95062:(e,t,r)=>{e.exports=r(79706)()}
17,97159:(e,t,r)=>{"use strict";let{z:n}=r(57261);e.exports={brandSchema:n.enum(["today","nbcnews"])}},97225:(e,t,r)=>{"use strict";e.exports=r(70789)},97883:e=>{"use strict";function t(e,t,r){return"string"==typeof e?e.replace(t,r):e}function r(e){return t(e,"http:","https:")}function n(e,t){try{return new URL(e,t)}catch(e){return}}function i(e){return t(e,/\/$/,"")}e.exports={getCanonical:function(e){let t;return((t="object"==typeof e?i(e.canonical||e.primary||null):i(e))&&(t=t.toLowerCase()),/http:\/\/[^.]+.(nbcnews|today|msnbc).com\//.test(String(t)))?r(t):t},isValidUrl:function(e){return/^((https?|ftp|smtp):\/\/)?([^.]+.)?[a-z0-9]+\.[a-z]+(\/*)([a-zA-Z0-9#\-_.]+\/?)*(\?([\w-]+(=[\w-]*)?(&[\w-]+(=[\w-]*)?)*)?)?$/.test(e)},isValidAbsoluteUrl:function(e){try{return new URL(e),!0}catch(e){return!1}},parseOnClient:function(e){let t=document.createElement("a");t.href=e;let{hash:r,pathname:n,search:i}=t,{hostname:a,protocol:s,port:o}=window.location;return{hash:r,hostname:a,pathname:n,port:o,protocol:s,search:i}},securify:r,tryParse:n,serialize:function(e,t=!0){let r=Object.keys(e).filter(t=>void 0!==e[t]).reduce((r,n)=>(r.push(`${n}=${t?encodeURIComponent(e[n]??!1):e[n]}`),r),[]).join("&");return`?${r}`},stripTrailingSlash:i,stripLeadingSlash:function(e){return t(e,/^\//,"")},stripQueryParams:function(e){return e.split("?")[0]},getContentUrl:function(e){if(!e||!e.length)return null;let{origin:t,pathname:r,searchParams:n}=new URL(e.find(e=>e?.publicUrl)?.publicUrl??"");return n.append("format","redirect"),`${t}${r}?${n.toString()}`},modifyIfUrl:function(e,t=e=>e){try{let r=new URL(e);return t(r),r.toString()}catch(t){return e}},buildEnvironmentUrl:function(e,t,r){if(!e)return r;let i=/^localhost(\.|:|$)/.test(e)?"http":"https",a=`${i}://${e}`,s=n(String(t??""),a);return`${a}${s?s.pathname:"/"}`}}},99829:(e,t,r)=>{"use strict";function n(e){let t=e.slice(e.indexOf("?")+1).split("&"),r={};return t.forEach(e=>{let[t,n]=e.split("=");r[t]=decodeURIComponent(n)}),r}r.d(t,{A:()=>n})}},e=>{var t=t=>e(e.s=t);e.O(0,[8974,8792],()=>(t(73074),t(59603))),_N_E=e.O()}]);
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.